PageRenderTime 56ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/code/cake/app/webroot/cp/wp-content/plugins/commentpress-core/themes/commentpress-theme/page.php

https://github.com/DigitalPaulScholtenProject/DPSP-Platform
PHP | 156 lines | 77 code | 68 blank | 11 comment | 9 complexity | 44719d4ca04588ca6ef0eedee7b86f07 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <!-- page.php -->
  3. <div id="wrapper">
  4. <div id="main_wrapper" class="clearfix">
  5. <div id="page_wrapper">
  6. <div id="content">
  7. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  8. <div class="post<?php echo commentpress_get_post_css_override( get_the_ID() ); ?>" id="post-<?php the_ID(); ?>">
  9. <?php
  10. // if we've elected to show the title...
  11. if ( commentpress_get_post_title_visibility( get_the_ID() ) ) {
  12. ?>
  13. <h2 class="post_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  14. <?php
  15. }
  16. ?>
  17. <?php
  18. // if we've elected to show the meta...
  19. if ( commentpress_get_post_meta_visibility( get_the_ID() ) ) {
  20. ?>
  21. <div class="search_meta">
  22. <?php commentpress_echo_post_meta(); ?>
  23. </div>
  24. <?php
  25. }
  26. ?>
  27. <?php global $more; $more = true; the_content(''); ?>
  28. <?php
  29. // NOTE: Comment permalinks are filtered if the comment is not on the first page
  30. // in a multipage post... see: commentpress_multipage_comment_link in functions.php
  31. echo commentpress_multipager();
  32. ?>
  33. <?php
  34. // if we have the plugin enabled...
  35. if ( is_object( $commentpress_core ) ) {
  36. // get page num
  37. $num = $commentpress_core->nav->get_page_number( get_the_ID() );
  38. //print_r( $num ); die();
  39. // if we get one
  40. if ( $num ) {
  41. // is it arabic?
  42. if ( is_numeric( $num ) ) {
  43. // add page number
  44. ?><div class="running_header_bottom">page <?php echo $num; ?></div><?php
  45. } else {
  46. // add page number
  47. ?><div class="running_header_bottom">page <?php echo strtolower( $num ); ?></div><?php
  48. }
  49. }
  50. }
  51. ?>
  52. </div><!-- /post -->
  53. <?php endwhile; else: ?>
  54. <div class="post">
  55. <h2 class="post_title">Page Not Found</h2>
  56. <p>Sorry, but you are looking for something that isn't here.</p>
  57. <?php get_search_form(); ?>
  58. </div><!-- /post -->
  59. <?php endif; ?>
  60. </div><!-- /content -->
  61. </div><!-- /page_wrapper -->
  62. </div><!-- /main_wrapper -->
  63. </div><!-- /wrapper -->
  64. <?php get_sidebar(); ?>
  65. <?php get_footer(); ?>