- Andre Lohmann (Nickname: andrelohmann)
Silverstripe 3.2.x
Silverstripe Implementation of the Heise c't shariff plugin
plugin is necessary to be compliant with german cookie law
https://github.com/heiseonline/shariff
Uses current frontend Version 1.16.0
Uses current shariff-php Version 1.5.1
Necessarily load font-awesome 4.3.0 and jquery
Add the following to your _ss_environment.php
define('SHARIFF_OPTIONS', json_encode(array(
"domain" => 'YOURDOMAIN',
"cache" => ["ttl" => 1],
"services" => ["Facebook", "GooglePlus", "Twitter", "LinkedIn", "Reddit", "StumbleUpon", "Flattr", "Pinterest"]
)));
and configure following these instructions: https://github.com/heiseonline/shariff-backend-php
include font-awesome 4.3.0
add the following to your template(s)
# in body
<div class="shariff" data-backend-url="shariffbackend" data-url="$Link" data-orientation="horizontal"></div>
and configure following these instructions: https://github.com/heiseonline/shariff#options-data-attributes
this plugin uses a forked Version of shariff (https://github.com/andrelohmann/shariff) the "url" Paramater, submitting the current Page Url to the packend, is colliding with the same parameter also used by the silverstripe bootstrap process. The fork simply changes this parameter from "url" to "pageUrl"
This repository uses the git flow paradigm. After each release cycle, do not forget to push tags, master and develop to the remote origin
git push --tags
git push origin develop
git push origin master