FUEL CMS User Guide : Version 1.5.2


Social Helper

Function Reference [+]

share('$type', ['$values'=NULL])

Uses Social class's share method to return social links.

Returns

string

Parameters

(string) $type The type of social URL. A list of supported URLs can be found in the fuel/application/config/social.php file under the $config['share_url']
(mixed) $values Can be an object or an array of values

og($values)

Uses Social class's og method to create open graph links.

Returns

string

Parameters

(array) $values An array of values for the open graph which can include array keys of 'title', 'url', 'description', 'image', 'site_name', 'type'

social_popup_js(['$width'=640], ['$height'=500], ['$selector'='popup'])

Creates the popup window javascript for the share links and writes the javascript only once to the page.

Returns

string

Parameters

(int) $width The width of the popup javascript window (optional)
(int) $height The height of the popup javascript window (optional)
(string) $selector The selector used for the popup window. Default is .popup (optional)