cspeich

Fix for Quality Theme and Mooberry Book Manager #1

Oct 17th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.05 KB | None | 0 0
  1. <?php
  2.         if('page' == get_option('show_on_front')){ get_template_part('index');}
  3.         else {
  4.         /* mooberry dreams -- added check for taxonomy grid */
  5.         if (get_post_type() == 'mbdb_tax_grid' && is_main_query() && !is_admin()) {
  6.         get_template_part('mbdb-tax-grid');
  7.         } else {   
  8.         /* end mooberry dreams changes */
  9.         get_header();
  10.         $quality_pro_options=theme_data_setup();
  11.         $current_options = wp_parse_args(  get_option( 'quality_pro_options', array() ), $quality_pro_options );
  12.         //****** get index static banner  ********
  13.         get_template_part('index', 'static');          
  14.         //****** get index service  *********/
  15.         if (  $current_options['service_enable'] == true ) {
  16.         get_template_part('index', 'service');
  17.         }
  18.         //****** get index Projects  *********/
  19.         if (  $current_options['home_projects_enabled'] == true ) {
  20.         get_template_part('index', 'projects');
  21.         }
  22.         //****** get index Blog  *********/
  23.         if (  $current_options['home_blog_enabled'] == true ) {
  24.         get_template_part('index', 'blog');
  25.         }
  26.         } // mooberry dreams change
  27.         get_footer();
  28.         }  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment