Cheetah
|
Public Member Functions | |
getCode ($sUrl, $sTitle, $aCustomVars=false) | |
Static Public Member Functions | |
static | getInstance () |
Public Attributes | |
$_aSocialButtons = array () | |
Protected Member Functions | |
__construct () | |
_replaceMarkers ($s, $a) | |
_getLocaleFacebook ($sLocale) | |
_getLocalesFacebook () | |
Social sharing buttons for any content
It displays sharing buttons from popular social networks, like facebook, twitter, gogole plus, etc.
Example of usage:
ch_import('ChTemplSocialSharing'); echo ChTemplSocialSharing::getInstance()->getCode($sUrl, $sTitle);
Alerts:
Type/unit: system Action: social_sharing_display Options: buttons - reference to buttons array markers - reference to variables for replacement override_output - override output string
Definition at line 32 of file ChWsbSocialSharing.php.
|
protected |
Constructor
Reimplemented in ChTemplSocialSharing, ChTemplSocialSharing, ChTemplSocialSharing, and ChBaseSocialSharing.
Definition at line 39 of file ChWsbSocialSharing.php.
|
protected |
Get most facebook locale for provided language code.
$sLang | lang code |
Definition at line 88 of file ChWsbSocialSharing.php.
|
protected |
Get facebook locales
Definition at line 100 of file ChWsbSocialSharing.php.
|
protected |
Replace provided markers in string.
$s | - string to replace markers in |
$a | - markers array |
Definition at line 72 of file ChWsbSocialSharing.php.
ChWsbSocialSharing::getCode | ( | $sUrl, | |
$sTitle, | |||
$aCustomVars = false |
|||
) |
Reimplemented in ChBaseSocialSharing.
Definition at line 61 of file ChWsbSocialSharing.php.
|
static |
Get object instance
$sObject | object name |
Definition at line 50 of file ChWsbSocialSharing.php.
ChWsbSocialSharing::$_aSocialButtons = array () |
Definition at line 34 of file ChWsbSocialSharing.php.