Advertisement
Guest User

Untitled

a guest
Feb 4th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. <?php /* Mystique/digitalnature */ ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5. <!-- main content: primary + sidebar(s) -->
  6. <div id="mask-3" class="clear-block">
  7. <div id="mask-2">
  8. <div id="mask-1">
  9.  
  10. <!-- primary content -->
  11. <div id="primary-content">
  12.  
  13. <?php if(have_posts()): ?>
  14.  
  15. <?php while(have_posts()): ?>
  16.  
  17. <?php the_post(); ?>
  18.  
  19. <div class="post-links clear-block">
  20. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  21. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  22. </div>
  23.  
  24. <!-- post -->
  25. <div id="post-<?php the_ID(); ?>" <?php post_class('primary'); ?>>
  26.  
  27. <?php if(!get_post_meta($post->ID, 'hide_title', true)): ?>
  28. <h1 class="title"></h1>
  29. <?php endif; ?>
  30.  
  31. <div class="post-content clear-block">
  32. <?php the_content(); ?>
  33. </div>
  34.  
  35. <?php // we need the pagination markup to match the others (page-navi, comment pages etc)
  36. $pages =
  37. wp_link_pages(array(
  38. 'before' => '<div class="page-navi clear-block"><span class="pages">'.__('Pages &raquo;', 'mystique').'</span>',
  39. 'after' => '</div>',
  40. 'link_before' => '<span class="current">',
  41. 'link_after' => '</span>',
  42. 'next_or_number' => 'number',
  43. 'echo' => 0,
  44. ));
  45.  
  46. // remove the <span class="current> & </span> tags (that we added above) from inside links
  47. if($pages) echo preg_replace('@\<a([^>]*)>\<span([^>]*)>(.*?)\<\/span>@i', '<a$1>$3', $pages);
  48. ?>
  49.  
  50. <?php if($tags = get_the_tag_list('', ' ')): ?>
  51. <div class="post-tags clear-block">
  52. <?php echo $tags; ?>
  53. </div>
  54. <?php endif; ?>
  55.  
  56.  
  57. <?php if(!post_password_required()): ?>
  58.  
  59. <div class="post-meta">
  60.  
  61. <div class="details">
  62. <p>
  63. <?php
  64. printf(__('This entry was posted by %1$s on %2$s at %3$s, and is filed under %4$s. Follow any responses to this post through %5$s.', 'mystique'), '<a href="'.get_author_posts_url(get_the_author_meta('ID')).'" title="'.sprintf(__('Posts by %s', 'mystique'), esc_attr(get_the_author())).' ">'.get_the_author().'</a>', get_the_time(get_option('date_format')), get_the_time(get_option('time_format')), get_the_category_list(', '), '<a href="'.get_post_comments_feed_link($post->ID).'" title="RSS 2.0">RSS 2.0</a>');
  65. ?>
  66.  
  67. <?php
  68. if((comments_open()) && pings_open()) // both comments and pings are open
  69. printf(__('You can <a%1$s>leave a response</a> or <a%2$s>trackback</a> from your own site.', 'mystique'), ' href="#commentform"',' href="'.get_trackback_url().'" rel="trackback"');
  70. elseif(!comments_open() && pings_open()) // only pings are open
  71. printf(__('Responses are currently closed, but you can <a%1$s>trackback</a> from your own site.', 'mystique'), ' href="'.get_trackback_url().'" rel="trackback"');
  72. elseif(comments_open() && !pings_open()) // comments are open, pings are closed
  73. _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'mystique');
  74. else // neither comments, nor pings are open
  75. _e('Both comments and pings are currently closed.', 'mystique');
  76. ?>
  77. </p>
  78. </div>
  79.  
  80. </div>
  81. <?php endif; ?>
  82.  
  83. <div class="controls">
  84. <?php edit_post_link(__('Edit', 'mystique')); ?>
  85. </div>
  86.  
  87. </div>
  88. <!-- /post -->
  89.  
  90. <?php endwhile; ?>
  91.  
  92. <?php comments_template(); ?>
  93.  
  94. <?php else: ?>
  95. <h1 class="title error"><?php _e('Oops, nothing here :(', 'mystique'); ?></h1>
  96. <?php endif; ?>
  97.  
  98.  
  99. </div>
  100. <!-- /primary content -->
  101.  
  102. <?php get_sidebar(); ?>
  103.  
  104. </div>
  105. </div>
  106. </div>
  107. <!-- /main content -->
  108.  
  109. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement