Submit
Path:
~
/
home
/
getwphos
/
www
/
twinkletown
/
wp-content
/
plugins
/
wuko-core
/
includes
/
elementor
/
widgets
/
File Content:
wgl-carousel.php
<?php /** * This template can be overridden by copying it to `yourtheme[-child]/wgl-extensions/elementor/widgets/wgl-carousel.php`. */ namespace WGL_Extensions\Widgets; defined('ABSPATH') || exit; // Abort, if called directly. use Elementor\{ Widget_Base, Controls_Manager, Repeater }; use WGL_Extensions\{ Includes\WGL_Carousel_Settings, Includes\WGL_Elementor_Helper }; class WGL_Carousel extends Widget_Base { public function get_name() { return 'wgl-carousel'; } public function get_title() { return esc_html__('WGL Carousel', 'wuko-core'); } public function get_icon() { return 'wgl-carousel'; } public function get_keywords() { return [ 'carousel', 'template', 'content' ]; } public function get_script_depends() { return ['wgl-widgets', 'swiper']; } public function get_style_depends() { return [ 'swiper' ]; } public function get_categories() { return ['wgl-modules']; } protected function register_controls() { /** * CONTENT -> GENERAL */ $this->start_controls_section( 'content_general', ['label' => esc_html__('General' , 'wuko-core')] ); $repeater = new REPEATER(); $repeater->add_control( 'content', [ 'label' => esc_html__('Content', 'wuko-core'), 'type' => Controls_Manager::SELECT2, 'options' => WGL_Elementor_Helper::get_instance()->get_elementor_templates(), ] ); $this->add_control( 'content_repeater', [ 'label' => esc_html__('Templates', 'wuko-core'), 'type' => Controls_Manager::REPEATER, 'description' => esc_html__('Slider content is a template which you can choose from Elementor library. Each template will be a slider content', 'wuko-core'), 'fields' => $repeater->get_controls(), 'title_field' => esc_html__('Template:', 'wuko-core') . ' {{{ content }}}' ] ); $this->add_control( 'slides_per_row', [ 'label' => esc_html__('Columns Amount', 'wuko-core'), 'type' => Controls_Manager::SELECT, 'render_type' => 'template', 'options' => [ 1 => esc_html__('1 (one)', 'wuko-core'), 2 => esc_html__('2 (two)', 'wuko-core'), 3 => esc_html__('3 (three)', 'wuko-core'), 4 => esc_html__('4 (four)', 'wuko-core'), 5 => esc_html__('5 (five)', 'wuko-core'), 6 => esc_html__('6 (six)', 'wuko-core'), ], 'condition' => [ 'animation_style' => 'default' ], 'default' => 1, ] ); $this->add_responsive_control( 'items_gap', [ 'label' => esc_html__('Items Gap', 'wuko-core'), 'type' => Controls_Manager::SLIDER, 'dynamic' => ['active' => true], 'range' => [ 'px' => ['min' => 0, 'max' => 100] ], 'size_units' => ['px'], 'selectors' => [ '{{WRAPPER}} .wgl-carousel_wrapper' => '--wgl-gap: {{SIZE}}{{UNIT}};', ], ] ); WGL_Carousel_Settings::add_general_controls($this, [ '3d_animation_options' => 'enabled', ]); $this->end_controls_section(); $this->start_controls_section( 'navigation_section', ['label' => esc_html__('Pagination | Navigation', 'wuko-core')] ); WGL_Carousel_Settings::add_pagination_controls($this); $this->add_control( 'pagination_navigation_divider', [ 'type' => Controls_Manager::DIVIDER, 'conditions' => [ 'relation' => 'or', 'terms' => [[ 'terms' => [[ 'name' => 'use_pagination', 'operator' => '!=', 'value' => '', ]] ], [ 'terms' => [[ 'name' => 'use_navigation', 'operator' => '!=', 'value' => '', ]] ],], ], ] ); WGL_Carousel_Settings::add_navigation_controls($this); $this->end_controls_section(); $this->start_controls_section( 'section_responsive', ['label' => esc_html__('Responsive', 'wuko-core')] ); WGL_Carousel_Settings::add_responsive_controls($this); $this->end_controls_section(); } protected function render() { $_s = $this->get_settings_for_display(); $content = []; foreach ($_s['content_repeater'] as $template) { array_push($content, $template['content']); } echo WGL_Carousel_Settings::init($_s, $content, true); } public function wpml_support_module() { add_filter( 'wpml_elementor_widgets_to_translate', [$this, 'wpml_widgets_to_translate_filter']); } public function wpml_widgets_to_translate_filter( $widgets ){ return \WGL_Extensions\Includes\WGL_WPML_Settings::get_translate( $this, $widgets ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
wgl-accordion-service.php
110791 bytes
0644
wgl-background-clip-text.php
21249 bytes
0644
wgl-blog.php
54012 bytes
0644
wgl-button-physics.php
48634 bytes
0644
wgl-button-widget.php
78290 bytes
0644
wgl-carousel.php
5648 bytes
0644
wgl-cases.php
174614 bytes
0644
wgl-circuit-service.php
21621 bytes
0644
wgl-clients.php
28542 bytes
0644
wgl-combo-menu.php
17440 bytes
0644
wgl-contact-form-7.php
64476 bytes
0644
wgl-countdown.php
19442 bytes
0644
wgl-counter.php
36515 bytes
0644
wgl-demo-item.php
33716 bytes
0644
wgl-double-heading.php
71788 bytes
0644
wgl-dynamic-title.php
11086 bytes
0644
wgl-flipbox.php
154999 bytes
0644
wgl-gallery.php
53821 bytes
0644
wgl-highlight-board.php
64418 bytes
0644
wgl-horizontal-scroll.php
25075 bytes
0644
wgl-image-animate.php
20947 bytes
0644
wgl-image-comparison.php
6032 bytes
0644
wgl-image-hotspots.php
52892 bytes
0644
wgl-image-layers.php
25243 bytes
0644
wgl-infinity-carousel.php
30821 bytes
0644
wgl-info-box.php
224793 bytes
0644
wgl-instagram.php
38631 bytes
0644
wgl-link-overlay.php
2495 bytes
0644
wgl-pie-chart.php
22332 bytes
0644
wgl-portfolio.php
115147 bytes
0644
wgl-pricing-table.php
209138 bytes
0644
wgl-products-categories.php
51718 bytes
0644
wgl-products-grid.php
79654 bytes
0644
wgl-progress-bar.php
30822 bytes
0644
wgl-rotated-text.php
22605 bytes
0644
wgl-satellite-service.php
35978 bytes
0644
wgl-showcase.php
208669 bytes
0644
wgl-social-icons.php
22240 bytes
0644
wgl-steps.php
48391 bytes
0644
wgl-striped-services.php
183259 bytes
0644
wgl-tabs-horizontal.php
42144 bytes
0644
wgl-tabs.php
53431 bytes
0644
wgl-team.php
36456 bytes
0644
wgl-template.php
8246 bytes
0644
wgl-testimonials.php
61375 bytes
0644
wgl-text-editor.php
55551 bytes
0644
wgl-text-path.php
41438 bytes
0644
wgl-time-line-horizontal.php
37694 bytes
0644
wgl-time-line-vertical.php
199396 bytes
0644
wgl-toggle-accordion.php
66819 bytes
0644
wgl-video-popup.php
30956 bytes
0644
wgl-working-hours.php
10870 bytes
0644
wgl-zoom.php
24854 bytes
0644
N4ST4R_ID | Naxtarrr