PageRenderTime 56ms CodeModel.GetById 18ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1
  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. <div id="footer">
  13. <?php if ( ! is_singular() ) : ?>
  14. <p>
  15. <?php next_posts_link( '<span class="prev">' . __( 'Older Posts', 'esquire' ) . '</span>' ); ?>
  16. <?php previous_posts_link( '<span class="next">' . __( 'Newer Posts', 'esquire' ) . '</span>' ); ?>
  17. </p>
  18. <?php elseif ( is_single() && ! is_attachment() ) : ?>
  19. <p>
  20. <?php previous_post_link( '%link', __( '<span class="prev">Previous Post</span>', 'esquire' ) ); ?>
  21. <?php next_post_link( '%link', __( '<span class="next">Next post</span>', 'esquire' ) ); ?>
  22. </p>
  23. <?php
  24. elseif ( is_attachment() ) :
  25. if ( wp_attachment_is_image( $post->ID ) ) :
  26. ?>
  27. <p id="image-nav">
  28. <span class="prev"><?php previous_image_link( ); ?></span>
  29. <span class="next"><?php next_image_link( ); ?></span>
  30. </p>
  31. <?php
  32. endif; // end mime type check
  33. endif; // end footer navigation check
  34. ?>
  35. </div>
  36. </div>
  37. <div id="credit">
  38. <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>
  39. </div>
  40. <?php wp_footer(); ?>
  41. </body>
  42. </html>