Exemplo n.º 1
0
    function section_template()
    {
        ?>
		<?php 
        if (pagelines('twittername')) {
            ?>
			<div class="tbubble">
				<?php 
            if (function_exists('twitter_messages') && pagelines('twittername')) {
                ?>
					<span class="twitter">
						<?php 
                pagelines_register_hook('pagelines_before_twitterbar_text', $this->id);
                ?>
						 "<?php 
                twitter_messages(pagelines('twittername'), 1, false, false, '', false, false, false);
                ?>
" &mdash;&nbsp;<a class="twitteraccount" href="http://www.twitter.com/<?php 
                echo pagelines('twittername');
                ?>
"><?php 
                echo pagelines('twittername');
                ?>
</a>
					</span>
				<?php 
            } else {
                ?>
					<span class="twitter"><?php 
                _e('Please install and activate the "Twitter for WordPress" plugin to use this section.', 'pagelines');
                ?>
</span>
				<?php 
            }
            ?>
			</div>
		<?php 
        } else {
            ?>
			<div class="tbubble">
			<?php 
            _e('Set your Twitter account name in your settings to use the TwitterBar Section.', 'pagelines');
            ?>
			</div>
		<?php 
        }
        ?>
		<?php 
    }
Exemplo n.º 2
0
 function widget_twitter($args, $number = 1)
 {
     global $twitter_options;
     // $args is an array of strings that help widgets to conform to
     // the active theme: before_widget, before_title, after_widget,
     // and after_title are the array keys. Default tags: li and h2.
     extract($args);
     // Each widget can store its own options. We keep strings here.
     $options = get_option('widget_twitter');
     // fill options with default values if value is not set
     $item = $options[$number];
     foreach ($twitter_options['widget_fields'] as $key => $field) {
         if (!isset($item[$key])) {
             $item[$key] = $field['default'];
         }
     }
     $messages = fetch_feed('http://twitter.com/statuses/user_timeline/' . $item['username'] . '.rss');
     // These lines generate our output.
     echo $before_widget . $before_title . '<a href="http://twitter.com/' . $item['username'] . '" class="twitter_title_link">' . $item['title'] . '</a>' . $after_title;
     twitter_messages($item['username'], $item['num'], true, $item['update'], $item['linked'], $item['hyperlinks'], $item['twitter_users'], $item['encode_utf8']);
     echo $after_widget;
 }
        ?>
</li>
					<?php 
        wp_meta();
        ?>
				</ul>
			</li>

		<?php 
    }
    // end primary widget area
    ?>
		<li class="widget-container twitter2">
				<h3>Our Tweets</h3>
		<?php 
    twitter_messages('@xylemwatermark', 1, true, true, '#', true, true, false);
    ?>
</li>
<?php 
}
?>
			</ul>
			
			<ul class="right_col blog">

<?php 
/* When we call the dynamic_sidebar() function, it'll spit out
 * the widgets for that widget area. If it instead returns false,
 * then the sidebar simply doesn't exist, so we'll hard-code in
 * some default sidebar stuff just in case.
 */
Exemplo n.º 4
0
<div class="right">

	
<!-- Twitter widget -->	
<div class="featbox">
<h3 class="sidetitl">Twitter updates</h3>
<?php 
$twit = get_option('shut_twitter');
include 'twitter.php';
if (function_exists('twitter_messages')) {
    ?>
       <?php 
    twitter_messages("{$twit}");
    ?>
       <?php 
}
?>
</div> 	

<!-- 125px banners -->	
<?php 
include TEMPLATEPATH . '/sponsors.php';
?>
	

<!-- Sidebar widgets -->
<div class="sidebar">
<ul>
	<?php 
