/**
 * social network plugin :  displays a picture of delicous + generate an url to share the current content on delicious
 *
 * @param jTpl $tpl template engine
 * @param array  $params contains :
 * jurl = url in jurl format
 * jurlparams = params of jUrl
 * title = title to share
 */
function jtpl_function_html_social_networks($tpl, $params)
{
    $conf =& jApp::config()->social_networks;
    echo '<div class="social-network">';
    if ($conf['twitter']) {
        social_twitter($params['jurl'], $params['jurlparams'], $params['title']);
    }
    if ($conf['digg']) {
        social_digg($params['jurl'], $params['jurlparams'], $params['title']);
    }
    if ($conf['delicious']) {
        social_delicious($params['jurl'], $params['jurlparams'], $params['title']);
    }
    if ($conf['facebook']) {
        social_facebook($params['jurl'], $params['jurlparams'], $params['title']);
    }
    if ($conf['reddit']) {
        social_reddit($params['jurl'], $params['jurlparams'], $params['title']);
    }
    if ($conf['netvibes']) {
        social_netvibes($params['jurl'], $params['jurlparams'], $params['title']);
    }
    echo "</div>";
}
Esempio n. 2
0
 function get_digg($size = 'Icon')
 {
     return social_digg($this->url, $this->title, $size);
 }