-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattachment.php
43 lines (38 loc) · 995 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
36
37
38
39
40
41
42
43
<?php
/**
* The template for displaying attachments
*
* This template displays post attachments (most often images).
*
* @since 0.5
*
* @package Grammatizator
*/
get_header();
?>
<main id="main" class="content-wrap cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
/*
* This function will bring in the image template
* for use on this attachment page.
*/
get_template_part( 'post-formats/format-image', get_post_format() );
endwhile;
else :
?>
<article id="post-not-found" class="article-layout hentry cf">
<header class="article-header">
<h1><?php esc_html_e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
</header>
<section class="entry-content">
<p><?php esc_html_e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
</section>
</article>
<?php
endif;
?>
</main>
<?php
get_footer();