Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 83 lines (50 sloc) 2.908 kb
7c50385 Adding the initial Prototype files and folders.
greenshady authored
1 <?php
2 /**
3 * Attachment Template
4 *
5 * This is the default attachment template. It is used when visiting the singular view of a post attachment
6 * page (images, videos, audio, etc.).
7 *
839713b Updates galore for the Prototype theme.
greenshady authored
8 * @package Prototype
7c50385 Adding the initial Prototype files and folders.
greenshady authored
9 * @subpackage Template
10 */
11
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
12 get_header(); // Loads the header.php template. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
13
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
14 <?php do_atomic( 'before_content' ); // prototype_before_content ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
15
16 <div id="content">
17
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
18 <?php do_atomic( 'open_content' ); // prototype_open_content ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
19
20 <div class="hfeed">
21
22 <?php if ( have_posts() ) : ?>
23
24 <?php while ( have_posts() ) : the_post(); ?>
25
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
26 <?php do_atomic( 'before_entry' ); // prototype_before_entry ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
27
28 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
29
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
30 <?php do_atomic( 'open_entry' ); // prototype_open_entry ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
31
32 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
33
34 <div class="entry-content">
35 <?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
36
37 <p class="attachment-image">
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
38 <?php echo wp_get_attachment_image( get_the_ID(), 'full', false, array( 'class' => 'aligncenter' ) ); ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
39 </p><!-- .attachment-image -->
40
41 <?php else : ?>
42
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
43 <?php hybrid_attachment(); // Function for handling non-image attachments. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
44
45 <p class="download">
46 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="enclosure" type="<?php echo get_post_mime_type(); ?>"><?php printf( __( 'Download &quot;%1$s&quot;', hybrid_get_textdomain() ), the_title( '<span class="fn">', '</span>', false) ); ?></a>
47 </p><!-- .download -->
48
49 <?php endif; ?>
50
51 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
52 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
53 </div><!-- .entry-content -->
54
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
55 <?php if ( wp_attachment_is_image( get_the_ID() ) ) echo do_shortcode( sprintf( '[gallery id="%1$s" exclude="%2$s" columns="8"]', $post->post_parent, get_the_ID() ) ); ?>
56
57 <?php do_atomic( 'close_entry' ); // prototype_close_entry ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
58
59 </div><!-- .hentry -->
60
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
61 <?php do_atomic( 'after_entry' ); // prototype_after_entry ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
62
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
63 <?php get_sidebar( 'after-singular' ); // Loads the sidebar-after-singular.php template. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
64
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
65 <?php do_atomic( 'after_singular' ); // prototype_after_singular ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
66
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
67 <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
68
69 <?php endwhile; ?>
70
71 <?php endif; ?>
72
73 </div><!-- .hfeed -->
74
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
75 <?php do_atomic( 'close_content' ); // prototype_close_content ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
76
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
77 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
78
79 </div><!-- #content -->
80
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
81 <?php do_atomic( 'after_content' ); // prototype_after_content ?>
7c50385 Adding the initial Prototype files and folders.
greenshady authored
82
b65aeaf Tons of updates to get Prototype ready for release.
greenshady authored
83 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.