PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/themes/OneMozilla-PressCenter/content-syndicated.php

https://github.com/fvignals/One-Mozilla-blog
PHP | 22 lines | 19 code | 3 blank | 0 comment | 3 complexity | e3d16655955e5810f15a546c8c9007d3 MD5 | raw file
  1. <?php $options = onemozilla_get_theme_options(); ?>
  2. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  3. <header class="entry-header">
  4. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permanent link to &ldquo;%s&rdquo;', 'onemozilla' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php esc_attr(the_title()); ?></a></h2>
  5. <?php if ( 'post' == get_post_type() ) : // No posted date for Pages ?>
  6. <p class="entry-posted">
  7. <time class="published" title="<?php the_time('Y-m-d\TH:i:sP'); ?>" datetime="<?php the_time('Y-m-d\TH:i:sP'); ?>">
  8. <span class="posted-month"><?php the_time('M'); ?></span>
  9. <span class="posted-date"><?php the_time('j'); ?></span>
  10. <span class="posted-year"><?php the_time('Y'); ?></span>
  11. </time>
  12. </p>
  13. <?php endif; ?>
  14. </header>
  15. <div class="entry-summary">
  16. <?php if (has_post_thumbnail()) : ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(68,68), array('alt' => "", 'title' => ""));?></a><?php endif; ?>
  17. <?php the_excerpt(); ?>
  18. </div><!-- .entry-summary -->
  19. </article><!-- #post-<?php the_ID(); ?> -->