if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar')) {
} else {
echo get_settings('home');
?>
">Home</a></li>
					<?php 
wp_list_pages('sort_column=menu_order&depth=1&title_li=');
?>
				</ul>
			</div>
  </div>
	<!-- End Navigation -->
  
<div class="container">
  
  <div class='twitter'>
  <?php 
twitter_messages('B2climbing', 1);
?>
  </div>
  
	<!-- Header -->
  <div class="column span-12 first" id="header">

					<!-- Search -->
					<?php 
include TEMPLATEPATH . '/searchform.php';
?>
					
					<!-- Site Name -->
					<h1><?php 
bloginfo('name');
?>
Exemplo n.º 6
0
global $options;
foreach ($options as $value) {
    if (get_settings($value['id']) === FALSE) {
        ${$value}['id'] = $value['std'];
    } else {
        ${$value}['id'] = get_settings($value['id']);
    }
}
?>

<div id="left-sidebar">

  <div id="twitter">
  <div id="twitter-inside">
    <?php 
twitter_messages($theme_twitter, 1, false, true, '>> ', true, true, false);
?>
  </div>
  <div class="clear"></div>
  </div>

  <div class="categories">
    <h2>Categories</h2>
    <ul>
      <?php 
wp_list_categories('title_li=');
?>
    </ul>
  </div>
	 
  <div id="ads-wrap">
Exemplo n.º 7
0
    ?>

<?php 
    if (function_exists('twitter_messages')) {
        ?>
<li>
	<ul class="sb-tools clearfix">
		<li class="twitter-icon">
    	<a class="sb-icon" href="http://twitter.com/cordobo" rel="nofollow">
    		<span><?php 
        _e('Latest Tweet', 'default');
        ?>
</span>
    		<?php 
        if (function_exists('twitter_messages')) {
            twitter_messages('cordobo', 1, false, false, '', false, false, false);
        }
        ?>
      </a>
    	<p class="sb-icon-text"><?php 
        _e('Follow me on twitter', 'default');
        ?>
 <a href="http://twitter.com/cordobo" rel="nofollow"><?php 
        _e('here', 'default');
        ?>
</a>.</p>
		</li>
	</ul>
</li>
<?php 
    }
Exemplo n.º 8
0
        the_title();
        ?>
</h2>
						<?php 
        the_excerpt();
        ?>
					</article>
					<?php 
    }
    wp_reset_postdata();
}
?>
					<?php 
if (function_exists('twitter_messages')) {
    ?>
					<article class="panel twitter">
						<h2>Latest Tweets</h2>
						<?php 
    twitter_messages(twitter_username(), '2');
    ?>
					</article>
					<?php 
}
?>
					<?php 
if (function_exists('dynamic_sidebar')) {
    dynamic_sidebar('widgets');
}
?>
				</div>
Exemplo n.º 9
0
if ($traction->twitterState() == 'true') {
    ?>
      <div class="widget twitter">
        <h2 class="widgettitle"><?php 
    _e('Twitter', 'traction');
    ?>
 <a href="http://twitter.com/<?php 
    echo $traction->twitter();
    ?>
"><?php 
    echo $traction->twitter();
    ?>
</a></h2>
        <div class="tweet">
          <?php 
    twitter_messages($traction->twitter(), $traction->twitterUpdates(), true, true, false, true, true, true);
    ?>
        </div>
      </div>
    <?php 
}
?>
   
    <?php 
if (is_active_sidebar('normal_sidebar')) {
    echo "<ul>";
}
?>
      <?php 
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('normal_sidebar')) {
    ?>
Exemplo n.º 10
0
  <div id="postnav">
    <?php 
include 'wp-pagenavi.php';
if (function_exists('wp_pagenavi')) {
    wp_pagenavi();
}
?>
  </div> <!-- end #postnavigation -->
</div> 
</div>
<div id="left-sidebar">

  <div id="twitter">
  <div id="twitter-inside">
    <?php 
twitter_messages(cameljourney, 1, false, true, '>> ', true, true, false);
?>
  </div>
  <div class="clear"></div>
  </div>

  <div class="categories">
  <h2>Categories</h2>
  <ul>
  <?php 
wp_list_categories('title_li=');
?>
  </ul>
  </div>
	 
  <div id="ads-wrap">