forked from rlafranchi/clean-yeti-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
attachment.php
99 lines (73 loc) · 2.62 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Attachments Template
*
* Displays singular WordPress Media Library items.
*
* @package cleanyetibasic
* @subpackage Templates
*
* @link http://codex.wordpress.org/Using_Image_and_File_Attachments Codex:Using Attachments
*/
// calling the header.php
get_header();
// action hook for placing content above #container
cleanyetibasic_abovecontainer();
// action hook for placing content above #content
cleanyetibasic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'cleanyetibasic_open_id_content', '<div id="content">' . "\n\n" );
// start the loop
while ( have_posts() ) : the_post();
// action hook for placing content above #post
cleanyetibasic_abovepost();
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<div class="row">
<div class="large-12 columns">
<?php
// creating the post header
cleanyetibasic_postheader();
?>
</div>
</div>
<div class="entry-content">
<div class="entry-attachment text-center panel radius"><?php the_attachment_link( $post->ID, true ) ?></div>
<?php
the_content( cleanyetibasic_more_text() );
cleanyetibasic_numerical_link_pages(array('before' => sprintf('<div class="pagination-centered"><ul class="page-numbers">%s', __('<li class="unavailable">Pages:<li>', 'cleanyetibasic')),
'after' => '</ul></div>' ));
?>
<div class="row">
<div class="large-12 columns">
<ul id="image-nav-below" class="image-nav small-block-grid-2">
<li><div class="image-previous left"><?php previous_image_link(); ?><p><?php previous_image_link( 'thumbnail', '« Previous' ); ?></p></div></li>
<li><div class="image-next right"><?php next_image_link(); ?><p class="text-right"><?php next_image_link( 'thumbnaial', 'Next »' ); ?></p></div></li>
</ul>
</div>
</div>
</div><!-- .entry-content -->
<?php cleanyetibasic_postfooter(); ?>
</div><!-- #post -->
<?php
// action hook for placing contentbelow #post
cleanyetibasic_belowpost();
// action hook for calling the comments_template
cleanyetibasic_comments_template();
// end loop
endwhile;
?>
</div><!-- #content -->
<?php
// action hook for placing content below #content
cleanyetibasic_belowcontent();
?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
cleanyetibasic_belowcontainer();
// calling the standard sidebar
cleanyetibasic_sidebar();
// calling footer.php
get_footer();
?>