Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.10 KB | None | 0 0
  1. <?php
  2. $arilewp_service_content = get_theme_mod( 'arilewp_service_content');
  3. $arilewp_service_area_disabled = get_theme_mod('arilewp_service_area_disabled', true);
  4. $arilewp_service_layout = get_theme_mod('arilewp_service_layout', 'arilewp_service_layout1');
  5. $arilewp_service_area_title = get_theme_mod('arilewp_service_area_title', 'Our Services');
  6. $arilewp_service_area_des = get_theme_mod('arilewp_service_area_des', '<b>We provide the</b> best services');
  7. $arilewp_service_column_layout = get_theme_mod('arilewp_service_column_layout', '3');
  8. $arilewp_service_column_layout = 12/$arilewp_service_column_layout;
  9. $arilewp_service_front_container_size = get_theme_mod('arilewp_service_front_container_size', 'container');
  10. $arilewp_service_area_before_content = get_theme_mod('arilewp_service_area_before_content');
  11. $arilewp_service_area_after_content = get_theme_mod('arilewp_service_area_after_content');
  12.  
  13. if($arilewp_service_area_before_content != null):
  14. echo do_shortcode($arilewp_service_area_before_content);
  15. endif;
  16. if($arilewp_service_area_disabled == true): ?>
  17. <section class="theme-block theme-services" id="theme-services">
  18. <div class="<?php echo $arilewp_service_front_container_size; ?>">
  19. <?php
  20. if( ($arilewp_service_area_title) || ($arilewp_service_area_des)!='' ): ?>
  21. <div class="row">
  22. <div class="col-lg-12 col-md-12 col-xs-12">
  23. <div class="theme-section-module text-center">
  24. <?php if($arilewp_service_area_title != null): ?>
  25. <p class="theme-section-subtitle"><?php echo $arilewp_service_area_title; ?></p>
  26. <?php endif; ?>
  27. <?php if($arilewp_service_area_des != null): ?>
  28. <h2 class="theme-section-title"><?php echo $arilewp_service_area_des; ?></h2>
  29. <?php endif; ?>
  30. <div class="theme-separator-line-horrizontal-full"></div>
  31. </div>
  32. </div>
  33. </div>
  34. <?php endif; ?>
  35. <div class="row theme-services-content">
  36. <?php
  37.  
  38. if ( ! empty( $arilewp_service_content ) ) {
  39. $allowed_html = array(
  40. 'br' => array(),
  41. 'em' => array(),
  42. 'strong' => array(),
  43. 'b' => array(),
  44. 'i' => array(),
  45. );
  46. $arilewp_service_content = json_decode( $arilewp_service_content );
  47. foreach ( $arilewp_service_content as $features_item ) {
  48. $icon = ! empty( $features_item->icon_value ) ? apply_filters( 'arilewp_translate_single_string', $features_item->icon_value, 'Theme Service' ) : '';
  49. $title = ! empty( $features_item->title ) ? apply_filters( 'arilewp_translate_single_string', $features_item->title, 'Theme Service' ) : '';
  50. $text = ! empty( $features_item->text ) ? apply_filters( 'arilewp_translate_single_string', $features_item->text, 'Theme Service' ) : '';
  51. $button_text = ! empty( $features_item->button_text ) ? apply_filters( 'arilewp_translate_single_string', $features_item->button_text, 'Theme Service' ) : '';
  52. $link = ! empty( $features_item->link ) ? apply_filters( 'arilewp_translate_single_string', $features_item->link, 'Theme Service' ) : '';
  53. $image = ! empty( $features_item->image_url ) ? apply_filters( 'arilewp_translate_single_string', $features_item->image_url, 'Theme Service' ) : '';
  54.  
  55. if( !empty($features_item->open_new_tab)){
  56. $open_new_tab = $features_item->open_new_tab;
  57. } else{ $open_new_tab = 'no'; }
  58.  
  59. ?>
  60. <div class="col-lg-<?php echo $arilewp_service_column_layout; ?> col-md-6 col-sm-12">
  61.  
  62. <article class="<?php if($arilewp_service_layout == 'arilewp_service_layout1'){echo 'service-content text-center';}else{echo 'service-content-two media';} ?>">
  63.  
  64. <?php if($features_item->choice == 'customizer_repeater_image'){ ?>
  65. <?php if ( ! empty( $image ) ) : ?>
  66. <figure class="service-content-thumbnail<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>">
  67. <?php if ( ! empty( $link ) ) : ?>
  68. <a href="<?php echo $link; ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== 'on') { echo "target='_blank'"; } ?>>
  69. <img class="img-fluid" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
  70. </a>
  71. <?php endif; ?>
  72. <?php if ( empty( $link ) ) : ?>
  73. <img class="img-fluid" src="<?php echo esc_url( $image ); ?>" <?php if ( ! empty( $title ) ) : ?> alt="<?php echo esc_attr( $title ); ?>" title="<?php echo esc_attr( $title ); ?>" <?php endif; ?> />
  74. <?php endif; ?>
  75. </figure>
  76. <?php endif; ?>
  77. <?php } else if($features_item->choice =='customizer_repeater_icon'){ ?>
  78. <?php if ( ! empty( $icon ) ) :?>
  79. <figure class="service-content-thumbnail<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>">
  80. <?php if ( ! empty( $link ) ) : ?>
  81. <a href="<?php echo $link; ?>" <?php if($open_new_tab== 'yes' || $open_new_tab== 'on') { echo "target='_blank'"; } ?>><i class="fa <?php echo esc_html( $icon ); ?>"></i></a>
  82. <?php endif; ?>
  83. <?php if ( empty( $link ) ) : ?>
  84. <i class="fa <?php echo esc_html( $icon ); ?>"></i>
  85. <?php endif; ?>
  86. </figure>
  87. <?php endif; ?>
  88. <?php } ?>
  89.  
  90. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '<div class="media-body">';} ?>
  91. <?php if ( ! empty( $title ) ) :
  92. if(empty($link)){ ?>
  93. <h5 class="service-title"><?php echo esc_html( $title ); ?></h5><?php
  94. }else{
  95. ?>
  96. <h5 class="service-title"><a href="<?php echo $link; ?>" <?php if($open_new_tab =='yes'){?>target="_blank" <?php }?> ><?php echo esc_html( $title ); ?></a></h5><?php
  97. }
  98. ?>
  99. <?php endif; ?>
  100. <?php if ( ! empty( $text ) ) : ?>
  101. <p><?php echo wp_kses_post( substr($text, 0, 100)); ?></p>
  102. <?php endif; ?>
  103.  
  104. <?php if(!empty($button_text)):?>
  105. <?php if(!empty($link)):?>
  106. <div class="service-links<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>"><a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab =='yes'){echo "target='_blank'";} ?> ><?php echo esc_html($button_text); ?></a></div>
  107. <?php else: ?>
  108. <div class="service-links<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>"><a><?php echo esc_html($button_text); ?></a></div>
  109. <?php endif; ?>
  110. <?php endif; ?>
  111.  
  112.  
  113. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '</div>';} ?>
  114.  
  115. </article>
  116.  
  117. </div>
  118. <?php
  119. } }
  120. else
  121. { ?>
  122. <div class="col-lg-<?php echo $arilewp_service_column_layout; ?> col-md-6 col-sm-12">
  123. <article class="<?php if($arilewp_service_layout == 'arilewp_service_layout1'){echo 'service-content text-center';}else{echo 'service-content-two media';} ?>">
  124. <figure class="service-content-thumbnail<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>">
  125. <a href="#"><i class="fa fa-mobile"></i></a>
  126. </figure>
  127. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '<div class="media-body">';} ?>
  128. <h5 class="service-title"><a href="#"><?php esc_html_e('Pixel Perfect Design','arilewp'); ?></a></h5>
  129. <p><?php esc_html_e('Lorem Ipsum is simply text of the printing and typesetting industry. Lorem Ipsum has been standard dummy.','arilewp'); ?></p>
  130. <div class="service-links<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>"><a href="#"><?php esc_html_e('Read More','arilewp'); ?></a></div>
  131. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '</div>';} ?>
  132. </article>
  133. </div>
  134. <div class="col-lg-<?php echo $arilewp_service_column_layout; ?> col-md-6 col-sm-12">
  135. <article class="<?php if($arilewp_service_layout == 'arilewp_service_layout1'){echo 'service-content text-center';}else{echo 'service-content-two media';} ?>">
  136. <figure class="service-content-thumbnail<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>">
  137. <a href="#"><i class="fa fa-opencart"></i></a>
  138. </figure>
  139. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '<div class="media-body">';} ?>
  140. <h5 class="service-title"><a href="#"><?php esc_html_e('WooCommerce Ready','arilewp'); ?></a></h5>
  141. <p><?php esc_html_e('Lorem Ipsum is simply text of the printing and typesetting industry. Lorem Ipsum has been standard dummy.','arilewp'); ?></p>
  142. <div class="service-links<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>"><a href="#"><?php esc_html_e('Read More','arilewp'); ?></a></div>
  143. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '</div>';} ?>
  144. </article>
  145. </div>
  146. <div class="col-lg-<?php echo $arilewp_service_column_layout; ?> col-md-6 col-sm-12">
  147. <article class="<?php if($arilewp_service_layout == 'arilewp_service_layout1'){echo 'service-content text-center';}else{echo 'service-content-two media';} ?>">
  148. <figure class="service-content-thumbnail<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>">
  149. <a href="#"><i class="fa fa-users"></i></a>
  150. </figure>
  151. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '<div class="media-body">';} ?>
  152. <h5 class="service-title"><a href="#"><?php esc_html_e('Satisfied Clients','arilewp'); ?></a></h5>
  153. <p><?php esc_html_e('Lorem Ipsum is simply text of the printing and typesetting industry. Lorem Ipsum has been standard dummy.','arilewp'); ?></p>
  154. <div class="service-links<?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '-two';} ?>"><a href="#"><?php esc_html_e('Read More','arilewp'); ?></a></div>
  155. <?php if($arilewp_service_layout == 'arilewp_service_layout2'){echo '</div>';} ?>
  156. </article>
  157. </div>
  158. <?Php
  159. }
  160. ?>
  161. </div>
  162. </div>
  163. </section>
  164. <?php
  165. endif;
  166. if($arilewp_service_area_after_content != null):
  167. echo do_shortcode($arilewp_service_area_after_content);
  168. endif;
  169. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement