st.', 'essential-addons-for-elementor-lite'), 'content_classes' => 'eael-warning', 'condition' => [ 'ea_adv_data_table_source' => 'ninja', ], ] ); } } /** * @since 3.8.2 * @param $source * * @return array */ public function event_calendar_source($source) { if (apply_filters('eael/pro_enabled', false)) { $source['eventon'] = __('EventON', 'essential-addons-for-elementor-lite'); } else { $source['eventon'] = __('EventON (Pro) ', 'essential-addons-for-elementor-lite'); } return $source; } public static function nothing_found_style($wb){ $wb->start_controls_section( 'eael_section_nothing_found_style', [ 'label' => __('Not Found Message', 'essential-addons-for-elementor-lite'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $wb->add_control( 'eael_section_nothing_found_note', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => __( 'Style the message when no posts are found.', 'essential-addons-for-elementor-lite' ), 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', ] ); $wb->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'eael_post_nothing_found_typography', 'selector' => '{{WRAPPER}} .eael-no-posts-found', ] ); $wb->add_control( 'eael_post_nothing_found_color', [ 'label' => esc_html__('Text Color', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .eael-no-posts-found' => 'color: {{VALUE}};', ], ] ); $wb->add_control( 'eael_post_nothing_found_bg_color', [ 'label' => esc_html__('Background Color', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .eael-no-posts-found' => 'background-color: {{VALUE}};', ], ] ); $wb->add_responsive_control( 'eael_post_nothing_found_padding', [ 'label' => esc_html__('Padding', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'default' => [ 'top' => "25", 'right' => "25", 'bottom' => "25", 'left' => "25", 'isLinked' => true, ], 'selectors' => [ '{{WRAPPER}} .eael-no-posts-found' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $wb->add_control( 'eael_post_nothing_found_alignment', [ 'label' => __( 'Alignment', 'essential-addons-for-elementor-lite' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'essential-addons-for-elementor-lite' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'essential-addons-for-elementor-lite' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'essential-addons-for-elementor-lite' ), 'icon' => 'fa fa-align-right', ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .eael-no-posts-found' => 'text-align: {{VALUE}};', ], ] ); $wb->end_controls_section(); } }