新宿キャットウォークのトップ画面のソースコード

たまに問い合わせが入ったりするので、新宿キャットウォークのEquilibriumカスタマイズを公開します。
(そんな凄いコードじゃなくてすいません)

index.php です。

  1. <?php get_header(); ?>
  2.  
  3. <div id="featured">
  4. <h2>最近の3件</h2>
  5.      <!-- Edit Below -->
  6.     <?php query_posts('cat=ID&showposts=2'); ?>
  7.     <?php while (have_posts()) : the_post(); ?>
  8.     <div class="front-post">
  9.     <div class="featured-post">
  10.         <div class="featured-title">
  11.             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
  12. </a></h2>
  13.         </div>
  14.         <div class="featured-image">
  15.             <?php image_attachment('image', 303, 231, apply_filters('the_permalink', get_permalink())); ?>
  16.         </div>
  17.     </div> <!-- END Featured-post -->
  18.     <div class="postMeta-featured"><span class="date"><?php the_time('Y.m.d A h:i') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div> <div class="clear"></div>
  19.      <div class="featured-content">
  20.      <?php the_excerpt(); ?>
  21.     <p class="moretext"><a href="<?php the_permalink() ?>">続きを読む...</a></p>  
  22.     </div> <!-- END Featured-Content -->
  23.     </div>
  24.     <?php endwhile; ?>
  25.     <!-- Edit Below 2 -->
  26.     <?php query_posts('cat=ID&showposts=1&offset=2'); ?>
  27.     <?php while (have_posts()) : the_post(); ?>
  28.     <div class="front-post-last"> <!-- Featured-Last -->
  29.     <div class="featured-post">
  30.         <div class="featured-title">
  31.             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
  32. </a></h2>
  33.         </div>
  34.         <div class="featured-image">
  35.             <?php image_attachment('image', 303, 231, apply_filters('the_permalink', get_permalink())); ?>
  36.         </div>
  37.     </div> <!-- END Featured-post -->
  38.     <div class="postMeta-featured"><span class="date"><?php the_time('Y.m.d A h:i') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div> <div class="clear"></div>
  39.      <div class="featured-content">
  40.      <?php the_excerpt(); ?>
  41.     <p class="moretext"><a href="<?php the_permalink() ?>">続きを読む...</a></p>  
  42.     </div> <!-- END Featured-Content -->
  43.    
  44.     </div>
  45.     <?php endwhile; ?>
  46. </div> <!-- END Featured -->
  47. <div class="clear"></div>
  48. <div id="front-bottom">
  49. <div id="latest-wrap">
  50. <h2>直近の12件</h2>
  51. <div class="content">
  52. <!-- Edit Below 3 -->
  53. <?php query_posts('cat=-ID&showposts=12&offset=3'); ?>
  54.                 <?php while (have_posts()) : the_post(); ?>
  55.     <div class="latest-post-wrap">
  56.     <div class="latest-post">
  57.                 <div class="latest-title">
  58.             <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
  59. </a></h2>
  60.         </div>
  61.         <div class="latest-image">
  62.             <?php image_attachment('image', 162, 118, apply_filters('the_permalink', get_permalink())); ?>
  63.         </div>
  64.         </div>
  65.              <div class="latest-content">
  66.              <div class="postMeta-front"><span class="date"><?php the_time('Y.m.d A h:i') ?></span><span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span></div> <div class="clear"></div>
  67.                 <p><?php
  68.   $excerpt = get_the_excerpt();
  69.   echo string_limit_words($excerpt,30);
  70. ?></p>
  71. <p class="moretext"><a href="<?php the_permalink() ?>">続きを読む...</a></p>  
  72.     </div>
  73.         </div>
  74.                 <?php endwhile; ?> <!-- END -->
  75. </div>
  76.  <div class="clear"></div>
  77.  </div>
  78. <?php get_sidebar(); ?>
  79.  <div class="clear"></div>
  80.  </div>
  81. <?php get_footer(); ?>

Leave a Reply