Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
plugins
/
koncrete-core_2
/
elementor
/
progress-bar
/
Editing: class.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete_Core; use Elementor\Controls_Manager; use Elementor\Group_Control_Typography; use \Elementor\Utils; if ( ! defined( 'ABSPATH' ) ) exit; class Progress_Bar extends Custom_Widget_Base { public function __construct( $data = array(), $args = null ){ $this->rt_name = esc_html__( 'Progress bar', 'koncrete-core' ); $this->rt_base = 'rt-progress-bar'; parent::__construct( $data, $args ); } public function rt_fields(){ $fields = array( array( 'mode' => 'section_start', 'id' => 'sec_general', 'label' => esc_html__( 'General', 'koncrete-core' ), ), array( 'type' => Controls_Manager::NUMBER, 'id' => 'number_percent', 'label' => esc_html__( 'Percent Number', 'koncrete-core' ), 'default' => '80', ), array( 'type' => Controls_Manager::TEXT, 'id' => 'title', 'label' => esc_html__( 'Title', 'koncrete-core' ), 'default' => "Finished projects", ), array( 'mode' => 'section_end', ), // title Style array( 'mode' => 'section_start', 'id' => 'title_style', 'label' => esc_html__( 'title Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'title_typo', 'label' => esc_html__( 'title Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-progress-2 .progress .lead, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'title_color', 'label' => esc_html__( 'title Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-progress-2 .progress .lead' => 'color: {{VALUE}}', ), ), array( 'mode' => 'section_end', ), // percent Style array( 'mode' => 'section_start', 'id' => 'percent_style', 'label' => esc_html__( 'percent Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'percent_typo', 'label' => esc_html__( 'percent Typography', 'koncrete-core' ), 'selector' => ' {{WRAPPER}} .rtel-progress-2 .progress .progress-bar span, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'percent_color', 'label' => esc_html__( 'percent Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-progress-2 .progress .progress-bar span' => 'color: {{VALUE}}', ), ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'id' => 'others_style', 'label' => esc_html__( 'others Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'type' => Controls_Manager::SLIDER, 'mode' => 'responsive', 'id' => 'progress_height', 'label' => __( 'Progress height', 'koncrete-core' ), 'size_units' => array( 'px', ), 'range' => array( 'px' => array( 'min' => 20, 'max' => 200, ), ), 'selectors' => array( '{{WRAPPER}} .rtel-progress-2 .progress' => 'height: {{SIZE}}{{UNIT}};', ) ), array( 'type' => Controls_Manager::COLOR, 'id' => 'main_bg_color', 'label' => esc_html__( 'Background Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-progress-2 .progress .progress-bar' => 'background-color: {{VALUE}}', ), ), array( 'mode' => 'section_end', ), ); return $fields; } protected function rt_load_scripts() { wp_enqueue_script('wow'); } protected function render() { $this->rt_load_scripts(); $data = $this->get_settings(); $template = 'view'; return $this->rt_template( $template, $data ); } }
Save
Cancel