content-portfolio-single.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @package Sketch
  4. */
  5. // Access global variable directly to set content_width
  6. if ( isset( $GLOBALS['content_width'] ) )
  7. $GLOBALS['content_width'] = 1091;
  8. ?>
  9. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10. <header class="entry-header">
  11. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  12. <div class="entry-meta">
  13. <?php
  14. echo get_the_term_list( get_the_ID(), 'jetpack-portfolio-type', '<span class="portfolio-type-links">', _x(', ', 'Used between list items, there is a space after the comma.', 'sketch' ), '</span>' );
  15. ?>
  16. <?php edit_post_link( __( 'Edit', 'sketch' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
  17. </div>
  18. </header>
  19. <div class="entry-content">
  20. <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'sketch' ) ); ?>
  21. <?php
  22. wp_link_pages( array(
  23. 'before' => '<div class="page-links">' . __( 'Pages:', 'sketch' ),
  24. 'after' => '</div>',
  25. ) );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <footer class="entry-meta">
  29. <?php
  30. echo get_the_term_list( $post->ID, 'jetpack-portfolio-tag', '<span class="tags-links">', '', '</span>' );
  31. ?>
  32. <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
  33. <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'sketch' ), __( '1 Comment', 'sketch' ), __( '% Comments', 'sketch' ) ); ?></span>
  34. <?php endif; ?>
  35. </footer><!-- .entry-meta -->
  36. </article><!-- #post-## -->