Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/elemento.../includes/controls/groups
File: box-shadow.php
<?php
[0] Fix | Delete
namespace Elementor;
[1] Fix | Delete
[2] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[3] Fix | Delete
exit; // Exit if accessed directly.
[4] Fix | Delete
}
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Elementor box shadow control.
[8] Fix | Delete
*
[9] Fix | Delete
* A base control for creating box shadow control. Displays input fields to define
[10] Fix | Delete
* the box shadow including the horizontal shadow, vertical shadow, shadow blur,
[11] Fix | Delete
* shadow spread, shadow color and the position.
[12] Fix | Delete
*
[13] Fix | Delete
* @since 1.2.2
[14] Fix | Delete
*/
[15] Fix | Delete
class Group_Control_Box_Shadow extends Group_Control_Base {
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Fields.
[19] Fix | Delete
*
[20] Fix | Delete
* Holds all the box shadow control fields.
[21] Fix | Delete
*
[22] Fix | Delete
* @since 1.2.2
[23] Fix | Delete
* @access protected
[24] Fix | Delete
* @static
[25] Fix | Delete
*
[26] Fix | Delete
* @var array Box shadow control fields.
[27] Fix | Delete
*/
[28] Fix | Delete
protected static $fields;
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Get box shadow control type.
[32] Fix | Delete
*
[33] Fix | Delete
* Retrieve the control type, in this case `box-shadow`.
[34] Fix | Delete
*
[35] Fix | Delete
* @since 1.0.0
[36] Fix | Delete
* @access public
[37] Fix | Delete
* @static
[38] Fix | Delete
*
[39] Fix | Delete
* @return string Control type.
[40] Fix | Delete
*/
[41] Fix | Delete
public static function get_type() {
[42] Fix | Delete
return 'box-shadow';
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Init fields.
[47] Fix | Delete
*
[48] Fix | Delete
* Initialize box shadow control fields.
[49] Fix | Delete
*
[50] Fix | Delete
* @since 1.2.2
[51] Fix | Delete
* @access protected
[52] Fix | Delete
*
[53] Fix | Delete
* @return array Control fields.
[54] Fix | Delete
*/
[55] Fix | Delete
protected function init_fields() {
[56] Fix | Delete
$controls = [];
[57] Fix | Delete
[58] Fix | Delete
$controls['box_shadow'] = [
[59] Fix | Delete
'label' => esc_html__( 'Box Shadow', 'elementor' ),
[60] Fix | Delete
'type' => Controls_Manager::BOX_SHADOW,
[61] Fix | Delete
'selectors' => [
[62] Fix | Delete
'{{SELECTOR}}' => 'box-shadow: {{HORIZONTAL}}px {{VERTICAL}}px {{BLUR}}px {{SPREAD}}px {{COLOR}} {{box_shadow_position.VALUE}};',
[63] Fix | Delete
],
[64] Fix | Delete
];
[65] Fix | Delete
[66] Fix | Delete
$controls['box_shadow_position'] = [
[67] Fix | Delete
'label' => esc_html__( 'Position', 'elementor' ),
[68] Fix | Delete
'type' => Controls_Manager::SELECT,
[69] Fix | Delete
'options' => [
[70] Fix | Delete
' ' => esc_html_x( 'Outline', 'Box Shadow Control', 'elementor' ),
[71] Fix | Delete
'inset' => esc_html_x( 'Inset', 'Box Shadow Control', 'elementor' ),
[72] Fix | Delete
],
[73] Fix | Delete
'default' => ' ',
[74] Fix | Delete
'render_type' => 'ui',
[75] Fix | Delete
];
[76] Fix | Delete
[77] Fix | Delete
return $controls;
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
/**
[81] Fix | Delete
* Get default options.
[82] Fix | Delete
*
[83] Fix | Delete
* Retrieve the default options of the box shadow control. Used to return the
[84] Fix | Delete
* default options while initializing the box shadow control.
[85] Fix | Delete
*
[86] Fix | Delete
* @since 1.9.0
[87] Fix | Delete
* @access protected
[88] Fix | Delete
*
[89] Fix | Delete
* @return array Default box shadow control options.
[90] Fix | Delete
*/
[91] Fix | Delete
protected function get_default_options() {
[92] Fix | Delete
return [
[93] Fix | Delete
'popover' => [
[94] Fix | Delete
'starter_title' => esc_html__( 'Box Shadow', 'elementor' ),
[95] Fix | Delete
'starter_name' => 'box_shadow_type',
[96] Fix | Delete
'starter_value' => 'yes',
[97] Fix | Delete
'settings' => [
[98] Fix | Delete
'render_type' => 'ui',
[99] Fix | Delete
],
[100] Fix | Delete
],
[101] Fix | Delete
];
[102] Fix | Delete
}
[103] Fix | Delete
}
[104] Fix | Delete
[105] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function