jungleMassive

Вывод записи со списком коментариев на главной

Mar 14th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.45 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5.  
  6. <title><?php wp_title( '' ); ?></title>
  7.  
  8. <link rel="profile" href="http://gmpg.org/xfn/11" />
  9. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  10. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  11.  
  12. <?php
  13.     if ( is_singular() && get_option( 'thread_comments' ) )
  14.         wp_enqueue_script( 'comment-reply' );
  15.     wp_head();
  16. ?>
  17. </head>
  18.  
  19. <body <?php body_class(); ?>>
  20. <div id="wrapper" class="hfeed">
  21.     <div id="header">
  22.         <div id="masthead">
  23.             <div id="branding" role="banner">
  24.                 <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
  25.                 <<?php echo $heading_tag; ?> id="site-title">
  26.                     <span>
  27.                         <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
  28.                     </span>
  29.                 </<?php echo $heading_tag; ?>>
  30.                 <div id="site-description"><?php bloginfo( 'description' ); ?></div>
  31.  
  32.                 <?php
  33. if ( is_singular() && has_post_thumbnail( $post->ID ) && ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( post->ID ), 'post-thumbnail' ) ) && $image[1] >= HEADER_IMAGE_WIDTH ) : echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); else : ?>
  34.     <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  35.                     <?php endif; ?>
  36.             </div><!-- #branding -->
  37.  
  38.             <div id="access" role="navigation">
  39.             <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
  40.             <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
  41.             </div><!-- #access -->
  42.         </div><!-- #masthead -->
  43.     </div><!-- #header -->
  44.  
  45.     <div id="main">
  46. <div id="accordion">
  47.  
  48. <?php while( have_posts() ) : the_post(); ?>
  49.  
  50. <h3><a href="#"><?php the_title(); ?></a></h3>
  51. <div class="entry">
  52.     <div class="entry-content"><?php the_content(); ?></div>
  53.     <div class="entry-utility"><?php the_tags( '', ', ' ); ?></div>
  54.     <div class="com"><?php comments_template( '', true); ?></div>
  55. </div>
  56. <?php endwhile; ?>
  57. </div> <!-- #accordion -->
  58.  
  59. </div> <!-- #content -->
  60. </div> <!-- #container-->
  61.  
  62. <?php get_sidebar(); ?>
  63. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment