comments_template(); ?> </div> <div id="prev-posts-footer"> <span class="nav-prev"> <?php previous_post_link('%link'); ?> </span> <span class="nav-next"> <?php next_post_link('%link'); ?> </span><br class="clear"/> </div><!-- end "prev-posts-footer" --> <div id="archives"> <ul class="archlist-left"> <?php if (function_exists('compact_archive')) { /*if we have the compact archives plugin installed, we display it. If not we do the default <li> monthly archives */ compact_archive($style = 'block'); } else { wp_get_archives('type=monthly'); } /* we do that here. Comment out the lines between the <div> tags to show nothing at all, or replace it with your own template tag. */ ?> </ul> </div><!-- end "archives" --> <?php get_footer();
<?php get_header(); ?> <div class="post group"> <h2>Search</h2> <?php get_search_form(); ?> <div class="date-archives"> <h2>Archives</h2> <ul class="compact-archives"> <?php compact_archive('block'); ?> </ul> </div> <div class="tag-archives"> <h2>Tag Cloud</h2> <div class="tags"> <?php if (ISMOBILE) { $args = "orderby=count&order=DESC&number=30"; mf_tag_cloud($args); } else { wp_tag_cloud('smallest=0.9&largest=2.2&unit=em'); }
<h2 class="card-title"><span class="card-title-inner">Search mekosh.org</span></h2> <?php get_search_form(); ?> </div><!-- end .card --> <div class="card"> <h2 class="card-title"><span class="card-title-inner">Archives by Month</span></h2> <ul id="date-archive"> <?php compact_archive('block', '<li>', '</li>'); ?> </ul> </div><!-- end .card --> <div class="card"> <h2 class="card-title"><span class="card-title-inner">Last 20 Posts</span></h2> <ul> <?php wp_get_archives('type=postbypost&limit=20&format=html'); ?>
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $widget_style = $instance['style']; switch ($instance['text_style']) { case 'none': $text_style = ''; break; case 'uppercase': $text_style = ' style="text-transform: uppercase;"'; break; case 'capitalize': $text_style = ' style="text-transform: capitalize;"'; break; } echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } ?> <ul class="compact-archives"<?php echo $text_style; ?> > <?php compact_archive($style = $widget_style); ?> </ul> <?php echo $after_widget; }