Plugin Directory

Changeset 2625032


Ignore:
Timestamp:
11/05/2021 11:01:22 AM (3 years ago)
Author:
itechtheme
Message:

Elements Buddy ( Elementor Addons)

Contributors: itechtheme
Donate link: https://itech-softsolutions.com
Tags: elementor, elementor widget, elementor extention, elementor addons, elementor hero section, elementor slider, elementor banner
Requires at least: 5.0
Tested up to: 5.8
Stable tag: 1.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Elements Buddy Elementor Page Builder Addons

Description


Elements Buddy is a set of slick and effective widgets that works seamlessly with Elementor page builder. It’s latest appearance with element customization features allows to create extremely good designs right away. Elements Buddy is loose, hastily developing and springs with terrific assist.

<h3>Include Widgets</h3>
# <strong>Hero Section:</strong> In this addons included three different responsive and fully customized hero widget with responsive mode support.
Features:

  • Drag and Drop
  • Color Control
  • Typography Control
  • Background Control
  • Easy to Configure
  • Easy to use
  • Compitable with Latest version
  • Full Responsive
  • Clean Design
  • Translation Ready

N.B: If you want more options in this plugin, please [contact with us](https://itech-softsolutions.com/ "iTech Softsolutions - 360<sup>0</sup> Software Company")

Minimum Requirements

  • WordPress 4.9 or greater
  • PHP version 7.0 or greater
  • MySQL version 5.0 or greater

We recommend your host supports:

  • PHP version 7.4 or greater
  • MySQL version 5.6 or greater
  • WP Memory limit of 64 MB or greater (128 MB or higher is preferred)

Installation

  1. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Pages > Add New
  4. Press the 'Edit with Elementor' button.
  5. Now you have the Elements Buddy from the left panel which yu can drag onto the content area.

<strong>Before installing this plugin, you must have to install "Elementor Page Builder Plugin"</strong>

Screenshots

  1. Hero One
  2. Hero Two
  3. Hero Three


Changelog

1.1.0

  • Design Update

1.0.0

  • Initial relase
Location:
elements-buddy
Files:
43 added
4 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • elements-buddy/trunk/Readme.txt

    r2483361 r2625032  
    1 === Elements Buddy ( Elementor Addons)===
     1=== Elements Buddy ( Elementor Addons)===
    22Contributors: itechtheme
    33Donate link: https://itech-softsolutions.com
    44Tags: elementor, elementor widget, elementor extention, elementor addons, elementor hero section, elementor slider, elementor banner
    55Requires at least: 5.0
    6 Tested up to: 5.6
    7 Stable tag: 1.0.0
     6Tested up to: 5.8
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 
    11 Elements Buddy.
    12 
     10   
     11Elements Buddy Elementor Page Builder Addons
     12   
    1313== Description ==
    14 
     14   
    1515Elements Buddy is a set of slick and effective widgets that works seamlessly with Elementor page builder. It’s latest appearance with element customization features allows to create extremely good designs right away. Elements Buddy is loose, hastily developing and springs with terrific assist.
    16 
     16   
    1717<h3>Include Widgets</h3>
    18 
    19 # <strong>Hero Section:</strong> In this addons included three different responsive and fully customized hero widget with responsive mode support.
    20 
     18# <strong>Hero Section:</strong> In this addons included three different responsive and fully customized hero widget with responsive mode support. 
    2119Features:
    22 
    23 *   Drag and Drop
    24 *   Color Control
    25 *   Typography Control
    26 *   Background Control
    27 *   Easy to Configure
    28 *   Easy to use
    29 *   Compitable with Latest version
    30 *   Full Responsive
    31 *   Clean Design
    32 *   Translation Ready
     20* Drag and Drop
     21* Color Control
     22* Typography Control
     23* Background Control
     24* Easy to Configure
     25* Easy to use
     26* Compitable with Latest version
     27* Full Responsive
     28* Clean Design
     29* Translation Ready
    3330
    3431N.B: If you want more options in this plugin, please [contact with us](https://itech-softsolutions.com/ "iTech Softsolutions - 360<sup>0</sup> Software Company")
    3532
    36 == Installation ==
    37 
    3833= Minimum Requirements =
    39 
    4034* WordPress 4.9 or greater
    4135* PHP version 7.0 or greater
     
    4337
    4438= We recommend your host supports: =
    45 
    4639* PHP version 7.4 or greater
    4740* MySQL version 5.6 or greater
     
    4942
    5043= Installation =
    51 
    52441. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the `wp-content/plugins/` directory of your WordPress installation.
    53452. Activate the plugin through the 'Plugins' menu in WordPress.
     
    5749
    5850<strong>Before installing this plugin, you must have to install "Elementor Page Builder Plugin"</strong>
    59 == Screenshots ==
    6051
     52== Screenshots ==   
    61531. Hero One
    62542. Hero Two
    63553. Hero Three
     56   
     57== Changelog ==
    6458
    65 == Changelog ==
     59= 1.1.0 =
     60* Design Update
    6661
    6762= 1.0.0 =
  • elements-buddy/trunk/elements-buddy.php

    r2483361 r2625032  
    11<?php
    2 /**
    3  * Plugin Name: Elements Buddy ( Elementor Addons)
    4  * Description: Elements buddy plugin for custom widget
    5  * Plugin URI:  https://itech-softsolutions.com
    6  * Version:     1.0.0
    7  * Author:      itechtheme
    8  * Author URI:  https://itech-softsolutions.com
    9  * Text Domain: elements-buddy
    10  */
    11 
    12 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    13 
    14 /**
    15  * Main langona Companion Class
    16  *
    17  * Intended To make sure that the plugin's minimum requirements are met.
    18  *
    19  * You should only modify the constants to match your plugin's needs.
    20  *
    21  * Any custom code should go inside Plugin Class in the plugin.php file.
    22  * @since 1.2.0
    23  */
    24 
     2
     3/**
     4 *
     5 * @link              https://itech-softsolutions.com/
     6 * @since             1.1.0
     7 * @package           Elements_Buddy
     8 *
     9 * @wordpress-plugin
     10 * Plugin Name:       Elements Buddy
     11 * Plugin URI:        https://itech-softsolutions.com/plugin
     12 * Description:       Elements Buddy is a set of slick and effective widgets that works seamlessly with Elementor page builder.
     13 * Version:           1.1.0
     14 * Author:            iTech Theme
     15 * Author URI:        https://itech-softsolutions.com/
     16 * License:           GPL-2.0+
     17 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
     18 * Text Domain:       elements-buddy
     19 * Domain Path:       /languages
     20 */
     21
     22// If this file is called directly, abort.
     23if ( ! defined( 'WPINC' ) ) {
     24    die;
     25}
     26
     27/**
     28 * Currently plugin version.
     29 * Start at version 1.0.0
     30 */
     31define( 'ELEMENTS_BUDDY_VERSION', '1.0.0' );
     32
     33/**
     34 * The code that runs during plugin activation.
     35 * This action is documented in includes/class-elements-buddy-activator.php
     36 */
     37function activate_elements_buddy() {
     38    require_once plugin_dir_path( __FILE__ ) . 'includes/class-elements-buddy-activator.php';
     39    Elements_Buddy_Activator::activate();
     40}
     41
     42/**
     43 * The code that runs during plugin deactivation.
     44 * This action is documented in includes/class-elements-buddy-deactivator.php
     45 */
     46function deactivate_elements_buddy() {
     47    require_once plugin_dir_path( __FILE__ ) . 'includes/class-elements-buddy-deactivator.php';
     48    Elements_Buddy_Deactivator::deactivate();
     49}
     50
     51register_activation_hook( __FILE__, 'activate_elements_buddy' );
     52register_deactivation_hook( __FILE__, 'deactivate_elements_buddy' );
     53
     54/**
     55 * The core plugin class that is used to define internationalization,
     56 * admin-specific hooks, and public-facing site hooks.
     57 */
     58require plugin_dir_path( __FILE__ ) . 'includes/class-elements-buddy.php';
     59
     60/**
     61 * Begins execution of the plugin.
     62 *
     63 * Since everything within the plugin is registered via hooks,
     64 * then kicking off the plugin from this point in the file does
     65 * not affect the page life cycle.
     66 *
     67 * @since    1.0.0
     68 */
     69function run_elements_buddy() {
     70
     71    $plugin = new Elements_Buddy();
     72    $plugin->run();
     73}
    2574
    2675final class elementsbuddy {
     
    216265
    217266new elementsbuddy();
     267
     268run_elements_buddy();
  • elements-buddy/trunk/index.php

    r2483361 r2625032  
    1 <?php
    2 //Silence is golden.
     1<?php // Silence is golden
     2
     3if ( ! defined( 'WPINC' ) ) {
     4    die;
     5}
  • elements-buddy/trunk/plugin.php

    r2483361 r2625032  
    22namespace elementsbuddy;
    33
    4 //use elementsbuddy\Widgets\Section_Title;
    54use elementsbuddy\Widgets\Hero_One;
    65use elementsbuddy\Widgets\Hero_Two;
     
    6665     */
    6766    private function include_widgets_files() {
    68         //require_once __DIR__ . '/widgets/title.php';
    6967        require_once __DIR__ . '/widgets/hero-one.php';
    7068        require_once __DIR__ . '/widgets/hero-two.php';
     
    8583
    8684        // Register Widgets
    87         //\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Section_Title() );
    8885        \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Hero_One() );
    8986        \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Hero_Two() );
  • elements-buddy/trunk/uninstall.php

    r2483361 r2625032  
    2020 * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913
    2121 *
    22  * @link       https://itech-softsolutions.com
     22 * @link       https://itech-softsolutions.com/
    2323 * @since      1.0.0
    2424 *
    25  * @package    Elements Buddy
     25 * @package    Elements_Buddy
    2626 */
    2727
  • elements-buddy/trunk/widgets/hero-one.php

    r2483361 r2625032  
    109109
    110110        $this->add_control(
    111             'title',
    112             [
    113                 'label' => __( 'Title', 'elements-buddy' ),
     111            'sub_title',
     112            [
     113                'label' => __( 'Sub Title', 'elements-buddy' ),
    114114                'type' => Controls_Manager::TEXT,
    115                 'default' => __( 'How much traffic should you actually be getting!', 'elements-buddy' ),
     115                'default' => __( 'IT DESIGN & CONSULTING', 'elements-buddy' ),
     116            ]
     117        );
     118
     119        $this->add_control(
     120            'primary_title',
     121            [
     122                'label' => __( 'Primary Title', 'elements-buddy' ),
     123                'type' => Controls_Manager::TEXT,
     124                'default' => __( 'Digital Age Adventure In', 'elements-buddy' ),
     125            ]
     126        );
     127
     128        $this->add_control(
     129            'secondary_title',
     130            [
     131                'label' => __( 'Secondary Title', 'elements-buddy' ),
     132                'type' => Controls_Manager::TEXT,
     133                'default' => __( 'Marketing', 'elements-buddy' ),
    116134            ]
    117135        );
     
    122140                'label' => __( 'Details', 'elements-buddy' ),
    123141                'type' => Controls_Manager::TEXTAREA,
    124                 'default' => __( 'Gilded frame. It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole', 'elements-buddy' ),
     142                'default' => __( 'Grursus mal suada faci lisis Lorem ipsum dolarorit mor ametion the consectetur nec odio aea the dumm text.', 'elements-buddy' ),
    125143            ]
    126144        );
     
    154172            ]
    155173        );
    156        
    157         $this->add_control(
    158             'video_text',
    159             [
    160                 'label' => __( 'Video Text', 'elements-buddy' ),
    161                 'type' => Controls_Manager::TEXT,
    162                 'default' => __( 'Watch Video', 'elements-buddy' ),
    163             ]
    164         );
    165 
    166         $this->add_control(
    167             'video_link',
    168             [
    169                 'label' => __( 'Video Link', 'elements-buddy' ),
    170                 'type' => Controls_Manager::URL,
    171                 'placeholder' => __( 'https://www.youtube.com/embed/7e90gBu4pas?autoplay=1', 'elements-buddy' ),
    172             ]
    173         );
    174174
    175175        $this->end_controls_section();
     
    202202            'title_style',
    203203            [
    204                 'label' => __( 'Title Style', 'elements-buddy' ),
     204                'label' => __( 'Title & Subtile Style', 'elements-buddy' ),
    205205                'tab' => Controls_Manager::TAB_STYLE,
    206206            ]
     
    208208
    209209        $this->add_responsive_control(
    210             'title_color',
    211             [
    212                 'label' => __( 'Title Color', 'elements-buddy' ),
     210            'sub_title_color',
     211            [
     212                'label' => __( 'Sub Title Color', 'elements-buddy' ),
    213213                'type' => \Elementor\Controls_Manager::COLOR,
    214214                'scheme' => [
     
    216216                    'value' => \Elementor\Scheme_Color::COLOR_1,
    217217                ],
    218                 'default'   => '#fff',
     218                'default'   => '#242424',
    219219                'selectors' => [
    220                     '{{WRAPPER}} .slide-title h2' => 'color: {{VALUE}}',
     220                    '{{WRAPPER}} .hero-banner-area .banner-text .banner-subtitle' => 'color: {{VALUE}}',
    221221                ],
    222222            ]
     
    226226            \Elementor\Group_Control_Typography::get_type(),
    227227            [
    228                 'name' => 'title_typography',
    229                 'label' => __( 'Title Typography', 'elements-buddy' ),
     228                'name' => 'sub_title_typography',
     229                'label' => __( 'Sub Title Typography', 'elements-buddy' ),
    230230                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    231                 'selector' => '{{WRAPPER}} .slide-title h2',
    232             ]
    233         );
    234 
    235         $this->end_controls_section();
    236 
    237         // Details Style
    238 
    239         $this->start_controls_section(
    240             'details_style',
    241             [
    242                 'label' => __( 'Details Style', 'elements-buddy' ),
    243                 'tab' => Controls_Manager::TAB_STYLE,
    244             ]
    245         );
    246 
    247         $this->add_responsive_control(
    248             'details_color',
    249             [
    250                 'label' => __( 'Details Color', 'elements-buddy' ),
     231                'selector' => '{{WRAPPER}} .hero-banner-area .banner-text .banner-subtitle',
     232            ]
     233        );
     234
     235        $this->add_responsive_control(
     236            'title_color',
     237            [
     238                'label' => __( 'Primary Title Color', 'elements-buddy' ),
    251239                'type' => \Elementor\Controls_Manager::COLOR,
    252240                'scheme' => [
     
    254242                    'value' => \Elementor\Scheme_Color::COLOR_1,
    255243                ],
    256                 'default'   => '#fff',
     244                'default'   => '#233D62',
    257245                'selectors' => [
    258                     '{{WRAPPER}} .slide-text p' => 'color: {{VALUE}}',
     246                    '{{WRAPPER}} .hero-banner-area .banner-text .banner-title' => 'color: {{VALUE}}',
     247                ],
     248            ]
     249        );
     250
     251        $this->add_group_control(
     252            \Elementor\Group_Control_Typography::get_type(),
     253            [
     254                'name' => 'title_typography',
     255                'label' => __( 'Primary Title Typography', 'elements-buddy' ),
     256                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
     257                'selector' => '{{WRAPPER}} .hero-banner-area .banner-text .banner-title',
     258            ]
     259        );
     260
     261        $this->add_responsive_control(
     262            'secondary_title_color',
     263            [
     264                'label' => __( 'Secondary Title Color', 'elements-buddy' ),
     265                'type' => \Elementor\Controls_Manager::COLOR,
     266                'scheme' => [
     267                    'type' => \Elementor\Scheme_Color::get_type(),
     268                    'value' => \Elementor\Scheme_Color::COLOR_1,
     269                ],
     270                'default'   => '#f96520',
     271                'selectors' => [
     272                    '{{WRAPPER}} .hero-banner-area .banner-text .banner-title span' => 'color: {{VALUE}}',
     273                ],
     274            ]
     275        );
     276
     277        $this->add_group_control(
     278            \Elementor\Group_Control_Typography::get_type(),
     279            [
     280                'name' => 'secondary_title_typography',
     281                'label' => __( 'Secondary Title Typography', 'elements-buddy' ),
     282                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
     283                'selector' => '{{WRAPPER}} .hero-banner-area .banner-text .banner-title span',
     284            ]
     285        );
     286
     287        $this->end_controls_section();
     288
     289        // Details Style
     290
     291        $this->start_controls_section(
     292            'details_style',
     293            [
     294                'label' => __( 'Details Style', 'elements-buddy' ),
     295                'tab' => Controls_Manager::TAB_STYLE,
     296            ]
     297        );
     298
     299        $this->add_responsive_control(
     300            'details_color',
     301            [
     302                'label' => __( 'Details Color', 'elements-buddy' ),
     303                'type' => \Elementor\Controls_Manager::COLOR,
     304                'scheme' => [
     305                    'type' => \Elementor\Scheme_Color::get_type(),
     306                    'value' => \Elementor\Scheme_Color::COLOR_1,
     307                ],
     308                'default'   => '#485666',
     309                'selectors' => [
     310                    '{{WRAPPER}} .hero-banner-area .banner-text .banner-content' => 'color: {{VALUE}}',
    259311                ],
    260312            ]
     
    267319                'label' => __( 'Details Typography', 'elements-buddy' ),
    268320                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    269                 'selector' => '{{WRAPPER}} .slide-text p',
     321                'selector' => '{{WRAPPER}} .hero-banner-area .banner-text .banner-content',
    270322            ]
    271323        );
     
    297349                'label' => __( 'Text Color', 'elements-buddy' ),
    298350                'type' => Controls_Manager::COLOR,
    299                 'default' => '#fc6e36',
    300                 'selectors' => [
    301                     '{{WRAPPER}} .theme-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     351                'default' => '#f96520',
     352                'selectors' => [
     353                    '{{WRAPPER}} .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     354                ],
     355            ]
     356        );
     357
     358        $this->add_responsive_control(
     359            'button_border_color',
     360            [
     361                'label' => __( 'Border Color', 'elements-buddy' ),
     362                'type' => Controls_Manager::COLOR,
     363                'default' => '#f96520',
     364                'selectors' => [
     365                    '{{WRAPPER}} .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    302366                ],
    303367            ]
     
    311375                'default' => '#fff',
    312376                'selectors' => [
    313                     '{{WRAPPER}} .theme-btn' => 'background-color: {{VALUE}};',
     377                    '{{WRAPPER}} .banner-btn' => 'background-color: {{VALUE}};',
    314378                ],
    315379            ]
     
    332396                'default' => '#fff',
    333397                'selectors' => [
    334                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'color: {{VALUE}};',
    335                     '{{WRAPPER}} .theme-btn:hover svg, {{WRAPPER}} .theme-btn:focus svg' => 'fill: {{VALUE}};',
     398                    '{{WRAPPER}} .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     399                ],
     400            ]
     401        );
     402
     403        $this->add_responsive_control(
     404            'button_border_hover_color',
     405            [
     406                'label' => __( 'Border Color', 'elements-buddy' ),
     407                'type' => Controls_Manager::COLOR,
     408                'default' => '#f96520',
     409                'selectors' => [
     410                    '{{WRAPPER}} .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    336411                ],
    337412            ]
     
    343418                'label' => __( 'Background Color', 'elements-buddy' ),
    344419                'type' => \Elementor\Controls_Manager::COLOR,
    345                 'default' => '#fc6e36',
    346                 'selectors' => [
    347                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'background-color: {{VALUE}};',
     420                'default' => '#f96520',
     421                'selectors' => [
     422                    '{{WRAPPER}} .banner-btn:hover, {{WRAPPER}} .banner-btn:focus' => 'background-color: {{VALUE}};',
    348423                ],
    349424            ]
     
    351426
    352427        $this->end_controls_tab();
    353 
    354         $this->end_controls_section();
    355 
    356         // Video Style
    357         $this->start_controls_section(
    358             'video_style',
    359             [
    360                 'label' => __( 'Video Style', 'elements-buddy' ),
    361                 'tab' => Controls_Manager::TAB_STYLE,
    362             ]
    363         );
    364        
    365         $this->add_group_control(
    366             \Elementor\Group_Control_Typography::get_type(),
    367             [
    368                 'name' => 'video_typography',
    369                 'label' => __( 'Typography', 'elements-buddy' ),
    370                 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    371                 'selector' => '{{WRAPPER}} .video-btn',
    372             ]
    373         );
    374 
    375         $this->add_responsive_control(
    376             'video_color',
    377             [
    378                 'label' => __( 'Text Color', 'elements-buddy' ),
    379                 'type' => \Elementor\Controls_Manager::COLOR,
    380                 'scheme' => [
    381                     'type' => \Elementor\Scheme_Color::get_type(),
    382                     'value' => \Elementor\Scheme_Color::COLOR_1,
    383                 ],
    384                 'default'   => '#fff',
    385                 'selectors' => [
    386                     '{{WRAPPER}} .video-btn' => 'color: {{VALUE}}',
    387                 ],
    388             ]
    389         );
    390 
    391         $this->add_responsive_control(
    392             'video_icon_color',
    393             [
    394                 'label' => __( 'Icon Color', 'elements-buddy' ),
    395                 'type' => \Elementor\Controls_Manager::COLOR,
    396                 'scheme' => [
    397                     'type' => \Elementor\Scheme_Color::get_type(),
    398                     'value' => \Elementor\Scheme_Color::COLOR_1,
    399                 ],
    400                 'default'   => '#fff',
    401                 'selectors' => [
    402                     '{{WRAPPER}} .video-btn i' => 'color: {{VALUE}}',
    403                 ],
    404             ]
    405         );
    406 
    407         $this->end_controls_section();
    408428
    409429    }
     
    420440    protected function render() {
    421441        $settings = $this->get_settings_for_display();
    422      ?>
    423     <section class="hero-slider hero-style-1">
    424         <div class="line">
    425             <span></span>
    426             <span></span>
    427             <span></span>
    428             <span></span>
    429             <span></span>
    430         </div>
    431         <div class="hero-container">
    432             <div class="hero-inner">
    433                 <div class="container">
    434                     <div class="slide-title">
    435                         <h2><?php echo esc_html($settings['title']); ?></h2>
     442    ?>
     443    <div class="hero-banner-area">
     444        <div class="container">
     445            <div class="row align-items-center">
     446                <div class="col-md-6 col-lg-5 order-last order-md-firat">
     447                    <div class="banner-text">
     448                    <h3 class="banner-subtitle"><?php echo esc_html($settings['sub_title']); ?></h3>
     449                    <h1 class="banner-title"><?php echo esc_html($settings['primary_title']); ?> <span><?php echo esc_html($settings['secondary_title']); ?></span></h1>
     450                    <p class="banner-content"><?php echo esc_html($settings['details']); ?></p>
     451                    <a href="<?php echo esc_url($settings['button_link']['url']); ?>" class="banner-btn">Our <?php echo esc_html($settings['button_text']); ?> </a>
    436452                    </div>
    437                     <div class="slide-text">
    438                         <p><?php echo esc_html($settings['details']); ?></p>
    439                     </div>
    440                     <div class="clearfix"></div>
    441                     <div data-swiper-parallax="500" class="slide-btns">
    442                         <a href="<?php echo esc_url($settings['button_link']['url']); ?>" class="theme-btn"><?php echo esc_html($settings['button_text']); ?></a>
    443                         <a href="<?php echo esc_url($settings['video_link']['url']); ?>" class="video-btn video-btn-s1" data-type="iframe" tabindex="0"> <?php echo esc_html($settings['video_text']); ?><i class="fi flaticon-play-button"></i></a>
    444                     </div>
    445                     <div class="rocket-area">
    446                         <img src="<?php echo esc_url($settings['image']['url']); ?>" alt="<?php echo esc_url($settings['image']['url']); ?>" />
     453                </div>
     454                <div class="col-md-6 col-lg-7 order-first order-md-last">
     455                    <div class="banner-image">
     456                    <img src="<?php echo esc_url($settings['image']['url']); ?>" alt="<?php echo esc_url($settings['image']['url']); ?>">
    447457                    </div>
    448458                </div>
    449459            </div>
    450460        </div>
    451     </section>
     461    </div>
    452462
    453463   <?php
  • elements-buddy/trunk/widgets/hero-three.php

    r2483361 r2625032  
    109109
    110110        $this->add_control(
    111             'subtitle',
    112             [
    113                 'label' => __( 'Subtitle', 'elements-buddy' ),
     111            'sub_title',
     112            [
     113                'label' => __( 'Sub Title', 'elements-buddy' ),
    114114                'type' => Controls_Manager::TEXT,
    115                 'default' => __( 'BEST SEO AGENCY', 'elements-buddy' ),
    116             ]
    117         );
    118 
    119         $this->add_control(
    120             'title',
    121             [
    122                 'label' => __( 'Title', 'elements-buddy' ),
     115                'default' => __( 'IT DESIGN & CONSULTING', 'elements-buddy' ),
     116            ]
     117        );
     118
     119        $this->add_control(
     120            'primary_title',
     121            [
     122                'label' => __( 'Primary Title', 'elements-buddy' ),
    123123                'type' => Controls_Manager::TEXT,
    124                 'default' => __( 'MORE TRAFFIC', 'elements-buddy' ),
     124                'default' => __( 'Digital Age Adventure In', 'elements-buddy' ),
     125            ]
     126        );
     127
     128        $this->add_control(
     129            'secondary_title',
     130            [
     131                'label' => __( 'Secondary Title', 'elements-buddy' ),
     132                'type' => Controls_Manager::TEXT,
     133                'default' => __( 'Marketing', 'elements-buddy' ),
    125134            ]
    126135        );
     
    131140                'label' => __( 'Details', 'elements-buddy' ),
    132141                'type' => Controls_Manager::TEXTAREA,
    133                 'default' => __( 'Recently cut out of an illustrated magazine and housed in a nice, gilded frame. It showed a lady fitted out with a fur hat and', 'elements-buddy' ),
     142                'default' => __( 'Grursus mal suada faci lisis Lorem ipsum dolarorit mor ametion the consectetur nec odio aea the dumm text.', 'elements-buddy' ),
    134143            ]
    135144        );
     
    138147            'image',
    139148            [
    140                 'label' => __( 'Choose Image', 'elements-buddy' ),
     149                'label' => __( 'Background Image', 'elements-buddy' ),
    141150                'type' => \Elementor\Controls_Manager::MEDIA,
    142151                'default' => [
     
    163172            ]
    164173        );
    165        
    166         $this->add_control(
    167             'video_text',
    168             [
    169                 'label' => __( 'Video Text', 'elements-buddy' ),
    170                 'type' => Controls_Manager::TEXT,
    171                 'default' => __( 'Watch Video', 'elements-buddy' ),
    172             ]
    173         );
    174 
    175         $this->add_control(
    176             'video_link',
    177             [
    178                 'label' => __( 'Video Link', 'elements-buddy' ),
    179                 'type' => Controls_Manager::URL,
    180                 'placeholder' => __( 'https://www.youtube.com/embed/7e90gBu4pas?autoplay=1', 'elements-buddy' ),
    181             ]
    182         );
    183174
    184175        $this->end_controls_section();
    185176
    186         // Style Section
    187 
    188         $this->start_controls_section(
     177         // Style Section
     178
     179         $this->start_controls_section(
    189180            'section_style',
    190181            [
     
    200191                'label' => __( 'Background', 'elements-buddy' ),
    201192                'types' => [ 'classic', 'gradient', 'video' ],
    202                 'selector' => '{{WRAPPER}} .hero-style-3',
     193                'selector' => '{{WRAPPER}} .hero-style-1',
    203194            ]
    204195        );
     
    206197        $this->end_controls_section();
    207198
    208         // Subtitle Style
     199        // Title Style
    209200
    210201        $this->start_controls_section(
    211             'subtitle_style',
    212             [
    213                 'label' => __( 'Subtitle Style', 'elements-buddy' ),
     202            'title_style',
     203            [
     204                'label' => __( 'Title & Subtile Style', 'elements-buddy' ),
    214205                'tab' => Controls_Manager::TAB_STYLE,
    215206            ]
     
    217208
    218209        $this->add_responsive_control(
    219             'subtitle_color',
    220             [
    221                 'label' => __( 'Subtitle Color', 'elements-buddy' ),
     210            'sub_title_color',
     211            [
     212                'label' => __( 'Sub Title Color', 'elements-buddy' ),
    222213                'type' => \Elementor\Controls_Manager::COLOR,
    223214                'scheme' => [
     
    227218                'default'   => '#fff',
    228219                'selectors' => [
    229                     '{{WRAPPER}} .slide-title span' => 'color: {{VALUE}}',
     220                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle' => 'color: {{VALUE}}',
    230221                ],
    231222            ]
     
    235226            \Elementor\Group_Control_Typography::get_type(),
    236227            [
    237                 'name' => 'subtitle_typography',
    238                 'label' => __( 'Subtitle Typography', 'elements-buddy' ),
     228                'name' => 'sub_title_typography',
     229                'label' => __( 'Sub Title Typography', 'elements-buddy' ),
    239230                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    240                 'selector' => '{{WRAPPER}} .slide-title span',
    241             ]
    242         );
    243 
    244         $this->end_controls_section();
    245 
    246         // Title Style
    247 
    248         $this->start_controls_section(
    249             'title_style',
    250             [
    251                 'label' => __( 'Title Style', 'elements-buddy' ),
    252                 'tab' => Controls_Manager::TAB_STYLE,
     231                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle',
    253232            ]
    254233        );
     
    257236            'title_color',
    258237            [
    259                 'label' => __( 'Title Color', 'elements-buddy' ),
     238                'label' => __( 'Primary Title Color', 'elements-buddy' ),
    260239                'type' => \Elementor\Controls_Manager::COLOR,
    261240                'scheme' => [
     
    265244                'default'   => '#fff',
    266245                'selectors' => [
    267                     '{{WRAPPER}} .slide-title h2' => 'color: {{VALUE}}',
     246                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title' => 'color: {{VALUE}}',
    268247                ],
    269248            ]
     
    274253            [
    275254                'name' => 'title_typography',
    276                 'label' => __( 'Title Typography', 'elements-buddy' ),
     255                'label' => __( 'Primary Title Typography', 'elements-buddy' ),
    277256                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    278                 'selector' => '{{WRAPPER}} .slide-title h2',
    279             ]
    280         );
    281 
    282         $this->end_controls_section();
    283 
    284         // Details Style
    285 
    286         $this->start_controls_section(
    287             'details_style',
    288             [
    289                 'label' => __( 'Details Style', 'elements-buddy' ),
    290                 'tab' => Controls_Manager::TAB_STYLE,
    291             ]
    292         );
    293 
    294         $this->add_responsive_control(
    295             'details_color',
    296             [
    297                 'label' => __( 'Details Color', 'elements-buddy' ),
     257                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title',
     258            ]
     259        );
     260
     261        $this->add_responsive_control(
     262            'secondary_title_color',
     263            [
     264                'label' => __( 'Secondary Title Color', 'elements-buddy' ),
    298265                'type' => \Elementor\Controls_Manager::COLOR,
    299266                'scheme' => [
     
    301268                    'value' => \Elementor\Scheme_Color::COLOR_1,
    302269                ],
     270                'default'   => '#f96520',
     271                'selectors' => [
     272                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title span' => 'color: {{VALUE}}',
     273                ],
     274            ]
     275        );
     276
     277        $this->add_group_control(
     278            \Elementor\Group_Control_Typography::get_type(),
     279            [
     280                'name' => 'secondary_title_typography',
     281                'label' => __( 'Secondary Title Typography', 'elements-buddy' ),
     282                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
     283                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title span',
     284            ]
     285        );
     286
     287        $this->end_controls_section();
     288
     289        // Details Style
     290
     291        $this->start_controls_section(
     292            'details_style',
     293            [
     294                'label' => __( 'Details Style', 'elements-buddy' ),
     295                'tab' => Controls_Manager::TAB_STYLE,
     296            ]
     297        );
     298
     299        $this->add_responsive_control(
     300            'details_color',
     301            [
     302                'label' => __( 'Details Color', 'elements-buddy' ),
     303                'type' => \Elementor\Controls_Manager::COLOR,
     304                'scheme' => [
     305                    'type' => \Elementor\Scheme_Color::get_type(),
     306                    'value' => \Elementor\Scheme_Color::COLOR_1,
     307                ],
    303308                'default'   => '#fff',
    304309                'selectors' => [
    305                     '{{WRAPPER}} .slide-text p' => 'color: {{VALUE}}',
     310                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content' => 'color: {{VALUE}}',
    306311                ],
    307312            ]
     
    314319                'label' => __( 'Details Typography', 'elements-buddy' ),
    315320                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    316                 'selector' => '{{WRAPPER}} .slide-text p',
     321                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content',
    317322            ]
    318323        );
     
    344349                'label' => __( 'Text Color', 'elements-buddy' ),
    345350                'type' => Controls_Manager::COLOR,
    346                 'default' => '#fc6e36',
    347                 'selectors' => [
    348                     '{{WRAPPER}} .theme-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     351                'default' => '#f96520',
     352                'selectors' => [
     353                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     354                ],
     355            ]
     356        );
     357
     358        $this->add_responsive_control(
     359            'button_border_color',
     360            [
     361                'label' => __( 'Border Color', 'elements-buddy' ),
     362                'type' => Controls_Manager::COLOR,
     363                'default' => '#f96520',
     364                'selectors' => [
     365                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    349366                ],
    350367            ]
     
    358375                'default' => '#fff',
    359376                'selectors' => [
    360                     '{{WRAPPER}} .theme-btn' => 'background-color: {{VALUE}};',
     377                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'background-color: {{VALUE}};',
    361378                ],
    362379            ]
     
    379396                'default' => '#fff',
    380397                'selectors' => [
    381                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'color: {{VALUE}};',
    382                     '{{WRAPPER}} .theme-btn:hover svg, {{WRAPPER}} .theme-btn:focus svg' => 'fill: {{VALUE}};',
     398                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     399                ],
     400            ]
     401        );
     402
     403        $this->add_responsive_control(
     404            'button_border_hover_color',
     405            [
     406                'label' => __( 'Border Color', 'elements-buddy' ),
     407                'type' => Controls_Manager::COLOR,
     408                'default' => '#f96520',
     409                'selectors' => [
     410                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    383411                ],
    384412            ]
     
    390418                'label' => __( 'Background Color', 'elements-buddy' ),
    391419                'type' => \Elementor\Controls_Manager::COLOR,
    392                 'default' => '#fc6e36',
    393                 'selectors' => [
    394                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'background-color: {{VALUE}};',
     420                'default' => '#f96520',
     421                'selectors' => [
     422                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn:hover, {{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn:focus' => 'background-color: {{VALUE}};',
    395423                ],
    396424            ]
     
    398426
    399427        $this->end_controls_tab();
    400 
    401         $this->end_controls_section();
    402428
    403429    }
     
    414440    protected function render() {
    415441        $settings = $this->get_settings_for_display();
    416      ?>
    417     <section class="hero-slider hero-style-3">
    418         <div class="hero-container">
    419             <div class="hero-inner">
    420                 <div class="container">
    421                     <div class="slide-title">
    422                         <h2><?php echo esc_html($settings['title']); ?></h2>
    423                         <span><?php echo esc_html($settings['subtitle']); ?></span>
    424                     </div>
    425                     <div class="slide-text">
    426                     <p><?php echo esc_html($settings['details']); ?></p>
    427                     </div>
    428                     <div class="clearfix"></div>
    429                     <div data-swiper-parallax="500" class="slide-btns">
    430                         <a href="<?php echo esc_url($settings['button_link']['url']); ?>" class="theme-btn"><?php echo esc_html($settings['button_text']); ?></a>
     442    ?>
     443
     444    <div class="hero-banner-area-three" style="background-image: url(<?php echo esc_url($settings['image']['url']); ?>);">
     445        <div class="container">
     446            <div class="row">
     447                <div class="col-lg-6 offset-lg-6 col-md-8 offset-md-4">
     448                    <div class="banner-text">
     449                    <h3 class="banner-subtitle"><?php echo esc_html($settings['sub_title']); ?></h3>
     450                    <h1 class="banner-title cd-headline zoom"><?php echo esc_html($settings['primary_title']); ?> <span class="cd-words-wrapper"><?php echo esc_html($settings['secondary_title']); ?></span></h1>
     451                    <p class="banner-content"><?php echo esc_html($settings['details']); ?></p>
     452                    <a href="<?php echo esc_url($settings['button_link']['url']); ?>#" class="banner-btn"><?php echo esc_html($settings['button_text']); ?> </a>
    431453                    </div>
    432454                </div>
    433455            </div>
    434456        </div>
    435         <div class="hero-s3-vec">
    436             <img src="<?php echo esc_url($settings['image']['url']); ?>" alt="<?php echo esc_url($settings['image']['url']); ?>" />
    437         </div>
    438     </section>
    439 
     457    </div>
    440458
    441459   <?php
  • elements-buddy/trunk/widgets/hero-two.php

    r2483361 r2625032  
    8989    }
    9090
    91     /**
    92      * Register the widget controls.
    93      *
    94      * Adds different input fields to allow the user to change and customize the widget settings.
    95      *
    96      * @since 1.0.0
    97      *
    98      * @access protected
    99      */
    10091    protected function _register_controls() {
    10192
     
    109100
    110101        $this->add_control(
    111             'subtitle',
    112             [
    113                 'label' => __( 'Subtitle', 'elements-buddy' ),
     102            'sub_title',
     103            [
     104                'label' => __( 'Sub Title', 'elements-buddy' ),
    114105                'type' => Controls_Manager::TEXT,
    115                 'default' => __( 'BEST SEO AGENCY', 'elements-buddy' ),
    116             ]
    117         );
    118 
    119         $this->add_control(
    120             'title',
    121             [
    122                 'label' => __( 'Title', 'elements-buddy' ),
     106                'default' => __( 'IT DESIGN & CONSULTING', 'elements-buddy' ),
     107            ]
     108        );
     109
     110        $this->add_control(
     111            'primary_title',
     112            [
     113                'label' => __( 'Primary Title', 'elements-buddy' ),
    123114                'type' => Controls_Manager::TEXT,
    124                 'default' => __( 'MORE TRAFFIC', 'elements-buddy' ),
     115                'default' => __( 'Digital Age Adventure In', 'elements-buddy' ),
     116            ]
     117        );
     118
     119        $this->add_control(
     120            'secondary_title',
     121            [
     122                'label' => __( 'Secondary Title', 'elements-buddy' ),
     123                'type' => Controls_Manager::TEXT,
     124                'default' => __( 'Marketing', 'elements-buddy' ),
    125125            ]
    126126        );
     
    131131                'label' => __( 'Details', 'elements-buddy' ),
    132132                'type' => Controls_Manager::TEXTAREA,
    133                 'default' => __( 'Gilded frame. It showed a lady fitted out with a fur hat and', 'elements-buddy' ),
     133                'default' => __( 'Grursus mal suada faci lisis Lorem ipsum dolarorit mor ametion the consectetur nec odio aea the dumm text.', 'elements-buddy' ),
    134134            ]
    135135        );
     
    138138            'image',
    139139            [
    140                 'label' => __( 'Choose Image', 'elements-buddy' ),
     140                'label' => __( 'Background Image', 'elements-buddy' ),
    141141                'type' => \Elementor\Controls_Manager::MEDIA,
    142142                'default' => [
     
    163163            ]
    164164        );
    165        
    166         $this->add_control(
    167             'video_text',
    168             [
    169                 'label' => __( 'Video Text', 'elements-buddy' ),
    170                 'type' => Controls_Manager::TEXT,
    171                 'default' => __( 'Watch Video', 'elements-buddy' ),
    172             ]
    173         );
    174 
    175         $this->add_control(
    176             'video_link',
    177             [
    178                 'label' => __( 'Video Link', 'elements-buddy' ),
    179                 'type' => Controls_Manager::URL,
    180                 'placeholder' => __( 'https://www.youtube.com/embed/7e90gBu4pas?autoplay=1', 'elements-buddy' ),
    181             ]
    182         );
    183165
    184166        $this->end_controls_section();
    185167
    186         // Style Section
    187 
    188         $this->start_controls_section(
     168         // Style Section
     169
     170         $this->start_controls_section(
    189171            'section_style',
    190172            [
     
    200182                'label' => __( 'Background', 'elements-buddy' ),
    201183                'types' => [ 'classic', 'gradient', 'video' ],
    202                 'selector' => '{{WRAPPER}} .hero-style-2',
     184                'selector' => '{{WRAPPER}} .hero-style-1',
    203185            ]
    204186        );
     
    206188        $this->end_controls_section();
    207189
    208         // Subtitle Style
     190        // Title Style
    209191
    210192        $this->start_controls_section(
    211             'subtitle_style',
    212             [
    213                 'label' => __( 'Subtitle Style', 'elements-buddy' ),
     193            'title_style',
     194            [
     195                'label' => __( 'Title & Subtile Style', 'elements-buddy' ),
    214196                'tab' => Controls_Manager::TAB_STYLE,
    215197            ]
     
    217199
    218200        $this->add_responsive_control(
    219             'subtitle_color',
    220             [
    221                 'label' => __( 'Subtitle Color', 'elements-buddy' ),
     201            'sub_title_color',
     202            [
     203                'label' => __( 'Sub Title Color', 'elements-buddy' ),
    222204                'type' => \Elementor\Controls_Manager::COLOR,
    223205                'scheme' => [
     
    227209                'default'   => '#fff',
    228210                'selectors' => [
    229                     '{{WRAPPER}} .slide-title span' => 'color: {{VALUE}}',
     211                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle' => 'color: {{VALUE}}',
    230212                ],
    231213            ]
     
    235217            \Elementor\Group_Control_Typography::get_type(),
    236218            [
    237                 'name' => 'subtitle_typography',
    238                 'label' => __( 'Subtitle Typography', 'elements-buddy' ),
     219                'name' => 'sub_title_typography',
     220                'label' => __( 'Sub Title Typography', 'elements-buddy' ),
    239221                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    240                 'selector' => '{{WRAPPER}} .slide-title span',
    241             ]
    242         );
    243 
    244         $this->end_controls_section();
    245 
    246         // Title Style
    247 
    248         $this->start_controls_section(
    249             'title_style',
    250             [
    251                 'label' => __( 'Title Style', 'elements-buddy' ),
    252                 'tab' => Controls_Manager::TAB_STYLE,
     222                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle',
    253223            ]
    254224        );
     
    257227            'title_color',
    258228            [
    259                 'label' => __( 'Title Color', 'elements-buddy' ),
     229                'label' => __( 'Primary Title Color', 'elements-buddy' ),
    260230                'type' => \Elementor\Controls_Manager::COLOR,
    261231                'scheme' => [
     
    265235                'default'   => '#fff',
    266236                'selectors' => [
    267                     '{{WRAPPER}} .slide-title h2' => 'color: {{VALUE}}',
     237                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title' => 'color: {{VALUE}}',
    268238                ],
    269239            ]
     
    274244            [
    275245                'name' => 'title_typography',
    276                 'label' => __( 'Title Typography', 'elements-buddy' ),
     246                'label' => __( 'Primary Title Typography', 'elements-buddy' ),
    277247                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    278                 'selector' => '{{WRAPPER}} .slide-title h2',
    279             ]
    280         );
    281 
    282         $this->end_controls_section();
    283 
    284         // Details Style
    285 
    286         $this->start_controls_section(
    287             'details_style',
    288             [
    289                 'label' => __( 'Details Style', 'elements-buddy' ),
    290                 'tab' => Controls_Manager::TAB_STYLE,
    291             ]
    292         );
    293 
    294         $this->add_responsive_control(
    295             'details_color',
    296             [
    297                 'label' => __( 'Details Color', 'elements-buddy' ),
     248                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title',
     249            ]
     250        );
     251
     252        $this->add_responsive_control(
     253            'secondary_title_color',
     254            [
     255                'label' => __( 'Secondary Title Color', 'elements-buddy' ),
    298256                'type' => \Elementor\Controls_Manager::COLOR,
    299257                'scheme' => [
     
    301259                    'value' => \Elementor\Scheme_Color::COLOR_1,
    302260                ],
     261                'default'   => '#f96520',
     262                'selectors' => [
     263                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title span' => 'color: {{VALUE}}',
     264                ],
     265            ]
     266        );
     267
     268        $this->add_group_control(
     269            \Elementor\Group_Control_Typography::get_type(),
     270            [
     271                'name' => 'secondary_title_typography',
     272                'label' => __( 'Secondary Title Typography', 'elements-buddy' ),
     273                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
     274                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title span',
     275            ]
     276        );
     277
     278        $this->end_controls_section();
     279
     280        // Details Style
     281
     282        $this->start_controls_section(
     283            'details_style',
     284            [
     285                'label' => __( 'Details Style', 'elements-buddy' ),
     286                'tab' => Controls_Manager::TAB_STYLE,
     287            ]
     288        );
     289
     290        $this->add_responsive_control(
     291            'details_color',
     292            [
     293                'label' => __( 'Details Color', 'elements-buddy' ),
     294                'type' => \Elementor\Controls_Manager::COLOR,
     295                'scheme' => [
     296                    'type' => \Elementor\Scheme_Color::get_type(),
     297                    'value' => \Elementor\Scheme_Color::COLOR_1,
     298                ],
    303299                'default'   => '#fff',
    304300                'selectors' => [
    305                     '{{WRAPPER}} .slide-text p' => 'color: {{VALUE}}',
     301                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content' => 'color: {{VALUE}}',
    306302                ],
    307303            ]
     
    314310                'label' => __( 'Details Typography', 'elements-buddy' ),
    315311                'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    316                 'selector' => '{{WRAPPER}} .slide-text p',
     312                'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content',
    317313            ]
    318314        );
     
    344340                'label' => __( 'Text Color', 'elements-buddy' ),
    345341                'type' => Controls_Manager::COLOR,
    346                 'default' => '#fc6e36',
    347                 'selectors' => [
    348                     '{{WRAPPER}} .theme-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     342                'default' => '#f96520',
     343                'selectors' => [
     344                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     345                ],
     346            ]
     347        );
     348
     349        $this->add_responsive_control(
     350            'button_border_color',
     351            [
     352                'label' => __( 'Border Color', 'elements-buddy' ),
     353                'type' => Controls_Manager::COLOR,
     354                'default' => '#f96520',
     355                'selectors' => [
     356                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    349357                ],
    350358            ]
     
    358366                'default' => '#fff',
    359367                'selectors' => [
    360                     '{{WRAPPER}} .theme-btn' => 'background-color: {{VALUE}};',
     368                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'background-color: {{VALUE}};',
    361369                ],
    362370            ]
     
    379387                'default' => '#fff',
    380388                'selectors' => [
    381                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'color: {{VALUE}};',
    382                     '{{WRAPPER}} .theme-btn:hover svg, {{WRAPPER}} .theme-btn:focus svg' => 'fill: {{VALUE}};',
     389                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; color: {{VALUE}};',
     390                ],
     391            ]
     392        );
     393
     394        $this->add_responsive_control(
     395            'button_border_hover_color',
     396            [
     397                'label' => __( 'Border Color', 'elements-buddy' ),
     398                'type' => Controls_Manager::COLOR,
     399                'default' => '#f96520',
     400                'selectors' => [
     401                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'fill: {{VALUE}}; border: 1px solid {{VALUE}};',
    383402                ],
    384403            ]
     
    390409                'label' => __( 'Background Color', 'elements-buddy' ),
    391410                'type' => \Elementor\Controls_Manager::COLOR,
    392                 'default' => '#fc6e36',
    393                 'selectors' => [
    394                     '{{WRAPPER}} .theme-btn:hover, {{WRAPPER}} .theme-btn:focus' => 'background-color: {{VALUE}};',
     411                'default' => '#f96520',
     412                'selectors' => [
     413                    '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn:hover, {{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn:focus' => 'background-color: {{VALUE}};',
    395414                ],
    396415            ]
     
    398417
    399418        $this->end_controls_tab();
    400 
    401         $this->end_controls_section();
    402 
    403         // Video Style
    404         $this->start_controls_section(
    405             'video_style',
    406             [
    407                 'label' => __( 'Video Style', 'elements-buddy' ),
    408                 'tab' => Controls_Manager::TAB_STYLE,
    409             ]
    410         );
    411        
    412         $this->add_group_control(
    413             \Elementor\Group_Control_Typography::get_type(),
    414             [
    415                 'name' => 'video_typography',
    416                 'label' => __( 'Typography', 'elements-buddy' ),
    417                 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
    418                 'selector' => '{{WRAPPER}} .video-btn',
    419             ]
    420         );
    421 
    422         $this->add_responsive_control(
    423             'video_color',
    424             [
    425                 'label' => __( 'Text Color', 'elements-buddy' ),
    426                 'type' => \Elementor\Controls_Manager::COLOR,
    427                 'scheme' => [
    428                     'type' => \Elementor\Scheme_Color::get_type(),
    429                     'value' => \Elementor\Scheme_Color::COLOR_1,
    430                 ],
    431                 'default'   => '#fff',
    432                 'selectors' => [
    433                     '{{WRAPPER}} .video-btn' => 'color: {{VALUE}}',
    434                 ],
    435             ]
    436         );
    437 
    438         $this->add_responsive_control(
    439             'video_icon_color',
    440             [
    441                 'label' => __( 'Icon Color', 'elements-buddy' ),
    442                 'type' => \Elementor\Controls_Manager::COLOR,
    443                 'scheme' => [
    444                     'type' => \Elementor\Scheme_Color::get_type(),
    445                     'value' => \Elementor\Scheme_Color::COLOR_1,
    446                 ],
    447                 'default'   => '#fff',
    448                 'selectors' => [
    449                     '{{WRAPPER}} .video-btn i' => 'color: {{VALUE}}',
    450                 ],
    451             ]
    452         );
    453 
    454         $this->end_controls_section();
    455419
    456420    }
     
    467431    protected function render() {
    468432        $settings = $this->get_settings_for_display();
    469      ?>
    470     <section class="hero-slider hero-style-2">
    471         <div class="hero-container">
    472             <div class="hero-inner">
    473                 <div class="container">
    474                     <div class="slide-title">
    475                         <span><?php echo esc_html($settings['subtitle']); ?></span>
    476                         <h2><?php echo esc_html($settings['title']); ?></h2>
    477                     </div>
    478                     <div class="slide-text">
    479                         <p><?php echo esc_html($settings['details']); ?></p>
    480                     </div>
    481                     <div class="clearfix"></div>
    482                     <div data-swiper-parallax="500" class="slide-btns">
    483                         <a href="<?php echo esc_url($settings['button_link']['url']); ?>" class="theme-btn"><?php echo esc_html($settings['button_text']); ?></a>
    484                         <a href="<?php echo esc_url($settings['video_link']['url']); ?>" class="video-btn video-btn-s1" data-type="iframe" tabindex="0"> <?php echo esc_html($settings['video_text']); ?><i class="fi flaticon-play-button"></i></a>
     433    ?>
     434
     435    <div class="hero-banner-area-two" style="background-image: url(<?php echo esc_url($settings['image']['url']); ?>);">
     436        <div class="container">
     437            <div class="row">
     438                <div class="col-lg-6 offset-lg-3 col-md-8 offset-md-2">
     439                    <div class="banner-text text-center">
     440                    <h3 class="banner-subtitle"><?php echo esc_html($settings['sub_title']); ?></h3>
     441                    <h1 class="banner-title cd-headline zoom"><?php echo esc_html($settings['primary_title']); ?> <span class="cd-words-wrapper"><?php echo esc_html($settings['secondary_title']); ?></span></h1>
     442                    <p class="banner-content"><?php echo esc_html($settings['details']); ?></p>
     443                    <a href="<?php echo esc_url($settings['button_link']['url']); ?>#" class="banner-btn"><?php echo esc_html($settings['button_text']); ?> </a>
    485444                    </div>
    486445                </div>
    487446            </div>
    488447        </div>
    489         <div class="hero-s2-vec">
    490         <img src="<?php echo esc_url($settings['image']['url']); ?>" alt="<?php echo esc_url($settings['image']['url']); ?>" />
    491         </div>
    492     </section>
     448    </div>
    493449
    494450   <?php
Note: See TracChangeset for help on using the changeset viewer.