[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-content/themes/twentyeleven/ -> _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 class="entry_title_a" style="color:#222222;text-decoration:none;" 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 <?php $this->classes( '*' ); ?>>Posted on</span>
   8              <a <?php $this->classes( '* a entry-meta_a' ); ?> href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( get_the_time() ); ?>" rel="bookmark">
   9                  <time class="hover_underline"  datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>" pubdate>
  10                      <?php echo esc_html( get_the_date() ); ?>
  11                  </time>
  12              </a>
  13          </div>
  14  
  15          <?php if ( comments_open() && ! post_password_required() ) : ?>
  16          <div <?php $this->classes( '*' ); ?> class="comments-link-bubble">
  17              <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
  18          </div>
  19          <?php endif; ?>
  20      </header><!-- .entry-header -->
  21  
  22      <div <?php $this->classes( '* entry-summary' ); ?>>
  23          <?php the_excerpt(); ?>
  24      </div><!-- .entry-summary -->
  25  
  26      <footer <?php $this->classes( 'entry-header entry-meta' ); ?>>
  27  <?php 
  28  $show_sep = false;
  29  $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  30  if ( $categories_list ):
  31      $show_sep = true;
  32  ?>
  33          <span <?php $this->classes( '*' ); ?>>
  34              <span <?php $this->classes( '*' ); ?>>
  35                  Posted in
  36              </span>
  37              <?php echo $categories_list; ?>
  38          </span>
  39  <?php 
  40  endif; // End if categories
  41  
  42  $tags_list = get_the_tag_list( '', ', ' );
  43  if ( $tags_list ):
  44      if ( $show_sep ) : 
  45  ?>
  46          <span <?php $this->classes( '*' ); ?>> | </span>
  47  <?php 
  48      endif; // End if $show_sep
  49      $show_sep = true;
  50  ?>
  51          <span <?php $this->classes( '*' ); ?>>
  52              <span <?php $this->classes( '*' ); ?>>
  53                  Tagged
  54              </span>
  55              <?php echo $tags_list; ?>
  56          </span>
  57  <?php 
  58  endif; // End if $tags_list 
  59  
  60  if ( comments_open() ) :
  61      if ( $show_sep ) :
  62   ?>
  63          <span <?php $this->classes( '*' ); ?>> | </span>
  64  <?php 
  65      endif; // End if $show_sep
  66  ?>
  67          <span <?php $this->classes( '*' ); ?>><?php comments_popup_link( '<span ' . $this->classes( '*', 0 ) . '>' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ), 'hover_underline' ); ?></span>
  68  <?php 
  69  endif; // End if comments_open() 
  70  ?>
  71      </footer><!-- #entry-utility -->    
  72  </article><!-- #post-<?php the_ID(); ?> -->
  73  
  74  <?php 
  75  endwhile;


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