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/clone/wp-conte.../plugins/redux-fr.../sample/sections/extensio...
File: users.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux User Meta 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
if ( ! class_exists( 'Redux_Users' ) ) {
[10] Fix | Delete
return;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
// Change the priority the Redux_Users boxes appear.
[14] Fix | Delete
Redux_Users::set_Args(
[15] Fix | Delete
$opt_name,
[16] Fix | Delete
array(
[17] Fix | Delete
'user_priority' => 50,
[18] Fix | Delete
)
[19] Fix | Delete
);
[20] Fix | Delete
[21] Fix | Delete
Redux_Users::set_profile(
[22] Fix | Delete
$opt_name,
[23] Fix | Delete
array(
[24] Fix | Delete
'id' => 'demo-users',
[25] Fix | Delete
'title' => esc_html__( 'Cool Options', 'your-textdomain-here' ),
[26] Fix | Delete
'style' => 'wp',
[27] Fix | Delete
'sections' => array(
[28] Fix | Delete
array(
[29] Fix | Delete
'title' => esc_html__( 'User Settings', 'your-textdomain-here' ),
[30] Fix | Delete
'icon' => 'el-icon-home',
[31] Fix | Delete
'fields' => array(
[32] Fix | Delete
array(
[33] Fix | Delete
'id' => 'user-text',
[34] Fix | Delete
'type' => 'text',
[35] Fix | Delete
'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
[36] Fix | Delete
),
[37] Fix | Delete
array(
[38] Fix | Delete
'id' => 'user-text-2',
[39] Fix | Delete
'type' => 'text',
[40] Fix | Delete
'required' => array( 'user-text', '=', 'two' ),
[41] Fix | Delete
'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
[42] Fix | Delete
),
[43] Fix | Delete
array(
[44] Fix | Delete
'id' => 'user-text-3',
[45] Fix | Delete
'type' => 'text',
[46] Fix | Delete
'title' => esc_html__( 'Input 3', 'your-textdomain-here' ),
[47] Fix | Delete
),
[48] Fix | Delete
array(
[49] Fix | Delete
'id' => 'user-web-fonts',
[50] Fix | Delete
'type' => 'media',
[51] Fix | Delete
'title' => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
[52] Fix | Delete
'compiler' => 'true',
[53] Fix | Delete
'mode' => false,
[54] Fix | Delete
// Can be set to false allowing for any media type, or can also be set to any mime type.
[55] Fix | Delete
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
[56] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[57] Fix | Delete
),
[58] Fix | Delete
array(
[59] Fix | Delete
'id' => 'user-section-media-start',
[60] Fix | Delete
'type' => 'section',
[61] Fix | Delete
'title' => esc_html__( 'Media Options', 'your-textdomain-here' ),
[62] Fix | Delete
'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
[63] Fix | Delete
'indent' => true,
[64] Fix | Delete
),
[65] Fix | Delete
array(
[66] Fix | Delete
'id' => 'user-mediaurl',
[67] Fix | Delete
'type' => 'media',
[68] Fix | Delete
'url' => true,
[69] Fix | Delete
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
[70] Fix | Delete
'compiler' => 'true',
[71] Fix | Delete
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
[72] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[73] Fix | Delete
'default' => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
[74] Fix | Delete
),
[75] Fix | Delete
array(
[76] Fix | Delete
'id' => 'user-section-media-end',
[77] Fix | Delete
'type' => 'section',
[78] Fix | Delete
'indent' => false,
[79] Fix | Delete
),
[80] Fix | Delete
array(
[81] Fix | Delete
'id' => 'user-media-nourl',
[82] Fix | Delete
'type' => 'media',
[83] Fix | Delete
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
[84] Fix | Delete
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
[85] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[86] Fix | Delete
),
[87] Fix | Delete
array(
[88] Fix | Delete
'id' => 'user-media-nopreview',
[89] Fix | Delete
'type' => 'media',
[90] Fix | Delete
'preview' => false,
[91] Fix | Delete
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
[92] Fix | Delete
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
[93] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[94] Fix | Delete
),
[95] Fix | Delete
array(
[96] Fix | Delete
'id' => 'user-gallery',
[97] Fix | Delete
'type' => 'gallery',
[98] Fix | Delete
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
[99] Fix | Delete
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
[100] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[101] Fix | Delete
),
[102] Fix | Delete
array(
[103] Fix | Delete
'id' => 'user-slider-one',
[104] Fix | Delete
'type' => 'slider',
[105] Fix | Delete
'title' => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
[106] Fix | Delete
'desc' => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
[107] Fix | Delete
'default' => '46',
[108] Fix | Delete
'min' => '1',
[109] Fix | Delete
'step' => '3',
[110] Fix | Delete
'max' => '500',
[111] Fix | Delete
),
[112] Fix | Delete
array(
[113] Fix | Delete
'id' => 'user-slider-two',
[114] Fix | Delete
'type' => 'slider',
[115] Fix | Delete
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
[116] Fix | Delete
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
[117] Fix | Delete
'default' => '0',
[118] Fix | Delete
'min' => '0',
[119] Fix | Delete
'step' => '5',
[120] Fix | Delete
'max' => '300',
[121] Fix | Delete
),
[122] Fix | Delete
array(
[123] Fix | Delete
'id' => 'user-spinner',
[124] Fix | Delete
'type' => 'spinner',
[125] Fix | Delete
'title' => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
[126] Fix | Delete
'desc' => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
[127] Fix | Delete
'default' => '40',
[128] Fix | Delete
'min' => '20',
[129] Fix | Delete
'step' => '20',
[130] Fix | Delete
'max' => '100',
[131] Fix | Delete
),
[132] Fix | Delete
array(
[133] Fix | Delete
'id' => 'user-switch-parent',
[134] Fix | Delete
'type' => 'switch',
[135] Fix | Delete
'title' => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
[136] Fix | Delete
'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
[137] Fix | Delete
'default' => 0,
[138] Fix | Delete
'on' => 'Enabled',
[139] Fix | Delete
'off' => 'Disabled',
[140] Fix | Delete
),
[141] Fix | Delete
array(
[142] Fix | Delete
'id' => 'user-switch-child',
[143] Fix | Delete
'type' => 'switch',
[144] Fix | Delete
'required' => array( 'switch-parent', '=', '1' ),
[145] Fix | Delete
'title' => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
[146] Fix | Delete
'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
[147] Fix | Delete
'desc' => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
[148] Fix | Delete
'default' => false,
[149] Fix | Delete
),
[150] Fix | Delete
),
[151] Fix | Delete
),
[152] Fix | Delete
array(
[153] Fix | Delete
'title' => esc_html__( 'Home Layout', 'your-textdomain-here' ),
[154] Fix | Delete
'icon' => 'el-icon-home',
[155] Fix | Delete
'fields' => array(
[156] Fix | Delete
array(
[157] Fix | Delete
'id' => 'user-homepage_blocks',
[158] Fix | Delete
'type' => 'sorter',
[159] Fix | Delete
'title' => 'Homepage Layout Manager',
[160] Fix | Delete
'desc' => 'Organize how you want the layout to appear on the homepage',
[161] Fix | Delete
'compiler' => 'true',
[162] Fix | Delete
'required' => array( 'layout', '=', '1' ),
[163] Fix | Delete
'options' => array(
[164] Fix | Delete
'enabled' => array(
[165] Fix | Delete
'highlights' => 'Highlights',
[166] Fix | Delete
'slider' => 'Slider',
[167] Fix | Delete
'staticpage' => 'Static Page',
[168] Fix | Delete
'services' => 'Services',
[169] Fix | Delete
),
[170] Fix | Delete
'disabled' => array(),
[171] Fix | Delete
),
[172] Fix | Delete
),
[173] Fix | Delete
[174] Fix | Delete
array(
[175] Fix | Delete
'id' => 'user-presets',
[176] Fix | Delete
'type' => 'image_select',
[177] Fix | Delete
'presets' => true,
[178] Fix | Delete
'title' => esc_html__( 'Preset', 'your-textdomain-here' ),
[179] Fix | Delete
'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
[180] Fix | Delete
'default' => 0,
[181] Fix | Delete
'desc' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
[182] Fix | Delete
'options' => array(
[183] Fix | Delete
'1' => array(
[184] Fix | Delete
'alt' => 'Preset 1',
[185] Fix | Delete
'img' => Redux_Core::$url . '../sample/presets/preset1.png',
[186] Fix | Delete
'presets' => array(
[187] Fix | Delete
'switch-on' => 1,
[188] Fix | Delete
'switch-off' => 1,
[189] Fix | Delete
'switch-custom' => 1,
[190] Fix | Delete
),
[191] Fix | Delete
),
[192] Fix | Delete
'2' => array(
[193] Fix | Delete
'alt' => 'Preset 2',
[194] Fix | Delete
'img' => Redux_Core::$url . '../sample/presets/preset2.png',
[195] Fix | Delete
'presets' => "{'slider1':'1', 'slider2':'0', 'switch-on':'0'}",
[196] Fix | Delete
),
[197] Fix | Delete
),
[198] Fix | Delete
),
[199] Fix | Delete
),
[200] Fix | Delete
),
[201] Fix | Delete
),
[202] Fix | Delete
)
[203] Fix | Delete
);
[204] Fix | Delete
[205] Fix | Delete
// Recovering user data.
[206] Fix | Delete
$data = Redux_Users::get_user_meta(
[207] Fix | Delete
array(
[208] Fix | Delete
'key' => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
[209] Fix | Delete
'opt_name' => $opt_name, // Optional, but needed to recover default values for unset values.
[210] Fix | Delete
'user' => '', // User id, else current user ID is returned.
[211] Fix | Delete
)
[212] Fix | Delete
);
[213] Fix | Delete
[214] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function