Advertisement
Guest User

Untitled

a guest
Dec 15th, 2013
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 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. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  13. <?php
  14. $prev_link = get_previous_post_link('&laquo; %link');
  15. $next_link = get_next_post_link('%link &raquo;');
  16. ?>
  17. <?php if ($prev_link || $next_link): ?>
  18. <div class="Post">
  19. <div class="Post-body">
  20. <div class="Post-inner article">
  21.  
  22. <div class="PostContent">
  23.  
  24. <div class="navigation">
  25. <div class="alignleft"><?php echo $prev_link; ?></div>
  26. <div class="alignright"><?php echo $next_link; ?></div>
  27. </div>
  28.  
  29. </div>
  30. <div class="cleared"></div>
  31.  
  32.  
  33. </div>
  34.  
  35. </div>
  36. </div>
  37.  
  38. <?php endif; ?>
  39. <div class="Post">
  40. <div class="Post-body">
  41. <div class="Post-inner article">
  42. <h2 class="PostHeaderIcon-wrapper">
  43. <img src="<?php bloginfo('template_url'); ?>/images/PostHeaderIcon.png" width="32" height="32" alt="PostHeaderIcon" />
  44. <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  45. <?php the_title(); ?>
  46. </a></span>
  47. </h2>
  48. <?php $icons = array(); ?>
  49. <?php if (!is_page()): ?><?php ob_start(); ?><?php the_time(__('F jS, Y', 'kubrick')) ?>
  50. <?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" />
  51. <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
  52. <?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'), ''); ?>
  53. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  54. <div class="PostHeaderIcons metadata-icons">
  55. <?php echo implode(' | ', $icons); ?>
  56.  
  57. </div>
  58. <?php endif; ?>
  59. <div class="PostContent">
  60. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  61. <!-- Яндекс.Директ -->
  62. <script type="text/javascript">
  63. //<![CDATA[
  64. yandex_partner_id = 62389;
  65. yandex_site_bg_color = 'FFFFFF';
  66. yandex_site_charset = 'windows-1251';
  67. yandex_ad_format = 'direct';
  68. yandex_font_size = 0.9;
  69. yandex_direct_type = 'flat';
  70. yandex_direct_limit = 2;
  71. yandex_direct_header_bg_color = 'CC9966';
  72. yandex_direct_title_color = '996600';
  73. yandex_direct_url_color = '996600';
  74. yandex_direct_all_color = '000000';
  75. yandex_direct_text_color = '000000';
  76. yandex_direct_hover_color = 'CC9966';
  77. yandex_direct_favicon = true;
  78. document.write('<sc'+'ript type="text/javascript" src="http://an.yandex.ru/system/context.js"></sc'+'ript>');
  79. //]]>
  80. </script>
  81. </div>
  82. <div class="cleared"></div>
  83. <?php ob_start(); ?>
  84. <?php $icons = array(); ?>
  85. <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  86. <?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" />
  87. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  88. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  89. <div class="PostFooterIcons metadata-icons">
  90. <?php echo implode(' | ', $icons); ?>
  91.  
  92. </div>
  93. <?php endif; ?>
  94. <?php $metadataContent = ob_get_clean(); ?>
  95. <?php if (trim($metadataContent) != ''): ?>
  96. <div class="PostMetadataFooter">
  97. <?php echo $metadataContent; ?>
  98.  
  99. </div>
  100. <?php endif; ?>
  101.  
  102. </div>
  103.  
  104. </div>
  105. </div>
  106.  
  107. <?php if ($prev_link || $next_link): ?>
  108. <div class="Post">
  109. <div class="Post-body">
  110. <div class="Post-inner article">
  111.  
  112. <div class="PostContent">
  113.  
  114. <div class="navigation">
  115. <div class="alignleft"><?php echo $prev_link; ?></div>
  116. <div class="alignright"><?php echo $next_link; ?></div>
  117. </div>
  118.  
  119. </div>
  120. <div class="cleared"></div>
  121.  
  122.  
  123. </div>
  124.  
  125. </div>
  126. </div>
  127.  
  128. <?php endif; ?>
  129. <?php comments_template(); ?>
  130. <?php endwhile; ?>
  131. <?php else: ?>
  132. <p><?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?></p>
  133. <?php endif; ?>
  134.  
  135. </div>
  136. <div class="sidebar1">
  137. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  138. </div>
  139.  
  140. </div>
  141. <div class="cleared"></div>
  142.  
  143. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement