underscore.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. <script type="text/html" id="content-template">
  2. <article id="content" class="single" role="main">
  3. <div class="entry-content">
  4. <header class="entry-header">
  5. <div class="entry-meta">
  6. <% postDate = new Date( post.date ); %>
  7. <time class="date">
  8. <% print( ( postDate.getMonth() + 1 ) + '/' + postDate.getDate() + '/' + postDate.getFullYear() ); %>
  9. </time>
  10. </div>
  11. <!-- ************ Replace these with the WP-APIv2 when it's out of beta *************** -->
  12. <!-- ><h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title.rendered %></a></h1> -->
  13. <h1 class="entry-title"><a href="<%= post.link %>" rel="bookmark"><%= post.title %></a></h1>
  14. <% if ( 'post' === post.type ) { %>
  15. <% } %>
  16. </header>
  17. <!-- <%= post.content.rendered %> -->
  18. <%= post.content %>
  19. <div class="clear">&nbsp;</div>
  20. </div>
  21. </article>
  22. </script>
  23. <script type="text/html" id="more-button-template">
  24. <div class="more-posts">
  25. <a class="more-button button btn-lg btn btn-danger" href="#"><?php esc_html_e( 'More', 'dw' ); ?></a>
  26. </div>
  27. </script>