관리-도구
편집 파일: archive.php
<?php get_header(); ?> <div class="websitez-container"> <h4><?php if ( is_day() ) : ?> <?php printf( __( 'Daily Archives: %s'), get_the_date() ); ?> <?php elseif ( is_month() ) : ?> <?php printf( __( 'Monthly Archives: %s'), get_the_date('F Y') ); ?> <?php elseif ( is_year() ) : ?> <?php printf( __( 'Yearly Archives: %s'), get_the_date('Y') ); ?> <?php else : ?> <?php _e( 'Blog Archives'); ?> <?php endif; ?></h4> <?php if(have_posts()) : ?> <?php $i=0; ?> <?php while(have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post-wrapper"> <div class="calendar"> <div class="calendar-month"> <?php the_time('M') ?> </div> <div class="calendar-day"> <?php the_time('j') ?> </div> </div> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="post-title"><?php the_title(); ?></a> <p class="post-author">Author: <strong><?php the_author(); ?></strong></p> <div class="post-entry<?php if($i!=0) echo " hidden";?> eid<?php echo $i;?>"><?php the_excerpt(); ?></div> <div style="clear: both;"></div> </div> <div class="post-more"> <a href="<?php the_permalink(); ?>"><p class="post-read-more<?php if($i!=0) echo " hidden";?> rid<?php echo $i;?>">Read This Post</p></a> <a href="" onClick="$('.eid<?php echo $i;?>').toggle('slow'); $('.rid<?php echo $i;?>').toggle('slow'); $('.vid<?php echo $i;?>').toggle(); return false;"><p class="post-view-more<?php if($i!=0) echo " hidden";?> vid<?php echo $i;?>"><img src="<?php bloginfo('template_url'); ?>/images/small-up-arrow.png" border="0"></p></a> <a href="" onClick="$('.eid<?php echo $i;?>').toggle('slow'); $('.rid<?php echo $i;?>').toggle('slow'); $('.vid<?php echo $i;?>').toggle(); return false;"><p class="post-view-more<?php if($i==0) echo " hidden";?> vid<?php echo $i;?>"><img src="<?php bloginfo('template_url'); ?>/images/small-down-arrow.png" border="0"></p></a> <div style="clear: both;"></div> </div> </div> <?php $i++; ?> <?php endwhile; ?> <div class="websitez-navigation"> <?php posts_nav_link(' | ','« previous','next »'); ?> </div> <?php else : ?> <div class="post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post-wrapper"> <h3><?php _e('No posts are added.'); ?></h3> </div> </div> <?php endif; ?> </div> <?php get_footer(); ?>