Advertisement
Guest User

Untitled

a guest
Dec 16th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="contentLayout">
  3. <div class="content">
  4. <div class="breadcrumb">
  5. <?php
  6. if(function_exists('bcn_display'))
  7. {
  8. bcn_display();
  9. }
  10. ?>
  11. </div>
  12.  
  13. <?php is_tag(); ?>
  14. <?php if (have_posts()) : ?>
  15.  
  16. <div class="Post">
  17. <div class="Post-body">
  18. <div class="Post-inner article">
  19.  
  20. <div class="PostContent">
  21.  
  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 &#8216;%s&#8217; 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 &#8216;%s&#8217;', '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 &raquo;', 'kubrick'));
  42. $next_link = get_next_posts_link(__('&laquo; Older Entries', 'kubrick'));
  43. ?>
  44.  
  45. <?php if ($prev_link || $next_link): ?>
  46. <div class="navigation">
  47. <?php wp_pagenavi(); ?>
  48. </div>
  49. <?php endif; ?>
  50.  
  51.  
  52. </div>
  53. <div class="cleared"></div>
  54.  
  55.  
  56. </div>
  57.  
  58. </div>
  59. </div>
  60.  
  61.  
  62.  
  63. <?php while (have_posts()) : the_post(); ?>
  64. <div class="Post">
  65. <div class="Post-body">
  66. <div class="Post-inner article">
  67. <h2 class="PostHeaderIcon-wrapper">
  68. <img src="<?php bloginfo('template_url'); ?>/images/PostHeaderIcon.png" width="32" height="32" alt="PostHeaderIcon" />
  69. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  70. <?php the_title(); ?>
  71. </a></span>
  72. </h2>
  73. <?php $icons = array(); ?>
  74. <?php if (!is_page()): ?><?php ob_start(); ?><?php the_time(__('F jS, Y', 'kubrick')) ?>
  75. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="20" height="20" alt="PostAuthorIcon" />
  76. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  77. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  78. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  79. <div class="PostHeaderIcons metadata-icons">
  80. <?php echo implode(' | ', $icons); ?>
  81. <br>Просмотров: <?php if(function_exists('the_views')) { the_views(); } ?>
  82. </div>
  83. <?php endif; ?>
  84. <div class="PostContent">
  85. <?php if (is_search()) the_excerpt(); else the_content(__('далее &raquo;', 'kubrick')); ?>
  86.  
  87. </div>
  88. <div class="cleared"></div>
  89. <?php ob_start(); ?>
  90. <?php $icons = array(); ?>
  91. <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  92. <?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="PostCommentsIcon" />
  93. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  94. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  95. <div class="PostFooterIcons metadata-icons">
  96. <?php echo implode(' | ', $icons); ?>
  97.  
  98. </div>
  99. <?php endif; ?>
  100. <?php $metadataContent = ob_get_clean(); ?>
  101. <?php if (trim($metadataContent) != ''): ?>
  102. <div class="PostMetadataFooter">
  103. <?php echo $metadataContent; ?>
  104.  
  105. </div>
  106. <?php endif; ?>
  107.  
  108. </div>
  109.  
  110. </div>
  111. </div>
  112.  
  113. <?php endwhile; ?>
  114.  
  115. <?php if ($prev_link || $next_link): ?>
  116. <div class="Post">
  117. <div class="Post-body">
  118. <div class="Post-inner article">
  119.  
  120. <div class="PostContent">
  121.  
  122. <div class="navigation">
  123. <?php wp_pagenavi(); ?>
  124.  
  125. </div>
  126.  
  127. </div>
  128. <div class="cleared"></div>
  129.  
  130.  
  131. </div>
  132.  
  133. </div>
  134. </div>
  135.  
  136. <?php endif; ?>
  137.  
  138. <?php else : ?>
  139. <div class="Post">
  140. <div class="Post-body">
  141. <div class="Post-inner article">
  142.  
  143. <div class="PostContent">
  144.  
  145. <?php
  146. if ( is_category() ) { // If this is a category archive
  147. printf("<h2 class='center'>".__("Sorry, but there aren't any posts in the %s category yet.", "kubrick").'</h2>', single_cat_title('',false));
  148. } else if ( is_date() ) { // If this is a date archive
  149. echo('<h2>'.__("Sorry, but there aren't any posts with this date.", "kubrick").'</h2>');
  150. } else if ( is_author() ) { // If this is a category archive
  151. $userdata = get_userdatabylogin(get_query_var('author_name'));
  152. printf("<h2 class='center'>".__("Sorry, but there aren't any posts by %s yet.", "kubrick")."</h2>", $userdata->display_name);
  153. } else {
  154. echo("<h2 class='center'>".__('No posts found.', 'kubrick').'</h2>');
  155. }
  156. if(function_exists('get_search_form')) get_search_form();
  157. ?>
  158.  
  159. </div>
  160. <div class="cleared"></div>
  161.  
  162.  
  163. </div>
  164.  
  165. </div>
  166. </div>
  167.  
  168. <?php endif; ?>
  169.  
  170.  
  171. </div>
  172. <div class="sidebar1">
  173. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  174. </div>
  175.  
  176. </div>
  177. <div class="cleared"></div>
  178. <script type="text/javascript">
  179.  
  180. var _gaq = _gaq || [];
  181. _gaq.push(['_setAccount', 'UA-33244402-1']);
  182. _gaq.push(['_trackPageview']);
  183.  
  184. (function() {
  185. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  186. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  187. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  188. })();
  189.  
  190. </script>
  191. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement