$start = is_rtl() ? __('Right', 'essential-addons-for-elementor-lite') : __('Left', 'essential-addons-for-elementor-lite'); $end = !is_rtl() ? __('Right', 'essential-addons-for-elementor-lite') : __('Left', 'essential-addons-for-elementor-lite'); $wb->add_control( $prefix . '_offset_orientation_h', [ 'label' => __('Horizontal Orientation', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'default' => 'start', 'options' => [ 'start' => [ 'title' => $start, 'icon' => 'eicon-h-align-left', ], 'end' => [ 'title' => $end, 'icon' => 'eicon-h-align-right', ], ], 'classes' => 'elementor-control-start-end', 'render_type' => 'ui', 'condition' => [ $prefix . '_position!' => '', ], ] ); $wb->add_responsive_control( $prefix . '_offset_x', [ 'label' => __('Offset', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => -1000, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => -200, 'max' => 200, ], 'vw' => [ 'min' => -200, 'max' => 200, ], 'vh' => [ 'min' => -200, 'max' => 200, ], ], 'default' => [ 'size' => '0', ], 'size_units' => ['px', '%', 'vw', 'vh'], 'selectors' => [ 'body:not(.rtl) ' . $selectors => 'left: {{SIZE}}{{UNIT}}', 'body.rtl ' . $selectors => 'right: {{SIZE}}{{UNIT}}', ], 'condition' => [ $prefix . '_offset_orientation_h!' => 'end', $prefix . '_position!' => '', ], ] ); $wb->add_responsive_control( $prefix . '_offset_x_end', [ 'label' => __('Offset', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => -1000, 'max' => 1000, 'step' => 0.1, ], '%' => [ 'min' => -200, 'max' => 200, ], 'vw' => [ 'min' => -200, 'max' => 200, ], 'vh' => [ 'min' => -200, 'max' => 200, ], ], 'default' => [ 'size' => '0', ], 'size_units' => ['px', '%', 'vw', 'vh'], 'selectors' => [ 'body:not(.rtl) ' . $selectors => 'right: {{SIZE}}{{UNIT}}', 'body.rtl ' . $selectors => 'left: {{SIZE}}{{UNIT}}', ], 'condition' => [ $prefix . '_offset_orientation_h' => 'end', $prefix . '_position!' => '', ], ] ); $wb->add_control( $prefix . '_offset_orientation_v', [ 'label' => __('Vertical Orientation', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::CHOOSE, 'toggle' => false, 'default' => 'start', 'options' => [ 'start' => [ 'title' => __('Top', 'essential-addons-for-elementor-lite'), 'icon' => 'eicon-v-align-top', ], 'end' => [ 'title' => __('Bottom', 'essential-addons-for-elementor-lite'), 'icon' => 'eicon-v-align-bottom', ], ], 'render_type' => 'ui', 'condition' => [ $prefix . '_position!' => '', ], ] ); $wb->add_responsive_control( $prefix . '_offset_y', [ 'label' => __('Offset', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => -1000, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => -200, 'max' => 200, ], 'vh' => [ 'min' => -200, 'max' => 200, ], 'vw' => [ 'min' => -200, 'max' => 200, ], ], 'size_units' => ['px', '%', 'vh', 'vw'], 'default' => [ 'size' => '0', ], 'selectors' => [ $selectors => 'top: {{SIZE}}{{UNIT}}', ], 'condition' => [ $prefix . '_offset_orientation_v!' => 'end', $prefix . '_position!' => '', ], ] ); $wb->add_responsive_control( $prefix . '_offset_y_end', [ 'label' => __('Offset', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => -1000, 'max' => 1000, 'step' => 1, ], '%' => [ 'min' => -200, 'max' => 200, ], 'vh' => [ 'min' => -200, 'max' => 200, ], 'vw' => [ 'min' => -200, 'max' => 200, ], ], 'size_units' => ['px', '%', 'vh', 'vw'], 'default' => [ 'size' => '0', ], 'selectors' => [ $selectors => 'bottom: {{SIZE}}{{UNIT}}', ], 'condition' => [ $prefix . '_offset_orientation_v' => 'end', $prefix . '_position!' => '', ], ] ); $wb->end_controls_section(); } public function advanced_data_table_source($wb) { if (apply_filters('eael/is_plugin_active', 'ninja-tables/ninja-tables.php')) { $wb->add_control( 'ea_adv_data_table_source_ninja_table_id', [ 'label' => esc_html__('Table ID', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SELECT, 'options' => ControlsHelper::get_ninja_tables_list(), 'condition' => [ 'ea_adv_data_table_source' => 'ninja', ], ] ); } else { $wb->add_control( 'ea_adv_data_table_ninja_required', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => __('Ninja Tables is not installed/activated on your site. Please install and activate Ninja Tables first.', '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' => 'eicon-text-align-left', ], 'center' => [ 'title' => __( 'Center', 'essential-addons-for-elementor-lite' ), 'icon' => 'eicon-text-align-center', ], 'right' => [ 'title' => __( 'Right', 'essential-addons-for-elementor-lite' ), 'icon' => 'eicon-text-align-right', ], ], 'default' => 'center', 'selectors' => [ '{{WRAPPER}} .eael-no-posts-found' => 'text-align: {{VALUE}};', ], ] ); $wb->end_controls_section(); } }