Advertisement
Guest User

page.php

a guest
Oct 28th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  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(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement