Advertisement
Guest User

Untitled

a guest
Mar 12th, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * @template Mystique
  5. * @revised December 20, 2011
  6. * @author digitalnature, http://digitalnature.eu
  7. * @license GPL, http://www.opensource.org/licenses/gpl-license
  8. */
  9.  
  10. // General Archive template.
  11. // There are quite a few templates that can override this one: http://codex.wordpress.org/Template_Hierarchy
  12.  
  13. ?>
  14.  
  15. <?php atom()->template('header'); ?>
  16.  
  17. <!-- main content: primary + sidebar(s) -->
  18. <div id="mask-3" class="clear-block">
  19. <div id="mask-2">
  20. <div id="mask-1">
  21.  
  22. <!-- primary content -->
  23. <div id="primary-content">
  24. <div class="blocks clear-block">
  25.  
  26. <?php if(is_category()): ?>
  27. <h1 class="title archive-category"><?php atom()->term->Title(); ?></h1>
  28. <?php if(atom()->term->getDescription()): ?>
  29. <div class="large">
  30. <p><em><?php atom()->term->Description(); ?></em></p>
  31. </div>
  32. <div class="divider"></div>
  33. <?php endif; ?>
  34.  
  35. <?php elseif(is_tag()): ?>
  36. <h1 class="title"><?php atom()->te('Posts tagged %s', sprintf('<span class="alt">%s</span>', atom()->term->getTitle())); ?></h1>
  37. <?php elseif(is_day()): ?>
  38. <h1 class="title"><?php atom()->te('Archive for %s', sprintf('<span class="alt">%s</span>', get_the_date())); ?></h1>
  39. <?php elseif(is_month()): ?>
  40. <h1 class="title"><?php atom()->te('Archive for %s', sprintf('<span class="alt">%s</span>', get_the_time('F, Y'))); ?></h1>
  41. <?php elseif(is_year()): ?>
  42. <h1 class="title"><?php atom()->te('Archive for year %s', sprintf('<span class="alt">%s</span>', get_the_time('Y'))); ?></h1>
  43. <?php else: ?>
  44. <h1 class="title"><?php atom()->te('Blog Archives'); ?></h1>
  45. <?php endif; ?>
  46.  
  47. <?php atom()->action('before_primary'); ?>
  48.  
  49. <?php if(have_posts()): ?>
  50. <div class="posts clear-block">
  51. <?php while(have_posts()) atom()->template('teaser'); ?>
  52. </div>
  53.  
  54. <?php atom()->pagination(); ?>
  55.  
  56. <?php else: ?>
  57.  
  58. <?php if(is_category()): ?>
  59. <h1 class="title"> <?php atom()->te("There aren't any posts in the %s category yet :(", atom()->term->getTitle()); ?></h1>
  60. <?php elseif(is_date()): ?>
  61. <h1 class="title"> <?php atom()->te("There aren't any posts within this date :("); ?> </h1>
  62. <?php else: ?>
  63. <h1 class="title"><?php atom()->te('Nothing here :('); ?></h1>
  64. <?php endif; ?>
  65.  
  66. <?php endif; ?>
  67.  
  68. <?php atom()->action('after_primary'); ?>
  69.  
  70. </div>
  71. </div>
  72. <!-- /primary content -->
  73.  
  74. <?php atom()->template('sidebar'); ?>
  75.  
  76. </div>
  77. </div>
  78. </div>
  79. <!-- /main content -->
  80.  
  81. <?php atom()->template('footer'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement