コード例 #1
0
    protected function __output()
    {
        $div_id = uniqid('tweetblender');
        if (!$this->property['twitter_user']) {
            return;
        }
        $num = $this->property['num_posts'] ? $this->property['num_posts'] : 4;
        $twitter_user = str_replace('http://twitter.com/', '', $this->property['twitter_user']);
        $twitter_user = str_replace('twitter.com/', '', $twitter_user);
        ?>
 
        <div id='<?php 
        echo $div_id;
        ?>
'><?php 
        tweet_blender_widget(array('unique_div_id' => $div_id, 'sources' => '@' . $twitter_user, 'refresh_rate' => 60, 'tweets_num' => $num, 'view_more_url' => 'http://twitter.com/tweetblender'));
        ?>
</div>    
        <?php 
    }
コード例 #2
0
ファイル: footer.php プロジェクト: Joshuwar/J-J-Portfolio
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        ?>
				<?php 
        the_content();
        ?>
				<?php 
    }
}
?>
			</div>
			<div class="column left marginleft">
				<h3>On Twitter</h3>
				<?php 
tweet_blender_widget(array('unique_div_id' => 'tweets', 'sources' => '@jayfresh,@josh_u_war', 'refresh_rate' => 60, 'tweets_num' => 1, 'view_more_url' => 'http://twitter.com/'));
?>
					
			</div>
			<div id="copyright">
				&copy;2010-2011 J&J - privacy policy - terms & conditions
			</div>
			
			
			
        </div>
        <script type="text/javascript">
        	window.hrefBase = "<?php 
bloginfo('url');
?>
";