Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
mountainpassions
/
!Backup
/
blog
/
wp-content
/
themes
/
lovecraft
📤 Upload
📝 New File
📁 New Folder
Close
Editing: image.php
<?php get_header(); ?> <div class="wrapper section"> <div class="section-inner group"> <div class="content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'single post' ); ?>> <figure class="post-image"> <?php echo wp_get_attachment_image( $post->ID, 'post-image' ); ?> </figure> <div class="post-inner"> <div class="post-header"> <h1 class="post-title"><?php echo basename( get_attached_file( $post->ID ) ); ?></h1> <div class="post-meta"> <p><?php _e( 'By', 'lovecraft' ); ?> <?php the_author_posts_link(); ?></p> <p class="post-date"><?php _e( 'On', 'lovecraft' ); ?> <a href="<?php the_permalink(); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></p> <?php $image_array = wp_get_attachment_image_src( $post->ID, 'full', false ); $url = $image_array['0']; ?> <p><?php echo __( 'Resolution:', 'lovecraft' ) . ' ' . $image_array['1'] . 'x' . $image_array['2'] . ' px'; ?></p> </div><!-- .post-meta --> </div><!-- .post-header --> <?php $image = get_post( get_post_thumbnail_id() ); $excerpt = $image->post_excerpt; if ( $excerpt ) : ?> <div class="post-content"> <p><?php echo $excerpt; ?></p> </div> <?php endif; ?> </div><!-- .post-inner --> <?php comments_template( '', true ); endwhile; endif; ?> </article><!-- .post --> </div><!-- .content --> <?php get_sidebar(); ?> </div><!-- .section-inner --> </div><!-- .wrapper.section --> <?php get_footer(); ?>
Save
Cancel