[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-content/themes/twentytwelve/ -> _loop.php (source)

   1  <?php while ( have_posts() ) : the_post(); ?>
   2  
   3  <article id="post-<?php the_ID(); ?>" <?php $this->classes( 'article' ); ?>>
   4      <header <?php $this->classes( '* entry-header' ); ?>>
   5          <h1 <?php $this->classes( '* entry-title' ); ?>><a <?php $this->classes( '* entry-title_a' ); ?> href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
   6          <div <?php $this->classes( '* entry-meta' ); ?>>
   7              <span style="line-height:24px;">Posted on</span>
   8              <a <?php $this->classes( 'entry-meta_a' ); ?> href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( get_the_time() ); ?>" rel="bookmark"><time class="hover_underline"  datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate><?php echo esc_html( get_the_date() ); ?></time></a>
   9              <span style="line-height:24px;">
  10                  <span <?php $this->classes( '*' ); ?>> by </span>
  11                  <span <?php $this->classes( '*' ); ?>>
  12                      <a <?php $this->classes( '* entry-meta_a' ); ?> href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a>
  13                  </span>
  14              </span>
  15          </div>
  16      </header><!-- .entry-header -->
  17  
  18      <div <?php $this->classes( '* entry-content' ); ?>>
  19          <?php the_excerpt(); ?>
  20      </div><!-- .entry-content -->
  21  
  22      <footer <?php $this->classes( 'entry-footer' ); ?>>
  23  <?php
  24  $show_sep = false;
  25  
  26  // Categories
  27  
  28  if ( $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ) )
  29  {
  30      if ( $show_sep ) echo ' ';
  31      printf( '<span><span style="font-size:12px;color:#777;font-style:italic;">Posted in</span> %1$s</span>', $categories_list );
  32      $show_sep = true;
  33  }
  34  // End categories
  35  
  36  // Tags
  37  if ( $tags_list = get_the_tag_list( '', ', ' ) )
  38  {
  39      if ( $show_sep ) echo ' '; 
  40      printf( '<span><span style="font-size:12px;color:#777;font-style:italic;">Tagged</span> %1$s</span>', $tags_list );
  41      $show_sep = true;
  42  }
  43  // End tags
  44  
  45  // Comments
  46  if ( comments_open() )
  47  {    if ( $show_sep ) echo ' '; 
  48  ?>
  49          <span><?php comments_popup_link( '<span style="font-size:12px;color:#777;font-style:italic;">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ), 'hover_underline' ); ?></span>
  50  <?php 
  51  }
  52  // End comments 
  53  ?>
  54      </footer>
  55  </article><!-- #post-<?php the_ID(); ?> -->
  56  <?php 
  57  endwhile;


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1