scriptlessSocialsharing
in package
Static class wrapper
Tags
Table of Contents
Methods
- CSS() : mixed
- getButtons() : array<string|int, mixed>
- Gets an array with the buttons information
- getNetworks() : array<string|int, mixed>
- Returns an array for the icon and title names of a social network
- getProfileButtons() : array<string|int, mixed>
- Gets the profile buttons data
- getRSSURL() : string
- Gets the RSS URL
- getSharingURL() : string
- Gets the scriptless sharing URL to a social network
- getSupportedNetworks() : array<string|int, mixed>
- Returns an array of social media networks supported. Order roughly be importance (as of date of making)
- printButtons() : mixed
- Place this where you wish the buttons to appear. The plugin includes also jQUery calls to set the buttons up to allow multiple button sets per page.
- printProfileButtons() : mixed
- Prints the profile buttons
Methods
CSS()
public
static CSS() : mixed
getButtons()
Gets an array with the buttons information
public
static getButtons([string $beforetext = '' ][, string $customtext = null ]) : array<string|int, mixed>
Parameters
- $beforetext : string = ''
-
Text to be displayed before the sharing list. HTML code allowed. Default empty
- $customtext : string = null
-
Custom text to share to override the internalt share text generation via current page
Return values
array<string|int, mixed>getNetworks()
Returns an array for the icon and title names of a social network
public
static getNetworks() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getProfileButtons()
Gets the profile buttons data
public
static getProfileButtons() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getRSSURL()
Gets the RSS URL
public
static getRSSURL() : string
Tags
Return values
stringgetSharingURL()
Gets the scriptless sharing URL to a social network
public
static getSharingURL([string $network = '' ][, string $url = '' ][, string $title = '' ]) : string
Parameters
- $network : string = ''
-
Network to get the sharing URL for if available
- $url : string = ''
-
URL for sharing
- $title : string = ''
-
Title for sharing
Tags
Return values
stringgetSupportedNetworks()
Returns an array of social media networks supported. Order roughly be importance (as of date of making)
public
static getSupportedNetworks([string $type = 'sharinglinks' ]) : array<string|int, mixed>
Parameters
- $type : string = 'sharinglinks'
-
'sharinglinks' or "profilelinks'
Tags
Return values
array<string|int, mixed>printButtons()
Place this where you wish the buttons to appear. The plugin includes also jQUery calls to set the buttons up to allow multiple button sets per page.
public
static printButtons([string $text = '' ][, string $customtext = null ][, mixed $iconsonly = null ]) : mixed
Parameters
- $text : string = ''
-
Text to be displayed before the sharing list. HTML code allowed. Default empty
- $customtext : string = null
-
Custom text to share to override the internalt share text generation via current page
- $iconsonly : mixed = null
printProfileButtons()
Prints the profile buttons
public
static printProfileButtons([string $before = '' ]) : mixed
Parameters
- $before : string = ''
-
Enter text to print before the buttons like "Follow us", HTML allowed