Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Archives
- */
- get_header(); ?>
- <?php if (have_posts()) { while (have_posts()) { the_post(); ?>
- <div class="primary-span entry">
- <div class="meta">
- <h1 class="title"><?php the_title(); ?></h1>
- <?php edit_post_link(__('edit page','tarski'), '<p class="metadata">(', ')</p>'); ?>
- </div> <!-- /meta -->
- <?php if(get_the_content() != "") { ?>
- <div class="content">
- <?php the_content(); ?>
- </div> <!-- /content -->
- <?php } ?>
- </div> <!-- /page header -->
- <div class="primary">
- <h3><?php _e('Monthly Archives', 'tarski'); ?></h3>
- <ul class="archivelist xoxo">
- <?php wp_get_archives(array('type' => 'monthly', 'show_post_count' => true)); ?>
- </ul>
- <?php th_postend(); ?>
- </div> <!-- /primary -->
- <?php } } ?>
- <div class="secondary">
- <?php if(get_tarski_option('show_categories')) { ?>
- <h3><?php _e('Category Archives', 'tarski'); ?></h3>
- <ul class="archivelist xoxo">
- <?php wp_list_categories(array('order' => 'DESC', 'title_li' => false)); ?>
- </ul>
- <?php } ?>
- <?php th_sidebar(); ?>
- </div> <!-- /secondary -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement