Advertisement
Guest User

index php

a guest
May 22nd, 2010
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 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-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. <h2 class="art-postheader">
  21. <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
  22. <?php the_title(); ?>
  23. </a>
  24. </h2>
  25. <?php $icons = array(); ?>
  26. <?php if (!is_page()): ?><?php ob_start(); ?><?php the_time(__('F jS, Y', 'kubrick')) ?>
  27. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (!is_page()): ?><?php ob_start(); ?><?php _e('Author', 'kubrick'); ?>: <?php the_author_posts_link() ?>
  28. <?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'), ''); ?>
  29. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  30. <div class="art-postheadericons art-metadata-icons">
  31. <?php echo implode(' | ', $icons); ?>
  32.  
  33. </div>
  34. <?php endif; ?>
  35. <div class="art-postcontent">
  36. <!-- article-content -->
  37.  
  38. <?php if (is_search()) the_excerpt(); else the_content(__('더 보기 &raquo;', 'kubrick')); ?>
  39. <?php if (is_page() or is_single()) wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  40.  
  41. <!-- /article-content -->
  42. </div>
  43. <div class="cleared"></div>
  44. <?php $icons = array(); ?>
  45. <?php if (!is_page()): ?><?php ob_start(); ?><?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
  46. <?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="" />
  47. <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
  48. <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?>
  49. <div class="art-postfootericons art-metadata-icons">
  50. <?php echo implode(' | ', $icons); ?>
  51.  
  52. </div>
  53. <?php endif; ?>
  54.  
  55. </div>
  56.  
  57. <div class="cleared"></div>
  58. </div>
  59. </div>
  60.  
  61. <?php endwhile; ?>
  62. <?php
  63. $prev_link = get_previous_posts_link(__('Next Page &raquo;', 'kubrick'));
  64. $next_link = get_next_posts_link(__('&laquo; Previous Page', 'kubrick'));
  65. ?>
  66. <?php if ($prev_link || $next_link): ?>
  67. <div class="art-post">
  68. <div class="art-post-tl"></div>
  69. <div class="art-post-tr"></div>
  70. <div class="art-post-bl"></div>
  71. <div class="art-post-br"></div>
  72. <div class="art-post-tc"></div>
  73. <div class="art-post-bc"></div>
  74. <div class="art-post-cl"></div>
  75. <div class="art-post-cr"></div>
  76. <div class="art-post-cc"></div>
  77. <div class="art-post-body">
  78. <div class="art-post-inner art-article">
  79.  
  80. <div class="art-postcontent">
  81. <!-- article-content -->
  82.  
  83. <div class="navigation">
  84. <div class="alignleft"><?php echo $next_link; ?></div>
  85. <div class="alignright"><?php echo $prev_link; ?></div>
  86. </div>
  87.  
  88. <!-- /article-content -->
  89. </div>
  90. <div class="cleared"></div>
  91.  
  92.  
  93. </div>
  94.  
  95. <div class="cleared"></div>
  96. </div>
  97. </div>
  98.  
  99. <?php endif; ?>
  100. <?php else : ?>
  101. <h2 class="center"><?php _e('검색결과가 없읍니다', 'kubrick'); ?></h2>
  102. <p class="center"><?php _e('검색결과가 없읍니다.', 'kubrick'); ?></p>
  103. <?php if(function_exists('get_search_form')) get_search_form(); ?>
  104. <?php endif; ?>
  105.  
  106. </div>
  107. <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
  108. </div>
  109. </div>
  110. <div class="cleared"></div>
  111. <style type="text/css">
  112. .addthis_container { display:none !important; }
  113. </style>
  114. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement