Guest User

Untitled

a guest
Mar 13th, 2019
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.81 KB | None | 0 0
  1. <?php spicepress_before_gallery_section_trigger(); ?>
  2. <?php $gallery_options = get_theme_mod('spicepress_gallery_content');
  3. $gallery_section_enable = get_theme_mod('gallery_section_enable','on');
  4. if($gallery_section_enable !='off')
  5. {
  6. $gellary_animation_speed = get_theme_mod('gellary_animation_speed', 3000);
  7. $gellarysettings=array('animationSpeed'=>$gellary_animation_speed);
  8.  
  9.  
  10. wp_register_script('spicepress-gellary',get_template_directory_uri().'/js/front-page/gallary.js',array('jquery'));
  11. wp_localize_script('spicepress-gellary','gellary_settings',$gellarysettings);
  12. wp_enqueue_script('spicepress-gellary');
  13. ?>
  14. <!-- Additional Section / Gallery -->
  15. <section class="gallery-section bg-gallery top-bottom">
  16.  
  17. <!-- Section Title -->
  18. <?php
  19.  
  20. $home_gallery_section_title = get_theme_mod('home_gallery_section_title',__('Our work','spicepress'));
  21. $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.');
  22. if(($home_gallery_section_title) || ($home_gallery_section_discription)!='' ) {
  23. ?>
  24. <!-- Section Title -->
  25. <div class="container">
  26. <div class="row">
  27. <div class="col-md-12">
  28. <div class="section-header wow fadeInUp animated animated" data-wow-duration="500ms" data-wow-delay="0ms">
  29. <?php if($home_gallery_section_title) {?>
  30. <h1 class="widget-title"><?php echo $home_gallery_section_title; ?></h1><?php } ?>
  31. <div class="widget-separator"><span></span></div>
  32. <?php if($home_gallery_section_discription) {?>
  33. <p class="wow fadeInDown animated"><?php echo $home_gallery_section_discription; ?></p><?php } ?>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <!-- /Section Title -->
  39. <?php } ?>
  40.  
  41.  
  42.  
  43.  
  44. <div id="gallery-carousel" class="owl-carousel owl-theme horizontal-nav">
  45. <?php
  46. $gallery_options = json_decode($gallery_options);
  47. if( $gallery_options!='' )
  48. {
  49. foreach($gallery_options as $gallery_iteam){ ?>
  50. <?php
  51. $title = ! empty( $gallery_iteam->title ) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->title, 'Gallery section' ) : '';
  52.  
  53. $test_link = ! empty( $gallery_iteam->link) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->link, 'Gallery section' ) : '';
  54.  
  55. $gallary_image = ! empty( $gallery_iteam->image_url) ? apply_filters( 'spicepress_translate_single_string', $gallery_iteam->image_url, 'Gallery section' ) : '';
  56.  
  57.  
  58. $open_new_tab = $gallery_iteam->open_new_tab;
  59.  
  60.  
  61.  
  62. ?>
  63. <div class="item">
  64. <article class="gallery-image border0">
  65. <figure class="gallery-thumbnail">
  66. <?php if($gallery_iteam->image_url!=''){ ?>
  67. <img class="img-responsive" src="<?php echo $gallary_image; ?>"/>
  68. <?php } ?>
  69. <div class="gallery-showcase-overlay">
  70. <div class="gallery-showcase-icons">
  71. <div class="gallery-showcase-icons">
  72.  
  73. <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>
  74.  
  75. <?php if(!empty( $test_link )): ?>
  76. <a href="<?php echo $test_link; ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?> class="hover_thumb">
  77. <?php endif; ?>
  78.  
  79. <i class="fa fa-link"></i>
  80. <?php if(!empty( $test_link )): ?>
  81. </a>
  82. <?php endif; ?>
  83.  
  84.  
  85. </div>
  86. </div>
  87. </div>
  88. </figure>
  89. <div style="text-align: center;">
  90. <span>
  91. <?php echo $title; ?>
  92. </span>
  93. </div>
  94. </article>
  95. </div>
  96.  
  97. <?php }
  98. } else { ?>
  99.  
  100. <div class="item">
  101. <article class="gallery-image border0">
  102. <figure class="gallery-thumbnail">
  103. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery1.jpg" />
  104. <div class="gallery-showcase-overlay">
  105. <div class="gallery-showcase-icons">
  106. <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>
  107. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  108. </div>
  109. </div>
  110. </figure>
  111. </article>
  112. </div>
  113.  
  114. <div class="item">
  115. <article class="gallery-image border0">
  116. <figure class="gallery-thumbnail">
  117. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery2.jpg" />
  118. <div class="gallery-showcase-overlay">
  119. <div class="gallery-showcase-icons">
  120. <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>
  121. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  122. </div>
  123. </div>
  124. </figure>
  125. </article>
  126. </div>
  127.  
  128. <div class="item">
  129. <article class="gallery-image border0">
  130. <figure class="gallery-thumbnail">
  131. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery3.jpg" />
  132. <div class="gallery-showcase-overlay">
  133. <div class="gallery-showcase-icons">
  134. <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>
  135. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  136. </div>
  137. </div>
  138. </figure>
  139. </article>
  140. </div>
  141.  
  142. <div class="item">
  143. <article class="gallery-image border0">
  144. <figure class="gallery-thumbnail">
  145. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery4.jpg" />
  146. <div class="gallery-showcase-overlay">
  147. <div class="gallery-showcase-icons">
  148. <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>
  149. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  150. </div>
  151. </div>
  152. </figure>
  153. </article>
  154. </div>
  155.  
  156. <div class="item">
  157. <article class="gallery-image border0">
  158. <figure class="gallery-thumbnail">
  159. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery5.jpg" />
  160. <div class="gallery-showcase-overlay">
  161. <div class="gallery-showcase-icons">
  162. <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>
  163. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  164. </div>
  165. </div>
  166. </figure>
  167. </article>
  168. </div>
  169.  
  170. <div class="item">
  171. <article class="gallery-image border0">
  172. <figure class="gallery-thumbnail">
  173. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery6.jpg" />
  174. <div class="gallery-showcase-overlay">
  175. <div class="gallery-showcase-icons">
  176. <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>
  177. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  178. </div>
  179. </div>
  180. </figure>
  181. </article>
  182. </div>
  183.  
  184. <div class="item">
  185. <article class="gallery-image border0">
  186. <figure class="gallery-thumbnail">
  187. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery7.jpg" />
  188. <div class="gallery-showcase-overlay">
  189. <div class="gallery-showcase-icons">
  190. <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>
  191. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  192. </div>
  193. </div>
  194. </figure>
  195. </article>
  196. </div>
  197.  
  198. <div class="item">
  199. <article class="gallery-image border0">
  200. <figure class="gallery-thumbnail">
  201. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery8.jpg" />
  202. <div class="gallery-showcase-overlay">
  203. <div class="gallery-showcase-icons">
  204. <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>
  205. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  206. </div>
  207. </div>
  208. </figure>
  209. </article>
  210. </div>
  211.  
  212. <div class="item">
  213. <article class="gallery-image border0">
  214. <figure class="gallery-thumbnail">
  215. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery9.jpg" />
  216. <div class="gallery-showcase-overlay">
  217. <div class="gallery-showcase-icons">
  218. <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>
  219. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  220. </div>
  221. </div>
  222. </figure>
  223. </article>
  224. </div>
  225.  
  226. <div class="item">
  227. <article class="gallery-image border0">
  228. <figure class="gallery-thumbnail">
  229. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery10.jpg" />
  230. <div class="gallery-showcase-overlay">
  231. <div class="gallery-showcase-icons">
  232. <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>
  233. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  234. </div>
  235. </div>
  236. </figure>
  237. </article>
  238. </div>
  239.  
  240. <div class="item">
  241. <article class="gallery-image border0">
  242. <figure class="gallery-thumbnail">
  243. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery11.jpg" />
  244. <div class="gallery-showcase-overlay">
  245. <div class="gallery-showcase-icons">
  246. <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>
  247. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  248. </div>
  249. </div>
  250. </figure>
  251. </article>
  252. </div>
  253.  
  254. <div class="item">
  255. <article class="gallery-image border0">
  256. <figure class="gallery-thumbnail">
  257. <img class="img-responsive" src="<?php echo get_template_directory_uri();?>/images/gallery/gallery12.jpg" />
  258. <div class="gallery-showcase-overlay">
  259. <div class="gallery-showcase-icons">
  260. <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>
  261. <a href="#" class="hover_thumb"><i class="fa fa-link"></i></a>
  262. </div>
  263. </div>
  264. </figure>
  265. </article>
  266. </div>
  267.  
  268. <?php } ?>
  269. </div>
  270. </section>
  271. <!-- /Additional Section / Gallery -->
  272. <div class="clearfix"></div>
  273. <?php } ?>
  274. <?php spicepress_after_gallery_section_trigger(); ?>
Add Comment
Please, Sign In to add comment