PHP Socializer
PHP module intended to make adding social sharing buttons more enjoyable.
Includes Google Analytics hooks to enable tracking of share activity., (*1)
Currently supports Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, GitHub and Flattr buttons., (*2)
Basic Example
, (*3)
These buttons can be created with the following code:, (*4)
new Social\Twitter(array(
'username' => 'pagesofinterest',
)),
'googleplus' => new Social\GooglePlus(array(
'size' => 'medium'
)),
'linkedIn' => new Social\LinkedIn()
), array(
'fadeIn' => 400
));
/* Where the buttons should be displayed */
echo $socialManager->render(array(
// These options override those used in the manager initialisation above
'url' => 'http://pagesofinterest.net/',
'title' => 'Pages of Interest',
));
/* In your footer, just above the closing tag */
// Output the
, (*5)
To render a single button, use the following syntax:, (*6)
'faceleg',
'repository' => 'COI-Social',
'type' => Social\GitHub\Type\WATCH
));
?>
Credits
GitHub buttons created by Mark Dotto - GitHub buttons., (*7)