Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php spicepress_before_gallery_section_trigger(); ?>
- <?php $gallery_options = get_theme_mod('spicepress_gallery_content');
- $gallery_section_enable = get_theme_mod('gallery_section_enable','on');
- if($gallery_section_enable !='off')
- {
- $gellary_animation_speed = get_theme_mod('gellary_animation_speed', 3000);
- $gellarysettings=array('animationSpeed'=>$gellary_animation_speed);
- wp_register_script('spicepress-gellary',get_template_directory_uri().'/js/front-page/gallary.js',array('jquery'));
- wp_localize_script('spicepress-gellary','gellary_settings',$gellarysettings);
- wp_enqueue_script('spicepress-gellary');
- ?>
- <!-- Additional Section / Gallery -->
- <section class="gallery-section bg-gallery top-bottom">
- <!-- Section Title -->
- <?php
- $home_gallery_section_title = get_theme_mod('home_gallery_section_title',__('Our work','spicepress'));
- $home_gallery_section_discription = get_theme_mod('home_gallery_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.');
- if(($home_gallery_section_title) || ($home_gallery_section_discription)!='' ) {
- ?>
- <!-- Section Title -->
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <div class="section-header wow fadeInUp animated animated" data-wow-duration="500ms" data-wow-delay="0ms">
- <?php if($home_gallery_section_title) {?>
- <h1 class="widget-title"><?php echo $home_gallery_section_title; ?></h1><?php } ?>
- <div class="widget-separator"><span></span></div>
- <?php if($home_gallery_section_discription) {?>
- <p class="wow fadeInDown animated"><?php echo $home_gallery_section_discription; ?></p><?php } ?>
- </div>
- </div>
- </div>
- </div>
- <!-- /Section Title -->
- <?php } ?>
- <div id="gallery-carousel" class="owl-carousel owl-theme horizontal-nav">
- <?php
- $gallery_options = json_decode($gallery_options);
- if( $gallery_options!='' )
- {
- foreach($gallery_options as $gallery_iteam){ ?>
- <?php
- $title = ! empty( $gallery_iteam->title ) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->title, 'Gallery section' ) : '';
- $test_link = ! empty( $gallery_iteam->link) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->link, 'Gallery section' ) : '';
- $gallary_image = ! empty( $gallery_iteam->image_url) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->image_url, 'Gallery section' ) : '';
- $open_new_tab = $gallery_iteam->open_new_tab;
- ?>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <?php if($gallery_iteam->image_url!=''){ ?>
- <img class="img-responsive" src="<?php echo $gallary_image; ?>"/>
- <?php } ?>
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <div class="gallery-showcase-icons">
- <a href="<?php echo $gallery_iteam->image_url; ?>" title="<?php echo $title; ?>" data-lightbox="image" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <?php if(!empty( $test_link )): ?>
- <a href="<?php echo $test_link; ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?> class="hover_thumb">
- <?php endif; ?>
- <i class="fa fa-link"></i>
- <?php if(!empty( $test_link )): ?>
- </a>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </figure>
- <div style="text-align: center;">
- <span>
- <?php echo $title; ?>
- </span>
- </div>
- </article>
- </div>
- <?php }
- } else { ?>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery1.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery1.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery2.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery2.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery3.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery3.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery4.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery4.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery5.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery5.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery6.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery6.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery7.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery7.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery8.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery8.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery9.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery9.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery10.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery10.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery11.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery11.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <div class="item">
- <article class="gallery-image border0">
- <figure class="gallery-thumbnail">
- <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery12.jpg" />
- <div class="gallery-showcase-overlay">
- <div class="gallery-showcase-icons">
- <a href="<?php echo get_template_directory_uri();?>/images/gallery/gallery12.jpg" data-lightbox="image" title="Gallery 1" class="hover_thumb"><i class="fa fa-picture-o"></i></a>
- <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
- </div>
- </div>
- </figure>
- </article>
- </div>
- <?php } ?>
- </div>
- </section>
- <!-- /Additional Section / Gallery -->
- <div class="clearfix"></div>
- <?php } ?>
- <?php spicepress_after_gallery_section_trigger(); ?>
Add Comment
Please, Sign In to add comment