This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

page.php

By: a guest on Oct 28th, 2012  |  syntax: None  |  size: 1.02 KB  |  views: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3. * Page template used by Eclipse.
  4. *
  5. * Authors: Tyler Cunningham, Trent Lapinski
  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 Eclipse.
  15. * @since 1.0
  16. */
  17.  
  18. /* Header call. */
  19.  
  20.         get_header();
  21.        
  22. /* End header. */      
  23.  
  24. /* Define global variables. */
  25.         global $options, $post, $ec_themeslug, $sidebar;
  26.        
  27.         $page_section_order = get_post_meta($post->ID, $ec_themeslug.'_page_section_order' , true);
  28.         if(!$page_section_order) {
  29.                 $page_section_order = 'page_section';
  30.         }
  31.        
  32. /* End define global variables. */
  33. ?>
  34.  
  35.         <?php
  36.                 foreach(explode(",", $page_section_order) as $key) {
  37.                         $fn = 'response_' . $key;
  38.                         if(function_exists($fn)) {
  39.                         call_user_func_array($fn, array());
  40.                         }
  41.                 }
  42.         ?>
  43.  
  44. <?php get_footer(); ?>
clone this paste RAW Paste Data