Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/embedpre.../EmbedPre.../Includes/Classes
File: Extend_CustomPlayer_Controls.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace EmbedPress\Includes\Classes;
[2] Fix | Delete
[3] Fix | Delete
use \Elementor\Controls_Manager;
[4] Fix | Delete
[5] Fix | Delete
class Extend_CustomPlayer_Controls
[6] Fix | Delete
{
[7] Fix | Delete
[8] Fix | Delete
public function __construct()
[9] Fix | Delete
{
[10] Fix | Delete
add_action('extend_customplayer_controls', [$this, 'extend_elementor_customplayer_controls'], 10, 4);
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
public function extend_elementor_customplayer_controls($that, $infix = '', $pro_text = '', $pro_class = '')
[14] Fix | Delete
{
[15] Fix | Delete
[16] Fix | Delete
$condition = [
[17] Fix | Delete
'emberpress_custom_player' => 'yes',
[18] Fix | Delete
'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video', 'selfhosted_audio']
[19] Fix | Delete
];
[20] Fix | Delete
[21] Fix | Delete
$that->add_control(
[22] Fix | Delete
'embepress_player_restart',
[23] Fix | Delete
[
[24] Fix | Delete
'label' => __('Restart', 'embedpress'),
[25] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[26] Fix | Delete
'label_block' => false,
[27] Fix | Delete
'return_value' => 'yes',
[28] Fix | Delete
'default' => 'yes',
[29] Fix | Delete
'condition' => $condition,
[30] Fix | Delete
]
[31] Fix | Delete
);
[32] Fix | Delete
$that->add_control(
[33] Fix | Delete
'embepress_player_rewind',
[34] Fix | Delete
[
[35] Fix | Delete
'label' => __('Rewind', 'embedpress'),
[36] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[37] Fix | Delete
'label_block' => false,
[38] Fix | Delete
'return_value' => 'yes',
[39] Fix | Delete
'default' => 'yes',
[40] Fix | Delete
'condition' => $condition,
[41] Fix | Delete
]
[42] Fix | Delete
);
[43] Fix | Delete
$that->add_control(
[44] Fix | Delete
'embepress_player_fast_forward',
[45] Fix | Delete
[
[46] Fix | Delete
'label' => __('Fast Forward', 'embedpress'),
[47] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[48] Fix | Delete
'label_block' => false,
[49] Fix | Delete
'return_value' => 'yes',
[50] Fix | Delete
'default' => 'yes',
[51] Fix | Delete
'condition' => $condition,
[52] Fix | Delete
]
[53] Fix | Delete
);
[54] Fix | Delete
$that->add_control(
[55] Fix | Delete
'embepress_player_tooltip',
[56] Fix | Delete
[
[57] Fix | Delete
'label' => sprintf(__('Tooltip %s', 'embedpress'), $pro_text),
[58] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[59] Fix | Delete
'label_block' => false,
[60] Fix | Delete
'return_value' => 'yes',
[61] Fix | Delete
'default' => 'yes',
[62] Fix | Delete
'condition' => $condition,
[63] Fix | Delete
'classes' => $pro_class,
[64] Fix | Delete
[65] Fix | Delete
]
[66] Fix | Delete
);
[67] Fix | Delete
$that->add_control(
[68] Fix | Delete
'embepress_player_hide_controls',
[69] Fix | Delete
[
[70] Fix | Delete
'label' => sprintf(__('Auto Hide Controls %s', 'embedpress'), $pro_text),
[71] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[72] Fix | Delete
'label_block' => false,
[73] Fix | Delete
'return_value' => 'yes',
[74] Fix | Delete
'default' => '',
[75] Fix | Delete
'classes' => $pro_class,
[76] Fix | Delete
'condition' => [
[77] Fix | Delete
'emberpress_custom_player' => 'yes',
[78] Fix | Delete
'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video']
[79] Fix | Delete
],
[80] Fix | Delete
]
[81] Fix | Delete
);
[82] Fix | Delete
$that->add_control(
[83] Fix | Delete
'embepress_player_download',
[84] Fix | Delete
[
[85] Fix | Delete
'label' => sprintf(__('Source Link %s', 'embedpress'), $pro_text),
[86] Fix | Delete
'type' => Controls_Manager::SWITCHER,
[87] Fix | Delete
'label_block' => false,
[88] Fix | Delete
'return_value' => 'yes',
[89] Fix | Delete
'default' => 'yes',
[90] Fix | Delete
'condition' => $condition,
[91] Fix | Delete
'classes' => $pro_class,
[92] Fix | Delete
]
[93] Fix | Delete
);
[94] Fix | Delete
[95] Fix | Delete
}
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function