dangermoose

home-actions.php

Mar 26th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.00 KB | None | 0 0
  1. <?php
  2. /**
  3. * Page actions used by the CyberChimps Response Core Framework
  4. *
  5. * Author: Tyler Cunningham
  6. * Copyright: © 2012
  7. * {@link http://cyberchimps.com/ CyberChimps LLC}
  8. *
  9. * Released under the terms of the GNU General Public License.
  10. * You should have received a copy of the GNU General Public License,
  11. * along with this software. In the main directory, see: /licensing/
  12. * If not, see: {@link http://www.gnu.org/licenses/}.
  13. *
  14. * @package Response
  15. * @since 1.0
  16. */
  17.  
  18. /**
  19. * Response page actions
  20. */
  21.  
  22. add_action('response_home_section', 'response_home_section_content' );
  23.  
  24. /**
  25. * Sets up the page content.
  26. *
  27. * @since 1.0
  28. */
  29. function response_home_section_content() {
  30.     global $options, $themeslug, $post, $sidebar, $content_grid;
  31.    
  32.     response_sidebar_init();
  33.    
  34.     $hidetitle = get_post_meta($post->ID, 'hide_page_title' , true);
  35.  
  36. ?>
  37. <div class="row">
  38.     <!--Begin response_before_content_sidebar hook-->
  39.         <?php response_before_content_sidebar(); ?>
  40.     <!--End response_before_content_sidebar hook-->
  41.            
  42.         <div id="content" class="<?php echo $content_grid; ?>">
  43.        
  44.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  45.        
  46.             <div class="post_container">
  47.            
  48.                 <div class="post" id="post-<?php the_ID(); ?>">
  49.                 <?php if ($hidetitle == "on" OR $hidetitle == ""): ?>
  50.                     <h2 class="posts_title"><?php the_title(); ?></h2>
  51.                 <?php endif;?>
  52.  
  53.                     <div class="entry">
  54.  
  55.                         <?php the_content(); ?>
  56.                        
  57.                     </div><!--end entry-->
  58.                    
  59.                     <div style=clear:both;></div>
  60.                     <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
  61.  
  62.  
  63.                 <?php edit_post_link('Edit', '<p>', '</p>'); ?>
  64.  
  65.                 </div><!--end post-->
  66.        
  67.             <?php comments_template(); ?>
  68.  
  69.             <?php endwhile; endif; ?>
  70.             </div><!--end post_container-->
  71.                
  72.     </div><!--end content_left-->
  73.    
  74.     <!--Begin response_after_content_sidebar hook-->
  75.         <?php response_after_content_sidebar(); ?>
  76.     <!--End response_after_content_sidebar hook-->
  77. </div>
  78. <?php
  79. }
  80.  
  81. /**
  82. * End
  83. */
  84.  
  85. ?>
Advertisement
Add Comment
Please, Sign In to add comment