Advertisement
Guest User

Untitled

a guest
Dec 1st, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="art-content-layout">
  3. <div class="art-content-layout-row">
  4. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?><div class="art-layout-cell art-content">
  5.  
  6. <?php if (have_posts()) : ?>
  7. <?php while (have_posts()) : the_post(); ?>
  8. <div class="art-post">
  9. <div class="art-post-body">
  10. <div class="art-post-inner art-article">
  11. <h2 class="art-postheader">
  12. <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  13. <?php the_title(); ?>
  14. </a>
  15. </h2>
  16. <?php $icons = array(); ?>
  17. <?php if (!is_page()): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/postdateicon.png" width="20" height="20" alt="" />
  18. <?php the_time(__('F jS, Y', 'kubrick')) ?>
  19. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/postauthoricon.png" width="18" height="18" alt="" />
  20. <?php _e('Author', 'kubrick'); ?>: <?php the_author_posts_link() ?>
  21. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/postediticon.png" width="20" height="19" alt="" />
  22. <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
  23. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  24. <div class="art-postheadericons art-metadata-icons">
  25. <?php echo implode(' | ', $icons); ?>
  26.  
  27. </div>
  28. <?php endif; ?>
  29. <div class="art-postcontent">
  30. <!-- article-content -->
  31.  
  32. <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
  33. <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  34.  
  35. <!-- /article-content -->
  36. </div>
  37. <div class="cleared"></div>
  38. <?php ob_start(); ?>
  39. <?php $icons = array(); ?>
  40. <?php if (!is_page()): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/postcategoryicon.png" width="18" height="18" alt="" />
  41. <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  42. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && get_the_tags()): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/posttagicon.png" width="18" height="18" alt="" />
  43. <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
  44. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page() && !is_single()): ?><?php ob_start(); ?><img class="art-metadata-icon" src="<?php bloginfo('template_url'); ?>/images/postcommentsicon.png" width="16" height="14" alt="" />
  45. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  46. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  47. <div class="art-postfootericons art-metadata-icons">
  48. <?php echo implode(' | ', $icons); ?>
  49.  
  50. </div>
  51. <?php endif; ?>
  52. <?php $metadataContent = ob_get_clean(); ?>
  53. <?php if (trim($metadataContent) != ''): ?>
  54. <div class="art-postmetadatafooter">
  55. <?php echo $metadataContent; ?>
  56.  
  57. </div>
  58. <?php endif; ?>
  59.  
  60. </div>
  61.  
  62. <div class="cleared"></div>
  63. </div>
  64. </div>
  65.  
  66. <?php endwhile; ?>
  67. <?php
  68. $prev_link = get_previous_posts_link(__('Newer Entries &raquo;', 'kubrick'));
  69. $next_link = get_next_posts_link(__('&laquo; Older Entries', 'kubrick'));
  70. ?>
  71. <?php if ($prev_link || $next_link): ?>
  72. <div class="art-post">
  73. <div class="art-post-body">
  74. <div class="art-post-inner art-article">
  75.  
  76. <div class="art-postcontent">
  77. <!-- article-content -->
  78.  
  79. <div class="navigation">
  80. <div class="alignleft"><?php echo $next_link; ?></div>
  81. <div class="alignright"><?php echo $prev_link; ?></div>
  82. </div>
  83.  
  84. <!-- /article-content -->
  85. </div>
  86. <div class="cleared"></div>
  87.  
  88.  
  89. </div>
  90.  
  91. <div class="cleared"></div>
  92. </div>
  93. </div>
  94.  
  95. <?php endif; ?>
  96. <?php else : ?>
  97. <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
  98. <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
  99. <?php if(function_exists('get_search_form')) get_search_form(); ?>
  100. <?php endif; ?>
  101.  
  102. </div>
  103. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  104. </div>
  105. </div>
  106. <div class="cleared"></div>
  107.  
  108. <?php get_footer(); ?>
  109.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement