[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-content/xtras/ -> pt_MP_Archives.php (source)

   1  <?php
   2  /*
   3  Template Name: MailPress Archives
   4  */
   5  ?>
   6  <?php get_header(); ?>
   7      <div id="content">
   8  <?php
   9  if ( class_exists( 'MailPress' ) )
  10  {
  11      $m = new MP_Query();
  12      $m->query();
  13      while ( $m->have_mails() ) : $m->the_mail(); 
  14  ?>
  15          <div id="mail-<?php $m->the_ID(); ?>">
  16              <h2 class="entry-title"><a href="<?php $m->the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), $m->get_the_subject() ) ); ?>" rel="bookmark"><?php $m->the_subject(); ?></a></h2>
  17  
  18              <div class="entry-meta">
  19                  Mailed on <?php $m->the_date(); ?>
  20              </div><!-- .entry-meta -->
  21              <div class="entry-content">
  22                  <?php //$m->the_content(); ?>
  23              </div><!-- .entry-content -->
  24              <div class="entry-utility">
  25              </div><!-- .entry-utility -->
  26          </div><!-- #mail-## -->
  27  <?php 
  28      endwhile;
  29  }
  30  else
  31  {
  32      echo "<div>Sorry, archives are not available !</div>";
  33  }
  34  ?>
  35      </div>
  36  <?php get_footer(); ?>
  37  


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