Example #1
0
 function start_el(&$output, $item, $depth, $args)
 {
     global $wp_query;
     $li_class = $output ? '' : ' class="first"';
     $output .= '<li' . $li_class . '><a href="' . $item->url . '">' . $item->title . '</a>';
     $output .= '<div class="sub"><ul><li><div class="inner-menu">';
     $output .= '<div class="mega-feature">';
     $cat = get_category($item->object_id);
     $output .= '<h2>' . $cat->description . '</h2>';
     $output .= '</div>';
     $output .= '<div class="category-topics">';
     $output .= '<h3>RELATED TOPICS</h3>';
     $output .= argo_get_related_topics_for_category($item);
     $output .= '</div>';
     $output .= '<div class="category-articles">';
     $output .= '<h3>LATEST POSTS</h3>';
     $output .= argo_get_latest_posts_for_category($item);
     $output .= '</div>';
     $output .= '</div></li></ul></div>';
 }
Example #2
0
				<h1 class="page-title"><?php 
    single_cat_title();
    ?>
</h1>

				<?php 
    $category_description = category_description();
    if ($category_description) {
        echo '<div class="category-description">' . $category_description . '</div>';
    }
    ?>

				<div class="related-topics clearfix">
					<h4>Key topics in this category:</h4>
					<?php 
    echo argo_get_related_topics_for_category(get_queried_object());
    ?>
				</div> <!-- /.related-topics -->
			</div> <!-- /.category-background -->
			
			<h3 class="recent-posts">Recent posts</h3>

				<?php 
    /* Start the Loop */
    ?>
				<?php 
    while (have_posts()) {
        the_post();
        ?>
				
				<?php