function widget($args, $instance)
    {
        extract($args, EXTR_SKIP);
        $instance = $this->woo_enforce_defaults($instance);
        extract($instance, EXTR_SKIP);
        echo $before_widget;
        ?>

<div id="tabs">

    <ul class="wooTabs">
    
    <?php 
        if ($order == "latest" && !$latest == "on") {
            ?>
    	<li class="latest"><a href="#tab-latest"><?php 
            _e('Latest', 'woothemes');
            ?>
</a></li>
    <?php 
        } elseif ($order == "comments" && !$comments == "on") {
            ?>
    	<li class="comments"><a href="#tab-comm"><?php 
            _e('Comments', 'woothemes');
            ?>
</a></li>
    <?php 
        } elseif ($order == "tags" && !$tags == "on") {
            ?>
    	<li class="tags"><a href="#tab-tags"><?php 
            _e('Tags', 'woothemes');
            ?>
</a></li>
    <?php 
        }
        ?>
    <?php 
        if (!$pop == "on") {
            ?>
    	<li class="popular"><a href="#tab-pop"><?php 
            _e('Popular', 'woothemes');
            ?>
</a></li><?php 
        }
        ?>
    <?php 
        if ($order != "latest" && !$latest == "on") {
            ?>
    	<li class="latest"><a href="#tab-latest"><?php 
            _e('Latest', 'woothemes');
            ?>
</a></li><?php 
        }
        ?>
    <?php 
        if ($order != "comments" && !$comments == "on") {
            ?>
    	<li class="comments"><a href="#tab-comm"><?php 
            _e('Comments', 'woothemes');
            ?>
</a></li><?php 
        }
        ?>
    <?php 
        if ($order != "tags" && !$tags == "on") {
            ?>
    	<li class="tags"><a href="#tab-tags"><?php 
            _e('Tags', 'woothemes');
            ?>
</a></li>
    <?php 
        }
        ?>
    
    </ul>

    <div class="fix"></div>

    <div class="boxes box inside">

        <?php 
        if ($order == "latest" && !$latest == "on") {
            ?>
        <ul id="tab-latest" class="list">
            <?php 
            if (function_exists('woo_widget_tabs_latest')) {
                woo_widget_tabs_latest($number, $thumb_size);
            }
            ?>
        </ul>
        <?php 
        } elseif ($order == "comments" && !$comments == "on") {
            ?>
		<ul id="tab-comm" class="list">
            <?php 
            if (function_exists('woo_widget_tabs_comments')) {
                woo_widget_tabs_comments($number, $thumb_size);
            }
            ?>
        </ul>
        <?php 
        } elseif ($order == "tags" && !$tags == "on") {
            ?>
        <div id="tab-tags" class="list">
            <?php 
            nxt_tag_cloud('smallest=12&largest=20');
            ?>
        </div>
        <?php 
        }
        ?>

        <?php 
        if (!$pop == "on") {
            ?>
        <ul id="tab-pop" class="list">
            <?php 
            if (function_exists('woo_widget_tabs_popular')) {
                woo_widget_tabs_popular($number, $thumb_size, $days);
            }
            ?>
        </ul>
        <?php 
        }
        ?>
        <?php 
        if ($order != "latest" && !$latest == "on") {
            ?>
        <ul id="tab-latest" class="list">
            <?php 
            if (function_exists('woo_widget_tabs_latest')) {
                woo_widget_tabs_latest($number, $thumb_size);
            }
            ?>
        </ul>
        <?php 
        }
        ?>
        <?php 
        if ($order != "comments" && !$comments == "on") {
            ?>
		<ul id="tab-comm" class="list">
            <?php 
            if (function_exists('woo_widget_tabs_comments')) {
                woo_widget_tabs_comments($number, $thumb_size);
            }
            ?>
        </ul>
        <?php 
        }
        ?>
        <?php 
        if ($order != "tags" && !$tags == "on") {
            ?>
        <div id="tab-tags" class="list">
            <?php 
            nxt_tag_cloud('smallest=12&largest=20');
            ?>
        </div>
        <?php 
        }
        ?>

    </div><!-- /.boxes -->

</div><!-- /wooTabs -->

         <?php 
        echo $after_widget;
    }
	                
		            <?php 
if (have_posts()) {
    the_post();
    ?>
	            	<section class="entry">
	            		<?php 
    the_content();
    ?>
	            	</section>	            	
		            <?php 
}
?>
  
		            
	                <div class="tag_cloud">
	        			<?php 
nxt_tag_cloud('number=0');
?>
	    			</div><!--/.tag-cloud-->
	
	            </article><!-- /.post -->
	        
			</section><!-- /#main -->
		
		</div>
		
    </div><!-- /#content -->
		
<?php 
get_footer();
示例#3
0
        }
        do_action('after-' . $taxonomy . '-table', $taxonomy);
        ?>

</div>
</div><!-- /col-right -->

<div id="col-left">
<div class="col-wrap">

<?php 
        if (!is_null($tax->labels->popular_items)) {
            if (current_user_can($tax->cap->edit_terms)) {
                $tag_cloud = nxt_tag_cloud(array('taxonomy' => $taxonomy, 'echo' => false, 'link' => 'edit'));
            } else {
                $tag_cloud = nxt_tag_cloud(array('taxonomy' => $taxonomy, 'echo' => false));
            }
            if ($tag_cloud) {
                ?>
<div class="tagcloud">
<h3><?php 
                echo $tax->labels->popular_items;
                ?>
</h3>
<?php 
                echo $tag_cloud;
                unset($tag_cloud);
                ?>
</div>
<?php 
            }
示例#4
0
 function widget($args, $instance)
 {
     extract($args);
     $current_taxonomy = $this->_get_current_taxonomy($instance);
     if (!empty($instance['title'])) {
         $title = $instance['title'];
     } else {
         if ('post_tag' == $current_taxonomy) {
             $title = __('Tags');
         } else {
             $tax = get_taxonomy($current_taxonomy);
             $title = $tax->labels->name;
         }
     }
     $title = apply_filters('widget_title', $title, $instance, $this->id_base);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     echo '<div class="tagcloud">';
     nxt_tag_cloud(apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy)));
     echo "</div>\n";
     echo $after_widget;
 }