Advertisement
Guest User

front-page.php

a guest
Oct 23rd, 2015
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php get_header();
  2. $wl_theme_options = weblizar_get_options();
  3. $wl_theme_options['_frontpage'];
  4. if ($wl_theme_options['_frontpage']=="1" && is_front_page())
  5. {   get_template_part('home','slideshow');
  6.     if($wl_theme_options['portfolio_home'] == "1") {
  7.     get_template_part('home','portfolio');
  8.     }
  9.     get_template_part('home','services');
  10.     if($wl_theme_options['show_blog'] == "1") {
  11.     get_template_part('home','blog');
  12.     }
  13.     if($wl_theme_options['fc_home'] == "1") {
  14.     get_template_part('footer','callout');
  15.     }
  16.     get_footer();
  17. }
  18.  else
  19. {  
  20.     if(is_page()){
  21.     get_template_part('page');
  22.     }else{
  23.         get_template_part('index');
  24.     }
  25. }   ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement