golden hour
/home/godaofbq/hyperxpod.com/wp-content/plugins/essential-addons-elementor/includes/Elements
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
514 B
Del
OK
Advanced_Menu.php
11.29 KB
Del
OK
Advanced_Search.php
66.23 KB
Del
OK
Content_Timeline.php
82.69 KB
Del
OK
Counter.php
47.38 KB
Del
OK
Divider.php
31.78 KB
Del
OK
Dynamic_Filterable_Gallery.php
75.91 KB
Del
OK
Fancy_Chart.php
100.73 KB
Del
OK
Flip_Carousel.php
29.36 KB
Del
OK
Google_Map.php
49.13 KB
Del
OK
Image_Comparison.php
29.63 KB
Del
OK
Image_Hot_Spots.php
48.73 KB
Del
OK
Image_Scroller.php
6.71 KB
Del
OK
Instagram_Feed.php
30.31 KB
Del
OK
Interactive_Card.php
71.42 KB
Del
OK
Interactive_Promo.php
12.13 KB
Del
OK
LD_Course_List.php
142 KB
Del
OK
Lightbox.php
67.11 KB
Del
OK
Logo_Carousel.php
46.31 KB
Del
OK
Mailchimp.php
39.07 KB
Del
OK
Offcanvas.php
53.38 KB
Del
OK
One_Page_Navigation.php
30.38 KB
Del
OK
Post_Block.php
33.04 KB
Del
OK
Post_Carousel.php
68.28 KB
Del
OK
Post_List.php
110.02 KB
Del
OK
Price_Menu.php
46.46 KB
Del
OK
Protected_Content.php
35.45 KB
Del
OK
Static_Product.php
79.19 KB
Del
OK
Team_Member_Carousel.php
76.45 KB
Del
OK
Testimonial_Slider.php
70.38 KB
Del
OK
Toggle.php
31.57 KB
Del
OK
Twitter_Feed_Carousel.php
57.07 KB
Del
OK
Woo_Account_Dashboard.php
96.34 KB
Del
OK
Woo_Collections.php
25.46 KB
Del
OK
Woo_Cross_Sells.php
34.22 KB
Del
OK
Woo_Product_Slider.php
128.89 KB
Del
OK
Woo_Thank_You.php
103.31 KB
Del
OK
advance-gmap-themes.php
19.62 KB
Del
OK
Edit: Interactive_Promo.php
<?php namespace Essential_Addons_Elementor\Pro\Elements; use \Elementor\Controls_Manager; use \Elementor\Group_Control_Background; use \Elementor\Group_Control_Border; use \Elementor\Group_Control_Typography; use \Elementor\Core\Kits\Documents\Tabs\Global_Typography; use \Elementor\Utils; use \Elementor\Widget_Base; use Essential_Addons_Elementor\Classes\Helper; if (!defined('ABSPATH')) { exit; } // If this file is called directly, abort. class Interactive_Promo extends Widget_Base { public function get_name() { return 'eael-interactive-promo'; } public function get_title() { return esc_html__('Interactive Promo', 'essential-addons-elementor'); } public function get_icon() { return 'eaicon-interactive-promo'; } public function get_categories() { return ['essential-addons-elementor']; } public function get_keywords() { return [ 'BANNER', 'Promotional ad', 'promo', 'interactive banner', 'ea', 'essential addons', ]; } protected function is_dynamic_content():bool { return false; } public function get_custom_help_url() { return 'https://essential-addons.com/elementor/docs/interactive-promo/'; } protected function register_controls() { // Content Controls $this->start_controls_section( 'eael_section_promo_content', [ 'label' => esc_html__('Promo Content', 'essential-addons-elementor'), ] ); $this->add_control( 'promo_image', [ 'label' => __('Promo Image', 'essential-addons-elementor'), 'type' => Controls_Manager::MEDIA, 'default' => [ 'url' => Utils::get_placeholder_image_src(), ], 'dynamic' => [ 'active' => true, ], 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'promo_image_alt', [ 'label' => __('Image ALT Tag', 'essential-addons-elementor'), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => '', 'placeholder' => __('Enter alter tag for the image', 'essential-addons-elementor'), 'title' => __('Input image alter tag here', 'essential-addons-elementor'), 'dynamic' => ['action' => true], 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'promo_heading', [ 'label' => __('Promo Heading', 'essential-addons-elementor'), 'type' => Controls_Manager::TEXT, 'label_block' => true, 'default' => 'I am Interactive', 'placeholder' => __('Enter heading for the promo', 'essential-addons-elementor'), 'title' => __('Enter heading for the promo', 'essential-addons-elementor'), 'dynamic' => ['active' => true], 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'promo_content', [ 'label' => __('Promo Content', 'essential-addons-elementor'), 'type' => Controls_Manager::WYSIWYG, 'default' => __('Click to inspect, then edit as needed.', 'essential-addons-elementor'), ] ); $this->add_control( 'promo_link_url', [ 'label' => __('Link URL', 'essential-addons-elementor'), 'type' => Controls_Manager::TEXT, 'dynamic' => ['active' => true], 'label_block' => true, 'default' => '#', 'placeholder' => __('Enter link URL for the promo', 'essential-addons-elementor'), 'title' => __('Enter URL for the promo', 'essential-addons-elementor'), 'ai' => [ 'active' => false, ], ] ); $this->add_control( 'promo_link_target', [ 'label' => esc_html__('Open in new window?', 'essential-addons-elementor'), 'type' => Controls_Manager::SWITCHER, 'label_on' => __('_blank', 'essential-addons-elementor'), 'label_off' => __('_self', 'essential-addons-elementor'), 'default' => '_self', ] ); $this->end_controls_section(); // Style Controls $this->start_controls_section( 'eael_section_promo_settings', [ 'label' => esc_html__('Promo Effects & Settings', 'essential-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'promo_effect', [ 'label' => esc_html__('Set Promo Effect', 'essential-addons-elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'effect-lily', 'options' => [ 'effect-lily' => esc_html__('Lily', 'essential-addons-elementor'), 'effect-sadie' => esc_html__('Sadie', 'essential-addons-elementor'), 'effect-layla' => esc_html__('Layla', 'essential-addons-elementor'), 'effect-oscar' => esc_html__('Oscar', 'essential-addons-elementor'), 'effect-marley' => esc_html__('Marley', 'essential-addons-elementor'), 'effect-ruby' => esc_html__('Ruby', 'essential-addons-elementor'), 'effect-roxy' => esc_html__('Roxy', 'essential-addons-elementor'), 'effect-bubba' => esc_html__('Bubba', 'essential-addons-elementor'), 'effect-romeo' => esc_html__('Romeo', 'essential-addons-elementor'), 'effect-sarah' => esc_html__('Sarah', 'essential-addons-elementor'), 'effect-chico' => esc_html__('Chico', 'essential-addons-elementor'), 'effect-milo' => esc_html__('Milo', 'essential-addons-elementor'), 'effect-apollo' => esc_html__('Apolo', 'essential-addons-elementor'), 'effect-jazz' => esc_html__('Jazz', 'essential-addons-elementor'), 'effect-ming' => esc_html__('Ming', 'essential-addons-elementor'), ], ] ); $this->add_control( 'promo_container_width', [ 'label' => esc_html__('Set max width for the container?', 'essential-addons-elementor'), 'type' => Controls_Manager::SWITCHER, 'label_on' => __('yes', 'essential-addons-elementor'), 'label_off' => __('no', 'essential-addons-elementor'), 'default' => 'yes', ] ); $this->add_responsive_control( 'promo_container_width_value', [ 'label' => __('Container Max Width (% or px)', 'essential-addons-elementor'), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 480, 'unit' => 'px', ], 'size_units' => ['px', '%'], 'range' => [ 'px' => [ 'min' => 0, 'max' => 1000, 'step' => 5, ], '%' => [ 'min' => 1, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .eael-interactive-promo' => 'max-width: {{SIZE}}{{UNIT}};', ], 'condition' => [ 'promo_container_width' => 'yes', ], ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'promo_border', 'selector' => '{{WRAPPER}} .eael-interactive-promo figure', ] ); $this->add_control( 'promo_border_radius', [ 'label' => esc_html__('Border Radius', 'essential-addons-elementor'), 'type' => Controls_Manager::SLIDER, 'range' => [ 'px' => [ 'min' => 0, 'max' => 100, ], ], 'selectors' => [ '{{WRAPPER}} .eael-interactive-promo figure' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'eael_section_promo_styles', [ 'label' => esc_html__('Colors & Typography', 'essential-addons-elementor'), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'promo_heading_color', [ 'label' => esc_html__('Promo Heading Color', 'essential-addons-elementor'), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .eael-interactive-promo figure figcaption h2' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'eael_promo_title_typography', 'global' => [ 'default' => Global_Typography::TYPOGRAPHY_PRIMARY ], 'selector' => '{{WRAPPER}} .eael-interactive-promo figure figcaption h2', ] ); $this->add_control( 'promo_content_color', [ 'label' => esc_html__('Promo Content Color', 'essential-addons-elementor'), 'type' => Controls_Manager::COLOR, 'default' => '#ffffff', 'selectors' => [ '{{WRAPPER}} .eael-interactive-promo figure p' => 'color: {{VALUE}};', ], ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'eael_promo_content_typography', 'global' => [ 'default' => Global_Typography::TYPOGRAPHY_PRIMARY ], 'selector' => '{{WRAPPER}} .eael-interactive-promo figure p', ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'promo_overlay_color', 'label' => __('Background', 'essential-addons-elementor'), 'types' => ['classic', 'gradient'], 'default' => '#3085a3', 'selector' => '{{WRAPPER}} .eael-interactive-promo figure', ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); $promo_image = $this->get_settings_for_display( 'promo_image' ); ?> <div id="eael-promo-<?php echo esc_attr( $this->get_id() ); ?>" class="eael-interactive-promo"> <figure class="<?php echo esc_attr( $settings['promo_effect'] ); ?>"> <?php echo '<img alt="' . esc_attr( $settings['promo_image_alt'] ) . '" src="' . esc_url( $promo_image['url'] ) . '">'; ?> <figcaption> <div> <?php if ( ! empty( $settings['promo_heading'] ) ) : ?> <h2><?php echo esc_html( $settings['promo_heading'] ); ?></h2> <?php endif; ?> <p><?php echo wp_kses( $settings['promo_content'], Helper::eael_allowed_tags() ); ?></p> </div> <?php if ( isset( $settings['promo_link_url'] ) && ! empty( $settings['promo_link_url'] ) ) : ?> <a href="<?php echo esc_url( $settings['promo_link_url'] ); ?>" target="<?php echo esc_attr( $settings['promo_link_target'] ); ?>"></a> <?php endif; ?> </figcaption> </figure> </div> <?php } }
Save