dangermoose

template-home.php

Mar 26th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Home page
  4. *
  5. */
  6.     global $options, $post, $themeslug;
  7.     $home_section_order = get_post_meta($post->ID, 'home_section_order' , true);
  8.    
  9.     if(!$home_section_order) {
  10.         $home_section_order = 'home_section,breadcrumbs';
  11.     }
  12.    
  13.     get_header();
  14. ?>
  15.  
  16. <div class="container">
  17.     <div class="row">
  18.         <?php
  19.             foreach(explode(",", $home_section_order) as $key) {
  20.                 $fn = 'response_' . $key;
  21.                 if(function_exists($fn)) {
  22.                     call_user_func_array($fn, array());
  23.                 }
  24.             }
  25.         ?> 
  26.     </div><!--end row-->
  27. </div><!--end container-->
  28.  
  29. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment