*/ use Elementor\Icons_Manager; use Elementor\Controls_Manager; use Elementor\Group_Control_Typography; use Elementor\Group_Control_Text_Shadow; use Elementor\Group_Control_Background; use Elementor\Group_Control_Image_Size; use Elementor\Repeater; use Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // If this file is called directly, abort. } /** * Aarambha Addons for Elementor * * Posts Slider * * @since 1.0.0 */ class Aarambha_Kits_Block_Element_4 extends Base_Widget { /** * Retrieve the widget name. * * @since 1.0.0 * * @access public * * @return string Widget name. */ public function get_name() { return 'aarambha-kits-block-posts-slider'; } /** * Retrieve the widget title. * * @since 1.0.0 * * @access public * * @return string Widget title. */ public function get_title() { return esc_html__( 'Block Posts Slider', 'aarambha-kits' ); } /** * Retrieve the widget icon. * * @since 1.0.0 * * @access public * * @return string Widget icon. */ public function get_icon() { return 'aarambha-kits-badge block-element-4'; } /** * Retrieve the list of categories the widget belongs to. * * Used to determine where to display the widget in the editor. * * Note that currently Elementor supports only one category. * When multiple categories passed, Elementor uses the first one. * * @since 1.0.0 * * @access public * * @return array Widget categories. */ public function get_categories() { return array( 'aarambha_kits_category' ); } /** * Retrieve the list of styles the widget depended on. * * Used to set styles dependencies required to run the widget. * * @since 1.0.0 * * @access public * * @return array Widget styles dependencies. */ public function get_style_depends() { $styles = array( 'aarambha-kits-public', 'aarambha-kits-widget', ); if ( Icons_Manager::is_migration_allowed() ) { $styles[] = 'elementor-icons-fa-solid'; $styles[] = 'elementor-icons-fa-brands'; } return $styles; } /** * Retrieve the list of scripts the widget depended on. * * Used to set scripts dependencies required to run the widget. * * @since 1.0.0 * * @access public * * @return array Widget scripts dependencies. */ public function get_script_depends() { return array( 'aarambha-kits-widget', ); } /** * Register the widget controls. * * Adds different input fields to allow the user to change and customize the widget settings. * * @since 1.0.0 * * @access protected */ protected function register_controls() { /*----Content Tab----*/ $this->__init_base_query_controls(); $this->__init_content_controls(); $this->__init_content_slider_controls(); /*----Style Tab----*/ $this->__init_style_slide_controls(); $this->__init_style_categories_controls(); $this->__init_style_title_controls(); $this->__init_style_excerpt_controls(); $this->__init_style_meta_controls(); $this->__init_style_navigation_controls(); $this->__init_style_pagination_controls(); } protected function __init_content_controls() { // Content Tab $this->start_controls_section( 'posts_content', array( 'label' => esc_html__( 'Content', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_CONTENT, ) ); // Featured Image Heading $this->add_control( 'featured_image_heading', array( 'label' => esc_html__( 'Image', 'aarambha-kits' ), 'type' => Controls_Manager::HEADING, 'label_block' => false, ) ); // Image Size $this->add_group_control( Group_Control_Image_Size::get_type(), array( 'name' => 'image', 'default' => 'medium_large', 'exclude' => array( 'custom' ), 'label_block' => true, ) ); // Image Ratio $this->add_control( 'image_ratio', array( 'label' => esc_html__( 'Image Ratio', 'aarambha-kits' ), 'type' => Controls_Manager::SELECT, 'default' => '2x3', 'options' => array( '1x1' => '1x1', '2x3' => '2x3', '3x2' => '3x2', '3x4' => '3x4', '4x3' => '4x3', '16x9' => '16x9', '21x9' => '21x9', ), 'label_block' => false, ) ); // Content Structure $this->add_control( 'content_structure_heading', array( 'label' => esc_html__( 'Content Structure', 'aarambha-kits' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'label_block' => false, ) ); // Content Structure $repeater = new Repeater(); // Element $repeater->add_control( 'element', array( 'label' => esc_html__( 'Element', 'aarambha-kits' ), 'type' => Controls_Manager::SELECT, 'options' => array( 'Title' => esc_html__( 'Title', 'aarambha-kits' ), 'Meta' => esc_html__( 'Meta', 'aarambha-kits' ), 'Categories' => esc_html__( 'Categories', 'aarambha-kits' ), 'Excerpt' => esc_html__( 'Excerpt', 'aarambha-kits' ), ), 'default' => 'title', ) ); // Content Structure $this->add_control( 'content_elements', array( 'label' => esc_html__( 'Element Order', 'aarambha-kits' ), 'type' => Controls_Manager::REPEATER, 'fields' => $repeater->get_controls(), 'default' => array( array( 'element' => 'Categories', ), array( 'element' => 'Title', ), array( 'element' => 'Meta', ), ), 'title_field' => '{{{ element }}}', ) ); // Post Meta $this->add_control( 'title_heading', array( 'label' => esc_html__( 'Title', 'aarambha-kits' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'label_block' => false, ) ); // HTML Tag $this->add_control( 'title_html_tag', array( 'label' => esc_html__( 'HTML Tag', 'aarambha-kits' ), 'type' => Controls_Manager::SELECT, 'options' => array( 'h1' => esc_html__( 'H1', 'aarambha-kits' ), 'h2' => esc_html__( 'H2', 'aarambha-kits' ), 'h3' => esc_html__( 'H3', 'aarambha-kits' ), 'h4' => esc_html__( 'H4', 'aarambha-kits' ), 'h5' => esc_html__( 'H5', 'aarambha-kits' ), 'h6' => esc_html__( 'H6', 'aarambha-kits' ), ), 'default' => 'h3', 'label_block' => false, ) ); // Post Meta $this->add_control( 'meta_heading', array( 'label' => esc_html__( 'Meta', 'aarambha-kits' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'label_block' => false, ) ); // Author Enable $this->add_control( 'meta_author_enable', array( 'label' => esc_html__( 'Author', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'label_block' => false, ) ); // Date Enable $this->add_control( 'meta_date_enable', array( 'label' => esc_html__( 'Date', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'yes', 'label_block' => false, ) ); // Comments Enable $this->add_control( 'meta_comments_enable', array( 'label' => esc_html__( 'Comments', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'label_block' => false, ) ); // Post Views Enable $this->add_control( 'meta_post_views_enable', array( 'label' => esc_html__( 'Post Views', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'label_block' => false, ) ); // Read Time $this->add_control( 'meta_read_time_enable', array( 'label' => esc_html__( 'Read Time', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'return_value' => 'yes', 'default' => 'no', 'label_block' => false, ) ); $this->end_controls_section(); } protected function __init_content_slider_controls() { // Slider Settings Tab $this->start_controls_section( 'hero_slider_settings', array( 'label' => esc_html__( 'Slider Settings', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_CONTENT, ) ); // Speed $this->add_control( 'speed', array( 'label' => esc_html__( 'Transition Speed', 'aarambha-kits' ) . ' (ms)', 'description' => esc_html__( 'Duration of transition between slides (in ms).', 'aarambha-kits' ), 'type' => Controls_Manager::NUMBER, 'default' => 1200, ) ); // Navigation $this->add_control( 'navigation', array( 'label' => esc_html__( 'Navigation', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'yes', 'separator' => 'before', ) ); // Pagination $this->add_control( 'pagination', array( 'label' => esc_html__( 'Pagination', 'aarambha-kits' ), 'type' => Controls_Manager::SWITCHER, 'default' => 'no', ) ); $this->end_controls_section(); } protected function __init_style_slide_controls() { // Slide $this->start_controls_section( 'slides_style', array( 'label' => esc_html__( 'Slide Content', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); // Padding $this->add_responsive_control( 'slides_content_padding', array( 'label' => esc_html__( 'Padding', 'aarambha-kits' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), ) ); // Margin $this->add_responsive_control( 'slides_content_margin', array( 'label' => esc_html__( 'Margin', 'aarambha-kits' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), 'separator' => 'after', ) ); // Background $this->add_group_control( Group_Control_Background::get_type(), array( 'name' => 'posts_slider_slides_background', 'label' => esc_html__( 'Background', 'aarambha-kits' ), 'types' => array( 'classic', 'gradient' ), 'exclude' => array( 'image' ), 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap', 'label_block' => false, ) ); // Text Shadow $this->add_group_control( Group_Control_Text_Shadow::get_type(), array( 'name' => 'text_shadow', 'label' => esc_html__( 'Text Shadow', 'aarambha-kits' ), 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap >*', ) ); // Element Spacing $this->add_control( 'content_heading', array( 'label' => esc_html__( 'Element Spacing', 'aarambha-kits' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'label_block' => false, ) ); // Category $this->add_responsive_control( 'content_cat_spacing', array( 'label' => esc_html__( 'Category', 'aarambha-kits' ), 'description' => esc_html__( 'Set bottom spacing.', 'aarambha-kits' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px', '%' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-categories' => 'margin-bottom: {{SIZE}}{{UNIT}};', ), ) ); // Title $this->add_responsive_control( 'content_title_spacing', array( 'label' => esc_html__( 'Title', 'aarambha-kits' ), 'description' => esc_html__( 'Set bottom spacing.', 'aarambha-kits' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px', '%' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-title' => 'margin-bottom: {{SIZE}}{{UNIT}};', ), ) ); // Meta $this->add_responsive_control( 'content_meta_spacing', array( 'label' => esc_html__( 'Meta', 'aarambha-kits' ), 'description' => esc_html__( 'Set bottom spacing.', 'aarambha-kits' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px', '%' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta' => 'margin-bottom: {{SIZE}}{{UNIT}};', ), ) ); // Excerpt $this->add_responsive_control( 'content_excerpt_spacing', array( 'label' => esc_html__( 'Excerpt', 'aarambha-kits' ), 'description' => esc_html__( 'Set bottom spacing.', 'aarambha-kits' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px', '%' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-excerpt' => 'margin-bottom: {{SIZE}}{{UNIT}};', ), ) ); $this->end_controls_section(); } protected function __init_style_categories_controls() { // Ttitle $this->start_controls_section( 'categories_style', array( 'label' => esc_html__( 'Categories', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); // Padding $this->add_responsive_control( 'categories_padding', array( 'label' => esc_html__( 'Padding', 'aarambha-kits' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-categories >*' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), 'separator' => 'after', ) ); // Font Typography $this->add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'categories_typography', 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-categories >*', ) ); // Tabs Start $this->start_controls_tabs( 'categories_tab_start' ); // Normal Tab $this->start_controls_tab( 'categories_normal_tab', array( 'label' => esc_html__( 'NORMAL', 'aarambha-kits' ), ) ); // Font Color $this->add_control( 'categories_font_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-categories >*' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Hover Tab $this->start_controls_tab( 'categories_hover_tab', array( 'label' => esc_html__( 'HOVER', 'aarambha-kits' ), ) ); // Font Color $this->add_control( 'categories_hover_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-categories >*:hover' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Tabs End $this->end_controls_tabs(); $this->end_controls_section(); } protected function __init_style_title_controls() { // Ttitle $this->start_controls_section( 'title_style', array( 'label' => esc_html__( 'Title', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); // Title Typography $this->add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'title_typography', 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-title', ) ); // Tabs Start $this->start_controls_tabs( 'title_tab_start' ); // Normal Tab $this->start_controls_tab( 'title_normal_tab', array( 'label' => esc_html__( 'NORMAL', 'aarambha-kits' ), ) ); // Title Color $this->add_control( 'title_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-title a' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Hover Tab $this->start_controls_tab( 'title_hover_tab', array( 'label' => esc_html__( 'HOVER', 'aarambha-kits' ), ) ); // Title Color $this->add_control( 'title_hover_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-title a:hover' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Tabs End $this->end_controls_tabs(); $this->end_controls_section(); } protected function __init_style_excerpt_controls() { // Ttitle $this->start_controls_section( 'excerpt_style', array( 'label' => esc_html__( 'Excerpt', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); // Excerpt Typography $this->add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'excerpt_typography', 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-excerpt', ) ); // Font Color $this->add_control( 'excerpt_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .entry-excerpt' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Tabs End $this->end_controls_tabs(); $this->end_controls_section(); } protected function __init_style_meta_controls() { // Ttitle $this->start_controls_section( 'meta_style', array( 'label' => esc_html__( 'Meta', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, ) ); // Title Typography $this->add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'meta_typography', 'selector' => '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta *', ) ); // Tabs Start $this->start_controls_tabs( 'meta_tab_start' ); // Normal Tab $this->start_controls_tab( 'meta_normal_tab', array( 'label' => esc_html__( 'NORMAL', 'aarambha-kits' ), ) ); // Font Color $this->add_control( 'meta_font_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta *' => 'color: {{VALUE}}', '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-entry-meta > div::before' => 'background-color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Hover Tab $this->start_controls_tab( 'meta_hover_tab', array( 'label' => esc_html__( 'HOVER', 'aarambha-kits' ), ) ); // Font Color $this->add_control( 'meta_hover_color', array( 'label' => esc_html__( 'Font Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta a:hover' => 'color: {{VALUE}}', '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta a:hover span' => 'color: {{VALUE}}', '{{WRAPPER}} .aarambha-kits-posts-slider-container .aarambha-kits-posts-wrapper .aarambha-kits-post-detail-wrap .aarambha-kits-entry-meta a:hover time' => 'color: {{VALUE}}', ), ) ); $this->end_controls_tab(); // Tabs End $this->end_controls_tabs(); $this->end_controls_section(); } protected function __init_style_navigation_controls() { // Navigarion $this->start_controls_section( 'navigation_style', array( 'label' => esc_html__( 'Navigation', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'navigation' => 'yes', ), ) ); // Color $this->add_control( 'arrows_color', array( 'label' => esc_html__( 'Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .swiper-button-next:after, {{WRAPPER}} .aarambha-kits-posts-slider-container .swiper-button-prev:after' => 'color: {{VALUE}}', ), ) ); $this->end_controls_section(); } protected function __init_style_pagination_controls() { // Pagination $this->start_controls_section( 'pagination_style', array( 'label' => esc_html__( 'Pagination', 'aarambha-kits' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => array( 'pagination' => 'yes', ), ) ); // Color $this->add_control( 'pagination_color', array( 'label' => esc_html__( 'Color', 'aarambha-kits' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} .aarambha-kits-posts-slider-container .swiper-pagination-bullet' => 'background-color: {{VALUE}}', '{{WRAPPER}} .aarambha-kits-posts-slider-container .swiper-pagination-fraction .swiper-pagination-total,{{WRAPPER}} .aarambha-kits-posts-slider-container .swiper-pagination-fraction' => 'color: {{VALUE}}', ), ) ); $this->end_controls_section(); } /** * Render the widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * * @access protected */ protected function render() { $settings = $this->get_settings_for_display(); $elements = map_deep( wp_unslash( $settings['content_elements'] ), 'sanitize_text_field' ); $localize_vars = array( 'autoplay' => true, 'loop' => true, 'speed' => absint( $settings['speed'] ), 'delay' => 5000, 'slidePerViewLg' => 3, 'slidePerViewMd' => 2, 'slidePerViewSm' => 1, 'spaceBetween' => 5, 'pause' => false, 'navigation' => $settings['navigation'] === 'yes' ? true : false, 'pagination' => $settings['pagination'] === 'yes' ? true : false, ); // Posts Slider Container $this->add_render_attribute( 'posts_slider_container', 'class', 'aarambha-kits-container aarambha-kits-posts-slider-container' ); $this->add_render_attribute( 'posts_slider_container', 'data-settings', esc_js( json_encode( $localize_vars ) ) ); // Posts Slide Wrapper $this->add_render_attribute( 'posts_slide_wrapper', 'class', 'swiper-slide d-flex' ); $this->add_render_attribute( 'posts_slide_wrapper', 'class', 'flex-column grid-overlay' ); $this->add_render_attribute( 'posts_slide_wrapper', 'class', 'aarambha-kits-posts-wrapper' ); $args = aarambha_kits_query_agrs( $settings, 1 ); $the_query = new WP_Query( $args ); ?>