Advertisement
Guest User

index php

a guest
Apr 19th, 2010
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="art-content-layout">
  3. <div class="art-content-layout-row">
  4. <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(); ?><?php the_time(__('F jS, Y', 'kubrick')) ?>
  18. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><?php _e('Author', 'kubrick'); ?>: <?php the_author_posts_link() ?>
  19. <?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'), ''); ?>
  20. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  21. <div class="art-postheadericons art-metadata-icons">
  22. <?php echo implode(' | ', $icons); ?>
  23.  
  24. </div>
  25. <?php endif; ?>
  26. <div class="art-postcontent">
  27. <!-- article-content -->
  28.  
  29. <?php if (is_search()) the_excerpt(); else the_content(__('더 보기 &raquo;', 'kubrick')); ?>
  30. <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  31.  
  32. <!-- /article-content -->
  33. </div>
  34. <div class="cleared"></div>
  35. <?php $icons = array(); ?>
  36. <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  37. <?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="18" height="18" alt="" />
  38. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  39. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  40. <div class="art-postfootericons art-metadata-icons">
  41. <?php echo implode(' | ', $icons); ?>
  42.  
  43. </div>
  44. <?php endif; ?>
  45.  
  46. </div>
  47.  
  48. <div class="cleared"></div>
  49. </div>
  50. </div>
  51.  
  52. <?php endwhile; ?>
  53. <?php
  54. $prev_link = get_previous_posts_link(__('다음 페이지 &raquo;', 'kubrick'));
  55. $next_link = get_next_posts_link(__('&laquo; 이전 페이지', 'kubrick'));
  56. ?>
  57. <?php if ($prev_link || $next_link): ?>
  58. <div class="art-post">
  59. <div class="art-post-body">
  60. <div class="art-post-inner art-article">
  61.  
  62. <div class="art-postcontent">
  63. <!-- article-content -->
  64.  
  65. <div class="navigation">
  66. <div class="alignleft"><?php echo $next_link; ?></div>
  67. <div class="alignright"><?php echo $prev_link; ?></div>
  68. </div>
  69.  
  70. <!-- /article-content -->
  71. </div>
  72. <div class="cleared"></div>
  73.  
  74.  
  75. </div>
  76.  
  77. <div class="cleared"></div>
  78. </div>
  79. </div>
  80.  
  81. <?php endif; ?>
  82. <?php else : ?>
  83. <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
  84. <p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
  85. <?php if(function_exists('get_search_form')) get_search_form(); ?>
  86. <?php endif; ?>
  87.  
  88. </div>
  89. <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
  90. </div>
  91. </div>
  92. <div class="cleared"></div>
  93.  
  94. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement