5
5
6
6
get_header (); ?>
7
7
8
- <div id="primary" class="image-attachment">
9
- <div id="content" role="main">
10
-
11
- <?php the_post (); ?>
12
-
13
- <nav class="pagination">
14
- <h3 class="assistive-text"><?php _e ( 'Image navigation ' , 'twentyeleven ' ); ?> </h3>
15
- <?php previous_image_link ( false , __ ( '← Previous ' , 'twentyeleven ' ) ); ?>
16
- <?php next_image_link ( false , __ ( 'Next → ' , 'twentyeleven ' ) ); ?>
17
- </nav>
18
-
19
- <article id="post-<?php the_ID (); ?> " <?php post_class (); ?> >
20
- <header class="entry-header">
21
- <h1 class="entry-title"><?php the_title (); ?> </h1>
22
-
23
- <div class="entry-meta">
24
- <?php
25
- $ metadata = wp_get_attachment_metadata ();
26
- printf ( __ ( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a> ' , 'twentyeleven ' ),
27
- esc_attr ( get_the_time () ),
28
- get_the_date (),
29
- esc_url ( wp_get_attachment_url () ),
30
- $ metadata ['width ' ],
31
- $ metadata ['height ' ],
32
- esc_url ( get_permalink ( $ post ->post_parent ) ),
33
- get_the_title ( $ post ->post_parent )
34
- );
35
- ?>
36
- <?php edit_post_link ( __ ( 'Edit ' , 'twentyeleven ' ), '<span class="edit-link"> ' , '</span> ' ); ?>
37
- </div><!-- .entry-meta -->
38
-
39
- </header><!-- .entry-header -->
40
-
41
- <div class="entry-content">
42
-
43
- <div class="entry-attachment">
44
- <div class="attachment">
8
+ <?php the_post (); ?>
9
+
10
+ <div class="content-right twelve columns">
11
+ <div id="content">
12
+ <header class="entry-header">
13
+ <h1 class="entry-title"><?php the_title (); ?> </h1>
14
+ <div class="entry-posted">
15
+ <?php
16
+ jq_posted_on ();
17
+ edit_post_link ( __ ( 'Edit ' , 'twentyeleven ' ), ' • <span class="edit-link"> ' , '</span> ' );
18
+ ?>
19
+ </div>
20
+ </header><!-- .entry-header -->
21
+
22
+ <nav class="pagination">
23
+ <h3 class="assistive-text"><?php _e ( 'Image navigation ' , 'twentyeleven ' ); ?> </h3>
24
+ <?php previous_image_link ( false , __ ( '← Previous ' , 'twentyeleven ' ) ); ?>
25
+ <?php next_image_link ( false , __ ( 'Next → ' , 'twentyeleven ' ) ); ?>
26
+ </nav>
27
+
28
+ <div class="entry-content">
29
+
30
+ <div class="entry-attachment">
31
+ <div class="attachment">
45
32
<?php
46
33
/**
47
34
* Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
66
53
$ next_attachment_url = wp_get_attachment_url ();
67
54
}
68
55
?>
69
- <a href="<?php echo esc_url ( $ next_attachment_url ); ?> " title="<?php echo esc_attr ( get_the_title () ); ?> " rel="attachment"><?php
70
- $ attachment_size = 848 ;
71
- echo wp_get_attachment_image ( $ post ->ID , array ( $ attachment_size , 1024 ) ); // filterable image width with 1024px limit for image height.
72
- ?> </a>
73
-
74
- <?php if ( ! empty ( $ post ->post_excerpt ) ) : ?>
75
- <div class="entry-caption">
76
- <?php the_excerpt (); ?>
77
- </div>
78
- <?php endif ; ?>
79
- </div><!-- .attachment -->
80
-
81
- </div><!-- .entry-attachment -->
56
+ <a href="<?php echo esc_url ( $ next_attachment_url ); ?> " title="<?php echo esc_attr ( get_the_title () ); ?> " rel="attachment"><?php
57
+ $ attachment_size = 848 ;
58
+ echo wp_get_attachment_image ( $ post ->ID , array ( $ attachment_size , 1024 ) ); // filterable image width with 1024px limit for image height.
59
+ ?> </a>
82
60
83
- <div class="entry-description">
84
- <?php the_content (); ?>
85
- <?php wp_link_pages ( array ( 'before ' => '<div class="page-link"><span> ' . __ ( 'Pages: ' , 'twentyeleven ' ) . '</span> ' , 'after ' => '</div> ' ) ); ?>
86
- </div><!-- .entry-description -->
61
+ <?php if ( ! empty ( $ post ->post_excerpt ) ) : ?>
62
+ <div class="entry-caption">
63
+ <?php the_excerpt (); ?>
64
+ </div>
65
+ <?php endif ; ?>
66
+ </div><!-- .attachment -->
87
67
88
- </div><!-- .entry-content -->
68
+ </div><!-- .entry-attachment -->
89
69
90
- </article><!-- #post-<?php the_ID (); ?> -->
70
+ <div class="entry-description">
71
+ <?php the_content (); ?>
72
+ <?php wp_link_pages ( array ( 'before ' => '<div class="page-link"><span> ' . __ ( 'Pages: ' , 'twentyeleven ' ) . '</span> ' , 'after ' => '</div> ' ) ); ?>
73
+ </div><!-- .entry-description -->
91
74
92
- <?php comments_template (); ? >
75
+ </div><!-- .entry-content -- >
93
76
94
- </div><!-- #content -->
95
- </div><!-- #primary -->
77
+ </div><!-- #content -->
78
+ <?php get_sidebar (); ?>
79
+ </div>
96
80
97
- <?php get_footer (); ?>
81
+ <?php get_footer (); ?>
0 commit comments