FUEL CMS User Guide : Version 1.4


Social Helper

Function Reference [+]

Creates HTML links for the various social sites set in the social configuration.

Returns

string

Parameters

(string) $post_url 
(string) $post_title 
(string) $joiner 
(array) $only_show 

social_facebook_recommend('$post_url')

Creates HTML iframe for facebook recommend.

Returns

string

Parameters

(string) $post_url 

social_facebook_share()

Creates javascript for facebook share.

Returns

string

social_digg('$post_url', '$post_title', ['$size'='Icon'])

Creates Digg button. http://about.digg.com/button for different sizes ... Medium, Large, Compact, Icon.

Returns

string

Parameters

(string) $post_url 
(string) $post_title 
(string) $size 

social_tweetme('$post_url')

Creates tweetme button.

Returns

string

Parameters

(string) $post_url 

social_stumbleupon()

Creates stumbleupon button.

Returns

string

generate_social_js('$path', ['$async'=TRUE])

Generates javascript for embedding social media links in a page.

Returns

string

Parameters

(string) $path 
(boolean) $async 

social_url('$base_url', '$post_url', ['$post_title'=NULL])

Creates a social url link.

Returns

string

Parameters

(string) $base_url 
(string) $post_url 
(string) $post_title