Advertisement
Guest User

Untitled

a guest
Nov 10th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="art-contentLayout">
  3. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?><div class="art-content">
  4.  
  5. <?php is_tag(); ?>
  6. <?php if (have_posts()) : ?>
  7.  
  8. <div class="art-Post">
  9. <div class="art-Post-tl"></div>
  10. <div class="art-Post-tr"></div>
  11. <div class="art-Post-bl"></div>
  12. <div class="art-Post-br"></div>
  13. <div class="art-Post-tc"></div>
  14. <div class="art-Post-bc"></div>
  15. <div class="art-Post-cl"></div>
  16. <div class="art-Post-cr"></div>
  17. <div class="art-Post-cc"></div>
  18. <div class="art-Post-body">
  19. <div class="art-Post-inner art-article">
  20.  
  21. <div class="art-PostContent">
  22.  
  23. <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
  24. <?php /* If this is a category archive */ if (is_category()) { ?>
  25. <h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2>
  26. <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
  27. <h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></h2>
  28. <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
  29. <h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2>
  30. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  31. <h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2>
  32. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  33. <h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2>
  34. <?php /* If this is an author archive */ } elseif (is_author()) { ?>
  35. <h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2>
  36. <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  37. <h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2>
  38. <?php } ?>
  39.  
  40. <?php
  41. $prev_link = get_previous_posts_link(__('Newer Entries »', 'kubrick'));
  42. $next_link = get_next_posts_link(__('« Older Entries', 'kubrick'));
  43. ?>
  44.  
  45. <?php if ($prev_link || $next_link): ?>
  46. <div class="navigation">
  47. <div class="alignleft"><?php echo $next_link; ?></div>
  48. <div class="alignright"><?php echo $prev_link; ?></div>
  49. </div>
  50. <?php endif; ?>
  51.  
  52. </div>
  53. <div class="cleared"></div>
  54.  
  55. </div>
  56.  
  57. <div class="cleared"></div>
  58. </div>
  59. </div>
  60.  
  61. <?php while (have_posts()) : the_post(); ?>
  62. <div class="art-Post">
  63. <div class="art-Post-tl"></div>
  64. <div class="art-Post-tr"></div>
  65. <div class="art-Post-bl"></div>
  66. <div class="art-Post-br"></div>
  67. <div class="art-Post-tc"></div>
  68. <div class="art-Post-bc"></div>
  69. <div class="art-Post-cl"></div>
  70. <div class="art-Post-cr"></div>
  71. <div class="art-Post-cc"></div>
  72. <div class="art-Post-body">
  73. <div class="art-Post-inner art-article">
  74. <h2 class="art-PostHeader">
  75. " rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  76. <?php the_title(); ?>
  77.  
  78. </h2>
  79. <?php ob_start(); ?>
  80. <?php $icons = array(); ?>
  81. <?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="15" height="19" alt="" />
  82. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  83. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="18" height="18" alt="" />
  84. <?php _e('Author', 'kubrick'); ?>: <?php the_author_posts_link() ?>
  85. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="20" height="20" alt="" />
  86. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  87. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  88. <div class="art-PostHeaderIcons art-metadata-icons">
  89. <?php echo implode(' | ', $icons); ?>
  90.  
  91. </div>
  92. <?php endif; ?>
  93. <?php $metadataContent = ob_get_clean(); ?>
  94. <?php if (trim($metadataContent) != ''): ?>
  95. <div class="art-PostMetadataHeader">
  96. <?php echo $metadataContent; ?>
  97.  
  98. </div>
  99. <?php endif; ?>
  100. <div class="art-PostContent">
  101.  
  102. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry »', 'kubrick')); ?>
  103. <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  104.  
  105. </div>
  106. <div class="cleared"></div>
  107. <?php $icons = array(); ?>
  108. <?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="" />
  109. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  110. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="" />
  111. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  112. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="" />
  113. <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  114. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  115. <div class="art-PostFooterIcons art-metadata-icons">
  116. <?php echo implode(' | ', $icons); ?>
  117.  
  118. </div>
  119. <?php endif; ?>
  120.  
  121. </div>
  122.  
  123. <div class="cleared"></div>
  124. </div>
  125. </div>
  126.  
  127. <?php endwhile; ?>
  128.  
  129. <?php if ($prev_link || $next_link): ?>
  130. <div class="art-Post">
  131. <div class="art-Post-tl"></div>
  132. <div class="art-Post-tr"></div>
  133. <div class="art-Post-bl"></div>
  134. <div class="art-Post-br"></div>
  135. <div class="art-Post-tc"></div>
  136. <div class="art-Post-bc"></div>
  137. <div class="art-Post-cl"></div>
  138. <div class="art-Post-cr"></div>
  139. <div class="art-Post-cc"></div>
  140. <div class="art-Post-body">
  141. <div class="art-Post-inner art-article">
  142.  
  143. <div class="art-PostContent">
  144.  
  145. </div class="navigation">
  146. <div class="alignleft"><?php echo $next_link; ?></div>
  147. <div class="alignright"><?php echo $prev_link; ?></div>
  148. </div>
  149.  
  150. </div>
  151. <div class="cleared"></div>
  152.  
  153. </div>
  154.  
  155. <div class="cleared"></div>
  156. </div>
  157. </div>
  158.  
  159. <?php endif; ?>
  160.  
  161. <?php else : ?>
  162. <div class="art-Post">
  163. <div class="art-Post-tl"></div>
  164. <div class="art-Post-tr"></div>
  165. <div class="art-Post-bl"></div>
  166. <div class="art-Post-br"></div>
  167. <div class="art-Post-tc"></div>
  168. <div class="art-Post-bc"></div>
  169. <div class="art-Post-cl"></div>
  170. <div class="art-Post-cr"></div>
  171. <div class="art-Post-cc"></div>
  172. <div class="art-Post-body">
  173. <div class="art-Post-inner art-article">
  174.  
  175. <div class="art-PostContent">
  176.  
  177. <?php
  178. if ( is_category() ) { // If this is a category archive
  179. printf("<h2 class='center'>".__("Sorry, but there aren't any posts in the %s category yet.", "kubrick").'</h2>', single_cat_title('',false));
  180. } else if ( is_date() ) { // If this is a date archive
  181. echo('<h2>'.__("Sorry, but there aren't any posts with this date.", "kubrick").'</h2>');
  182. } else if ( is_author() ) { // If this is a category archive
  183. $userdata = get_userdatabylogin(get_query_var('author_name'));
  184. printf("<h2 class='center'>".__("Sorry, but there aren't any posts by %s yet.", "kubrick")."</h2>", $userdata->display_name);
  185. } else {
  186. echo("<h2 class='center'>".__('No posts found.', 'kubrick').'</h2>');
  187. }
  188. if(function_exists('get_search_form')) get_search_form();
  189. ?>
  190.  
  191. </div>
  192. <div class="cleared"></div>
  193.  
  194. </div>
  195.  
  196. <div class="cleared"></div>
  197. </div>
  198. </div>
  199.  
  200. <?php endif; ?>
  201.  
  202. </div>
  203. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  204. </div>
  205. <div class="cleared"></div>
  206.  
  207. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement