__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace MasterAddons\Inc\Controls;
use Elementor\Group_Control_Base;
use Elementor\Controls_Manager;
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
class MA_Group_Control_Outline extends Group_Control_Base
{
protected static $fields;
public static function get_type()
{
return 'outline';
}
protected function init_fields()
{
$fields = [];
$fields['outline'] = [
'label' => _x('Outline Type', 'Outline Control', 'master-addons' ),
'type' => Controls_Manager::SELECT,
'options' => [
'' => __('None', 'master-addons' ),
'solid' => _x('Solid', 'Outline Control', 'master-addons' ),
'double' => _x('Double', 'Outline Control', 'master-addons' ),
'dotted' => _x('Dotted', 'Outline Control', 'master-addons' ),
'dashed' => _x('Dashed', 'Outline Control', 'master-addons' ),
],
'selectors' => [
'{{SELECTOR}}' => 'outline-style: {{VALUE}};',
],
];
$fields['width'] = [
'label' => __('Width', 'master-addons' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'unit' => 'px',
],
'range' => [
'px' => [
'min' => 0,
'max' => 30,
'step' => 1,
],
],
'size_units' => ['px'],
'selectors' => [
'{{SELECTOR}}' => 'outline-width: {{SIZE}}{{UNIT}};',
],
'condition' => [
'outline!' => '',
],
];
$fields['offset'] = [
'label' => _x('Offset', 'Outline Control', 'master-addons' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'unit' => 'px',
],
'range' => [
'px' => [
'min' => -100,
'max' => 100,
'step' => 1,
],
],
'size_units' => ['px'],
'selectors' => [
'{{SELECTOR}}' => 'outline-offset: {{SIZE}}{{UNIT}};',
],
'condition' => [
'outline!' => '',
],
];
$fields['color'] = [
'label' => _x('Color', 'Outline Control', 'master-addons' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{SELECTOR}}' => 'outline-color: {{VALUE}};',
],
'condition' => [
'outline!' => '',
],
];
return $fields;
}
protected function get_default_options()
{
return [
//'popover' => true,
'popover' => [
'starter_title' => _x('Outline', 'Outline Control', 'master-addons' ),
'starter_name' => 'outline_wgt',
],
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| animation.php | File | 10.82 KB | 0775 |
|
| button-background.php | File | 9.88 KB | 0775 |
|
| filters-hsb.php | File | 3.52 KB | 0775 |
|
| format-date-time.php | File | 4.64 KB | 0775 |
|
| outline.php | File | 2.99 KB | 0775 |
|
| transitions.php | File | 2.89 KB | 0775 |
|