Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
plugins
/
koncrete-core_2
/
elementor
/
widget-title
/
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\Scheme_Typography; if ( ! defined( 'ABSPATH' ) ) exit; class Widget_Title extends Custom_Widget_Base { public function __construct( $data = array(), $args = null ){ $this->rt_name = esc_html__( 'Widget Title', 'koncrete-core' ); $this->rt_base = 'rt-widget-title'; 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::TEXT, 'id' => 'title', 'label' => esc_html__( 'Title', 'koncrete-core' ), 'default' => 'Lorem Ipsum', ), array( 'type' => Controls_Manager::CHOOSE, 'options' => array( 'left' => array( 'title' => esc_html__( 'Left', 'koncrete-core' ), 'icon' => 'fa fa-align-left', ), 'center' => array( 'title' => esc_html__( 'Center', 'koncrete-core' ), 'icon' => 'fa fa-align-center', ), 'right' => array( 'title' => esc_html__( 'Right', 'koncrete-core' ), 'icon' => 'fa fa-align-right', ), 'justify' => array( 'title' => esc_html__( 'Justified', 'koncrete-core' ), 'icon' => 'fa fa-align-justify', ), ), 'id' => 'title_text_align', 'label' => esc_html__( 'Title Text Align', 'koncrete-core' ), 'default' => 'left', ), 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}} .rtin-title, {{WRAPPER}} noselector ', ), array( 'type' => Controls_Manager::COLOR, 'id' => 'title_color', 'label' => esc_html__( 'Title Color', 'koncrete-core' ), 'default' => '#111', 'selectors' => array( '{{WRAPPER}} .rtin-title' => 'color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'id' => 'title_content_padding', 'label' => __( 'Title Padding', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtin-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'mode' => 'section_end', ), array( 'mode' => 'section_start', 'id' => 'title_border_style', 'label' => esc_html__( 'Title Border Style', 'koncrete-core' ), 'tab' => Controls_Manager::TAB_STYLE, ), array( 'type' => Controls_Manager::COLOR, 'id' => 'border_color', 'label' => esc_html__( 'Title Border Color', 'koncrete-core' ), 'selectors' => array( '{{WRAPPER}} .rtel-widget-title .rtin-title:before' => 'background-color: {{VALUE}}', ), ), array( 'type' => Controls_Manager::SLIDER, 'mode' => 'responsive', 'id' => 'border_height', 'label' => __( 'Border Height', 'koncrete-core' ), 'size_units' => array('px', '%'), 'range' => array( 'px' => array( 'min' => 0, 'max' => 200, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .rtel-widget-title .rtin-title:before' => 'height: {{SIZE}}{{UNIT}};', ) ), array( 'type' => Controls_Manager::SLIDER, 'mode' => 'responsive', 'id' => 'border_width', 'label' => __( 'Border Width', 'koncrete-core' ), 'size_units' => array('px', '%'), 'range' => array( 'px' => array( 'min' => 0, 'max' => 2000, ), '%' => array( 'min' => 0, 'max' => 100, ), ), 'selectors' => array( '{{WRAPPER}} .rtel-widget-title .rtin-title:before' => 'width: {{SIZE}}{{UNIT}};', ) ), array( 'mode' => 'section_end', ), ); return $fields; } protected function render() { $data = $this->get_settings(); $template = 'view'; return $this->rt_template( $template, $data ); } }
Save
Cancel