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/redux-fr.../sample/sections/extensio...
File: js-button.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux JS Button Sample config.
[2] Fix | Delete
* For full documentation, please visit: http:https://devs.redux.io/
[3] Fix | Delete
*
[4] Fix | Delete
* @package Redux
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
defined( 'ABSPATH' ) || exit;
[8] Fix | Delete
[9] Fix | Delete
Redux::set_section(
[10] Fix | Delete
$opt_name,
[11] Fix | Delete
array(
[12] Fix | Delete
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
[13] Fix | Delete
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/js-button.html" target="_blank">https://devs.redux.io/core-extensions/js-button.html</a>',
[14] Fix | Delete
'subsection' => true,
[15] Fix | Delete
'fields' => array(
[16] Fix | Delete
array(
[17] Fix | Delete
'id' => 'opt-js-button',
[18] Fix | Delete
'type' => 'js_button',
[19] Fix | Delete
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
[20] Fix | Delete
'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
[21] Fix | Delete
'desc' => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
[22] Fix | Delete
'script' => array(
[23] Fix | Delete
'url' => plugins_url( '/extensions/js-button.js', __DIR__ ),
[24] Fix | Delete
'dir' => __DIR__ . '/js-button.js',
[25] Fix | Delete
'dep' => array( 'jquery' ),
[26] Fix | Delete
'ver' => time(),
[27] Fix | Delete
'in_footer' => true,
[28] Fix | Delete
),
[29] Fix | Delete
'buttons' => array(
[30] Fix | Delete
array(
[31] Fix | Delete
'text' => esc_html__( 'Add Date', 'your-textdomain-here' ),
[32] Fix | Delete
'class' => 'button-primary',
[33] Fix | Delete
'function' => 'redux_add_date',
[34] Fix | Delete
),
[35] Fix | Delete
array(
[36] Fix | Delete
'text' => esc_html__( 'Alert', 'your-textdomain-here' ),
[37] Fix | Delete
'class' => 'button-secondary',
[38] Fix | Delete
'function' => 'redux_show_alert',
[39] Fix | Delete
),
[40] Fix | Delete
[41] Fix | Delete
),
[42] Fix | Delete
),
[43] Fix | Delete
array(
[44] Fix | Delete
'id' => 'opt-blank-text',
[45] Fix | Delete
'type' => 'text',
[46] Fix | Delete
'title' => esc_html__( 'Date', 'your-textdomain-here' ),
[47] Fix | Delete
'subtitle' => esc_html__( 'Click the Add Date button above to fill out this field.', 'your-textdomain-here' ),
[48] Fix | Delete
),
[49] Fix | Delete
),
[50] Fix | Delete
)
[51] Fix | Delete
);
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function