function widget($args, $instance) { extract($args); $title = $instance['title']; $limit = $instance['limit']; if (!$limit) { $limit = 5; } $unique_id = $args['widget_id']; ?> <?php echo $before_widget; ?> <?php if ($title) { echo $before_title . $title . $after_title; } ?> <?php echo twitter_script($unique_id, $limit); //Javascript output function ?> <?php echo $after_widget; ?> <?php }
function widget($args, $instance) { extract($args); $title = $instance['title']; $limit = $instance['limit']; if (!$limit) { $limit = 5; } $username = $instance['username']; $unique_id = $args['widget_id']; ?> <?php echo $before_widget; ?> <?php if ($title) { echo $before_title . $title . $after_title; } ?> <ul id="twitter_update_list_<?php echo $unique_id; ?> " class="twitter_ul"><li></li></ul> <?php echo twitter_script($unique_id, $username, $limit); //Javascript output function ?> <?php echo $after_widget; ?> <?php }
</div><!-- #main --> <div class="clear-both"></div> </div> <!-- ends wrapper --> <div id="footer" > <?php $username = get_theme_option(tk_theme_name . '_social_twitter'); if (!empty($username)) { $show_twitter = get_theme_option(tk_theme_name . '_social_show_twitter'); if ($show_twitter) { ?> <?php //gets last twitt twitter_script('home', 1); ?> <?php } } ?> <div class="footer-container"> <div id="footer_wrap"> <div class="footer_widget_box"> <div class="footer_box"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Widget 1')) { ?> <?php