File Editor
Directories:
.. (Back)
css
fonts
functions
images
js
languages
Files:
404.php
about-section.php
breadcrumbs.php
comments.php
content-none.php
content-posts-home.php
content-posts.php
content-single.php
content.php
contentboxes-section.php
copyright.php
cta-section.php
features-section.php
footer.php
fromblog-section.php
functions.php
getintouch-section.php
getstarted-section.php
header.php
image.php
index.php
license.txt
owlpost-info.php
page-fullwidth.php
page-left-sidebar.php
page-right-sidebar.php
page.php
post-formats.php
post-info.php
post-meta.php
post-nav.php
readme.txt
services-section.php
sidebar-footer.php
sidebar.php
single.php
social-section.php
style.css
title-section.php
top-header.php
Create New File
Create
Edit File: image.php
<?php /** * The template for displaying image attachments * * @package Modality */ // Retrieve attachment metadata. $metadata = wp_get_attachment_metadata(); $modality_theme_options = modality_get_options( 'modality_theme_options' ); get_header(); ?> <div id="main" class="<?php echo esc_attr($modality_theme_options['layout_settings']);?>"> <?php /* The loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="content-posts-wrap"> <div id="content-box"> <div id="post-body"> <div <?php post_class('post-single'); ?>> <h1 id="post-title" <?php post_class('entry-title'); ?>><?php the_title(); ?> </h1> <?php if ( has_post_thumbnail() ) { ?> <div class="thumb-wrapper"> <?php the_post_thumbnail('full'); ?> </div><!--thumb-wrapper--> <?php } ?> <div id="article"> <?php modality_the_attached_image(); ?> <?php the_content(); wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'modality' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', ) ); ?> <ul class="link-pages"> <li class="next-link"><?php esc_url(previous_image_link( '%link', '<i class="fa fa-chevron-right"></i><strong>'.__('Next', 'modality').'</strong> <span>IMAGE</span>' )); ?></li> <li class="previous-link"><?php esc_url(next_image_link( '%link', '<i class="fa fa-chevron-left"></i><strong>'.__('Previous', 'modality').'</strong> <span>IMAGE</span>' )); ?></li> </ul> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { comments_template( '', true ); } ?> </div><!--article--> </div><!--post-single--> </div><!--post-body--> </div><!--content-box--> <div class="sidebar-frame"> <div class="sidebar"> <?php get_sidebar(); ?> </div> </div> <?php endwhile; ?> </div><!--content-posts-wrap--> </div><!--main--> <?php if ($modality_theme_options['social_section_on'] == '1') { get_template_part( 'social', 'section' ); } get_footer(); ?>
Save Changes
Rename File
Rename