-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathattachment.php
35 lines (31 loc) · 922 Bytes
/
attachment.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Attachment
*
* @package Onenice
*/
get_header();
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ) {?>
<div class="main container">
<div class="row">
<div class="col-md-12">
<h1 class="post-title"><a href="<?php the_permalink(); ?>"
title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h1>
<div class="post-meta">
<?php if ( onenice_get( 'single_show_date' ) ) : ?>
<span><?php echo get_the_date(); ?></span>
<?php endif; ?>
<?php if ( onenice_get( 'single_show_author' ) ) : ?>
<span class="card-link md-down-none"><?php echo esc_html( get_the_author_meta( 'display_name', $post->post_author ) ); ?></span>
<?php endif; ?>
</div>
<div class="post-content">
<?php echo wp_get_attachment_image( get_the_ID(), 'large' ); ?>
</div>
</div>
</div><!-- row -->
</div>
<?php
}
get_footer();