SunnysideUp\ShareThis\Extension\ShareThisSTE
Add a field to each SiteTree object and it's subclasses to enable Share icons.
- Author: nicolaas [at] sunnysideup.co.nz
Synopsis
class ShareThisSTE
extends SiteTreeExtension
{
- // members
- private static boolean $use_font_awesome = true;
- private static array $always_include_in = ;
- private static array $never_include_in = ;
- private static boolean $use_bw_effect = false;
- private static array $included_icons = ;
- private static array $excluded_icons = ;
- private static array $db = ;
- // methods
- public FieldList updateCMSFields()
- public void getShowShareIcons()
- public void getShareIcons()
- public void ShareAllExpandedList()
- public void IncludeShareAll()
- public boolean getShareAll()
- protected array makeShareIcons()
- protected void makeBookmarks()
- private boolean applyToOwnerClass()
Hierarchy
Extends
- SilverStripe\CMS\Model\SiteTreeExtension
Tasks
Line | Task |
---|---|
25+ | fix populateDefaults to make sure SiteConfig table is built first |
Members
private
- $always_include_in
—
array
list of sitetree extending classnames where the ShareThis functionality should be included - $db
—
array
standard SS method - $excluded_icons
—
array
specify icons to be excluded, if left empty, this variable will be ignored We have this variable so that you can setup a bunch of default icons - $included_icons
—
array
specify icons to be included, if left empty, this variable will be ignored We have this variable so that you can setup a bunch of default icons - $never_include_in
—
array
list of sitetree extending classnames where the ShareThis functionality should NEVER be included - $use_bw_effect
—
boolean
use BW icons - $use_font_awesome
—
boolean
Use the font-awesome icon collection?