Guest User

Untitled

a guest
Aug 20th, 2019
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.62 KB | None | 0 0
  1. <?php
  2. $corpbiz_options=theme_data_setup();
  3. $current_options = wp_parse_args( get_option( 'corpbiz_options', array() ), $corpbiz_options );
  4. $settings= array();
  5. $settings=array('animation'=>$current_options['animation'],'animationSpeed'=>$current_options['animationSpeed'],'slideshowSpeed' =>$current_options['slideshowSpeed']);
  6.  
  7. wp_register_script('corpbiz-slider',get_template_directory_uri().'/js/front-page/slider.js',array('jquery'));
  8. wp_localize_script('corpbiz-slider','slider_settings',$current_options);
  9. wp_enqueue_script('corpbiz-slider'); ?>
  10. <!--Flex Slider-->
  11. <?php if($current_options['home_banner_enabled'] == true) { ?>
  12.  
  13. <div class="main_slider">
  14. <div class="flexslider">
  15. <div class="flex-viewport">
  16. <ul class="slides">
  17. <?php if( $current_options['slider_image_one'] != '' || $current_options['slider_image_one_title'] != '' || $current_options['slider_image_one_description'] !='' || $current_options['slider_one_readmore_link'] != '' ) { ?>
  18. <li>
  19. <?php if($current_options['slider_image_one']!=''): ?>
  20. <img class="img-responsive" src="<?php echo $current_options['slider_image_one']; ?>">
  21. <?php else: ?>
  22. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  23. <?php endif; ?>
  24. <?php if( $current_options['slider_image_one_title'] != '' || $current_options['slider_image_one_description'] !='' || $current_options['slider_one_readmore_link'] != '' ) { ?>
  25. <div class="container slide-caption">
  26. <div class="overlay">
  27. <?php
  28. echo ( $current_options['slider_image_one_title']!='' ? '<h1>'.$current_options['slider_image_one_title'].'</h1>' : '' );
  29. echo ( $current_options['slider_image_one_description']!='' ? '<p>'.$current_options['slider_image_one_description'].'</p>' : '' );
  30. ?>
  31. </div>
  32. <?php if($current_options['slider_one_readmore_text'] != '') { ?>
  33. <div class="flex-btn-div">
  34. <a href="<?php echo $current_options['slider_one_readmore_link']; ?>" <?php if( $current_options['slider_one_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_one_readmore_text']; ?></a>
  35. </div>
  36. <?php } ?>
  37. </div>
  38. <?php } ?>
  39. </li>
  40. <?php } ?>
  41.  
  42. <?php if( $current_options['slider_image_two'] != '' || $current_options['slider_image_two_title'] != '' || $current_options['slider_image_two_description'] !='' || $current_options['slider_two_readmore_link'] != '' ) { ?>
  43. <li>
  44. <?php if($current_options['slider_image_two']!=''): ?>
  45. <img class="img-responsive" src="<?php echo $current_options['slider_image_two']; ?>">
  46. <?php else: ?>
  47. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  48. <?php endif; ?>
  49. <?php if( $current_options['slider_image_two_title'] != '' || $current_options['slider_image_two_description'] !='' || $current_options['slider_two_readmore_link'] != '' ) { ?>
  50. <div class="container slide-caption">
  51. <div class="overlay">
  52. <?php
  53. echo ( $current_options['slider_image_two_title']!='' ? '<h1>'.$current_options['slider_image_two_title'].'</h1>' : '' );
  54. echo ( $current_options['slider_image_two_description']!='' ? '<p>'.$current_options['slider_image_two_description'].'</p>' : '' );
  55. ?>
  56. </div>
  57. <?php if($current_options['slider_two_readmore_text'] != '') { ?>
  58. <div class="flex-btn-div">
  59. <a href="<?php echo $current_options['slider_two_readmore_link']; ?>" <?php if( $current_options['slider_two_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_two_readmore_text']; ?></a>
  60. </div>
  61. <?php } ?>
  62. </div>
  63. <?php } ?>
  64. </li>
  65. <?php } ?>
  66.  
  67. <?php if( $current_options['slider_image_three'] != '' || $current_options['slider_image_three_title'] != '' || $current_options['slider_image_three_description'] !='' || $current_options['slider_three_readmore_link'] != '' ) { ?>
  68. <li>
  69. <?php if($current_options['slider_image_three']!=''): ?>
  70. <img class="img-responsive" src="<?php echo $current_options['slider_image_three']; ?>">
  71. <?php else: ?>
  72. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  73. <?php endif; ?>
  74. <?php if( $current_options['slider_image_three_title'] != '' || $current_options['slider_image_three_description'] !='' || $current_options['slider_three_readmore_link'] != '' ) { ?>
  75. <div class="container slide-caption">
  76. <div class="overlay">
  77. <?php
  78. echo ( $current_options['slider_image_three_title']!='' ? '<h1>'.$current_options['slider_image_three_title'].'</h1>' : '' );
  79. echo ( $current_options['slider_image_three_description']!='' ? '<p>'.$current_options['slider_image_three_description'].'</p>' : '' );
  80. ?>
  81. </div>
  82. <?php if($current_options['slider_three_readmore_text'] != '') { ?>
  83. <div class="flex-btn-div">
  84. <a href="<?php echo $current_options['slider_three_readmore_link']; ?>" <?php if( $current_options['slider_three_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_three_readmore_text']; ?></a>
  85. </div>
  86. <?php } ?>
  87. </div>
  88. <?php } ?>
  89. </li>
  90. <?php } ?>
  91.  
  92. <?php if( $current_options['slider_image_four'] != '' || $current_options['slider_image_four_title'] != '' || $current_options['slider_image_four_description'] !='' || $current_options['slider_four_readmore_link'] != '' ) { ?>
  93. <li>
  94. <?php if($current_options['slider_image_four']!=''): ?>
  95. <img class="img-responsive" src="<?php echo $current_options['slider_image_four']; ?>">
  96. <?php else: ?>
  97. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  98. <?php endif; ?>
  99.  
  100. <?php if( $current_options['slider_image_four_title'] != '' || $current_options['slider_image_four_description'] !='' || $current_options['slider_four_readmore_link'] != '' ) { ?>
  101. <div class="container slide-caption">
  102. <div class="overlay">
  103. <?php
  104. echo ( $current_options['slider_image_four_title']!='' ? '<h1>'.$current_options['slider_image_four_title'].'</h1>' : '' );
  105. echo ( $current_options['slider_image_four_description']!='' ? '<p>'.$current_options['slider_image_four_description'].'</p>' : '' );
  106. ?>
  107. </div>
  108. <?php if($current_options['slider_four_readmore_text'] != '') { ?>
  109. <div class="flex-btn-div">
  110. <a href="<?php echo $current_options['slider_four_readmore_link']; ?>" <?php if( $current_options['slider_four_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_four_readmore_text']; ?></a>
  111. </div>
  112. <?php } ?>
  113. </div>
  114. <?php } ?>
  115. </li>
  116. <?php } ?>
  117.  
  118. <?php if( $current_options['slider_image_five'] != '' || $current_options['slider_image_five_title'] != '' || $current_options['slider_image_five_description'] !='' || $current_options['slider_five_readmore_link'] != '' ) { ?>
  119. <li>
  120. <?php if($current_options['slider_image_five']!=''): ?>
  121. <img class="img-responsive" src="<?php echo $current_options['slider_image_five']; ?>">
  122. <?php else: ?>
  123. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  124. <?php endif; ?>
  125.  
  126. <?php if( $current_options['slider_image_five_title'] != '' || $current_options['slider_image_five_description'] !='' || $current_options['slider_five_readmore_link'] != '' ) { ?>
  127. <div class="container slide-caption">
  128. <div class="overlay">
  129. <?php
  130. echo ( $current_options['slider_image_five_title']!='' ? '<h1>'.$current_options['slider_image_five_title'].'</h1>' : '' );
  131. echo ( $current_options['slider_image_five_description']!='' ? '<p>'.$current_options['slider_image_five_description'].'</p>' : '' );
  132. ?>
  133. </div>
  134. <?php if($current_options['slider_five_readmore_text'] != '') { ?>
  135. <div class="flex-btn-div">
  136. <a href="<?php echo $current_options['slider_five_readmore_link']; ?>" <?php if( $current_options['slider_five_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_five_readmore_text']; ?></a>
  137. </div>
  138. <?php } ?>
  139. </div>
  140. <?php } ?>
  141. </li>
  142. <?php } ?>
  143.  
  144. <?php if( $current_options['slider_image_six'] != '' || $current_options['slider_image_six_title'] != '' || $current_options['slider_image_six_description'] !='' || $current_options['slider_six_readmore_link'] != '' ) { ?>
  145. <li>
  146. <?php if($current_options['slider_image_six']!=''): ?>
  147. <img class="img-responsive" src="<?php echo $current_options['slider_image_six']; ?>">
  148. <?php else: ?>
  149. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  150. <?php endif; ?>
  151. <?php if( $current_options['slider_image_six_title'] != '' || $current_options['slider_image_six_description'] !='' || $current_options['slider_six_readmore_link'] != '' ) { ?>
  152. <div class="container slide-caption">
  153. <div class="overlay">
  154. <?php
  155. echo ( $current_options['slider_image_six_title']!='' ? '<h1>'.$current_options['slider_image_six_title'].'</h1>' : '' );
  156. echo ( $current_options['slider_image_six_description']!='' ? '<p>'.$current_options['slider_image_six_description'].'</p>' : '' );
  157. ?>
  158. </div>
  159. <?php if($current_options['slider_six_readmore_text'] != '') { ?>
  160. <div class="flex-btn-div">
  161. <a href="<?php echo $current_options['slider_six_readmore_link']; ?>" <?php if( $current_options['slider_six_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_six_readmore_text']; ?></a>
  162. </div>
  163. <?php } ?>
  164. </div>
  165. <?php } ?>
  166. </li>
  167. <?php } ?>
  168.  
  169.  
  170.  
  171. <?php if( $current_options['slider_image_seven'] != '' || $current_options['slider_image_seven_title'] != '' || $current_options['slider_image_seven_description'] !='' || $current_options['slider_seven_readmore_link'] != '' ) { ?>
  172. <li>
  173. <?php if($current_options['slider_image_seven']!=''): ?>
  174. <img class="img-responsive" src="<?php echo $current_options['slider_image_seven']; ?>">
  175. <?php else: ?>
  176. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  177. <?php endif; ?>
  178. <?php if( $current_options['slider_image_seven_title'] != '' || $current_options['slider_image_seven_description'] !='' || $current_options['slider_seven_readmore_link'] != '' ) { ?>
  179. <div class="container slide-caption">
  180. <div class="overlay">
  181. <?php
  182. echo ( $current_options['slider_image_seven_title']!='' ? '<h1>'.$current_options['slider_image_seven_title'].'</h1>' : '' );
  183. echo ( $current_options['slider_image_seven_description']!='' ? '<p>'.$current_options['slider_image_seven_description'].'</p>' : '' );
  184. ?>
  185. </div>
  186. <?php if($current_options['slider_seven_readmore_text'] != '') { ?>
  187. <div class="flex-btn-div">
  188. <a href="<?php echo $current_options['slider_seven_readmore_link']; ?>" <?php if( $current_options['slider_seven_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_seven_readmore_text']; ?></a>
  189. </div>
  190. <?php } ?>
  191. </div>
  192. <?php } ?>
  193. </li>
  194. <?php } ?>
  195.  
  196. <?php if( $current_options['slider_image_eight'] != '' || $current_options['slider_image_eight_title'] != '' || $current_options['slider_image_eight_description'] !='' || $current_options['slider_eight_readmore_link'] != '' ) { ?>
  197. <li>
  198. <?php if($current_options['slider_image_eight']!=''): ?>
  199. <img class="img-responsive" src="<?php echo $current_options['slider_image_eight']; ?>">
  200. <?php else: ?>
  201. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  202. <?php endif; ?>
  203. <?php if( $current_options['slider_image_eight_title'] != '' || $current_options['slider_image_eight_description'] !='' || $current_options['slider_eight_readmore_link'] != '' ) { ?>
  204. <div class="container slide-caption">
  205. <div class="overlay">
  206. <?php
  207. echo ( $current_options['slider_image_eight_title']!='' ? '<h1>'.$current_options['slider_image_eight_title'].'</h1>' : '' );
  208. echo ( $current_options['slider_image_eight_description']!='' ? '<p>'.$current_options['slider_image_seven_description'].'</p>' : '' );
  209. ?>
  210. </div>
  211. <?php if($current_options['slider_eight_readmore_text'] != '') { ?>
  212. <div class="flex-btn-div">
  213. <a href="<?php echo $current_options['slider_eight_readmore_link']; ?>" <?php if( $current_options['slider_eight_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_eight_readmore_text']; ?></a>
  214. </div>
  215. <?php } ?>
  216. </div>
  217. <?php } ?>
  218. </li>
  219. <?php } ?>
  220.  
  221. <?php if( $current_options['slider_image_nine'] != '' || $current_options['slider_image_nine_title'] != '' || $current_options['slider_image_nine_description'] !='' || $current_options['slider_nine_readmore_link'] != '' ) { ?>
  222. <li>
  223. <?php if($current_options['slider_image_nine']!=''): ?>
  224. <img class="img-responsive" src="<?php echo $current_options['slider_image_nine']; ?>">
  225. <?php else: ?>
  226. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  227. <?php endif; ?>
  228. <?php if( $current_options['slider_image_nine_title'] != '' || $current_options['slider_image_nine_description'] !='' || $current_options['slider_nine_readmore_link'] != '' ) { ?>
  229. <div class="container slide-caption">
  230. <div class="overlay">
  231. <?php
  232. echo ( $current_options['slider_image_nine_title']!='' ? '<h1>'.$current_options['slider_image_nine_title'].'</h1>' : '' );
  233. echo ( $current_options['slider_image_nine_description']!='' ? '<p>'.$current_options['slider_image_nine_description'].'</p>' : '' );
  234. ?>
  235. </div>
  236. <?php if($current_options['slider_nine_readmore_text'] != '') { ?>
  237. <div class="flex-btn-div">
  238. <a href="<?php echo $current_options['slider_nine_readmore_link']; ?>" <?php if( $current_options['slider_nine_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_nine_readmore_text']; ?></a>
  239. </div>
  240. <?php } ?>
  241. </div>
  242. <?php } ?>
  243. </li>
  244. <?php } ?>
  245.  
  246. <?php if( $current_options['slider_image_ten'] != '' || $current_options['slider_image_ten_title'] != '' || $current_options['slider_image_ten_description'] !='' || $current_options['slider_ten_readmore_link'] != '' ) { ?>
  247. <li>
  248. <?php if($current_options['slider_image_ten']!=''): ?>
  249. <img class="img-responsive" src="<?php echo $current_options['slider_image_ten']; ?>">
  250. <?php else: ?>
  251. <img class="img-responsive" src="<?php echo WEBRITI_TEMPLATE_DIR_URI; ?>/images/slides/no-image.jpg">
  252. <?php endif; ?>
  253. <?php if( $current_options['slider_image_ten_title'] != '' || $current_options['slider_image_ten_description'] !='' || $current_options['slider_ten_readmore_link'] != '' ) { ?>
  254. <div class="container slide-caption">
  255. <div class="overlay">
  256. <?php
  257. echo ( $current_options['slider_image_ten_title']!='' ? '<h1>'.$current_options['slider_image_ten_title'].'</h1>' : '' );
  258. echo ( $current_options['slider_image_ten_description']!='' ? '<p>'.$current_options['slider_image_ten_description'].'</p>' : '' );
  259. ?>
  260. </div>
  261. <?php if($current_options['slider_ten_readmore_text'] != '') { ?>
  262. <div class="flex-btn-div">
  263. <a href="<?php echo $current_options['slider_ten_readmore_link']; ?>" <?php if( $current_options['slider_ten_readmore_ink_target'] == true ) { echo "target='_blank'"; } ?> class="flex-btn"><?php echo $current_options['slider_ten_readmore_text']; ?></a>
  264. </div>
  265. <?php } ?>
  266. </div>
  267. <?php } ?>
  268. </li>
  269. <?php } ?>
  270. </ul>
  271. </div>
  272. </div>
  273. </div>
  274. <!--/Flex Slider-->
  275. <?php } if ( ! is_front_page() || !is_home() && !is_page_template('template-homepage.php') ) : ?>
  276. </div>
  277. <?php endif; ?>
Add Comment
Please, Sign In to add comment