| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/fe2tech/wp-content/themes/contio/elementor/core/register/ |
Upload File : |
<?php
ct_add_custom_widget(
array(
'name' => 'ct_pointer',
'title' => esc_html__('Pointer', 'contio'),
'icon' => 'eicon-cursor-move',
'categories' => array(Case_Theme_Core::CT_CATEGORY_NAME),
'scripts' => array(),
'params' => array(
'sections' => array(
array(
'name' => 'content_section',
'label' => esc_html__('Content', 'contio'),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
'controls' => array(
array(
'name' => 'image',
'label' => esc_html__('Banner Image', 'contio' ),
'type' => \Elementor\Controls_Manager::MEDIA,
),
array(
'name' => 'content_list',
'label' => esc_html__('Pointer', 'contio'),
'type' => \Elementor\Controls_Manager::REPEATER,
'controls' => array(
array(
'name' => 'title',
'label' => esc_html__('Title', 'contio' ),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
),
array(
'name' => 'description',
'label' => esc_html__('Description', 'contio' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
),
array(
'name' => 'item_link',
'label' => esc_html__('Link', 'contio'),
'type' => \Elementor\Controls_Manager::URL,
'label_block' => true,
),
array(
'name' => 'active',
'label' => esc_html__('Actvie', 'contio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'' => 'No',
'open' => 'Yes',
],
'default' => '',
),
array(
'name' => 'position',
'label' => esc_html__('Content Position', 'contio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'content-top' => 'Top',
'content-right' => 'Right',
'content-bottom' => 'Bottom',
'content-left' => 'Left',
],
'default' => 'content-left',
),
array(
'name' => 'pointer_position_top',
'label' => esc_html__('Position Top (%)', 'contio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ '%' ],
'default' => [
'size' => 0,
],
'range' => [
'%' => [
'min' => 0,
'max' => 100,
],
],
),
array(
'name' => 'pointer_position_right',
'label' => esc_html__('Position Right (%)', 'contio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ '%' ],
'default' => [
'size' => 0,
],
'range' => [
'%' => [
'min' => 0,
'max' => 100,
],
],
),
array(
'name' => 'pointer_position_bottom',
'label' => esc_html__('Position Bottom (%)', 'contio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ '%' ],
'default' => [
'size' => 0,
],
'range' => [
'%' => [
'min' => 0,
'max' => 100,
],
],
),
array(
'name' => 'pointer_position_left',
'label' => esc_html__('Position Left (%)', 'contio' ),
'type' => \Elementor\Controls_Manager::SLIDER,
'control_type' => 'responsive',
'size_units' => [ '%' ],
'default' => [
'size' => 0,
],
'range' => [
'%' => [
'min' => 0,
'max' => 100,
],
],
),
),
'title_field' => '{{{ title }}}',
),
array(
'name' => 'style',
'label' => esc_html__('Pointer Style', 'contio' ),
'type' => \Elementor\Controls_Manager::SELECT,
'options' => [
'style1' => 'Style 1',
'style2' => 'Style 2',
],
'default' => 'style1',
),
),
),
),
),
),
get_template_directory() . '/elementor/core/widgets/'
);