📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 12:08:55
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
templates
/
pxl_service_box
✏️
Editing: layout-3.php
<?php $col_xs = $widget->get_setting('col_xs', ''); $col_sm = $widget->get_setting('col_sm', ''); $col_md = $widget->get_setting('col_md', ''); $col_lg = $widget->get_setting('col_lg', ''); $col_xl = $widget->get_setting('col_xl', ''); $col_xxl = $widget->get_setting('col_xxl', ''); if($col_xxl == 'inherit') { $col_xxl = $col_xl; } $slides_to_scroll = $widget->get_setting('slides_to_scroll'); $arrows = $widget->get_setting('arrows', true); $pagination = $widget->get_setting('pagination', false); $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' => (int)$col_xl, 'slides_to_show_xxl' => (int)$col_xxl, 'slides_to_show_lg' => (int)$col_lg, 'slides_to_show_md' => (int)$col_md, 'slides_to_show_sm' => (int)$col_sm, 'slides_to_show_xs' => (int)$col_xs, 'slides_to_scroll' => (int)$slides_to_scroll, '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-box3" <?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): $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' => 'full', 'class' => 'no-lazyload', )); $thumbnail = $img['url']; ?> <div class="pxl-item--image bg-image" style="background-image: url(<?php echo esc_url($thumbnail); ?>);"></div> <?php } ?> <?php if(!empty($pxl_icon)) : ?> <div class="pxl-item--icon"> <?php \Elementor\Icons_Manager::render_icon( $pxl_icon, [ 'aria-hidden' => 'true', 'class' => '' ], 'i' ); ?> </div> <?php endif; ?> <h3 class="pxl-item--title"><?php echo pxl_print_html($title); ?></h3> <div class="pxl-item--holder"> <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 if(!empty($pxl_icon)) : ?> <div class="pxl-icon--bottom"> <div class="pxl-icon--inner"> <?php \Elementor\Icons_Manager::render_icon( $pxl_icon, [ 'aria-hidden' => 'true', 'class' => '' ], 'i' ); ?> </div> </div> <?php endif; ?> </div> </div> <?php endforeach; ?> </div> </div> </div> <?php if($pagination !== false): ?> <div class="pxl-swiper-dots style-1"></div> <?php endif; ?> </div> <?php endif; ?>
💾 Save Changes
❌ Cancel