PageRenderTime 34ms CodeModel.GetById 28ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/esquire/footer.php

https://github.com/Bochet/festival_lgbt
PHP | 48 lines | 38 code | 6 blank | 4 comment | 4 complexity | cbd3a1b7089b31a9c9fc88b19b676448 MD5 | raw file
 1<?php
 2/**
 3 * @package Esquire
 4 * @since Esquire 1.0
 5 */
 6?>
 7		<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
 8		<div id="widgets" class="widget-area postbody">
 9			<?php dynamic_sidebar( 'sidebar-1' ); ?>
10		</div><!-- #widgets .widget-area -->
11		<?php endif; ?>
12
13		<div id="footer">
14			<?php if ( ! is_singular() ) : ?>
15				<p>
16					<?php next_posts_link( '<span class="prev">' . __( 'Older Posts', 'esquire' ) . '</span>' ); ?>
17					<?php previous_posts_link( '<span class="next">' . __( 'Newer Posts', 'esquire' ) . '</span>' ); ?>
18				</p>
19
20			<?php elseif ( is_single() && ! is_attachment() ) : ?>
21				<p>
22					<?php previous_post_link( '%link', __( '<span class="prev">Previous Post</span>', 'esquire' ) ); ?>
23					<?php next_post_link( '%link', __( '<span class="next">Next post</span>', 'esquire' ) ); ?>
24				</p>
25
26			<?php
27				elseif ( is_attachment() ) :
28					if ( wp_attachment_is_image( $post->ID ) ) :
29			?>
30				<p id="image-nav">
31					<span class="prev"><?php previous_image_link( ); ?></span>
32					<span class="next"><?php next_image_link( ); ?></span>
33				</p>
34			<?php
35					endif; // end mime type check
36				endif; // end footer navigation check
37			?>
38		</div>
39	</div>
40
41	<div id="credit">
42		<p><strong><a href="http://wordpress.org/" rel="generator">Proudly powered by WordPress</a></strong><span class="sep"> <br /> </span><?php printf( __( 'Theme: %1$s by %2$s.', 'esquire' ), 'Esquire', '<strong><a href="http://matthewbuchanan.name/post/87541244/esquire-theme-for-tumblr" rel="designer">Matthew Buchanan</a></strong>' ); ?></p>
43	</div>
44
45	<?php wp_footer(); ?>
46
47</body>
48</html>