content-portfolio-single.php 1.7 KB

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