PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
tryo-toolkit
/
widgets
<?php /** * Banner Two Widget */ namespace Elementor; class Tryo_Banner_Two extends Widget_Base { public function get_name() { return 'Tryo_Banner_Two'; } public function get_title() { return __( 'Banner Two', 'tryo-toolkit' ); } public function get_icon() { return 'eicon-banner'; } public function get_categories() { return [ 'tryo-elements' ]; } protected function _register_controls() { $this->start_controls_section( 'Tryo_Banner_Two_Area', [ 'label' => __( 'Tryo Banner Area', 'tryo-toolkit' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'background', 'label' => __( 'Background', 'tryo-toolkit' ), 'types' => [ 'classic', 'gradient' ], 'selector' => '{{WRAPPER}} .main-banner-section', ] ); $this->add_control( 'title', [ 'label' => __( 'Title', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Easy, fee-free banking for entrepreneurs', 'tryo-toolkit'), ] ); $this->add_control( 'content', [ 'label' => __( 'Content', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXTAREA, 'default' => __('Get the financial tools and insights to start, build, and grow your business.', 'tryo-toolkit'), ] ); $this->add_control( 'button_text', [ 'label' => __( 'Button Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Learn More', 'tryo-toolkit'), ] ); $this->add_control( 'button_link', [ 'label' => __( 'Button Link', 'tryo-toolkit' ), 'type' => Controls_Manager::URL, ] ); $this->add_control( 'video_button_text', [ 'label' => __( 'Video Button Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Play Video', 'tryo-toolkit'), ] ); $this->add_control( 'video_button_link', [ 'label' => __( 'Video Button Link', 'tryo-toolkit' ), 'type' => Controls_Manager::URL, ] ); $this->add_control( 'sub_title', [ 'label' => __( 'Newsletter Title', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Subscribe Now!', 'tryo-toolkit'), ] ); $this->add_control( 'first_name', [ 'label' => __( 'Name Placeholder Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Enter Your Name', 'tryo-toolkit'), ] ); $this->add_control( 'email', [ 'label' => __( 'Email Placeholder Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Enter Your Email Address', 'tryo-toolkit'), ] ); $this->add_control( 'sub_btn', [ 'label' => __( 'Subscribe Newsletter Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('Subscribe', 'tryo-toolkit'), ] ); $this->add_control( 'terms', [ 'label' => __( 'Terms & Policy Text', 'tryo-toolkit' ), 'type' => Controls_Manager::TEXT, 'default' => __('By clicking continue, I am agree with Terms & Policy', 'tryo-toolkit'), ] ); $this->end_controls_section(); $this->start_controls_section( 'banner_style', [ 'label' => __( 'Style', 'tryo-toolkit' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'title_color', [ 'label' => __( 'Title Color', 'tryo-toolkit' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .banner-content h1' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'title_size', [ 'label' => __( 'Title Font Size', 'tryo-toolkit' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 10, 'max' => 70, 'step' => 1, ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .banner-content h1' => 'font-size: {{SIZE}}px;', ], ] ); $this->add_control( 'content_color', [ 'label' => __( 'Content Color', 'tryo-toolkit' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .banner-content p' => 'color: {{VALUE}}', ], ] ); $this->add_responsive_control( 'content_size', [ 'label' => __( 'Content Font Size', 'tryo-toolkit' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 10, 'max' => 50, 'step' => 1, ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .banner-content p' => 'font-size: {{SIZE}}px;', ], ] ); $this->add_responsive_control( 'button_size', [ 'label' => __( 'Button Text Font Size', 'tryo-toolkit' ), 'type' => Controls_Manager::SLIDER, 'size_units' => [ 'px' ], 'range' => [ 'px' => [ 'min' => 10, 'max' => 50, 'step' => 1, ], ], 'devices' => [ 'desktop', 'tablet', 'mobile' ], 'selectors' => [ '{{WRAPPER}} .banner-content .btn' => 'font-size: {{SIZE}}px;', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); // Inline Editing $this-> add_inline_editing_attributes('title','none'); $this-> add_inline_editing_attributes('content','none'); ?> <div class="main-banner-section jarallax" data-jarallax='{"speed": 0.3}'> <div class="d-table"> <div class="d-table-cell"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-7 col-md-12"> <div class="banner-content"> <h1 <?php echo $this-> get_render_attribute_string('title'); ?>><?php echo esc_html( $settings['title'] ); ?></h1> <p <?php echo $this-> get_render_attribute_string('content'); ?>><?php echo esc_html( $settings['content'] ); ?></p> <div class="banner-btn"> <?php if( $settings['button_text'] != '' ): ?> <a href="<?php echo esc_url( $settings['button_link']['url'] ); ?>" class="btn btn-primary"><?php echo esc_html( $settings['button_text'] ); ?></a> <?php endif; ?> <?php if( $settings['video_button_text'] != '' ): ?> <a href="<?php echo esc_url( $settings['video_button_link']['url'] ); ?>" class="video-btn popup-youtube"> <i class="fas fa-play"></i> <?php echo esc_html( $settings['video_button_text'] ); ?> </a> <?php endif; ?> </div> </div> </div> <div class="col-lg-5 col-md-12"> <div class="money-transfer-form"> <h3><?php echo esc_html($settings['sub_title']); ?></h3> <form class="newsletter-form" method="post" action="<?php echo home_url(); ?>/?na=s" onsubmit="return newsletter_check(this)"> <div class="form-group"> <label><?php echo esc_html( $settings['first_name'] ); ?></label> <div class="money-transfer-field"> <input type="text" name="nn" class="form-control" placeholder="<?php esc_attr_e('Jone', 'tryo-toolkit'); ?>"> </div> </div> <div class="form-group"> <label><?php echo esc_html( $settings['email'] ); ?></label> <div class="money-transfer-field"> <input type="email" name="ne" class="form-control" placeholder="<?php esc_attr_e('jone@gmail.com', 'tryo-toolkit'); ?>" required> </div> </div> <?php if( $settings['sub_btn'] != '' ): ?> <button type="submit" class="btn btn-primary"><?php echo esc_html( $settings['sub_btn'] ); ?></button> <?php endif; ?> <div class="terms-info"> <p><?php echo $settings['terms'] ?></p> </div> </form> </div> </div> </div> </div> </div> </div> </div> <?php } protected function _content_template() {} } Plugin::instance()->widgets_manager->register_widget_type( new Tryo_Banner_Two );
[-] banner-feature.php
[edit]
[-] profile-form.php
[edit]
[-] business-area.php
[edit]
[-] services-two.php
[edit]
[-] banner-two.php
[edit]
[-] signup.php
[edit]
[+]
..
[-] payment-experience-area.php
[edit]
[-] post.php
[edit]
[-] works.php
[edit]
[-] account-create.php
[edit]
[-] comparisons-table.php
[edit]
[-] partner-slider.php
[edit]
[-] app-download.php
[edit]
[-] feature-box.php
[edit]
[-] team.php
[edit]
[-] global-area.php
[edit]
[-] userinfo-details.php
[edit]
[-] banner-three.php
[edit]
[-] pricing.php
[edit]
[-] success-story-area.php
[edit]
[-] contact-card.php
[edit]
[-] contact-cta-box.php
[edit]
[-] services-area.php
[edit]
[-] ready-to-talk.php
[edit]
[-] section.php
[edit]
[-] receive-details.php
[edit]
[-] about-area.php
[edit]
[-] banner-four.php
[edit]
[-] send-details.php
[edit]
[-] support-area.php
[edit]
[-] invoicing.php
[edit]
[-] testimonials.php
[edit]
[-] funfact.php
[edit]
[-] signin.php
[edit]
[-] information-box.php
[edit]
[-] new-payment.php
[edit]
[-] banner-one.php
[edit]
[-] feedback-card.php
[edit]
[-] feature.php
[edit]