Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (52 sloc) 3.21 kB
217f7fd Importing the News theme 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 *
8 * @package News
9 * @subpackage Template
10 */
11
12 get_header(); ?>
13
14 <?php do_atomic( 'before_content' ); // Before content hook ?>
15
16 <div id="content">
17
18 <?php do_atomic( 'open_content' ); // Open content hook ?>
19
20 <div class="hfeed">
21
22 <?php if ( have_posts() ) : ?>
23
24 <?php while ( have_posts() ) : the_post(); ?>
25
26 <?php do_atomic( 'before_entry' ); // Before loop hook ?>
27
28 <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
29
30 <?php do_atomic( 'open_entry' ); // Open loop hook ?>
31
32 <?php echo apply_atomic_shortcode( 'entry_utility', '<div class="entry-utility">' . __( '[entry-print-link] [entry-email-link] [entry-popup-shortlink]', hybrid_get_textdomain() ) . '</div>' ); ?>
33
34 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
35
36 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-terms taxonomy="category" before=" in "] [entry-edit-link before=" | "]', hybrid_get_textdomain() ) . '</div>' ); ?>
37
38 <div class="entry-content">
39 <?php if ( wp_attachment_is_image( get_the_ID() ) ) : ?>
40
41 <p class="attachment-image">
42 <img class="aligncenter" src="<?php echo wp_get_attachment_url(); ?>" alt="<?php the_title_attribute(); ?>" title="<?php the_title_attribute(); ?>" />
43 </p><!-- .attachment-image -->
44
45 <?php else : ?>
46
47 <?php hybrid_attachment(); ?>
48
49 <p class="download">
50 <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>
51 </p><!-- .download -->
52
53 <?php endif; ?>
54
55 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', hybrid_get_textdomain() ) ); ?>
56 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_textdomain() ), 'after' => '</p>' ) ); ?>
57 </div><!-- .entry-content -->
58
59 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '<span class="share">Share this on:</span> [entry-mixx-link] [entry-delicious-link] [entry-digg-link] [entry-facebook-link] [entry-twitter-link]', hybrid_get_textdomain() ) . '</div>' ); ?>
60
61 <?php do_atomic( 'close_loop' ); // Close loop hook ?>
62
63 </div><!-- .hentry -->
64
65 <?php do_atomic( 'after_entry' ); // After loop hook ?>
66
67 <?php get_sidebar( 'after-singular' ); ?>
68
69 <?php do_atomic( 'after_singular' ); // After singular hook ?>
70
71 <?php comments_template( '/comments.php', true ); ?>
72
73 <?php endwhile; ?>
74
75 <?php endif; ?>
76
77 </div><!-- .hfeed -->
78
79 <?php do_atomic( 'close_content' ); // Close content hook ?>
80
81 <?php get_template_part( 'loop-nav' ); ?>
82
83 </div><!-- #content -->
84
85 <?php do_atomic( 'after_content' ); // After content hook ?>
86
87 <?php get_footer(); ?>
Something went wrong with that request. Please try again.