Ejemplo n.º 1
0
    function widget($args, $instance)
    {
        extract($args);
        $Social = new Social();
        echo $before_widget;
        if (!empty($instance['title'])) {
            echo $before_title;
            echo $instance['title'];
            echo $after_title;
        }
        ?>

			<ul class="subscribe">

			<?php 
        if (!empty($instance['dribbble'])) {
            $dribbble = $Social->dribbble($instance['dribbble']);
            ?>

				<li class="clearfix dribbble">
					<a href="<?php 
            echo $instance['dribbble'];
            ?>
" target="_blank">
						<span><i><?php 
            echo @number_format($dribbble);
            ?>
</i> <?php 
            _e('Followers');
            ?>
 </span>
					</a>
				</li>

			<?php 
        }
        ?>


            <?php 
        if (!empty($instance['vimeo'])) {
            $vimeo = $Social->vimeo($instance['vimeo']);
            ?>

				<li class="clearfix vimeo">
					<a href="<?php 
            echo $instance['vimeo'];
            ?>
" target="_blank">
						<span><i><?php 
            echo @number_format($vimeo);
            ?>
</i> <?php 
            _e('Subscribers');
            ?>
 </span>
					</a>
				</li>

			<?php 
        }
        ?>


            <?php 
        if (!empty($instance['youtube'])) {
            $youtube = $Social->youtube($instance['youtube']);
            ?>

				<li class="clearfix YouTube">
					<a href="<?php 
            echo $instance['youtube'];
            ?>
" target="_blank">
						<span><i><?php 
            echo @number_format($youtube);
            ?>
</i> <?php 
            _e('Subscribers');
            ?>
 </span>
					</a>
				</li>

			<?php 
        }
        ?>


            <?php 
        if (!empty($instance['facebook'])) {
            $facebook = $Social->facebook($instance['facebook']);
            ?>

				<li class="clearfix facebook">
					<a href="<?php 
            echo $instance['facebook'];
            ?>
" target="_blank">
						<span><i><?php 
            echo @number_format($facebook);
            ?>
</i> <?php 
            _e('Fans');
            ?>
 </span>
					</a>
				</li>

			<?php 
        }
        ?>

			<?php 
        if (!empty($instance['github'])) {
            $github = $Social->github($instance['github']);
            ?>

				<li class="clearfix github">
					<a href="<?php 
            echo $instance['github'];
            ?>
" target="_blank">
						<span><i><?php 
            echo @number_format($github);
            ?>
</i> <?php 
            _e('Followers');
            ?>
</span>
					</a>
				</li>

			<?php 
        }
        ?>


			</ul>


			<?php 
        echo $after_widget;
    }