underscore.php 1.1 KB

123456789101112131415161718192021222324252627
  1. <script type="text/html" id="content-template">
  2. <article id="content" class="single" role="main">
  3. <div itemscope="" itemtype="http://schema.org/BlogPosting" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  4. <div class="entry-content">
  5. <header class="entry-header">
  6. <div class="entry-meta">
  7. <% postDate = new Date( post.date ); %>
  8. <time class="date">
  9. <time class="updated" datetime="<?php the_time('c');?>" itemprop="datePublished"><% print( ( postDate.getMonth() + 1 ) + '/' + postDate.getDate() + '/' + postDate.getFullYear() ); %></time>
  10. </time>
  11. <span class="author vcard"><span class="fn">David A. Windham</span></span>
  12. </div>
  13. <h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title.rendered %></a></h1>
  14. <% if ( 'post' === post.type ) { %>
  15. <% } %>
  16. </header>
  17. <%= post.content.rendered %>
  18. <div class="clear">&nbsp;</div>
  19. </div>
  20. </article>
  21. </script>
  22. <script type="text/html" id="more-button-template">
  23. <div class="more-posts">
  24. <a class="more-button button btn-lg btn btn-dark" href="#"><?php esc_html_e( 'Load More &crarr;', 'dw' ); ?></a>
  25. </div>
  26. </script>