SunnysideUp\ShareThis\Extension\SocialNetworksSTE
Add a field to each SiteTree object and it's subclasses to enable "follow us on ...", this can be a blog, twitter, facebook or whatever else.
it uses the SocialNetworkingLinksDataObject to get a list of icons.
- Author: nicolaas [at] sunnysideup.co.nz
Synopsis
class SocialNetworksSTE
extends SiteTreeExtension
{
- // members
- private static boolean $use_font_awesome = false;
- private static array $always_include_in = ;
- private static array $never_include_in = ;
- private static array $db = ;
- // methods
- public FieldList updateCMSFields()
- public boolean ShowSocialNetworks()
- public SocialNetworkingLinksDataObject SocialNetworks()
- private boolean applyToOwnerClass()
Hierarchy
Extends
- SilverStripe\CMS\Model\SiteTreeExtension
Tasks
Line | Task |
---|---|
19+ | 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
- $never_include_in
—
array
list of sitetree extending classnames where the ShareThis functionality should NEVER be included - $use_font_awesome
—
boolean
Use the font-awesome icon collection?