Edit File by line
/home/zeestwma/ceyloniy.../wp-conte.../plugins/elemento.../modules/componen.../document...
File: component-overridable-prop.php
<?php
[0] Fix | Delete
namespace Elementor\Modules\Components\Documents;
[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
class Component_Overridable_Prop {
[7] Fix | Delete
/** @var string */
[8] Fix | Delete
public $override_key;
[9] Fix | Delete
[10] Fix | Delete
/** @var string */
[11] Fix | Delete
public $element_id;
[12] Fix | Delete
[13] Fix | Delete
/** @var string */
[14] Fix | Delete
public $el_type;
[15] Fix | Delete
[16] Fix | Delete
/** @var string */
[17] Fix | Delete
public $widget_type;
[18] Fix | Delete
[19] Fix | Delete
/** @var string */
[20] Fix | Delete
public $prop_key;
[21] Fix | Delete
[22] Fix | Delete
/** @var string */
[23] Fix | Delete
public $label;
[24] Fix | Delete
[25] Fix | Delete
/** @var array{ $$type: string, value: mixed } */
[26] Fix | Delete
public $origin_value;
[27] Fix | Delete
[28] Fix | Delete
/** @var string */
[29] Fix | Delete
public $group_id;
[30] Fix | Delete
[31] Fix | Delete
/** @var ?array{ $el_type: string, $widget_type: string, $prop_key: string } */
[32] Fix | Delete
public $origin_prop_fields = null;
[33] Fix | Delete
[34] Fix | Delete
public function __construct( array $overridable_prop ) {
[35] Fix | Delete
$this->override_key = $overridable_prop['overrideKey'];
[36] Fix | Delete
$this->element_id = $overridable_prop['elementId'];
[37] Fix | Delete
$this->el_type = $overridable_prop['elType'];
[38] Fix | Delete
$this->widget_type = $overridable_prop['widgetType'];
[39] Fix | Delete
$this->prop_key = $overridable_prop['propKey'];
[40] Fix | Delete
$this->label = $overridable_prop['label'];
[41] Fix | Delete
$this->origin_value = $overridable_prop['originValue'];
[42] Fix | Delete
$this->group_id = $overridable_prop['groupId'] ?? null;
[43] Fix | Delete
[44] Fix | Delete
if ( isset( $overridable_prop['originPropFields'] ) ) {
[45] Fix | Delete
$this->origin_prop_fields = [
[46] Fix | Delete
'el_type' => $overridable_prop['originPropFields']['elType'],
[47] Fix | Delete
'widget_type' => $overridable_prop['originPropFields']['widgetType'],
[48] Fix | Delete
'prop_key' => $overridable_prop['originPropFields']['propKey'],
[49] Fix | Delete
'element_id' => $overridable_prop['originPropFields']['elementId'],
[50] Fix | Delete
];
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
public static function make( array $overridable_prop ): self {
[55] Fix | Delete
return new self( $overridable_prop );
[56] Fix | Delete
}
[57] Fix | Delete
}
[58] Fix | Delete
[59] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function