FRONT PAGE:
<?php get_header();
if ( get_option( ‘show_on_front’ ) == ‘page’ ) {
get_template_part(‘breadcrums’); ?>
<div class=”container”>
<div class=”row enigma_blog_wrapper”>
<div class=”col-md-8″>
<?php get_template_part(‘post’,’page’); ?>
</div>
<?php get_sidebar(); ?>
</div>
</div> <?php
} else {
$wl_theme_options = enigma_parallax_get_options();
if($wl_theme_options[‘slider_home’] == “1”) {
get_template_part(‘home’,’slideshow’);
}
if($wl_theme_options[‘service_home’] == “1”) {
get_template_part(‘home’,’services’);
}
if($wl_theme_options[‘portfolio_home’] == “1”) {
get_template_part(‘home’,’portfolio’);
}
if($wl_theme_options[‘show_blog’] == “1”) {
get_template_part(‘home’,’blog’);
}
if($wl_theme_options[‘show_team’] == “1”) {
get_template_part(‘home’,’team’);
}
if($wl_theme_options[‘fc_home’] == “1”) {
get_template_part(‘footer’,’callout’);
}
}
get_footer();
?>
home-slideshow :
<!– Carousel
================================================== –>
<div id=”myCarousel” class=”carousel slide” data-ride=”carousel”>
<div class=”carousel-inner”>
<?php $wl_theme_options = weblizar_get_options(); $j=1;
for($i=1; $i<=3; $i++){ ?>
<?php if($wl_theme_options[‘slide_image_’.$i]!=”) {
?>
<div class=”item <?php if($j==1) echo “active”; ?>”>
” class=”img-responsive” alt=”<?php echo esc_attr($wl_theme_options[‘slide_title_’.$i]); ?>”>
<div class=”container”>
<div class=”carousel-caption”>
<?php if($wl_theme_options[‘slide_title_’.$i]!=”) { ?>
<div class=”carousel-text”>
<h1><?php echo esc_attr($wl_theme_options[‘slide_title_’.$i]); ?></h1>
<?php
if($wl_theme_options[‘slide_desc_’.$i]!=”) { ?>
<ul class=”list-unstyled carousel-list”>
<?php echo esc_attr($wl_theme_options[‘slide_desc_’.$i]); ?>
<?php }
if($wl_theme_options[‘slide_btn_text_’.$i]!=”) { ?>
” role=”button”><?php echo esc_attr($wl_theme_options[‘slide_btn_text_’.$i]); ?>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div>
<?php $j++; } } ?>
</div>
<?php for($i=0; $i<$j-1; $i++) { ?>
<li data-target=”#myCarousel” data-slide-to=”<?php echo $i; ?>” <?php if($i==0) { echo ‘class=”active”‘; } ?> >
<?php } ?>
<span class=”glyphicon glyphicon-chevron-left”></span>
<span class=”glyphicon glyphicon-chevron-right”></span>
<div class=”enigma_slider_shadow”></div>
</div><!– /.carousel –>
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
-
This reply was modified 8 years, 2 months ago by
bdbrown.