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: taxonomy.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux Taxonomy Meta config.
[2] Fix | Delete
* For full documentation, please visit: http://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_Taxonomy' ) ) {
[10] Fix | Delete
return;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
// Change the priority the Redux_Taxonomy boxes appear.
[14] Fix | Delete
Redux_Taxonomy::set_args(
[15] Fix | Delete
$opt_name,
[16] Fix | Delete
array(
[17] Fix | Delete
'taxonomy_priority' => 55,
[18] Fix | Delete
)
[19] Fix | Delete
);
[20] Fix | Delete
[21] Fix | Delete
Redux_Taxonomy::set_term(
[22] Fix | Delete
$opt_name,
[23] Fix | Delete
array(
[24] Fix | Delete
'id' => 'demo-taxonomy',
[25] Fix | Delete
'title' => esc_html__( 'Cool Options', 'your-textdomain-here' ),
[26] Fix | Delete
[27] Fix | Delete
// Slug for every taxonomy you want.
[28] Fix | Delete
'taxonomy_types' => array( 'category', 'post_tag' ),
[29] Fix | Delete
[30] Fix | Delete
'add_visibility' => true,
[31] Fix | Delete
[32] Fix | Delete
// Can be set on term, section, or field level. Denote what fields to be displayed on the added {TERM} pages.
[33] Fix | Delete
'sections' => array(
[34] Fix | Delete
array(
[35] Fix | Delete
'title' => esc_html__( 'Home Settings', 'your-textdomain-here' ),
[36] Fix | Delete
'icon' => 'el-icon-home',
[37] Fix | Delete
'fields' => array(
[38] Fix | Delete
array(
[39] Fix | Delete
'id' => 'tax-text',
[40] Fix | Delete
'type' => 'text',
[41] Fix | Delete
'add_visibility' => true,
[42] Fix | Delete
'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
[43] Fix | Delete
),
[44] Fix | Delete
array(
[45] Fix | Delete
'id' => 'tax-button-set',
[46] Fix | Delete
'type' => 'button_set',
[47] Fix | Delete
'title' => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
[48] Fix | Delete
'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
[49] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[50] Fix | Delete
'add_visibility' => true,
[51] Fix | Delete
'options' => array(
[52] Fix | Delete
'1' => 'Opt 1',
[53] Fix | Delete
'2' => 'Opt 2',
[54] Fix | Delete
'3' => 'Opt 3',
[55] Fix | Delete
),
[56] Fix | Delete
'default' => '2',
[57] Fix | Delete
),
[58] Fix | Delete
array(
[59] Fix | Delete
'id' => 'tax-text-2',
[60] Fix | Delete
'type' => 'text',
[61] Fix | Delete
'add_visibility' => true,
[62] Fix | Delete
'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
[63] Fix | Delete
),
[64] Fix | Delete
array(
[65] Fix | Delete
'id' => 'tax-web-fonts',
[66] Fix | Delete
'type' => 'media',
[67] Fix | Delete
'title' => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
[68] Fix | Delete
'compiler' => 'true',
[69] Fix | Delete
'mode' => false,
[70] Fix | Delete
// Can be set to false to allow any media type, or can also be set to any mime type.
[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
),
[74] Fix | Delete
array(
[75] Fix | Delete
'id' => 'tax-section-media-start',
[76] Fix | Delete
'type' => 'section',
[77] Fix | Delete
'title' => esc_html__( 'Media Options', 'your-textdomain-here' ),
[78] Fix | Delete
'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
[79] Fix | Delete
'indent' => true,
[80] Fix | Delete
),
[81] Fix | Delete
array(
[82] Fix | Delete
'id' => 'tax-media-url',
[83] Fix | Delete
'type' => 'media',
[84] Fix | Delete
'url' => true,
[85] Fix | Delete
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
[86] Fix | Delete
'compiler' => 'true',
[87] Fix | Delete
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
[88] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[89] Fix | Delete
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
[90] Fix | Delete
),
[91] Fix | Delete
array(
[92] Fix | Delete
'id' => 'tax-section-media-end',
[93] Fix | Delete
'type' => 'section',
[94] Fix | Delete
'indent' => false,
[95] Fix | Delete
),
[96] Fix | Delete
array(
[97] Fix | Delete
'id' => 'tax-media-no-url',
[98] Fix | Delete
'type' => 'media',
[99] Fix | Delete
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
[100] 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' ),
[101] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[102] Fix | Delete
),
[103] Fix | Delete
array(
[104] Fix | Delete
'id' => 'tax-media-no-preview',
[105] Fix | Delete
'type' => 'media',
[106] Fix | Delete
'preview' => false,
[107] Fix | Delete
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
[108] 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' ),
[109] Fix | Delete
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
[110] Fix | Delete
),
[111] Fix | Delete
array(
[112] Fix | Delete
'id' => 'tax-gallery',
[113] Fix | Delete
'type' => 'gallery',
[114] Fix | Delete
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
[115] Fix | Delete
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
[116] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[117] Fix | Delete
),
[118] Fix | Delete
array(
[119] Fix | Delete
'id' => 'tax-slider',
[120] Fix | Delete
'type' => 'slider',
[121] Fix | Delete
'title' => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
[122] Fix | Delete
'desc' => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
[123] Fix | Delete
'default' => '46',
[124] Fix | Delete
'min' => '1',
[125] Fix | Delete
'step' => '3',
[126] Fix | Delete
'max' => '500',
[127] Fix | Delete
),
[128] Fix | Delete
array(
[129] Fix | Delete
'id' => 'tax-slider-2',
[130] Fix | Delete
'type' => 'slider',
[131] Fix | Delete
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
[132] Fix | Delete
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
[133] Fix | Delete
'default' => '0',
[134] Fix | Delete
'min' => '0',
[135] Fix | Delete
'step' => '5',
[136] Fix | Delete
'max' => '300',
[137] Fix | Delete
),
[138] Fix | Delete
array(
[139] Fix | Delete
'id' => 'tax-spinner',
[140] Fix | Delete
'type' => 'spinner',
[141] Fix | Delete
'title' => esc_html__( 'Spinner Example 1', 'your-textdomain-here' ),
[142] Fix | Delete
'desc' => esc_html__( 'Spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
[143] Fix | Delete
'default' => '40',
[144] Fix | Delete
'min' => '20',
[145] Fix | Delete
'step' => '20',
[146] Fix | Delete
'max' => '100',
[147] Fix | Delete
),
[148] Fix | Delete
array(
[149] Fix | Delete
'id' => 'tax-switch-parent',
[150] Fix | Delete
'type' => 'switch',
[151] Fix | Delete
'title' => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
[152] Fix | Delete
'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
[153] Fix | Delete
'default' => 0,
[154] Fix | Delete
'on' => 'Enabled',
[155] Fix | Delete
'off' => 'Disabled',
[156] Fix | Delete
),
[157] Fix | Delete
array(
[158] Fix | Delete
'id' => 'tax-switch-child',
[159] Fix | Delete
'type' => 'switch',
[160] Fix | Delete
'required' => array( 'tax-switch-parent', '=', '1' ),
[161] Fix | Delete
'title' => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
[162] Fix | Delete
'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
[163] 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' ),
[164] Fix | Delete
'default' => false,
[165] Fix | Delete
),
[166] Fix | Delete
),
[167] Fix | Delete
),
[168] Fix | Delete
[169] Fix | Delete
array(
[170] Fix | Delete
'title' => esc_html__( 'Home Layout', 'your-textdomain-here' ),
[171] Fix | Delete
// translators: %s = Redux GitHub URL.
[172] Fix | Delete
'desc' => sprintf( 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: %s', 'your-textdomain-here' ), '<a href="https://github.com/reduxframework/redux-framework">https://github.com/reduxframework/redux-framework</a>' ),
[173] Fix | Delete
'icon' => 'el-icon-home',
[174] Fix | Delete
'fields' => array(
[175] Fix | Delete
array(
[176] Fix | Delete
'id' => 'tax-homepage_blocks',
[177] Fix | Delete
'type' => 'sorter',
[178] Fix | Delete
'title' => 'Homepage Layout Manager',
[179] Fix | Delete
'desc' => 'Organize how you want the layout to appear on the homepage',
[180] Fix | Delete
'compiler' => 'true',
[181] Fix | Delete
'add_visibility' => true,
[182] Fix | Delete
[183] Fix | Delete
'options' => array(
[184] Fix | Delete
'enabled' => array(
[185] Fix | Delete
'highlights' => 'Highlights',
[186] Fix | Delete
'slider' => 'Slider',
[187] Fix | Delete
'staticpage' => 'Static Page',
[188] Fix | Delete
),
[189] Fix | Delete
'disabled' => array(
[190] Fix | Delete
'services' => 'Services',
[191] Fix | Delete
),
[192] Fix | Delete
),
[193] Fix | Delete
),
[194] Fix | Delete
[195] Fix | Delete
array(
[196] Fix | Delete
'id' => 'tax-presets',
[197] Fix | Delete
'type' => 'image_select',
[198] Fix | Delete
'presets' => true,
[199] Fix | Delete
'title' => esc_html__( 'Preset', 'your-textdomain-here' ),
[200] 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' ),
[201] Fix | Delete
'default' => 0,
[202] 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' ),
[203] Fix | Delete
'options' => array(
[204] Fix | Delete
'1' => array(
[205] Fix | Delete
'alt' => 'Preset 1',
[206] Fix | Delete
'img' => ReduxFramework::$_url . '../sample/presets/preset1.png',
[207] Fix | Delete
'presets' => array(
[208] Fix | Delete
'switch-on' => 1,
[209] Fix | Delete
'switch-off' => 1,
[210] Fix | Delete
'switch-custom' => 1,
[211] Fix | Delete
),
[212] Fix | Delete
),
[213] Fix | Delete
'2' => array(
[214] Fix | Delete
'alt' => 'Preset 2',
[215] Fix | Delete
'img' => ReduxFramework::$_url . '../sample/presets/preset2.png',
[216] Fix | Delete
'presets' => '{"slider1":"1", "slider2":"0", "switch-on":"0"}',
[217] Fix | Delete
),
[218] Fix | Delete
),
[219] Fix | Delete
),
[220] Fix | Delete
),
[221] Fix | Delete
),
[222] Fix | Delete
),
[223] Fix | Delete
)
[224] Fix | Delete
);
[225] Fix | Delete
[226] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function