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
File: metaboxes.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux Framework Sample Metabox Config File
[2] Fix | Delete
* For full documentation, please visit: http:https://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
if ( ! class_exists( 'Redux_Metaboxes' ) ) {
[10] Fix | Delete
return;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
Redux_Metaboxes::set_box(
[14] Fix | Delete
$opt_name,
[15] Fix | Delete
array(
[16] Fix | Delete
'id' => 'opt-metaboxes',
[17] Fix | Delete
'title' => esc_html__( 'Metabox Options', 'your-textdomain-here' ),
[18] Fix | Delete
'post_types' => array( 'page', 'post' ),
[19] Fix | Delete
'position' => 'normal', // normal, advanced, side.
[20] Fix | Delete
'priority' => 'high', // high, core, default, low.
[21] Fix | Delete
'sections' => array(
[22] Fix | Delete
array(
[23] Fix | Delete
'title' => esc_html__( 'Basic Fields', 'your-textdomain-here' ),
[24] Fix | Delete
'id' => 'opt-basic-fields',
[25] Fix | Delete
'desc' => esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
[26] Fix | Delete
'icon' => 'el-icon-cogs',
[27] Fix | Delete
'fields' => array(
[28] Fix | Delete
array(
[29] Fix | Delete
'id' => 'opt-checkbox',
[30] Fix | Delete
'type' => 'checkbox',
[31] Fix | Delete
'title' => esc_html__( 'Checkbox', 'your-textdomain-here' ),
[32] Fix | Delete
'subtitle' => esc_html__( 'Basic Checkbox field.', 'your-textdomain-here' ),
[33] Fix | Delete
'default' => true,
[34] Fix | Delete
),
[35] Fix | Delete
array(
[36] Fix | Delete
'id' => 'opt-radio',
[37] Fix | Delete
'type' => 'radio',
[38] Fix | Delete
'title' => esc_html__( 'Radio Button', 'your-textdomain-here' ),
[39] Fix | Delete
'subtitle' => esc_html__( 'Basic Radio Button field.', 'your-textdomain-here' ),
[40] Fix | Delete
'options' => array(
[41] Fix | Delete
'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
[42] Fix | Delete
'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
[43] Fix | Delete
'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
[44] Fix | Delete
),
[45] Fix | Delete
'default' => '2',
[46] Fix | Delete
),
[47] Fix | Delete
array(
[48] Fix | Delete
'id' => 'opt-media',
[49] Fix | Delete
'type' => 'media',
[50] Fix | Delete
'url' => true,
[51] Fix | Delete
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
[52] Fix | Delete
'compiler' => 'true',
[53] Fix | Delete
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
[54] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[55] Fix | Delete
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
[56] Fix | Delete
),
[57] Fix | Delete
array(
[58] Fix | Delete
'id' => 'gallery',
[59] Fix | Delete
'type' => 'gallery',
[60] Fix | Delete
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
[61] Fix | Delete
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
[62] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[63] Fix | Delete
),
[64] Fix | Delete
array(
[65] Fix | Delete
'id' => 'opt-slider',
[66] Fix | Delete
'type' => 'slider',
[67] Fix | Delete
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
[68] Fix | Delete
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
[69] Fix | Delete
'default' => '0',
[70] Fix | Delete
'min' => '0',
[71] Fix | Delete
'step' => '5',
[72] Fix | Delete
'max' => '300',
[73] Fix | Delete
),
[74] Fix | Delete
array(
[75] Fix | Delete
'id' => 'opt-spinner',
[76] Fix | Delete
'type' => 'spinner',
[77] Fix | Delete
'title' => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
[78] Fix | Delete
'desc' => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
[79] Fix | Delete
'default' => '40',
[80] Fix | Delete
'min' => '20',
[81] Fix | Delete
'step' => '20',
[82] Fix | Delete
'max' => '100',
[83] Fix | Delete
),
[84] Fix | Delete
[85] Fix | Delete
array(
[86] Fix | Delete
'id' => 'switch-on',
[87] Fix | Delete
'type' => 'switch',
[88] Fix | Delete
'title' => esc_html__( 'Switch On', 'your-textdomain-here' ),
[89] Fix | Delete
'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
[90] Fix | Delete
'default' => 1,
[91] Fix | Delete
),
[92] Fix | Delete
),
[93] Fix | Delete
),
[94] Fix | Delete
[95] Fix | Delete
array(
[96] Fix | Delete
'title' => esc_html__( 'Text Fields', 'your-textdomain-here' ),
[97] Fix | Delete
'desc' => esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
[98] Fix | Delete
'icon' => 'el-icon-cog',
[99] Fix | Delete
'id' => 'opt-text-fields',
[100] Fix | Delete
'subsection' => true,
[101] Fix | Delete
'fields' => array(
[102] Fix | Delete
array(
[103] Fix | Delete
'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
[104] Fix | Delete
'id' => 'opt-text',
[105] Fix | Delete
'type' => 'text',
[106] Fix | Delete
),
[107] Fix | Delete
array(
[108] Fix | Delete
'title' => esc_html__( 'Textarea Field', 'your-textdomain-here' ),
[109] Fix | Delete
'id' => 'opt-textarea',
[110] Fix | Delete
'type' => 'textarea',
[111] Fix | Delete
),
[112] Fix | Delete
),
[113] Fix | Delete
),
[114] Fix | Delete
[115] Fix | Delete
array(
[116] Fix | Delete
'title' => esc_html__( 'Color Field', 'your-textdomain-here' ),
[117] Fix | Delete
'desc' => esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
[118] Fix | Delete
'icon' => 'el-icon-pencil',
[119] Fix | Delete
'id' => 'color-section',
[120] Fix | Delete
'fields' => array(
[121] Fix | Delete
array(
[122] Fix | Delete
'id' => 'opt-color',
[123] Fix | Delete
'type' => 'color',
[124] Fix | Delete
'title' => esc_html__( 'Color Field', 'your-textdomain-here' ),
[125] Fix | Delete
'default' => '#333333',
[126] Fix | Delete
'required' => array( 'opt-layout', '=', 'on' ),
[127] Fix | Delete
),
[128] Fix | Delete
),
[129] Fix | Delete
),
[130] Fix | Delete
array(
[131] Fix | Delete
'title' => esc_html__( 'Layout', 'your-textdomain-here' ),
[132] Fix | Delete
'desc' => esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
[133] Fix | Delete
'icon' => 'el-icon-pencil',
[134] Fix | Delete
'id' => 'home-layout',
[135] Fix | Delete
'fields' => array(
[136] Fix | Delete
array(
[137] Fix | Delete
'id' => 'homepage_blocks',
[138] Fix | Delete
'type' => 'sorter',
[139] Fix | Delete
'title' => 'Homepage Layout Manager',
[140] Fix | Delete
'desc' => 'Organize how you want the layout to appear on the homepage',
[141] Fix | Delete
'compiler' => 'true',
[142] Fix | Delete
'required' => array( 'layout', '=', '1' ),
[143] Fix | Delete
'options' => array(
[144] Fix | Delete
'enabled' => array(
[145] Fix | Delete
'placebo' => 'placebo',
[146] Fix | Delete
'highlights' => 'Highlights',
[147] Fix | Delete
'slider' => 'Slider',
[148] Fix | Delete
'staticpage' => 'Static Page',
[149] Fix | Delete
'services' => 'Services',
[150] Fix | Delete
),
[151] Fix | Delete
'disabled' => array(
[152] Fix | Delete
'placebo' => 'placebo',
[153] Fix | Delete
),
[154] Fix | Delete
),
[155] Fix | Delete
),
[156] Fix | Delete
array(
[157] Fix | Delete
'id' => 'slides',
[158] Fix | Delete
'type' => 'slides',
[159] Fix | Delete
'title' => esc_html__( 'Slides Options', 'your-textdomain-here' ),
[160] Fix | Delete
'subtitle' => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
[161] Fix | Delete
'desc' => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
[162] Fix | Delete
),
[163] Fix | Delete
),
[164] Fix | Delete
),
[165] Fix | Delete
),
[166] Fix | Delete
)
[167] Fix | Delete
);
[168] Fix | Delete
[169] Fix | Delete
[170] Fix | Delete
Redux_Metaboxes::set_box(
[171] Fix | Delete
$opt_name,
[172] Fix | Delete
array(
[173] Fix | Delete
'id' => 'opt-metaboxes-2',
[174] Fix | Delete
'post_types' => array( 'page', 'post' ),
[175] Fix | Delete
'position' => 'side', // normal, advanced, side.
[176] Fix | Delete
'priority' => 'high', // high, core, default, low.
[177] Fix | Delete
'sections' => array(
[178] Fix | Delete
array(
[179] Fix | Delete
'icon_class' => 'icon-large',
[180] Fix | Delete
'icon' => 'el-icon-home',
[181] Fix | Delete
'fields' => array(
[182] Fix | Delete
array(
[183] Fix | Delete
'title' => esc_html__( 'Cross Box Required', 'your-textdomain-here' ),
[184] Fix | Delete
'desc' => esc_html__( 'Required arguments work across metaboxes! Click on Color Field under Metabox Options then adjust this field to see the fields within show or hide.', 'your-textdomain-here' ),
[185] Fix | Delete
'id' => 'opt-layout',
[186] Fix | Delete
'type' => 'radio',
[187] Fix | Delete
'options' => array(
[188] Fix | Delete
'on' => esc_html__( 'On', 'your-textdomain-here' ),
[189] Fix | Delete
'off' => esc_html__( 'Off', 'your-textdomain-here' ),
[190] Fix | Delete
),
[191] Fix | Delete
'default' => 'on',
[192] Fix | Delete
),
[193] Fix | Delete
),
[194] Fix | Delete
),
[195] Fix | Delete
),
[196] Fix | Delete
)
[197] Fix | Delete
);
[198] Fix | Delete
[199] Fix | Delete
Redux_Metaboxes::set_box(
[200] Fix | Delete
$opt_name,
[201] Fix | Delete
array(
[202] Fix | Delete
'id' => 'opt-metaboxes-3',
[203] Fix | Delete
'post_types' => array( 'page', 'post' ),
[204] Fix | Delete
'position' => 'side', // normal, advanced, side.
[205] Fix | Delete
'priority' => 'high', // high, core, default, low.
[206] Fix | Delete
'sections' => array(
[207] Fix | Delete
array(
[208] Fix | Delete
'icon_class' => 'icon-large',
[209] Fix | Delete
'icon' => 'el-icon-home',
[210] Fix | Delete
'fields' => array(
[211] Fix | Delete
array(
[212] Fix | Delete
'id' => 'sidebar',
[213] Fix | Delete
'title' => esc_html__( 'Sidebar', 'your-textdomain-here' ),
[214] Fix | Delete
'desc' => esc_html__( 'Please select the sidebar you would like to display on this page. Note: You must first create the sidebar under Appearance > Widgets.', 'your-textdomain-here' ),
[215] Fix | Delete
'type' => 'select',
[216] Fix | Delete
'data' => 'sidebars',
[217] Fix | Delete
'default' => 'None',
[218] Fix | Delete
),
[219] Fix | Delete
),
[220] Fix | Delete
),
[221] Fix | Delete
),
[222] Fix | Delete
)
[223] Fix | Delete
);
[224] Fix | Delete
[225] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function