D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
cwd
/
wp-content
/
plugins
/
aeen-core
/
elementor
/
services
/
Filename :
class.php
back
Copy
<?php /** * This file can be overridden by copying it to yourtheme/elementor-custom/about-box/class.php * * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Aeen_Core; use Elementor\Utils; use Elementor\Widget_Base; use Elementor\Controls_Manager; use Elementor\Group_Control_Border; use Elementor\Group_Control_Typography; use Elementor\Group_Control_Background; if ( ! defined( 'ABSPATH' ) ) exit; class Services extends Custom_Widget_Base { public function __construct( $data = [], $args = null ){ $this->rt_name = __( 'RT Services', 'aeen-core' ); $this->rt_base = 'rt-services'; parent::__construct( $data, $args ); } public function rt_fields(){ $fields = array( array( 'mode' => 'section_start', 'id' => 'sec_general', 'label' => esc_html__( 'General', 'aeen-core' ), ), array( 'type' => Controls_Manager::ICONS, 'id' => 'icon', 'label' => esc_html__( 'Icon', 'aeen-core' ), 'default' => [ 'value' => 'fas fa-balance-scale', 'library' => 'fa-solid', ], ), array( 'type' => Controls_Manager::TEXT, 'id' => 'title', 'label' => esc_html__( 'Title', 'aeen-core' ), 'default' => esc_html__( '99% Winning Guarante', 'aeen-core' ), 'label_block' => true, ), array( 'type' => Controls_Manager::WYSIWYG, 'id' => 'content', 'label' => esc_html__( 'Content', 'aeen-core' ), 'default' => esc_html__('Grursus mal suada faci lisis Lorem the ipsum ametion consectetur elit. Vesti at bulum nec fadolorit.', 'aeen-core' ), ), array( 'mode' => 'section_end', ), array( 'id' => 'box_style', 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'label' => __( 'Box Style', 'aeen-core' ), ), array( 'name' => 'box_border', 'mode' => 'group', 'type' => Group_Control_Border::get_type(), 'label' => __( 'Border', 'aeen-core' ), 'selector' => '{{WRAPPER}} .feature-box-layout4', ), array( 'id' => 'boxh_heading', 'type' => Controls_Manager::HEADING, 'label' => __( 'Hover', 'aeen-core' ), 'separator' => 'before', ), array( 'name' => 'boxh_border', 'mode' => 'group', 'type' => Group_Control_Border::get_type(), 'label' => __( 'Border', 'aeen-core' ), 'selector' => '{{WRAPPER}} .feature-box-layout4:hover', ), array( 'mode' => 'section_end', ), array( 'id' => 'icon_style', 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'label' => __( 'Icon', 'aeen-core' ), ), array( 'id' => 'icon_color', 'type' => Controls_Manager::COLOR, 'label' => __( 'Color', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout1 .item-icon i' => 'color: {{VALUE}}' ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'icon_typo', 'label' => __( 'Typography', 'aeen-core' ), 'selector' => '{{WRAPPER}} .feature-box-layout4 .item-icon i:before', ), array( 'id' => 'iconh_heading', 'type' => Controls_Manager::HEADING, 'label' => __( 'Hover', 'aeen-core' ), 'separator' => 'before', ), array( 'id' => 'iconh_color', 'type' => Controls_Manager::COLOR, 'label' => __( 'Color', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout4:hover .item-icon i' => 'color: {{VALUE}}' ), ), array( 'mode' => 'section_end', ), array( 'id' => 'title_style', 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'label' => __( 'Title', 'aeen-core' ), ), array( 'id' => 'title_color', 'type' => Controls_Manager::COLOR, 'label' => __( 'Color', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout4 .item-title' => 'color: {{VALUE}}' ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'title_typo', 'label' => __( 'Typography', 'aeen-core' ), 'selector' => '{{WRAPPER}} .feature-box-layout4 .item-title', ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'id' => 'title_padding', 'mode' => 'responsive', 'label' => esc_html__( 'Padding', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout4 .item-title' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'type' => Controls_Manager::DIMENSIONS, 'size_units' => [ 'px', '%', 'em' ], 'mode' => 'responsive', 'id' => 'title_margin', 'label' => esc_html__( 'Margin', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout4 .item-title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;', ), 'separator' => 'before', ), array( 'mode' => 'section_end', ), array( 'id' => 'content_style', 'mode' => 'section_start', 'tab' => Controls_Manager::TAB_STYLE, 'label' => __( 'Description', 'aeen-core' ), ), array( 'id' => 'content_color', 'type' => Controls_Manager::COLOR, 'label' => __( 'Color', 'aeen-core' ), 'selectors' => array( '{{WRAPPER}} .feature-box-layout4 p' => 'color: {{VALUE}}' ), ), array( 'mode' => 'group', 'type' => Group_Control_Typography::get_type(), 'name' => 'content_typo', 'label' => __( 'Typography', 'aeen-core' ), 'selector' => '{{WRAPPER}} .feature-box-layout4 p', ), array( 'mode' => 'section_end', ), ); return $fields; } protected function render() { $data = $this->get_settings(); $template = 'view'; return $this->rt_template( $template, $data ); } }