Advertisement
thachpham92

File index.php của theme Wordpress

May 15th, 2013
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php get_header() ?>
  2.     <div id="blog" class="container_12">
  3.         <div class="grid_12 omega" id="main-menu">
  4.             <?php
  5.             wp_nav_menu(array(
  6.                 'theme_location' => 'main-menu'
  7.                 ));
  8.             ?>
  9.         </div><!--End main-menu-->
  10.         <div id="main-content" class="grid_8 alpha">
  11.             <div class="post">
  12.                 <?php if(have_posts()): ?><?php while (have_posts()): the_post(); ?>       
  13.                     <div class="post_info">
  14.                         <?php the_post_thumbnail( $size = 'thumbnail', array (
  15.                             'class' => "homepage-thumbnail",
  16.                         ) );?>
  17.                         <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
  18.                         <p class="meta-data">
  19.                             Đăng bởi&nbsp;<?php the_author(); ?>&nbsp;ngày&nbsp;<?php the_date(); ?>&nbsp;trong&nbsp;<?php the_category( $separator = ',') ;?>
  20.                         </p>
  21.                         <?php the_excerpt();?>
  22.                     <?php endwhile; ?>
  23.                 </div><!--End entry-->
  24.                 <div id="navigation">
  25.                     <?php posts_nav_link( $sep = '', $prelabel = 'Trang trước', $nxtlabel = 'Trang sau' );?>
  26.                 </div>
  27.                 <?php endif;?>
  28.             </div><!--end post-->
  29.         </div><!--End main-content-->
  30.             <div class="grid_4 omega" id="sidebar">
  31.                 <?php if ( !function_exists('dynamic_sidebar')
  32.                 || !dynamic_sidebar('sidebar') ) : ?>
  33.                 <?php endif; ?>
  34.             </div>
  35.     </div>
  36.             <?php get_footer(  );?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement