📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 13:57:13
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
templates
/
pxl_service_box
✏️
Editing: layout-2.php
<?php $arrows = $widget->get_setting('arrows', true); $pagination = $widget->get_setting('pagination', true); $pagination_type = $widget->get_setting('pagination_type', 'bullets'); $pause_on_hover = $widget->get_setting('pause_on_hover', false); $autoplay = $widget->get_setting('autoplay', false); $autoplay_speed = $widget->get_setting('autoplay_speed', 5000); $infinite = $widget->get_setting('infinite', false); $speed = $widget->get_setting('speed', 500); $drap = $widget->get_setting('drap', false); $opts = [ 'slide_direction' => 'horizontal', 'slide_percolumn' => 1, 'slide_mode' => 'slide', 'slides_to_show' => 1, 'slides_to_show_xxl' => 1, 'slides_to_show_lg' => 1, 'slides_to_show_md' => 1, 'slides_to_show_sm' => 1, 'slides_to_show_xs' => 1, 'slides_to_scroll' => 1, 'arrow' => (bool)$arrows, 'pagination' => (bool)$pagination, 'pagination_type' => $pagination_type, 'autoplay' => (bool)$autoplay, 'pause_on_hover' => (bool)$pause_on_hover, 'pause_on_interaction' => true, 'delay' => (int)$autoplay_speed, 'loop' => (bool)$infinite, 'speed' => (int)$speed ]; $opts_thumb = [ 'slide_direction' => 'horizontal', 'slides_to_show' => 'auto', 'slide_mode' => 'slide', 'loop' => false, ]; $widget->add_render_attribute( 'carousel', [ 'class' => 'pxl-swiper-container', 'dir' => is_rtl() ? 'rtl' : 'ltr', 'data-settings' => wp_json_encode($opts) ]); $widget->add_render_attribute( 'thumb', [ 'class' => 'pxl-swiper-thumbs', 'data-settings' => wp_json_encode($opts_thumb) ]); if ( ! empty( $settings['wg_btn_link']['url'] ) ) { $widget->add_render_attribute( 'button', 'href', $settings['wg_btn_link']['url'] ); if ( $settings['wg_btn_link']['is_external'] ) { $widget->add_render_attribute( 'button', 'target', '_blank' ); } if ( $settings['wg_btn_link']['nofollow'] ) { $widget->add_render_attribute( 'button', 'rel', 'nofollow' ); } } ?> <?php if(isset($settings['service']) && !empty($settings['service']) && count($settings['service'])): ?> <div class="pxl-swiper-slider pxl-service-box pxl-service-box2" <?php if($drap !== false) : ?>data-cursor-drap="<?php echo esc_html__('DRAG', 'berich'); ?>"<?php endif; ?>> <div class="pxl-carousel-inner"> <div <?php pxl_print_html($widget->get_render_attribute_string( 'thumb' )); ?>> <div class="pxl-swiper-wrapper swiper-wrapper"> <?php foreach ($settings['service'] as $key => $value): $pxl_icon = isset($value['pxl_icon']) ? $value['pxl_icon'] : ''; $title = isset($value['title']) ? $value['title'] : ''; if (!empty($pxl_icon['value']) ) : ?> <div class="pxl-swiper-slide swiper-slide"> <div class="pxl-item--thumb"> <div class="pxl-thumb--icon"> <?php \Elementor\Icons_Manager::render_icon( $pxl_icon, [ 'aria-hidden' => 'true', 'class' => '' ], 'i' ); ?> </div> <h5 class="pxl-thumb--title"><?php echo pxl_print_html($title); ?></h5> </div> </div> <?php endif; ?> <?php endforeach; ?> </div> </div> <div <?php pxl_print_html($widget->get_render_attribute_string( 'carousel' )); ?>> <div class="pxl-widget-wrap"> <?php if(!empty($settings['wg_sub_title'])) : ?> <div class="pxl-widget--subtitle"><span><?php echo esc_attr($settings['wg_sub_title']); ?></span></div> <?php endif; ?> <?php if(!empty($settings['wg_title'])) : ?> <h3 class="pxl-widget--title <?php echo esc_attr($settings['wg_pxl_animate']); ?>"><?php echo esc_attr($settings['wg_title']); ?></h3> <?php endif; ?> </div> <div class="pxl-swiper-wrapper"> <?php foreach ($settings['service'] as $key => $value): $pxl_icon = isset($value['pxl_icon']) ? $value['pxl_icon'] : ''; $title = isset($value['title']) ? $value['title'] : ''; $desc = isset($value['desc']) ? $value['desc'] : ''; $image = isset($value['image']) ? $value['image'] : ''; $btn_text = isset($value['btn_text']) ? $value['btn_text'] : ''; $btn_link = isset($value['btn_link']) ? $value['btn_link'] : ''; $link_key = $widget->get_repeater_setting_key( 'btn_link', 'value', $key ); if ( ! empty( $btn_link['url'] ) ) { $widget->add_render_attribute( $link_key, 'href', $btn_link['url'] ); if ( $btn_link['is_external'] ) { $widget->add_render_attribute( $link_key, 'target', '_blank' ); } if ( $btn_link['nofollow'] ) { $widget->add_render_attribute( $link_key, 'rel', 'nofollow' ); } } $link_attributes = $widget->get_render_attribute_string( $link_key ); ?> <div class="pxl-swiper-slide"> <div class="pxl-item--inner"> <?php if(!empty($image['id'])) { $img = pxl_get_image_by_size( array( 'attach_id' => $image['id'], 'thumb_size' => '332x226', 'class' => 'no-lazyload', )); $thumbnail = $img['thumbnail']; ?> <div class="pxl-image--wrap"> <div class="pxl-image--inner"> <?php echo wp_kses_post($thumbnail); ?> <div class="pxl-item--icon"> <?php \Elementor\Icons_Manager::render_icon( $pxl_icon, [ 'aria-hidden' => 'true', 'class' => '' ], 'i' ); ?> </div> </div> <div class="pxl-item--space"></div> <h3 class="pxl-item--title"><?php echo pxl_print_html($title); ?></h3> <div class="pxl-item--desc"><?php echo pxl_print_html($desc); ?></div> <?php if(!empty($btn_text)) : ?> <div class="pxl-item--button"> <a class="btn btn-text-nina" <?php echo implode( ' ', [ $link_attributes ] ); ?>> <span class="pxl--btn-text" data-text="<?php echo esc_attr($btn_text); ?>"> <?php $chars = preg_split('//u', $btn_text, null, PREG_SPLIT_NO_EMPTY); foreach ($chars as $value) { if($value == ' ') { echo '<span class="spacer"> </span>'; } else { echo '<span>' . htmlspecialchars($value) . '</span>'; } } ?> </span> </a> </div> <?php endif; ?> </div> <?php } ?> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php if($pagination !== false): ?> <div class="pxl-swiper-dots-wrap style-4"> <?php if($pagination_type == 'bullets'): ?> <span class="pxl-swiper-fraction-first"></span> <?php endif; ?> <div class="pxl-swiper-dots style-4"></div> <?php if($pagination_type == 'bullets'): ?> <span class="pxl-swiper-fraction-last"></span> <?php endif; ?> </div> <?php endif; ?> </div> <?php endif; ?>
💾 Save Changes
❌ Cancel