Esempio n. 1
0
 function mars_get_socials_count($key)
 {
     $count = 0;
     switch ($key) {
         case 'facebook':
             if (function_exists('get_scp_facebook')) {
                 $count = get_scp_facebook();
             }
             break;
         case 'twitter':
             if (function_exists('get_scp_twitter')) {
                 $count = get_scp_twitter();
             }
             break;
         case 'googleplus':
             if (function_exists('get_scp_googleplus')) {
                 $count = get_scp_googleplus();
             }
             break;
         case 'subscriber':
             $result = count_users();
             $count = isset($result['avail_roles'][$key]) ? $result['avail_roles'][$key] : 0;
             break;
     }
     return !empty($count) ? $count : 0;
 }
Esempio n. 2
0
?>
<div style="position: fixed; top: 150px; left: 0px; width: 120px; height: 600px;">
<script>
    document.write('<scr'+'ipt type="text/javascript" src="http://pl.intag.co/ttj?id=2568302&size=120x600&cb=' +new Date().getTime()+'"></scr' + 'ipt>');
</script>
</div>
<div class="banner clearfix">
    <div class="social fl">
        <ul>
            <li>
                <a target="_blank" href="https://www.facebook.com/magic4walls"><img src="<?php 
bloginfo('template_url');
?>
/images/facebook.png" /></a>
                <p><?php 
echo get_scp_facebook();
?>
<br/>Likes</p>
            </li>
            <li>
                <a target="_blank" href="https://twitter.com/magic4walls"><img src="<?php 
bloginfo('template_url');
?>
/images/twitter.png" /></a>
                <p><?php 
echo get_scp_twitter();
?>
<br/>Followers</p>
            </li>
            <li>
                <a target="_blank" href="https://plus.google.com/104496166402943695916/posts"><img src="<?php