Changeset 2625032
- Timestamp:
- 11/05/2021 11:01:22 AM (3 years ago)
- 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)=== 2 2 Contributors: itechtheme 3 3 Donate link: https://itech-softsolutions.com 4 4 Tags: elementor, elementor widget, elementor extention, elementor addons, elementor hero section, elementor slider, elementor banner 5 5 Requires at least: 5.0 6 Tested up to: 5. 67 Stable tag: 1. 0.06 Tested up to: 5.8 7 Stable tag: 1.1.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 11 Elements Buddy .12 10 11 Elements Buddy Elementor Page Builder Addons 12 13 13 == Description == 14 14 15 15 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. 16 16 17 17 <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. 21 19 Features: 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 33 30 34 31 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") 35 32 36 == Installation ==37 38 33 = Minimum Requirements = 39 40 34 * WordPress 4.9 or greater 41 35 * PHP version 7.0 or greater … … 43 37 44 38 = We recommend your host supports: = 45 46 39 * PHP version 7.4 or greater 47 40 * MySQL version 5.6 or greater … … 49 42 50 43 = Installation = 51 52 44 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. 53 45 2. Activate the plugin through the 'Plugins' menu in WordPress. … … 57 49 58 50 <strong>Before installing this plugin, you must have to install "Elementor Page Builder Plugin"</strong> 59 == Screenshots ==60 51 52 == Screenshots == 61 53 1. Hero One 62 54 2. Hero Two 63 55 3. Hero Three 56 57 == Changelog == 64 58 65 == Changelog == 59 = 1.1.0 = 60 * Design Update 66 61 67 62 = 1.0.0 = -
elements-buddy/trunk/elements-buddy.php
r2483361 r2625032 1 1 <?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. 23 if ( ! defined( 'WPINC' ) ) { 24 die; 25 } 26 27 /** 28 * Currently plugin version. 29 * Start at version 1.0.0 30 */ 31 define( '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 */ 37 function 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 */ 46 function deactivate_elements_buddy() { 47 require_once plugin_dir_path( __FILE__ ) . 'includes/class-elements-buddy-deactivator.php'; 48 Elements_Buddy_Deactivator::deactivate(); 49 } 50 51 register_activation_hook( __FILE__, 'activate_elements_buddy' ); 52 register_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 */ 58 require 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 */ 69 function run_elements_buddy() { 70 71 $plugin = new Elements_Buddy(); 72 $plugin->run(); 73 } 25 74 26 75 final class elementsbuddy { … … 216 265 217 266 new elementsbuddy(); 267 268 run_elements_buddy(); -
elements-buddy/trunk/index.php
r2483361 r2625032 1 <?php 2 //Silence is golden. 1 <?php // Silence is golden 2 3 if ( ! defined( 'WPINC' ) ) { 4 die; 5 } -
elements-buddy/trunk/plugin.php
r2483361 r2625032 2 2 namespace elementsbuddy; 3 3 4 //use elementsbuddy\Widgets\Section_Title;5 4 use elementsbuddy\Widgets\Hero_One; 6 5 use elementsbuddy\Widgets\Hero_Two; … … 66 65 */ 67 66 private function include_widgets_files() { 68 //require_once __DIR__ . '/widgets/title.php';69 67 require_once __DIR__ . '/widgets/hero-one.php'; 70 68 require_once __DIR__ . '/widgets/hero-two.php'; … … 85 83 86 84 // Register Widgets 87 //\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Section_Title() );88 85 \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Hero_One() ); 89 86 \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Hero_Two() ); -
elements-buddy/trunk/uninstall.php
r2483361 r2625032 20 20 * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913 21 21 * 22 * @link https://itech-softsolutions.com 22 * @link https://itech-softsolutions.com/ 23 23 * @since 1.0.0 24 24 * 25 * @package Elements 25 * @package Elements_Buddy 26 26 */ 27 27 -
elements-buddy/trunk/widgets/hero-one.php
r2483361 r2625032 109 109 110 110 $this->add_control( 111 ' title',112 [ 113 'label' => __( ' Title', 'elements-buddy' ),111 'sub_title', 112 [ 113 'label' => __( 'Sub Title', 'elements-buddy' ), 114 114 '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' ), 116 134 ] 117 135 ); … … 122 140 'label' => __( 'Details', 'elements-buddy' ), 123 141 'type' => Controls_Manager::TEXTAREA, 124 'default' => __( 'G ilded 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' ), 125 143 ] 126 144 ); … … 154 172 ] 155 173 ); 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 );174 174 175 175 $this->end_controls_section(); … … 202 202 'title_style', 203 203 [ 204 'label' => __( 'Title Style', 'elements-buddy' ),204 'label' => __( 'Title & Subtile Style', 'elements-buddy' ), 205 205 'tab' => Controls_Manager::TAB_STYLE, 206 206 ] … … 208 208 209 209 $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' ), 213 213 'type' => \Elementor\Controls_Manager::COLOR, 214 214 'scheme' => [ … … 216 216 'value' => \Elementor\Scheme_Color::COLOR_1, 217 217 ], 218 'default' => '# fff',218 'default' => '#242424', 219 219 'selectors' => [ 220 '{{WRAPPER}} . slide-title h2' => 'color: {{VALUE}}',220 '{{WRAPPER}} .hero-banner-area .banner-text .banner-subtitle' => 'color: {{VALUE}}', 221 221 ], 222 222 ] … … 226 226 \Elementor\Group_Control_Typography::get_type(), 227 227 [ 228 'name' => ' title_typography',229 'label' => __( ' Title Typography', 'elements-buddy' ),228 'name' => 'sub_title_typography', 229 'label' => __( 'Sub Title Typography', 'elements-buddy' ), 230 230 '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' ), 251 239 'type' => \Elementor\Controls_Manager::COLOR, 252 240 'scheme' => [ … … 254 242 'value' => \Elementor\Scheme_Color::COLOR_1, 255 243 ], 256 'default' => '# fff',244 'default' => '#233D62', 257 245 '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}}', 259 311 ], 260 312 ] … … 267 319 'label' => __( 'Details Typography', 'elements-buddy' ), 268 320 'scheme' => Scheme_Typography::TYPOGRAPHY_1, 269 'selector' => '{{WRAPPER}} . slide-text p',321 'selector' => '{{WRAPPER}} .hero-banner-area .banner-text .banner-content', 270 322 ] 271 323 ); … … 297 349 'label' => __( 'Text Color', 'elements-buddy' ), 298 350 '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}};', 302 366 ], 303 367 ] … … 311 375 'default' => '#fff', 312 376 'selectors' => [ 313 '{{WRAPPER}} . theme-btn' => 'background-color: {{VALUE}};',377 '{{WRAPPER}} .banner-btn' => 'background-color: {{VALUE}};', 314 378 ], 315 379 ] … … 332 396 'default' => '#fff', 333 397 '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}};', 336 411 ], 337 412 ] … … 343 418 'label' => __( 'Background Color', 'elements-buddy' ), 344 419 'type' => \Elementor\Controls_Manager::COLOR, 345 'default' => '#f c6e36',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}};', 348 423 ], 349 424 ] … … 351 426 352 427 $this->end_controls_tab(); 353 354 $this->end_controls_section();355 356 // Video Style357 $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();408 428 409 429 } … … 420 440 protected function render() { 421 441 $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> 436 452 </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']); ?>"> 447 457 </div> 448 458 </div> 449 459 </div> 450 460 </div> 451 </ section>461 </div> 452 462 453 463 <?php -
elements-buddy/trunk/widgets/hero-three.php
r2483361 r2625032 109 109 110 110 $this->add_control( 111 'sub title',112 [ 113 'label' => __( 'Sub title', 'elements-buddy' ),111 'sub_title', 112 [ 113 'label' => __( 'Sub Title', 'elements-buddy' ), 114 114 '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' ), 123 123 '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' ), 125 134 ] 126 135 ); … … 131 140 'label' => __( 'Details', 'elements-buddy' ), 132 141 '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' ), 134 143 ] 135 144 ); … … 138 147 'image', 139 148 [ 140 'label' => __( ' ChooseImage', 'elements-buddy' ),149 'label' => __( 'Background Image', 'elements-buddy' ), 141 150 'type' => \Elementor\Controls_Manager::MEDIA, 142 151 'default' => [ … … 163 172 ] 164 173 ); 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 );183 174 184 175 $this->end_controls_section(); 185 176 186 // Style Section187 188 $this->start_controls_section(177 // Style Section 178 179 $this->start_controls_section( 189 180 'section_style', 190 181 [ … … 200 191 'label' => __( 'Background', 'elements-buddy' ), 201 192 'types' => [ 'classic', 'gradient', 'video' ], 202 'selector' => '{{WRAPPER}} .hero-style- 3',193 'selector' => '{{WRAPPER}} .hero-style-1', 203 194 ] 204 195 ); … … 206 197 $this->end_controls_section(); 207 198 208 // Subtitle Style199 // Title Style 209 200 210 201 $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' ), 214 205 'tab' => Controls_Manager::TAB_STYLE, 215 206 ] … … 217 208 218 209 $this->add_responsive_control( 219 'sub title_color',220 [ 221 'label' => __( 'Sub title Color', 'elements-buddy' ),210 'sub_title_color', 211 [ 212 'label' => __( 'Sub Title Color', 'elements-buddy' ), 222 213 'type' => \Elementor\Controls_Manager::COLOR, 223 214 'scheme' => [ … … 227 218 'default' => '#fff', 228 219 'selectors' => [ 229 '{{WRAPPER}} . slide-title span' => 'color: {{VALUE}}',220 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle' => 'color: {{VALUE}}', 230 221 ], 231 222 ] … … 235 226 \Elementor\Group_Control_Typography::get_type(), 236 227 [ 237 'name' => 'sub title_typography',238 'label' => __( 'Sub title Typography', 'elements-buddy' ),228 'name' => 'sub_title_typography', 229 'label' => __( 'Sub Title Typography', 'elements-buddy' ), 239 230 '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', 253 232 ] 254 233 ); … … 257 236 'title_color', 258 237 [ 259 'label' => __( ' Title Color', 'elements-buddy' ),238 'label' => __( 'Primary Title Color', 'elements-buddy' ), 260 239 'type' => \Elementor\Controls_Manager::COLOR, 261 240 'scheme' => [ … … 265 244 'default' => '#fff', 266 245 'selectors' => [ 267 '{{WRAPPER}} . slide-title h2' => 'color: {{VALUE}}',246 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title' => 'color: {{VALUE}}', 268 247 ], 269 248 ] … … 274 253 [ 275 254 'name' => 'title_typography', 276 'label' => __( ' Title Typography', 'elements-buddy' ),255 'label' => __( 'Primary Title Typography', 'elements-buddy' ), 277 256 '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' ), 298 265 'type' => \Elementor\Controls_Manager::COLOR, 299 266 'scheme' => [ … … 301 268 'value' => \Elementor\Scheme_Color::COLOR_1, 302 269 ], 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 ], 303 308 'default' => '#fff', 304 309 'selectors' => [ 305 '{{WRAPPER}} . slide-text p' => 'color: {{VALUE}}',310 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content' => 'color: {{VALUE}}', 306 311 ], 307 312 ] … … 314 319 'label' => __( 'Details Typography', 'elements-buddy' ), 315 320 'scheme' => Scheme_Typography::TYPOGRAPHY_1, 316 'selector' => '{{WRAPPER}} . slide-text p',321 'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content', 317 322 ] 318 323 ); … … 344 349 'label' => __( 'Text Color', 'elements-buddy' ), 345 350 '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}};', 349 366 ], 350 367 ] … … 358 375 'default' => '#fff', 359 376 'selectors' => [ 360 '{{WRAPPER}} . theme-btn' => 'background-color: {{VALUE}};',377 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'background-color: {{VALUE}};', 361 378 ], 362 379 ] … … 379 396 'default' => '#fff', 380 397 '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}};', 383 411 ], 384 412 ] … … 390 418 'label' => __( 'Background Color', 'elements-buddy' ), 391 419 'type' => \Elementor\Controls_Manager::COLOR, 392 'default' => '#f c6e36',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}};', 395 423 ], 396 424 ] … … 398 426 399 427 $this->end_controls_tab(); 400 401 $this->end_controls_section();402 428 403 429 } … … 414 440 protected function render() { 415 441 $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> 431 453 </div> 432 454 </div> 433 455 </div> 434 456 </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> 440 458 441 459 <?php -
elements-buddy/trunk/widgets/hero-two.php
r2483361 r2625032 89 89 } 90 90 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.097 *98 * @access protected99 */100 91 protected function _register_controls() { 101 92 … … 109 100 110 101 $this->add_control( 111 'sub title',112 [ 113 'label' => __( 'Sub title', 'elements-buddy' ),102 'sub_title', 103 [ 104 'label' => __( 'Sub Title', 'elements-buddy' ), 114 105 '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' ), 123 114 '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' ), 125 125 ] 126 126 ); … … 131 131 'label' => __( 'Details', 'elements-buddy' ), 132 132 'type' => Controls_Manager::TEXTAREA, 133 'default' => __( 'G ilded 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' ), 134 134 ] 135 135 ); … … 138 138 'image', 139 139 [ 140 'label' => __( ' ChooseImage', 'elements-buddy' ),140 'label' => __( 'Background Image', 'elements-buddy' ), 141 141 'type' => \Elementor\Controls_Manager::MEDIA, 142 142 'default' => [ … … 163 163 ] 164 164 ); 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 );183 165 184 166 $this->end_controls_section(); 185 167 186 // Style Section187 188 $this->start_controls_section(168 // Style Section 169 170 $this->start_controls_section( 189 171 'section_style', 190 172 [ … … 200 182 'label' => __( 'Background', 'elements-buddy' ), 201 183 'types' => [ 'classic', 'gradient', 'video' ], 202 'selector' => '{{WRAPPER}} .hero-style- 2',184 'selector' => '{{WRAPPER}} .hero-style-1', 203 185 ] 204 186 ); … … 206 188 $this->end_controls_section(); 207 189 208 // Subtitle Style190 // Title Style 209 191 210 192 $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' ), 214 196 'tab' => Controls_Manager::TAB_STYLE, 215 197 ] … … 217 199 218 200 $this->add_responsive_control( 219 'sub title_color',220 [ 221 'label' => __( 'Sub title Color', 'elements-buddy' ),201 'sub_title_color', 202 [ 203 'label' => __( 'Sub Title Color', 'elements-buddy' ), 222 204 'type' => \Elementor\Controls_Manager::COLOR, 223 205 'scheme' => [ … … 227 209 'default' => '#fff', 228 210 'selectors' => [ 229 '{{WRAPPER}} . slide-title span' => 'color: {{VALUE}}',211 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-subtitle' => 'color: {{VALUE}}', 230 212 ], 231 213 ] … … 235 217 \Elementor\Group_Control_Typography::get_type(), 236 218 [ 237 'name' => 'sub title_typography',238 'label' => __( 'Sub title Typography', 'elements-buddy' ),219 'name' => 'sub_title_typography', 220 'label' => __( 'Sub Title Typography', 'elements-buddy' ), 239 221 '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', 253 223 ] 254 224 ); … … 257 227 'title_color', 258 228 [ 259 'label' => __( ' Title Color', 'elements-buddy' ),229 'label' => __( 'Primary Title Color', 'elements-buddy' ), 260 230 'type' => \Elementor\Controls_Manager::COLOR, 261 231 'scheme' => [ … … 265 235 'default' => '#fff', 266 236 'selectors' => [ 267 '{{WRAPPER}} . slide-title h2' => 'color: {{VALUE}}',237 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-title' => 'color: {{VALUE}}', 268 238 ], 269 239 ] … … 274 244 [ 275 245 'name' => 'title_typography', 276 'label' => __( ' Title Typography', 'elements-buddy' ),246 'label' => __( 'Primary Title Typography', 'elements-buddy' ), 277 247 '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' ), 298 256 'type' => \Elementor\Controls_Manager::COLOR, 299 257 'scheme' => [ … … 301 259 'value' => \Elementor\Scheme_Color::COLOR_1, 302 260 ], 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 ], 303 299 'default' => '#fff', 304 300 'selectors' => [ 305 '{{WRAPPER}} . slide-text p' => 'color: {{VALUE}}',301 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content' => 'color: {{VALUE}}', 306 302 ], 307 303 ] … … 314 310 'label' => __( 'Details Typography', 'elements-buddy' ), 315 311 'scheme' => Scheme_Typography::TYPOGRAPHY_1, 316 'selector' => '{{WRAPPER}} . slide-text p',312 'selector' => '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-content', 317 313 ] 318 314 ); … … 344 340 'label' => __( 'Text Color', 'elements-buddy' ), 345 341 '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}};', 349 357 ], 350 358 ] … … 358 366 'default' => '#fff', 359 367 'selectors' => [ 360 '{{WRAPPER}} . theme-btn' => 'background-color: {{VALUE}};',368 '{{WRAPPER}} .hero-banner-area-two .banner-text .banner-btn' => 'background-color: {{VALUE}};', 361 369 ], 362 370 ] … … 379 387 'default' => '#fff', 380 388 '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}};', 383 402 ], 384 403 ] … … 390 409 'label' => __( 'Background Color', 'elements-buddy' ), 391 410 'type' => \Elementor\Controls_Manager::COLOR, 392 'default' => '#f c6e36',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}};', 395 414 ], 396 415 ] … … 398 417 399 418 $this->end_controls_tab(); 400 401 $this->end_controls_section();402 403 // Video Style404 $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();455 419 456 420 } … … 467 431 protected function render() { 468 432 $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> 485 444 </div> 486 445 </div> 487 446 </div> 488 447 </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> 493 449 494 450 <?php
Note: See TracChangeset
for help on using the changeset viewer.