PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
/
inc
/
core
/
elementor
/
widgets
<?php namespace Elementor; class Webnus_Element_Widgets_Our_Process extends \Elementor\Widget_Base { /** * Retrieve Socials widget name. * * @since 1.0.0 * @access public * * @return string Widget name. */ public function get_name() { return 'our_process'; } /** * Retrieve Socials widget title. * * @since 1.0.0 * @access public * * @return string Widget title. */ public function get_title() { return esc_html__( 'Webnus Our Process', 'deep' ); } /** * Retrieve Socials widget icon. * * @since 1.0.0 * @access public * * @return string Widget icon. */ public function get_icon() { return 'pe-7s-refresh-2'; } /** * Set widget category. * * @since 1.0.0 * @access public * * @return array Widget category. */ public function get_categories() { return [ 'webnus' ]; } /** * Register Socials widget controls. * * * @since 1.0.0 * @access protected */ protected function _register_controls() { // Content Tab $this->start_controls_section( 'content_section', [ 'label' => esc_html__( 'General', 'deep' ), 'tab' => \Elementor\Controls_Manager::TAB_CONTENT, ] ); // Select Socials Type $this->add_control( 'type', //param_name [ 'label' => esc_html__( 'Type', 'deep' ), //heading 'type' => Controls_Manager::SELECT, //type 'default' => '1', 'options' => [ '1' => esc_html__( 'Type 1', 'deep' ), '2' => esc_html__( 'Type 2', 'deep' ), '3' => esc_html__( 'Type 3', 'deep' ), ], ] ); // Type 1 $this->add_control( 'process_item', [ 'label' => esc_html__( 'Repeater List', 'deep' ), 'type' => Controls_Manager::REPEATER, 'fields' => [ [ 'name' => 'process_title', 'label' => esc_html__( 'Process Title', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'process_content', 'label' => esc_html__( 'Process Content', 'deep' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ], [ 'name' => 'line_flag', 'label' => esc_html__( 'Line Number or Text', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'icon_fontawesome', 'label' => __( 'Icon', 'deep' ), 'type' => Controls_Manager::ICON, 'label_block' => true, ], ], 'condition' => [ 'type' => [ '1', ], ], 'default' => [ [ 'process_title' => __( 'Item 1', 'deep' ), 'process_content' => __('making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.' , 'deep'), 'icon_fontawesome' => 'li_cloud', ], [ 'process_title' => __( 'Item 1', 'deep' ), 'process_content' => __('making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.' , 'deep'), 'icon_fontawesome' => 'li_star', ], [ 'process_title' => __( 'Item 1', 'deep' ), 'process_content' => __('making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.' , 'deep'), 'icon_fontawesome' => 'li_cloud', ], ], ] ); // Type 2 $this->add_control( 'process_item_t2', [ 'label' => esc_html__( 'Repeater List', 'deep' ), 'type' => Controls_Manager::REPEATER, 'fields' => [ [ 'name' => 'process_title_t2', 'label' => esc_html__( 'Process Title', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'process_content_t2', 'label' => esc_html__( 'Process Content', 'deep' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ], [ 'name' => 'line_flag_t2', 'label' => esc_html__( 'Line Number or Text', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], ], 'condition' => [ 'type' => [ '2', ], ], ] ); // Type 3 $this->add_control( 'process_item_t3', [ 'label' => esc_html__( 'Repeater List', 'deep' ), 'type' => Controls_Manager::REPEATER, 'fields' => [ [ 'name' => 'process_title_t3', 'label' => esc_html__( 'Process Top Title', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'process_title_top_t3', 'label' => esc_html__( 'Process Title', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'title_color', 'label' => esc_html__( 'Process Title Color', 'deep' ), 'type' => Controls_Manager::COLOR, 'scheme' => [ 'type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_1, ], 'default' => '#437df9', 'selectors' => [ '{{WRAPPER}} .our-process-item-type3 h4' => 'color: {{VALUE}}', ], ], [ 'name' => 'process_content_t3', 'label' => esc_html__( 'Process Content', 'deep' ), 'type' => Controls_Manager::TEXTAREA, 'label_block' => true, ], [ 'name' => 'content_color', 'label' => esc_html__( 'Content Color', 'deep' ), 'type' => Controls_Manager::COLOR, 'scheme' => [ 'type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_1, ], 'default' => '#437df9', 'selectors' => [ '{{WRAPPER}} .our-process-item-type3 p' => 'color: {{VALUE}}', ], ], [ 'name' => 'teaser_btn', 'label' => esc_html__( 'Button Text', 'deep' ), 'type' => Controls_Manager::TEXT, 'label_block' => true, ], [ 'name' => 'link_url', 'label' => esc_html__( 'Link URL', 'deep' ), 'type' => Controls_Manager::URL, 'default' => [ 'url' => 'http://', 'is_external' => '', ], 'show_external' => true, ], ], 'condition' => [ 'type' => [ '3', ], ], ] ); $this->end_controls_section(); // Class & ID Tab $this->start_controls_section( 'classid_section', [ 'label' => __( 'Class & ID', 'deep' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'shortcodeclass', [ 'label' => esc_html__( 'Extra Class', 'deep' ), 'type' => Controls_Manager::TEXT, ] ); $this->add_control( 'shortcodeid', [ 'label' => esc_html__( 'ID', 'deep' ), 'type' => Controls_Manager::TEXT, ] ); $this->end_controls_section(); // Style $this->start_controls_section( 'section_title_style', [ 'label' => __( 'Title style', 'deep' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'title_typography', 'label' => __( 'Typography', 'deep' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_2, 'selector' => '#wrap {{WRAPPER}} .our-process-wrap-ele h4', ] ); $this->add_control( 'title_color', //param_name [ 'label' => __( 'Color', 'deep' ), //heading 'type' => \Elementor\Controls_Manager::COLOR, //type 'selectors' => [ '#wrap {{WRAPPER}} .our-process-wrap-ele h4' => 'color: {{VALUE}} !important', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_content_style', [ 'label' => __( 'Content style', 'deep' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'content_typography', 'label' => __( 'Typography', 'deep' ), 'scheme' => Scheme_Typography::TYPOGRAPHY_2, 'selector' => '#wrap {{WRAPPER}} .our-process-wrap-ele p', ] ); $this->add_control( 'content_color', //param_name [ 'label' => __( 'Color', 'deep' ), //heading 'type' => \Elementor\Controls_Manager::COLOR, //type 'selectors' => [ '#wrap {{WRAPPER}} .our-process-wrap-ele p' => 'color: {{VALUE}} !important', ], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_box_style', [ 'label' => __( 'Box Style', 'deep' ), 'tab' => Controls_Manager::TAB_STYLE, ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'box_bg', 'label' => __( 'Background', 'deep' ), 'types' => [ 'classic' , 'gradient' ], 'selector' => '#wrap {{WRAPPER}} .our-process-wrap-ele', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'box_border', 'label' => __( 'Border', 'deep' ), 'selector' => '#wrap {{WRAPPER}} .our-process-wrap-ele', ] ); $this->add_control( 'box_border_radius', //param_name [ 'label' => __( 'Border Radius', 'deep' ), //heading 'type' => \Elementor\Controls_Manager::DIMENSIONS, //type 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '#wrap {{WRAPPER}} .our-process-wrap-ele' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_group_control( Group_Control_Box_Shadow::get_type(), [ 'name' => 'box_shadow', 'label' => __( 'Box Shadow', 'deep' ), 'selector' => '#wrap {{WRAPPER}} .our-process-wrap-ele', ] ); $this->add_control( 'box_padding', //param_name [ 'label' => __( 'Padding', 'deep' ), //heading 'type' => \Elementor\Controls_Manager::DIMENSIONS, //type 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '#wrap {{WRAPPER}} .our-process-wrap-ele' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->add_control( 'box_margin', //param_name [ 'label' => __( 'Margin', 'deep' ), //heading 'type' => \Elementor\Controls_Manager::DIMENSIONS, //type 'size_units' => [ 'px', 'em', '%' ], 'selectors' => [ '#wrap {{WRAPPER}} .our-process-wrap-ele' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], ] ); $this->end_controls_section(); // Custom css tab $this->start_controls_section( 'custom_css_section', [ 'label' => __( 'Custom CSS', 'deep' ), 'tab' => \Elementor\Controls_Manager::TAB_STYLE, ] ); $this->add_control( 'custom_css', [ 'label' => __( 'Custom CSS', 'deep' ), 'type' => \Elementor\Controls_Manager::CODE, 'language' => 'css', 'rows' => 20, 'show_label' => true, ] ); $this->end_controls_section(); } /** * Render Socials widget output on the frontend. * * * @since 1.0.0 * @access protected */ protected function render() { $settings = $this->get_settings(); wp_enqueue_style( 'wn-deep-our-process' . $settings['type'], DEEP_ASSETS_URL . 'css/frontend/our-process/our-process' . $settings['type'] . '.css' ); $type = $settings['type']; $process_item = $settings['process_item']; $process_item_t2 = $settings['process_item_t2']; $process_item_t3 = $settings['process_item_t3']; // Class & ID $shortcodeclass = $settings['shortcodeclass'] ? $settings['shortcodeclass'] : ''; $shortcodeid = $settings['shortcodeid'] ? ' id="' . $settings['shortcodeid'] . '"' : ''; // render if( $type == '1' ){ $out = '<div class="our-process-wrap-ele our-process-wrap ' . $shortcodeclass . '" ' . $shortcodeid . '>'; if ( $process_item ) { foreach ( $process_item as $line ) : $icon_fontawesome = isset ($line['icon_fontawesome']) ? $line['icon_fontawesome'] : ''; $process_title = isset ($line['process_title']) ? $line['process_title'] : ''; $process_content = isset ($line['process_content']) ? $line['process_content'] : ''; $out .= ' <div class="our-process-item "> <i class="' . $icon_fontawesome . '"></i> <h4>' . $process_title . '</h4> <p>' . $process_content . '</p> </div>'; endforeach; } $out .= '</div>'; } elseif( $type == '2' ){ $out = '<div class= "our-process-wrap-ele our-process-wrap-type2 ' . $shortcodeclass . '" ' . $shortcodeid . '>'; if ( $process_item_t2 ) { foreach ( $process_item_t2 as $line) : $line_flag_t2 = isset ( $line['line_flag_t2'] ) ? $line['line_flag_t2'] : ''; $process_title_t2 = isset ( $line['process_title_t2'] ) ? $line['process_title_t2'] : ''; $process_content_t2 = isset ( $line['process_content_t2'] ) ? $line['process_content_t2'] : ''; $out .= ' <div class="our-process-item-type2"> <span>' . $line_flag_t2 . '</span> <h4>' . $process_title_t2 . '</h4> <p>' . $process_content_t2 . '</p> </div>'; endforeach; } $out .= '</div>'; } elseif( $type == '3' ){ $out = '<div class= "our-process-wrap-ele our-process-wrap-type3 ' . $shortcodeclass . '" ' . $shortcodeid . '>'; if ( $process_item_t3 ) { foreach ( $process_item_t3 as $line) : $process_title_t3 = $line['process_title_t3'] ? $line['process_title_t3'] : ''; $process_title_top_t3 = $line['process_title_top_t3'] ? $line['process_title_top_t3'] : ''; $process_content_t3 = $line['process_content_t3'] ? $line['process_content_t3'] : ''; $link_url = $line['link_url']['url'] ? $line['link_url']['url'] : ''; $link_target = $line['link_url']['is_external'] ? 'target="_blank"' : ''; $nofollow = $line['link_url']['nofollow'] ? 'rel="nofollow"' : ''; $teaser_btn = $line['teaser_btn'] ? $line['teaser_btn'] : ''; $out .= ' <div class="our-process-item-type3"> <span>' . $process_title_t3 . '</span> <h4>' . $process_title_top_t3 . '</h4> <p>' . $process_content_t3 . '</p>'; if ( !empty( $teaser_btn ) ) : $out .= ' <a href="' . $link_url . '" ' . $link_target . ' ' . $nofollow . '>' . $teaser_btn . '</a>'; endif; $out .= ' </div>'; endforeach; } $out .= '</div>'; } $custom_css = $settings['custom_css']; if ( $custom_css != '' ) { echo '<style>'. $custom_css .'</style>'; } echo $out; } }
[+]
..
[-] our-client.php
[edit]
[-] icons.php
[edit]
[-] collection.php
[edit]
[-] testimonial-tab.php
[edit]
[-] teaserbox.php
[edit]
[-] instagram.php
[edit]
[-] our-team.php
[edit]
[-] content-carousel.php
[edit]
[-] videoteaser.php
[edit]
[-] like-view-share.php
[edit]
[-] courses-instructors.php
[edit]
[-] widget-flickr.php
[edit]
[-] reservation.php
[edit]
[-] list.php
[edit]
[-] road-map.php
[edit]
[-] max-counter.php
[edit]
[-] magazine.php
[edit]
[-] prayer-wall-items.php
[edit]
[-] facebook-button.php
[edit]
[-] icon-divider.php
[edit]
[-] featured-products.php
[edit]
[-] review-items.php
[edit]
[-] iconbox.php
[edit]
[-] widget-googleplus.php
[edit]
[-] content-slider.php
[edit]
[-] service-carousel.php
[edit]
[-] contact-form.php
[edit]
[-] twitter-feed.php
[edit]
[-] blog.php
[edit]
[-] process-carousel.php
[edit]
[-] course-category.php
[edit]
[-] virtual-coins.php
[edit]
[-] speakers.php
[edit]
[-] the-grid.php
[edit]
[-] custom-menu.php
[edit]
[-] widget-youtube.php
[edit]
[-] testimonial.php
[edit]
[-] callout.php
[edit]
[-] testimonial-slider.php
[edit]
[-] category-tab.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] button.php
[edit]
[-] facebook-comments.php
[edit]
[-] widget-login.php
[edit]
[-] subscribe.php
[edit]
[-] googlemap.php
[edit]
[-] widget-social-icon.php
[edit]
[-] postslider.php
[edit]
[-] alert.php
[edit]
[-] video-play-button.php
[edit]
[-] quote.php
[edit]
[-] donate.php
[edit]
[-] dropcap.php
[edit]
[-] before-after-image.php
[edit]
[-] pricing-tables.php
[edit]
[-] facebook-page.php
[edit]
[-] shop-products.php
[edit]
[-] single-goal.php
[edit]
[-] info-box.php
[edit]
[-] latestfromblog.php
[edit]
[-] goals.php
[edit]
[-] revolution-slider.php
[edit]
[-] widget-subscribe.php
[edit]
[-] tablepress.php
[edit]
[-] tab-content.php
[edit]
[-] schedule.php
[edit]
[-] sermon-category.php
[edit]
[-] pricing-plan.php
[edit]
[-] tabs.php
[edit]
[-] widget-latest-posts.php
[edit]
[-] distance.php
[edit]
[-] widget-popular-posts.php
[edit]
[-] recipes.php
[edit]
[-] causes.php
[edit]
[-] widget-testimonial.php
[edit]
[-] widget-about.php
[edit]
[-] special-offers.php
[edit]
[-] tooltip.php
[edit]
[-] food-menu.php
[edit]
[-] wp-hotel-booking.php
[edit]
[-] widget-tab.php
[edit]
[-] courses.php
[edit]
[-] login.php
[edit]
[-] post-from-blog.php
[edit]
[-] socials.php
[edit]
[-] line.php
[edit]
[-] gallery.php
[edit]
[-] faq.php
[edit]
[-] piecharts.php
[edit]
[-] image-hotspot.php
[edit]
[-] link.php
[edit]
[-] prayer-wall-form.php
[edit]
[-] rooms.php
[edit]
[-] countdown.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] facebook-embed.php
[edit]
[-] single-cause.php
[edit]
[-] review-form.php
[edit]
[-] buy-process.php
[edit]
[-] sermons.php
[edit]
[-] widget-facebook.php
[edit]
[-] single-sermon.php
[edit]
[-] single-course.php
[edit]
[-] image-carousel.php
[edit]
[-] toggle-box.php
[edit]
[-] our-process.php
[edit]
[-] svg.php
[edit]
[-] w-title.php
[edit]
[-] block-quote.php
[edit]