underscore.php 1.3 KB

123456789101112131415161718192021222324252627282930
  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. <!-- ************ Replace these with the WP-APIv2 when it's out of beta *************** -->
  14. <!-- ><h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title.rendered %></a></h1> -->
  15. <h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title %></a></h1>
  16. <% if ( 'post' === post.type ) { %>
  17. <% } %>
  18. </header>
  19. <!-- <%= post.content.rendered %> -->
  20. <%= post.content %>
  21. <div class="clear">&nbsp;</div>
  22. </div>
  23. </article>
  24. </script>
  25. <script type="text/html" id="more-button-template">
  26. <div class="more-posts">
  27. <a class="more-button button btn-lg btn btn-danger" href="#"><?php esc_html_e( 'More', 'dw' ); ?></a>
  28. </div>
  29. </script>