__( 'Apple', 'aa_elementor' ), 'behance' => __( 'Behance', 'aa_elementor' ), 'bitbucket' => __( 'BitBucket', 'aa_elementor' ), 'codepen' => __( 'CodePen', 'aa_elementor' ), 'delicious' => __( 'Delicious', 'aa_elementor' ), 'deviantart' => __( 'DeviantArt', 'aa_elementor' ), 'digg' => __( 'Digg', 'aa_elementor' ), 'dribbble' => __( 'Dribbble', 'aa_elementor' ), 'email' => __( 'Email', 'aa_elementor' ), 'facebook' => __( 'Facebook', 'aa_elementor' ), 'flickr' => __( 'Flicker', 'aa_elementor' ), 'foursquare' => __( 'FourSquare', 'aa_elementor' ), 'github' => __( 'Github', 'aa_elementor' ), 'houzz' => __( 'Houzz', 'aa_elementor' ), 'instagram' => __( 'Instagram', 'aa_elementor' ), 'jsfiddle' => __( 'JS Fiddle', 'aa_elementor' ), 'linkedin' => __( 'LinkedIn', 'aa_elementor' ), 'medium' => __( 'Medium', 'aa_elementor' ), 'pinterest' => __( 'Pinterest', 'aa_elementor' ), 'product-hunt' => __( 'Product Hunt', 'aa_elementor' ), 'reddit' => __( 'Reddit', 'aa_elementor' ), 'slideshare' => __( 'Slide Share', 'aa_elementor' ), 'snapchat' => __( 'Snapchat', 'aa_elementor' ), 'soundcloud' => __( 'SoundCloud', 'aa_elementor' ), 'spotify' => __( 'Spotify', 'aa_elementor' ), 'stack-overflow' => __( 'StackOverflow', 'aa_elementor' ), 'tripadvisor' => __( 'TripAdvisor', 'aa_elementor' ), 'tumblr' => __( 'Tumblr', 'aa_elementor' ), 'twitch' => __( 'Twitch', 'aa_elementor' ), 'twitter' => __( 'Twitter', 'aa_elementor' ), 'vimeo' => __( 'Vimeo', 'aa_elementor' ), 'vk' => __( 'VK', 'aa_elementor' ), 'website' => __( 'Website', 'aa_elementor' ), 'whatsapp' => __( 'WhatsApp', 'aa_elementor' ), 'wordpress' => __( 'WordPress', 'aa_elementor' ), 'xing' => __( 'Xing', 'aa_elementor' ), 'yelp' => __( 'Yelp', 'aa_elementor' ), 'youtube' => __( 'YouTube', 'aa_elementor' ), ]; } protected function _register_controls() { $this->start_controls_section( '_section_media', [ 'label' => __( 'Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'style', [ 'label' => __( 'Visual Style', 'aa_elementor' ), 'type' => Controls_Manager::SELECT, 'default' => 'style1', 'options' => [ 'style1' => __( 'Style 1', 'aa_elementor' ), 'style2' => __( 'Style 2', 'aa_elementor' ), 'style3' => __( 'Style 3', 'aa_elementor' ), 'style4' => __( 'Style 4', 'aa_elementor' ), ], ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'aa_elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( 'Quotes', 'aa_elementor' ), 'placeholder' => __( 'Type Quotes title here', 'aa_elementor' ), 'condition' => [ 'style' => [ 'style1','style2','style3'], ], ] ); $this->add_control( 'desc', [ 'label' => __( 'Content', 'aa_elementor' ), 'type' => Controls_Manager::TEXTAREA, 'default' => __( 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type — Injected humour', 'aa_elementor' ), 'placeholder' => __( 'Type Content here', 'aa_elementor' ), 'condition' => [ 'style' => [ 'style1','style2','style3','style4'], ], ] ); $this->add_control( 'author', [ 'label' => __( 'Author Name', 'aa_elementor' ), 'type' => Controls_Manager::TEXT, 'default' => __( '— Injected humour', 'aa_elementor' ), 'placeholder' => __( 'Type Author Name here', 'aa_elementor' ), 'condition' => [ 'style' => [ 'style2' ,'style3','style4'], ], ] ); $this->add_responsive_control( 'align', [ 'label' => __( 'Alignment', 'aa_elementor' ), 'type' => Controls_Manager::CHOOSE, 'options' => [ 'left' => [ 'title' => __( 'Left', 'aa_elementor' ), 'icon' => 'fa fa-align-left', ], 'center' => [ 'title' => __( 'Center', 'aa_elementor' ), 'icon' => 'fa fa-align-center', ], 'right' => [ 'title' => __( 'Right', 'aa_elementor' ), 'icon' => 'fa fa-align-right', ], 'justify' => [ 'title' => __( 'Justify', 'aa_elementor' ), 'icon' => 'fa fa-align-justify', ], ], 'toggle' => true, 'selectors' => [ '{{WRAPPER}} .advanced_addons_quotes_card' => 'text-align: {{VALUE}}' ] ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_common', [ 'label' => __( 'Quotes Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_responsive_control( 'content_padding', [ 'label' => __( 'Content Padding', 'aa_elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .advanced_addons_quotes_card' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_title', [ 'label' => __( 'Title Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'title_typography', 'label' => __( 'Typography', 'aa_elementor' ), 'selector' => '{{WRAPPER}} .q-title', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->add_control( 'text_color', [ 'label' => __( 'Title Color', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .q-title' => 'color: {{VALUE}} !important', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_desc', [ 'label' => __( 'Content Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'desc_typography', 'label' => __( 'Typography', 'aa_elementor' ), 'selector' => '{{WRAPPER}} .q-desc', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->add_control( 'desc_color', [ 'label' => __( 'Content Color', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .q-desc' => 'color: {{VALUE}} !important', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_auth', [ 'label' => __( 'Author Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, 'condition' => [ 'style' => ['style2','style3'] ] ] ); $this->add_group_control( Group_Control_Typography:: get_type(), [ 'name' => 'auth_typography', 'label' => __( 'Typography', 'aa_elementor' ), 'selector' => '{{WRAPPER}} .auth', 'scheme' => Scheme_Typography::TYPOGRAPHY_4, ] ); $this->add_control( 'auth_color', [ 'label' => __( 'Author Color', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .auth' => 'color: {{VALUE}} !important', ], ] ); $this->add_control( 'auth_bg', [ 'label' => __( 'Author Background', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .advanced_addons_quotes_card.type-3 span::before' => 'background: {{VALUE}} !important', ], 'condition' => [ 'style' => ['style3'] ] ] ); $this->add_responsive_control( 'auth_padding', [ 'label' => __( 'Author Padding', 'aa_elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .auth' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'auth_margin', [ 'label' => __( 'Author Margin', 'aa_elementor' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '{{WRAPPER}} .auth' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( '_section_style_icon', [ 'label' => __( 'Icon Style', 'aa_elementor' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'icon_color', [ 'label' => __( 'Icon Color', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .q-icon i' => 'color: {{VALUE}} !important', ], ] ); $this->add_control( 'icon_bg', [ 'label' => __( 'Icon Background Color', 'aa_elementor' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .advanced_addons_quotes_card.type-4 .advanced_addons_quotes_icon' => 'background: {{VALUE}} !important', ], 'condition' => [ 'style' => ['style4'] ] ] ); $this->end_controls_section(); } protected function render() { require AAE_PATH . '/modules/quotes/template/view.php'; } // protected function _content_template() { // require AAE_PATH . '/modules/quotes/template/content-template.php'; // } }