</div>
		</div>

		<h1 <?php 
echo "class='h1_" . $catid . "'>" . single_tag_title('', false);
if ($tasktag) {
    echo " <small><span class='glyphicon glyphicon-tag'></span> " . $tasktag . "</small>";
}
?>
</h1>
	
		<?php 
echo $catdesc;
?>
		<?php 
$tagcloud = gi_tag_cloud('news-type', $catslug, 'news');
if ($tagcloud) {
    ?>
					
			<h3 class='widget-title h1_<?php 
    echo $catid;
    ?>
'><?php 
    _e('Browse by tag', 'govintranet');
    ?>
</h3>
			<?php 
    /* Run the loop for the category page to output the posts.
     */
    echo $tagcloud;
}
示例#2
0
				<script type='text/javascript'>
				    jQuery(document).ready(function(){
						jQuery('#category-search').submit(function(e) {
						    if (jQuery.trim(jQuery("#sbc-s").val()) === "") {
						        e.preventDefault();
						        jQuery('#sbc-s').focus();
						    }
						});	
					});	
				
				</script>
							
							
		<?php 
$tagcloud = gi_tag_cloud('category', $catslug, 'task');
if ($tagcloud) {
    ?>
			<div class='cattagbutton' ><a class='btn t<?php 
    echo $catid;
    ?>
' data-toggle="collapse" href="#cattagcloud" aria-expanded="false" aria-controls="cattagcloud">Browse by tag <span class='caret'></span></a></div>
			<div class="collapse" id="cattagcloud">
			<?php 
    echo $tagcloud;
    ?>
			</div>							
			<?php 
    if ($tasktagslug) {
        echo "<h3 class='h1_'" . $catid . "><span class='dashicons dashicons-tag'></span> " . $tasktag . "</h3>";
    }
    echo " <small><span class='glyphicon glyphicon-tag'></span> " . $tasktag . "</small>";
}
?>
</h1>
	
		<?php 
echo $catdesc;
?>
				
		<h3 class='widget-title h1_<?php 
echo $catid;
?>
'>Browse by tag</h3>
		<?php 
//echo my_colorful_tag_cloud($catid, 'category' , 'task');
echo gi_tag_cloud('news-type', $catslug, 'news');
/* Run the loop for the category page to output the posts.
 */
if ($tasktagslug) {
    $taskitems = new WP_Query(array('post_type' => 'news', 'news-type' => $catslug, 'tag' => $tasktagslug, 'posts_per_page' => 25, 'paged' => $paged, 'orderby' => 'date', 'order' => 'DESC', 'post_parent' => 0));
} else {
    $taskitems = new WP_Query(array('post_type' => 'news', 'news-type' => $catslug, 'posts_per_page' => 25, 'paged' => $paged, 'orderby' => 'date', 'order' => 'DESC', 'post_parent' => 0));
}
if ($taskitems->post_count == 0) {
    echo "<p>Nothing to show.</p>";
}
while ($taskitems->have_posts()) {
    $taskitems->the_post();
    $image_url = get_the_post_thumbnail($id, 'thumbnail', array('class' => 'alignright'));
    echo "<hr>";
    echo "<div class='newsitem'>" . $image_url;