$thistypeid = $p->cat_ID; } } echo " <span class='wptagsinfo news'>" . $thistype . "</span></p>"; echo "<p>" . $thisexcerpt . "</p>"; echo "<p class='news_date'><a class='more' href='{$thisURL}' title='{$thistitle}' >Read more</a></p>"; echo "</div><div class='clearfix'></div><hr class='light' />"; } } wp_reset_query(); ?> </div> <div class="col-lg-4 col-md-4"> <?php if ($cloud = gi_howto_tag_cloud('vacancy')) { ?> <div class='widget-box'> <h3 class='widget-title'>Browse by tag</h3> <?php echo $cloud; ?> </div> <?php } ?> <?php wp_reset_postdata(); the_post_thumbnail('medium', array('class' => 'img img-responsive')); echo wpautop("<p class='news_date'>" . get_post_thumbnail_caption() . "</p>"); $thispage = get_page($id);
$taxonomies[] = 'news-type'; $post_type[] = 'news'; $post_cat = get_terms_by_post_type($taxonomies, $post_type); if ($post_cat) { echo "<div class='widget-box'><h3 class='widget-title'>" . __('Categories', 'govintranet') . "</h3>"; echo "<p class='taglisting " . $post->post_type . "'>"; foreach ($post_cat as $cat) { if ($cat->name) { $newname = str_replace(" ", " ", $cat->name); echo "<span><a class='wptag t" . $cat->term_id . "' href='" . get_term_link($cat->slug, 'news-type') . "'>" . $newname . "</a></span> "; } } echo "</p></div>"; } //$tagcloud = my_colorful_tag_cloud('', 'news-type' , 'news'); $tagcloud = gi_howto_tag_cloud('news'); if ($tagcloud != '') { echo "<div class='widget-box'>"; echo "<h3 class='widget-title'>" . __('Search by tag', 'govintranet') . "</h3>"; echo "<div class='tagcloud'>"; echo $tagcloud; echo "</div>"; echo "<br>"; echo "</div>"; } if (is_active_sidebar('newslanding-widget-area')) { dynamic_sidebar('newslanding-widget-area'); } ?> </div>
$taxonomies[] = 'event-type'; $post_type[] = 'event'; $post_cat = get_terms_by_post_type($taxonomies, $post_type); if ($post_cat) { echo "<div class='widget-box'><h3 class='widget-title'>" . __('Categories', 'govintranet') . "</h3>"; echo "<p class='taglisting {$post->post_type}'>"; echo "<span><a class='wptag t' href='" . get_permalink(get_the_id()) . "/?cdir=" . $cdir . "'>" . __('All', 'govintranet') . "</a></span> "; foreach ($post_cat as $cat) { if ($cat->name != 'Uncategorized' && $cat->name) { $newname = str_replace(" ", " ", $cat->name); echo "<span><a class='wptag t" . $cat->term_id . "' href='" . get_permalink(get_the_id()) . "?cat=" . $cat->slug . "&cdir=" . $cdir . "'>" . $newname . "</a></span> "; } } echo "</p></div>"; } $eventcloud = gi_howto_tag_cloud('event'); if ($eventcloud) { ?> <div class="widget-box"> <h3 class='widget-title'><?php _e('Browse by tag', 'govintranet'); ?> </h3> <?php echo $eventcloud; ?> </div> <br> <?php } ?>
<?php previous_posts_link(__('Newer items →', 'govintranet'), $news->max_num_pages); ?> <?php } ?> <?php } wp_reset_query(); ?> </div> </div> <div class="col-lg-4 col-md-4 col-sm-4"> <?php if ($cloud = gi_howto_tag_cloud('project')) { ?> <div class='widget-box'> <h3 class='widget-title'><?php _e('Browse by tag', 'govintranet'); ?> </h3> <?php echo $cloud; ?> </div> <?php } ?> </div>
if ($post_cat) { echo "<div class='widget-box'><h3 class='widget-title'>" . __('Categories', 'govintranet') . "</h3>"; echo "<p class='taglisting {$post->post_type}'>"; echo "<span><a class='wptag t' href='" . site_url() . "/events/?cdir=" . $cdir . "'>" . __('All', 'govintranet') . "</a></span> "; foreach ($post_cat as $cat) { if ($cat->name != 'Uncategorized' && $cat->name) { $newname = str_replace(" ", " ", $cat->name); echo "<span><a class='wptag t" . $cat->term_id . "' href='" . get_permalink(get_the_id()) . "?cat=" . $cat->slug . "&cdir=" . $cdir . "'>" . $newname . "</a></span> "; } } echo "</p></div>"; } if (gi_howto_tag_cloud('event')) { echo "<div class='widget-box'>"; echo "<h3 class='widget-title'>" . __('Browse by tag', 'govintranet') . "</h3>"; echo gi_howto_tag_cloud('event'); echo "<br>"; echo "</div>"; } ?> </div> <?php } } ?> <?php
} ?> </ul> </div> </div> </div> </div> <div class="col-lg-5 col-md-5"> <div style="text-align:middle;" class="widget-box"> <h3 class="widget-title">Browse by tag</h3> <div class="tagcloud"> <?php $taskcloud = get_option('options_module_tasks_showtags'); if ($taskcloud) { echo gi_howto_tag_cloud('task'); } else { echo my_colorful_tag_cloud('', 'category', 'task'); } ?> </div> </div> </div> </div> <?php } } ?>
} echo "\r\n\t\t\t\t\t\t\t\t<li class='howdoi'><span class='brd" . $taxonomy->term_id . "'> </span> <a href='" . get_term_link($taxonomy->slug, 'category') . "'>" . $taxonomy->name . "</a>" . $desc . "</li>"; } } ?> </ul> </div> </div> </div> <?php $taghtml = ""; $taghtml = get_transient("ht_how_do_i_tags"); if (!$taghtml) { $taskcloud = get_option('options_module_tasks_showtags'); if ($taskcloud) { $taghtml = gi_howto_tag_cloud('task'); } else { $taghtml = my_colorful_tag_cloud('', 'category', 'task'); } set_transient("ht_how_do_i_tags", $taghtml, 60 * 60); } if ($taghtml) { ?> <div style="text-align:middle; clear:both;" class="widget-box browsetags"> <h3 class="widget-title"><?php _e('Browse by tag', 'govintranet'); ?> </h3> <div class="tagcloud"> <?php echo $taghtml;