Advertisement
elephantspike

page.php

Nov 11th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Adventure_Journal
  5. */
  6. global $multipage;
  7. get_header();
  8. ?>
  9. <div class="content" <?php ctx_aj_getlayout(); ?>>
  10. <div id="col-main" style="<?php echo ctx_aj_customwidth('content'); ?>">
  11. <div id="main-content" <?php //ctx_aj_crinkled_paper(); ?>>
  12. <!-- BEGIN Main Content-->
  13. <?php
  14. //Start the Loop
  15. if (have_posts()) : while (have_posts()) : the_post(); ?>
  16.  
  17. <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  18. <?php echo sprintf('<h1 class="storytitle">%s</h1>',get_the_title());?>
  19.  
  20. <?php
  21. if(!function_exists('is_admin_bar_showing')){
  22. edit_post_link(__('Edit Page', 'adventurejournal'));
  23. } else if ( !is_admin_bar_showing() ){
  24. edit_post_link(__('Edit Page', 'adventurejournal'));
  25. }
  26. ?>
  27.  
  28. <div class="storycontent">
  29. <?php the_content(__('(more...)')); ?>
  30. </div>
  31.  
  32. <?php if ( comments_open() || have_comments() || $multipage ) : ?>
  33. <div class="feedback">
  34. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'adventurejournal' ), 'after' => '</div>' ) ); ?>
  35. <?php if ( comments_open() || have_comments() ) : ?>
  36. <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
  37. <?php endif; ?>
  38. </div>
  39. <?php endif; ?>
  40.  
  41. </div>
  42. <br/>
  43. <?php if ( comments_open() || have_comments() ) : ?>
  44. <?php comments_template(); // Get wp-comments.php template ?>
  45. <?php endif; ?>
  46. <?php endwhile; else: ?>
  47. <p><?php _e('Sorry, no posts matched your criteria.','adventurejournal'); ?></p>
  48. <?php endif; ?>
  49.  
  50. <?php posts_nav_link(' &#8212; ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
  51. <!-- END Main Content-->
  52.  
  53. </div>
  54. </div>
  55. <?php get_sidebar(); ?>
  56. <div class="clear"></div>
  57. </div>
  58. <?php get_footer(); ?>
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement