<?php /** * The template for displaying image attachments. * * @package Tutor */ get_header(); ?> <div class="main-container"> <div class="content-area"> <div class="middle-align content_sidebar"> <div class="site-main" id="sitemain"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <div class="entry-meta"> <?php $metadata = wp_get_attachment_metadata(); printf( esc_attr( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s">%4$s × %5$s</a> in <a href="%6$s" rel="gallery">%7$s</a>', 'tutor' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( wp_get_attachment_url() ), esc_attr($metadata['width']), esc_attr($metadata['height']), esc_url( get_permalink( $post->post_parent ) ), get_the_title( $post->post_parent ) ); edit_post_link( __( 'Edit', 'tutor' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-meta --> <nav role="navigation" id="image-navigation" class="image-navigation"> <div class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">←</span> Previous', 'tutor' ) ); ?></div> <div class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">→</span>', 'tutor' ) ); ?></div> </nav><!-- #image-navigation --> </header><!-- .entry-header --> <div class="entry-content"> <div class="entry-attachment"> <div class="attachment"> <?php $image_size = apply_filters( 'tutor_attachment_size', 'large' ); echo wp_get_attachment_image( get_the_ID(), $image_size ); ?> </div><!-- .attachment --> <?php if ( has_excerpt() ) : ?> <div class="entry-caption"> <?php the_excerpt(); ?> </div><!-- .entry-caption --> <?php endif; ?> </div><!-- .entry-attachment --> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'tutor' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <?php edit_post_link( __( 'Edit', 'tutor' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> </article><!-- #post-## --> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || '0' != get_comments_number() ) comments_template(); ?> <?php endwhile; // end of the loop. ?> </div> <?php get_sidebar();?> <div class="clear"></div> </div> </div><div class="clear"></div> <?php get_footer(); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
css | Folder | 0755 |
|
|
customize-pro | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
js | Folder | 0755 |
|
|
404.php | File | 879 B | 0644 |
|
archive.php | File | 1.15 KB | 0644 |
|
change_log.txt | File | 209 B | 0644 |
|
comments.php | File | 1.98 KB | 0644 |
|
content-page.php | File | 686 B | 0644 |
|
content-single.php | File | 1.46 KB | 0644 |
|
content.php | File | 3.84 KB | 0644 |
|
editor-style.css | File | 139 B | 0644 |
|
footer.php | File | 689 B | 0644 |
|
front-page.php | File | 3.27 KB | 0644 |
|
full-width.php | File | 947 B | 0644 |
|
functions.php | File | 6.16 KB | 0644 |
|
header.php | File | 4.18 KB | 0644 |
|
image.php | File | 3.97 KB | 0644 |
|
index.php | File | 1.58 KB | 0644 |
|
license.txt | File | 34.97 KB | 0644 |
|
no-results.php | File | 998 B | 0644 |
|
page.php | File | 1.03 KB | 0644 |
|
readme.txt | File | 3.5 KB | 0644 |
|
screenshot.png | File | 267.9 KB | 0644 |
|
search.php | File | 1007 B | 0644 |
|
searchform.php | File | 540 B | 0644 |
|
sidebar.php | File | 822 B | 0644 |
|
single.php | File | 909 B | 0644 |
|
style.css | File | 16.54 KB | 0644 |
|