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/advanced...
File: field-required-linking.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux Framework required/linking config.
[2] Fix | Delete
* For full documentation, please visit: http://devs.redux.io/
[3] Fix | Delete
*
[4] Fix | Delete
* @package Redux Framework
[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__( 'Field Required / Linking', 'your-textdomain-here' ),
[13] Fix | Delete
'id' => 'required',
[14] Fix | Delete
'desc' => esc_html__( 'For full documentation on validation, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/required.html" target="_blank">https://devs.redux.io/configuration/fields/required.html</a>',
[15] Fix | Delete
'subsection' => true,
[16] Fix | Delete
'fields' => array(
[17] Fix | Delete
array(
[18] Fix | Delete
'id' => 'opt-required-basic',
[19] Fix | Delete
'type' => 'switch',
[20] Fix | Delete
'title' => esc_html__( 'Basic Required Example', 'your-textdomain-here' ),
[21] Fix | Delete
'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see the text field appear.', 'your-textdomain-here' ) ),
[22] Fix | Delete
'default' => false,
[23] Fix | Delete
),
[24] Fix | Delete
array(
[25] Fix | Delete
'id' => 'opt-required-basic-text',
[26] Fix | Delete
'type' => 'text',
[27] Fix | Delete
'title' => esc_html__( 'Basic Text Field', 'your-textdomain-here' ),
[28] Fix | Delete
'subtitle' => wp_kses_post( __( 'This text field is only show when the above switch is set to <code>On</code>, using the <code>required</code> argument.', 'your-textdomain-here' ) ),
[29] Fix | Delete
'required' => array( 'opt-required-basic', '=', true ),
[30] Fix | Delete
),
[31] Fix | Delete
array(
[32] Fix | Delete
'id' => 'opt-required-divide-1',
[33] Fix | Delete
'type' => 'divide',
[34] Fix | Delete
),
[35] Fix | Delete
array(
[36] Fix | Delete
'id' => 'opt-required-nested',
[37] Fix | Delete
'type' => 'switch',
[38] Fix | Delete
'title' => esc_html__( 'Nested Required Example', 'your-textdomain-here' ),
[39] Fix | Delete
'subtitle' => wp_kses_post( __( 'Click <code>On</code> to see another set of options appear.', 'your-textdomain-here' ) ),
[40] Fix | Delete
'default' => false,
[41] Fix | Delete
),
[42] Fix | Delete
array(
[43] Fix | Delete
'id' => 'opt-required-nested-buttonset',
[44] Fix | Delete
'type' => 'button_set',
[45] Fix | Delete
'title' => esc_html__( 'Multiple Nested Required Examples', 'your-textdomain-here' ),
[46] Fix | Delete
'subtitle' => wp_kses_post( __( 'Click any button to show different fields based on their <code>required</code> statements.', 'your-textdomain-here' ) ),
[47] Fix | Delete
'options' => array(
[48] Fix | Delete
'button-text' => esc_html__( 'Show Text Field', 'your-textdomain-here' ),
[49] Fix | Delete
'button-textarea' => esc_html__( 'Show Textarea Field', 'your-textdomain-here' ),
[50] Fix | Delete
'button-editor' => esc_html__( 'Show WP Editor', 'your-textdomain-here' ),
[51] Fix | Delete
'button-ace' => esc_html__( 'Show ACE Editor', 'your-textdomain-here' ),
[52] Fix | Delete
),
[53] Fix | Delete
'required' => array( 'opt-required-nested', '=', true ),
[54] Fix | Delete
'default' => 'button-text',
[55] Fix | Delete
),
[56] Fix | Delete
array(
[57] Fix | Delete
'id' => 'opt-required-nested-text',
[58] Fix | Delete
'type' => 'text',
[59] Fix | Delete
'title' => esc_html__( 'Nested Text Field', 'your-textdomain-here' ),
[60] Fix | Delete
'required' => array( 'opt-required-nested-buttonset', '=', 'button-text' ),
[61] Fix | Delete
),
[62] Fix | Delete
array(
[63] Fix | Delete
'id' => 'opt-required-nested-textarea',
[64] Fix | Delete
'type' => 'textarea',
[65] Fix | Delete
'title' => esc_html__( 'Nested Textarea Field', 'your-textdomain-here' ),
[66] Fix | Delete
'required' => array( 'opt-required-nested-buttonset', '=', 'button-textarea' ),
[67] Fix | Delete
),
[68] Fix | Delete
array(
[69] Fix | Delete
'id' => 'opt-required-nested-editor',
[70] Fix | Delete
'type' => 'editor',
[71] Fix | Delete
'title' => esc_html__( 'Nested Editor Field', 'your-textdomain-here' ),
[72] Fix | Delete
'required' => array( 'opt-required-nested-buttonset', '=', 'button-editor' ),
[73] Fix | Delete
),
[74] Fix | Delete
array(
[75] Fix | Delete
'id' => 'opt-required-nested-ace',
[76] Fix | Delete
'type' => 'ace_editor',
[77] Fix | Delete
'title' => esc_html__( 'Nested ACE Editor Field', 'your-textdomain-here' ),
[78] Fix | Delete
'required' => array( 'opt-required-nested-buttonset', '=', 'button-ace' ),
[79] Fix | Delete
),
[80] Fix | Delete
array(
[81] Fix | Delete
'id' => 'opt-required-divide-2',
[82] Fix | Delete
'type' => 'divide',
[83] Fix | Delete
),
[84] Fix | Delete
array(
[85] Fix | Delete
'id' => 'opt-required-select',
[86] Fix | Delete
'type' => 'select',
[87] Fix | Delete
'title' => esc_html__( 'Select Required Example', 'your-textdomain-here' ),
[88] Fix | Delete
'subtitle' => esc_html__( 'Select a different option to display its value. Required may be used to display multiple & reusable fields', 'your-textdomain-here' ),
[89] Fix | Delete
'options' => array(
[90] Fix | Delete
'no-sidebar' => esc_html__( 'No Sidebars', 'your-textdomain-here' ),
[91] Fix | Delete
'left-sidebar' => esc_html__( 'Left Sidebar', 'your-textdomain-here' ),
[92] Fix | Delete
'right-sidebar' => esc_html__( 'Right Sidebar', 'your-textdomain-here' ),
[93] Fix | Delete
'both-sidebars' => esc_html__( 'Both Sidebars', 'your-textdomain-here' ),
[94] Fix | Delete
),
[95] Fix | Delete
'default' => 'no-sidebar',
[96] Fix | Delete
'select2' => array( 'allowClear' => false ),
[97] Fix | Delete
),
[98] Fix | Delete
array(
[99] Fix | Delete
'id' => 'opt-required-select-left-sidebar',
[100] Fix | Delete
'type' => 'select',
[101] Fix | Delete
'title' => esc_html__( 'Select Left Sidebar', 'your-textdomain-here' ),
[102] Fix | Delete
'data' => 'sidebars',
[103] Fix | Delete
'default' => '',
[104] Fix | Delete
'required' => array( 'opt-required-select', '=', array( 'left-sidebar', 'both-sidebars' ) ),
[105] Fix | Delete
),
[106] Fix | Delete
array(
[107] Fix | Delete
'id' => 'opt-required-select-right-sidebar',
[108] Fix | Delete
'type' => 'select',
[109] Fix | Delete
'title' => esc_html__( 'Select Right Sidebar', 'your-textdomain-here' ),
[110] Fix | Delete
'data' => 'sidebars',
[111] Fix | Delete
'default' => '',
[112] Fix | Delete
'required' => array( 'opt-required-select', '=', array( 'right-sidebar', 'both-sidebars' ) ),
[113] Fix | Delete
),
[114] Fix | Delete
),
[115] Fix | Delete
)
[116] Fix | Delete
);
[117] Fix | Delete
[118] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function