Exemple #1
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
<ul>
<?php 
        cherry_commented();
        ?>
</ul>
<?php 
        echo $after_widget;
    }
Exemple #2
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        ?>
<div class="widget widget_tabs">
  <div class="widget_container">
    <ol class="tabs_nav">
      <li class="active">
        <a href="#tab1">
            <?php 
        _e('Popular', 'bd');
        ?>
        </a>
      </li>
      <li>
        <a href="#tab2">
            <?php 
        _e('Recent', 'bd');
        ?>
        </a>
      </li>
      <li>
        <a href="#tab3">
            <?php 
        _e('Comments', 'bd');
        ?>
        </a>
      </li>
      <li>
        <a href="#tab4">
            <?php 
        _e('Tags', 'bd');
        ?>
        </a>
      </li>
    </ol>
    <div class="tabs_content">
      <div class="tab_container" id="tab1">
        <ul>
          <?php 
        AGS_popular_posts();
        ?>
        </ul>
      </div><!--//end tab1-->
      <div class="tab_container" id="tab2">
        <ul>
          <?php 
        cherry_last_posts();
        ?>
        </ul>
      </div><!--//end tab2-->
      <div class="tab_container" id="tab3">
        <ul>
          <?php 
        cherry_commented();
        ?>
        </ul>
      </div><!--//end tab3-->
      <div class="tab_container" id="tab4">
        <div class="tagcloud">
          <?php 
        wp_tag_cloud($args = array('largest' => 8, 'number' => 25, 'orderby' => 'count', 'order' => 'DESC'));
        ?>
        </div>
      </div><!--//end tab4-->
    </div>
  </div>
</div><!--//end tabs-->
<?php 
    }