-
Notifications
You must be signed in to change notification settings - Fork 42
/
attachment.php
93 lines (65 loc) · 2.43 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
<?php
/**
* Attachments Template
*
* Displays singular WordPress Media Library items.
*
* @package Thematic
* @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
thematic_abovecontainer();
// filter for manipulating the output of the #container opening element
echo apply_filters( 'thematic_open_id_container', '<div id="container" class="content-wrapper">' . "\n\n" );
// action hook for placing content above #content
thematic_abovecontent();
// filter for manipulating the element that wraps the content
echo apply_filters( 'thematic_open_id_content', '<div id="content" class="site-content" role="main">' . "\n\n" );
// start the loop
while ( have_posts() ) : the_post();
// displays the page title
thematic_page_title();
// action hook for placing content above #post
thematic_abovepost();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php
// creating the post header
thematic_postheader();
?>
<div class="entry-content">
<div class="entry-attachment"><?php the_attachment_link( $post->ID, true ) ?></div>
<?php
the_content( thematic_more_text() );
wp_link_pages( array( 'before' => sprintf( '<nav class="page-link">%s', __( 'Pages:', 'thematic' ) ),
'after' => '</nav>' ) );
?>
</div><!-- .entry-content -->
<?php
// creating the post footer
thematic_postfooter();
?>
</article><!-- #post -->
<?php
// action hook for placing contentbelow #post
thematic_belowpost();
// action hook for calling the comments_template
thematic_comments_template();
// end loop
endwhile;
// filter for manipulating the output of the #content closing element
echo apply_filters( 'thematic_close_id_content', '</div><!-- #content -->' . "\n\n" );
// action hook for placing content below #content
thematic_belowcontent();
// filter for manipulating the output of the #container closing element
echo apply_filters( 'thematic_close_id_container', '</div><!-- #container -->' . "\n\n" );
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();