📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 12:09:13
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
templates
/
pxl_service_box
✏️
Editing: layout-1.php
<?php $arrows = $widget->get_setting('arrows', true); $pagination = $widget->get_setting('pagination', true); $pagination_type = $widget->get_setting('pagination_type', 'fraction'); $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-box1" <?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( 'carousel' )); ?>> <div class="pxl-swiper-wrapper"> <?php foreach ($settings['service'] as $key => $value): $feature = isset($value['feature']) ? $value['feature'] : ''; $pxl_icon = isset($value['pxl_icon']) ? $value['pxl_icon'] : ''; $title = isset($value['title']) ? $value['title'] : ''; $desc = isset($value['desc']) ? $value['desc'] : ''; $shape = isset($value['shape']) ? $value['shape'] : ''; $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 echo esc_attr($settings['pxl_animate']); ?>" data-wow-delay="<?php echo esc_attr($settings['pxl_animate_delay']); ?>ms"> <div class="pxl-item--holder pxl-pr-40 <?php if(!empty($image['id'])) { echo 'img-active'; } ?>"> <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($feature)) : ?> <ul class="pxl-item--feature"> <?php $service_feature = json_decode($feature, true); ?> <?php foreach ($service_feature as $value): ?> <li> <i class="<?php if (!empty($value['icon'])) { echo esc_attr($value['icon']); } ?> pxl-mr-17"></i> <span><?php echo esc_attr($value['content']); ?></span> </li> <?php endforeach; ?> </ul> <?php endif; ?> <?php if(!empty($btn_text)) : ?> <div class="pxl-item--button"> <a class="btn btn-slip pxl-icon-active" <?php echo implode( ' ', [ $link_attributes ] ); ?>> <span class="pxl--btn-text"><?php echo esc_attr($btn_text); ?></span> <i class="flaticon flaticon-right-up pxl-ml-8"></i> </a> </div> <?php endif; ?> </div> <?php if(!empty($image['id'])) { $img = pxl_get_image_by_size( array( 'attach_id' => $image['id'], 'thumb_size' => '323x323', 'class' => 'no-lazyload', )); $thumbnail = $img['thumbnail']; ?> <div class="pxl-item--image"> <?php echo wp_kses_post($thumbnail); ?> <?php if(!empty($shape['id'])) { $img_shape = pxl_get_image_by_size( array( 'attach_id' => $shape['id'], 'thumb_size' => 'full', 'class' => 'no-lazyload', )); $thumbnail_shape = $img_shape['thumbnail']; ?> <div class="pxl-item--shape"> <?php echo wp_kses_post($thumbnail_shape); ?> </div> <?php } ?> </div> <?php } ?> </div> </div> <?php endforeach; ?> </div> </div> <div class="pxl-swiper-footer"> <div class="pxl-swiper-arrow pxl-swiper-arrow-prev"><i class="caseicon-angle-arrow-left"></i></div> <div class="pxl-swiper-dots"></div> <div class="pxl-swiper-arrow pxl-swiper-arrow-next"><i class="caseicon-angle-arrow-right"></i></div> </div> <div class="pxl-carousel-bg1"> <div class="pxl-bg-svg"> <svg xmlns="http://www.w3.org/2000/svg" width="45" height="27" viewBox="0 0 45 27"><path d="M-261,631l11,5H889a19.735,19.735,0,0,0,15-18V45a17.852,17.852,0,0,0-22-18H45a34.352,34.352,0,0,1-10-5c-2.453-1.788-6.552-6.1-10-11-2.819-4-4.279-6.7-8-9A21.352,21.352,0,0,0,6-1H-249a17.63,17.63,0,0,0-13,4,17.9,17.9,0,0,0-6,16V622"/></svg> </div> </div> <div class="pxl-carousel-bg2"> <div class="pxl-bg-svg"> <svg xmlns="http://www.w3.org/2000/svg" width="45" height="27" viewBox="0 0 45 27"><path d="M-261,631l11,5H889a19.735,19.735,0,0,0,15-18V45a17.852,17.852,0,0,0-22-18H45a34.352,34.352,0,0,1-10-5c-2.453-1.788-6.552-6.1-10-11-2.819-4-4.279-6.7-8-9A21.352,21.352,0,0,0,6-1H-249a17.63,17.63,0,0,0-13,4,17.9,17.9,0,0,0-6,16V622"/></svg> </div> </div> <div class="pxl-carousel-bg3"> <div class="pxl-bg-svg"> <svg xmlns="http://www.w3.org/2000/svg" width="45" height="27" viewBox="0 0 45 27"><path d="M-261,631l11,5H889a19.735,19.735,0,0,0,15-18V45a17.852,17.852,0,0,0-22-18H45a34.352,34.352,0,0,1-10-5c-2.453-1.788-6.552-6.1-10-11-2.819-4-4.279-6.7-8-9A21.352,21.352,0,0,0,6-1H-249a17.63,17.63,0,0,0-13,4,17.9,17.9,0,0,0-6,16V622"/></svg> </div> </div> <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'] : ''; if (!empty($pxl_icon['value']) ) : ?> <div class="pxl-swiper-slide swiper-slide"> <div class="pxl-item--icon"> <?php \Elementor\Icons_Manager::render_icon( $pxl_icon, [ 'aria-hidden' => 'true', 'class' => '' ], 'i' ); ?> </div> </div> <?php endif; ?> <?php endforeach; ?> </div> </div> </div> </div> <?php endif; ?>
💾 Save Changes
❌ Cancel