Guest User

the code

a guest
Jul 22nd, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Category Archive pages.
  4. *
  5. * @package WordPress
  6. * @subpackage Weaver II
  7. * @since Weaver II 1.0
  8. */
  9.  
  10. weaverii_get_header('category');
  11. if ( weaverii_getopt('wii_infobar_location') == 'top' ) get_template_part('infobar');
  12. weaverii_inject_area('premain');
  13. echo("\t<div id=\"main\">\n");
  14. weaverii_trace_template(__FILE__);
  15. weaverii_get_sidebar_left('category');
  16. ?>
  17. <div id="container_wrap"<?php weaverii_get_page_class('category'); ?>>
  18. <?php if (weaverii_getopt('wii_infobar_location') == 'content') get_template_part('infobar');
  19. weaverii_inject_area('precontent'); ?>
  20. <section id="container">
  21. <?php weaverii_get_sidebar_top('category'); ?>
  22. <div id="content" role="main">
  23.  
  24. <?php if ( have_posts() ) : ?>
  25.  
  26. <header class="page-header">
  27. <h1 class="page-title category-title"><span class="category-title-label"><?php
  28. printf( __( 'Category Archives: %s','weaver-ii')), '</span><span>' . ( '', false ) . '</span>' ); ?></h1>
  29.  
  30. <?php
  31. $category_description = category_description();
  32. if ( ! empty( $category_description ) )
  33. echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' );
  34. ?>
  35. </header>
  36.  
  37. <?php weaverii_content_nav( 'nav-above' ); ?>
  38.  
  39. <?php /* Start the Loop */ ?>
  40. <?php
  41. weaverii_post_count_clear();
  42. while ( have_posts() ) : the_post(); weaverii_post_count_bump(); ?>
  43.  
  44. <?php
  45. /* Include the Post-Format-specific template for the content.
  46. * If you want to overload this in a child theme then include a file
  47. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  48. */
  49. get_template_part( 'content', get_post_format() );
  50. ?>
  51.  
  52. <?php endwhile; ?>
  53.  
  54. <?php weaverii_content_nav( 'nav-below' ); ?>
  55.  
  56. <?php else : ?>
  57.  
  58. <article id="post-0" class="post no-results not-found">
  59. <header class="entry-header">
  60. <h1 class="entry-title"><?php _e( 'Nothing Found','weaver-ii'); ?></h1>
  61. </header><!-- .entry-header -->
  62.  
  63. <div class="entry-content">
  64. <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.','weaver-ii'); ?></p>
  65. <?php get_search_form(); ?>
  66. </div><!-- .entry-content -->
  67. </article><!-- #post-0 -->
  68.  
  69. <?php endif; ?>
  70.  
  71. </div><!-- #content -->
  72. <?php weaverii_get_sidebar_bottom('category'); ?>
  73. </section><!-- #container -->
  74. </div><!-- #container_wrap -->
  75.  
  76. <?php weaverii_get_sidebar_right('category');
  77. weaverii_get_footer('category');
  78. ?>
Advertisement
Add Comment
Please, Sign In to add comment