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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/core/admin
File: options-fields.php
'main-navigation' => esc_html__( 'Main navigation', 'herald' ),
[4000] Fix | Delete
'entry-title' => esc_html__( 'Post/Page titles', 'herald' ),
[4001] Fix | Delete
'meta-category a' => esc_html__( 'Category links', 'herald' ),
[4002] Fix | Delete
'herald-mod-title' => esc_html__( 'Module titles', 'herald' ),
[4003] Fix | Delete
'herald-sidebar .widget-title' => esc_html__( 'Widget titles', 'herald' ),
[4004] Fix | Delete
'herald-site-footer .widget-title' => esc_html__( 'Footer widget titles', 'herald' ),
[4005] Fix | Delete
),
[4006] Fix | Delete
'default' => herald_get_default_option( 'uppercase' ),
[4007] Fix | Delete
)
[4008] Fix | Delete
)
[4009] Fix | Delete
)
[4010] Fix | Delete
);
[4011] Fix | Delete
[4012] Fix | Delete
/* Ads */
[4013] Fix | Delete
Redux::setSection( $opt_name, array(
[4014] Fix | Delete
'icon' => 'el-icon-usd',
[4015] Fix | Delete
'title' => esc_html__( 'Ads', 'herald' ),
[4016] Fix | Delete
'desc' => esc_html__( 'Use this options to fill your ads slots. Both image and JavaScript related ads are allowed.', 'herald' ),
[4017] Fix | Delete
'fields' => array(
[4018] Fix | Delete
[4019] Fix | Delete
array(
[4020] Fix | Delete
'id' => 'ad_header',
[4021] Fix | Delete
'type' => 'editor',
[4022] Fix | Delete
'title' => esc_html__( 'Header ad slot', 'herald' ),
[4023] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed in website header. You can enable it in header main area settings', 'herald' ),
[4024] Fix | Delete
'default' => herald_get_default_option( 'ad_header' ),
[4025] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or js code, use "text" mode in editor. Suggested size of an ad banner is 728x90', 'herald' ),
[4026] Fix | Delete
'args' => array(
[4027] Fix | Delete
'textarea_rows' => 5,
[4028] Fix | Delete
'default_editor' => 'html',
[4029] Fix | Delete
),
[4030] Fix | Delete
),
[4031] Fix | Delete
[4032] Fix | Delete
[4033] Fix | Delete
array(
[4034] Fix | Delete
'id' => 'ad_below_header',
[4035] Fix | Delete
'type' => 'editor',
[4036] Fix | Delete
'title' => esc_html__( 'Below header', 'herald' ),
[4037] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed between your header and website content', 'herald' ),
[4038] Fix | Delete
'default' => herald_get_default_option( 'ad_below_header' ),
[4039] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
[4040] Fix | Delete
'args' => array(
[4041] Fix | Delete
'textarea_rows' => 5,
[4042] Fix | Delete
'default_editor' => 'html',
[4043] Fix | Delete
),
[4044] Fix | Delete
),
[4045] Fix | Delete
[4046] Fix | Delete
array(
[4047] Fix | Delete
'id' => 'ad_above_footer',
[4048] Fix | Delete
'type' => 'editor',
[4049] Fix | Delete
'title' => esc_html__( 'Above footer', 'herald' ),
[4050] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed between your footer and website content', 'herald' ),
[4051] Fix | Delete
'default' => herald_get_default_option( 'ad_above_footer' ),
[4052] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
[4053] Fix | Delete
'args' => array(
[4054] Fix | Delete
'textarea_rows' => 5,
[4055] Fix | Delete
'default_editor' => 'html',
[4056] Fix | Delete
),
[4057] Fix | Delete
),
[4058] Fix | Delete
[4059] Fix | Delete
array(
[4060] Fix | Delete
'id' => 'ad_above_single',
[4061] Fix | Delete
'type' => 'editor',
[4062] Fix | Delete
'title' => esc_html__( 'Above single post content', 'herald' ),
[4063] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed above post content on your single post templates', 'herald' ),
[4064] Fix | Delete
'default' => herald_get_default_option( 'ad_above_single' ),
[4065] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
[4066] Fix | Delete
'args' => array(
[4067] Fix | Delete
'textarea_rows' => 5,
[4068] Fix | Delete
'default_editor' => 'html',
[4069] Fix | Delete
),
[4070] Fix | Delete
),
[4071] Fix | Delete
[4072] Fix | Delete
array(
[4073] Fix | Delete
'id' => 'ad_below_single',
[4074] Fix | Delete
'type' => 'editor',
[4075] Fix | Delete
'title' => esc_html__( 'Below single post content', 'herald' ),
[4076] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed below post content on your single post templates', 'herald' ),
[4077] Fix | Delete
'default' => herald_get_default_option( 'ad_below_single' ),
[4078] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
[4079] Fix | Delete
'args' => array(
[4080] Fix | Delete
'textarea_rows' => 5,
[4081] Fix | Delete
'default_editor' => 'html',
[4082] Fix | Delete
),
[4083] Fix | Delete
),
[4084] Fix | Delete
[4085] Fix | Delete
array(
[4086] Fix | Delete
'id' => 'ad_single_meta',
[4087] Fix | Delete
'type' => 'editor',
[4088] Fix | Delete
'title' => esc_html__( 'Inside single post meta bar', 'herald' ),
[4089] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed inside vertical meta bar on single post templates', 'herald' ),
[4090] Fix | Delete
'default' => herald_get_default_option( 'ad_single_meta' ),
[4091] Fix | Delete
'desc' => esc_html__( 'Note: Ad inside this field cannot be larger than 130px width. If you want to paste HTML or JavaScript code, use "text" mode in editor. ', 'herald' ),
[4092] Fix | Delete
'args' => array(
[4093] Fix | Delete
'textarea_rows' => 5,
[4094] Fix | Delete
'default_editor' => 'html',
[4095] Fix | Delete
),
[4096] Fix | Delete
),
[4097] Fix | Delete
[4098] Fix | Delete
array(
[4099] Fix | Delete
'id' => 'ad_between_posts',
[4100] Fix | Delete
'type' => 'editor',
[4101] Fix | Delete
'title' => esc_html__( 'Between posts', 'herald' ),
[4102] Fix | Delete
'subtitle' => esc_html__( 'This ad will be displayed between posts on archive templates such as category archives, tag archives etc...', 'herald' ),
[4103] Fix | Delete
'default' => herald_get_default_option( 'ad_between_posts' ),
[4104] Fix | Delete
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
[4105] Fix | Delete
'args' => array(
[4106] Fix | Delete
'textarea_rows' => 5,
[4107] Fix | Delete
'default_editor' => 'html',
[4108] Fix | Delete
),
[4109] Fix | Delete
),
[4110] Fix | Delete
[4111] Fix | Delete
array(
[4112] Fix | Delete
'id' => 'ad_between_posts_position',
[4113] Fix | Delete
'type' => 'text',
[4114] Fix | Delete
'class' => 'small-text',
[4115] Fix | Delete
'title' => esc_html__( 'Between posts position', 'herald' ),
[4116] Fix | Delete
'subtitle' => esc_html__( 'Specify after how many posts you want to display ad', 'herald' ),
[4117] Fix | Delete
'default' => herald_get_default_option( 'ad_between_posts_position' ),
[4118] Fix | Delete
'validate' => 'numeric',
[4119] Fix | Delete
),
[4120] Fix | Delete
[4121] Fix | Delete
array(
[4122] Fix | Delete
'id' => 'ad_exclude_404',
[4123] Fix | Delete
'type' => 'switch',
[4124] Fix | Delete
'title' => esc_html__( 'Do not show ads on 404 page', 'herald' ),
[4125] Fix | Delete
'subtitle' => esc_html__( 'Disable ads on 404 error page', 'herald' ),
[4126] Fix | Delete
'default' => herald_get_default_option( 'ad_exclude_404' ),
[4127] Fix | Delete
),
[4128] Fix | Delete
[4129] Fix | Delete
array(
[4130] Fix | Delete
'id' => 'ad_exclude_from_pages',
[4131] Fix | Delete
'type' => 'select',
[4132] Fix | Delete
'title' => esc_html__( 'Do not show ads on specific pages', 'herald' ),
[4133] Fix | Delete
'subtitle' => esc_html__( 'Select pages on which you don\'t want to display ads', 'herald' ),
[4134] Fix | Delete
'multi' => true,
[4135] Fix | Delete
'sortable' => true,
[4136] Fix | Delete
'data' => 'page',
[4137] Fix | Delete
'args' => array(
[4138] Fix | Delete
'posts_per_page' => - 1,
[4139] Fix | Delete
),
[4140] Fix | Delete
'default' => herald_get_default_option( 'ad_exclude_from_pages' ),
[4141] Fix | Delete
),
[4142] Fix | Delete
[4143] Fix | Delete
)
[4144] Fix | Delete
)
[4145] Fix | Delete
);
[4146] Fix | Delete
[4147] Fix | Delete
/* Misc. */
[4148] Fix | Delete
Redux::setSection( $opt_name , array(
[4149] Fix | Delete
'icon' => 'el-icon-wrench',
[4150] Fix | Delete
'title' => esc_html__( 'Misc.', 'herald' ),
[4151] Fix | Delete
'desc' => esc_html__( 'These are some additional miscellaneous theme settings', 'herald' ),
[4152] Fix | Delete
'fields' => array(
[4153] Fix | Delete
[4154] Fix | Delete
array(
[4155] Fix | Delete
'id' => 'rtl_mode',
[4156] Fix | Delete
'type' => 'switch',
[4157] Fix | Delete
'title' => esc_html__( 'RTL mode (right to left)', 'herald' ),
[4158] Fix | Delete
'subtitle' => esc_html__( 'Enable this option if you are using right to left writing/reading', 'herald' ),
[4159] Fix | Delete
'default' => herald_get_default_option( 'rtl_mode' ),
[4160] Fix | Delete
),
[4161] Fix | Delete
[4162] Fix | Delete
array(
[4163] Fix | Delete
'id' => 'rtl_lang_skip',
[4164] Fix | Delete
'type' => 'text',
[4165] Fix | Delete
'title' => esc_html__( 'Skip RTL for specific language(s)', 'herald' ),
[4166] Fix | Delete
'subtitle' => wp_kses( sprintf( __( 'Paste specific WordPress language <a href="%s" target="_blank">locale code</a> to exclude it from the RTL mode', 'herald' ), 'http://wpcentral.io/internationalization/' ), wp_kses_allowed_html( 'post' ) ),
[4167] Fix | Delete
'desc' => esc_html__( 'i.e. If you are using Arabic and English versions on the same WordPress installation you should put "en_US" in this field and its version will not be displayed as RTL. Note: To exclude multiple languages, separate by comma: en_US, de_DE', 'herald' ),
[4168] Fix | Delete
'default' => herald_get_default_option( 'rtl_lang_skip' ),
[4169] Fix | Delete
'required' => array( 'rtl_mode', '=', true )
[4170] Fix | Delete
),
[4171] Fix | Delete
[4172] Fix | Delete
array(
[4173] Fix | Delete
'id' => 'more_string',
[4174] Fix | Delete
'type' => 'text',
[4175] Fix | Delete
'class' => 'small-text',
[4176] Fix | Delete
'title' => esc_html__( 'More string', 'herald' ),
[4177] Fix | Delete
'subtitle' => esc_html__( 'Specify your "more" string to append after limited post excerpts', 'herald' ),
[4178] Fix | Delete
'default' => herald_get_default_option( 'more_string' ),
[4179] Fix | Delete
'validate' => 'no_html'
[4180] Fix | Delete
),
[4181] Fix | Delete
[4182] Fix | Delete
array(
[4183] Fix | Delete
'id' => 'smooth_scroll',
[4184] Fix | Delete
'type' => 'switch',
[4185] Fix | Delete
'title' => esc_html__( 'Smooth scrolling', 'herald' ),
[4186] Fix | Delete
'subtitle' => esc_html__( 'Use this option to enable smooth scrolling effect on the website', 'herald' ),
[4187] Fix | Delete
'default' => herald_get_default_option( 'smooth_scroll' ),
[4188] Fix | Delete
),
[4189] Fix | Delete
[4190] Fix | Delete
array(
[4191] Fix | Delete
'id' => 'auto_gallery_img_sizes',
[4192] Fix | Delete
'type' => 'switch',
[4193] Fix | Delete
'title' => esc_html__( 'Automatic gallery image sizes', 'herald' ),
[4194] Fix | Delete
'subtitle' => esc_html__( 'If you enable this option, theme will automatically detect best possible size for your galleries, depending of gallery columns number you choose', 'herald' ),
[4195] Fix | Delete
'default' => herald_get_default_option( 'auto_gallery_img_sizes' ),
[4196] Fix | Delete
),
[4197] Fix | Delete
[4198] Fix | Delete
array(
[4199] Fix | Delete
'id' => 'popup_img',
[4200] Fix | Delete
'type' => 'switch',
[4201] Fix | Delete
'title' => esc_html__( 'Open galleries and image post format in pop-up', 'herald' ),
[4202] Fix | Delete
'subtitle' => esc_html__( 'If you enable this option, galleries and image post format will be open in pop-up', 'herald' ),
[4203] Fix | Delete
'default' => herald_get_default_option( 'popup_img' ),
[4204] Fix | Delete
),
[4205] Fix | Delete
[4206] Fix | Delete
array(
[4207] Fix | Delete
'id' => 'on_single_img_popup',
[4208] Fix | Delete
'type' => 'switch',
[4209] Fix | Delete
'title' => esc_html__( 'Open content image(s) in pop-up', 'herald' ),
[4210] Fix | Delete
'subtitle' => esc_html__( 'Enable this option if you want to open your content image(s) in pop-up', 'herald' ),
[4211] Fix | Delete
'default' => herald_get_default_option( 'on_single_img_popup' ),
[4212] Fix | Delete
),
[4213] Fix | Delete
[4214] Fix | Delete
array(
[4215] Fix | Delete
'id' => 'views_forgery',
[4216] Fix | Delete
'type' => 'text',
[4217] Fix | Delete
'class' => 'small-text',
[4218] Fix | Delete
'title' => esc_html__( 'Post views forgery', 'herald' ),
[4219] Fix | Delete
'subtitle' => esc_html__( 'Specify a value to add to the real number of entry views for each post', 'herald' ),
[4220] Fix | Delete
'desc' => esc_html__( 'i.e. If a post has 45 views and you put 100, your post will display 145 views', 'herald' ),
[4221] Fix | Delete
'default' => herald_get_default_option( 'views_forgery' ),
[4222] Fix | Delete
'validate' => 'numeric'
[4223] Fix | Delete
),
[4224] Fix | Delete
[4225] Fix | Delete
array(
[4226] Fix | Delete
'id' => 'overlay_opacity',
[4227] Fix | Delete
'type' => 'slider',
[4228] Fix | Delete
'title' => esc_html__( 'Image overlay opacity', 'herald' ),
[4229] Fix | Delete
'subtitle' => esc_html__( 'For post layouts which have the text over the image, choose values for image overlay opacity', 'herald' ),
[4230] Fix | Delete
'description' => esc_html__( 'Note: First value is for initial opacity, second one is for image hover', 'herald' ),
[4231] Fix | Delete
'default' => herald_get_default_option( 'overlay_opacity' ),
[4232] Fix | Delete
'resolution' => 0.1,
[4233] Fix | Delete
'min' => 0,
[4234] Fix | Delete
'step' => .1,
[4235] Fix | Delete
'max' => 1,
[4236] Fix | Delete
'display_value' => 'label',
[4237] Fix | Delete
'handles' => 2,
[4238] Fix | Delete
),
[4239] Fix | Delete
[4240] Fix | Delete
array(
[4241] Fix | Delete
'id' => 'scroll_to_top',
[4242] Fix | Delete
'type' => 'switch',
[4243] Fix | Delete
'title' => esc_html__( 'Display scroll to top button', 'herald' ),
[4244] Fix | Delete
'subtitle' => esc_html__( 'If you check this option, scroll to top button will appear at the bottom on the page while you scroll', 'herald' ),
[4245] Fix | Delete
'default' => herald_get_default_option( 'scroll_to_top' ),
[4246] Fix | Delete
),
[4247] Fix | Delete
[4248] Fix | Delete
array(
[4249] Fix | Delete
'id' => 'image_404',
[4250] Fix | Delete
'type' => 'media',
[4251] Fix | Delete
'url' => true,
[4252] Fix | Delete
'title' => esc_html__( '404 Image', 'herald' ),
[4253] Fix | Delete
'subtitle' => esc_html__( 'Upload image to display on 404 error page', 'herald' ),
[4254] Fix | Delete
'default' => herald_get_default_option( 'image_404' ),
[4255] Fix | Delete
),
[4256] Fix | Delete
[4257] Fix | Delete
array(
[4258] Fix | Delete
'id' => 'multibyte_rtime',
[4259] Fix | Delete
'type' => 'switch',
[4260] Fix | Delete
'title' => esc_html__( 'Enable "multibyte" support for reading time', 'herald' ),
[4261] Fix | Delete
'subtitle' => esc_html__( 'Check this option if your site is using language with special characters (i.e. Japanese)', 'herald' ),
[4262] Fix | Delete
'default' => herald_get_default_option( 'multibyte_rtime' ),
[4263] Fix | Delete
),
[4264] Fix | Delete
[4265] Fix | Delete
array(
[4266] Fix | Delete
'id' => 'primary_category',
[4267] Fix | Delete
'type' => 'switch',
[4268] Fix | Delete
'title' => esc_html__( 'Primary category support', 'herald' ),
[4269] Fix | Delete
'subtitle' => esc_html__( 'This option supports primary category feature from Yoast SEO plugin. If a post is assigned to multiple categories, only selected primary category will be displayed for that post in all listing layouts', 'herald' ),
[4270] Fix | Delete
'default' => herald_get_default_option( 'primary_category' ),
[4271] Fix | Delete
),
[4272] Fix | Delete
[4273] Fix | Delete
array(
[4274] Fix | Delete
'id' => 'words_read_per_minute',
[4275] Fix | Delete
'type' => 'text',
[4276] Fix | Delete
'class' => 'small-text',
[4277] Fix | Delete
'title' => esc_html__( 'Words to read per minute', 'herald' ),
[4278] Fix | Delete
'subtitle' => esc_html__( 'Use this option to set number of words your visitors read per minute, in order to fine-tune calculation of post reading time meta data', 'herald' ),
[4279] Fix | Delete
'validate' => 'numeric',
[4280] Fix | Delete
'default' => herald_get_default_option( 'words_read_per_minute' ),
[4281] Fix | Delete
),
[4282] Fix | Delete
[4283] Fix | Delete
)
[4284] Fix | Delete
)
[4285] Fix | Delete
);
[4286] Fix | Delete
[4287] Fix | Delete
/* WooCommerce */
[4288] Fix | Delete
[4289] Fix | Delete
if ( herald_is_woocommerce_active() ) {
[4290] Fix | Delete
[4291] Fix | Delete
Redux::setSection( $opt_name , array(
[4292] Fix | Delete
'icon' => 'el-icon-shopping-cart',
[4293] Fix | Delete
'title' => esc_html__( 'WooCommerce', 'herald' ),
[4294] Fix | Delete
'desc' => esc_html__( 'Manage options for WooCommerce pages', 'herald' ),
[4295] Fix | Delete
'fields' => array(
[4296] Fix | Delete
array(
[4297] Fix | Delete
'id' => 'product_use_sidebar',
[4298] Fix | Delete
'type' => 'image_select',
[4299] Fix | Delete
'title' => esc_html__( 'Product sidebar layout', 'herald' ),
[4300] Fix | Delete
'subtitle' => esc_html__( 'Choose sidebar layout for WooCommerce products', 'herald' ),
[4301] Fix | Delete
'options' => herald_get_sidebar_layouts(),
[4302] Fix | Delete
'default' => herald_get_default_option( 'product_use_sidebar' ), ),
[4303] Fix | Delete
[4304] Fix | Delete
array(
[4305] Fix | Delete
'id' => 'product_sidebar',
[4306] Fix | Delete
'type' => 'select',
[4307] Fix | Delete
'title' => esc_html__( 'Product standard sidebar', 'herald' ),
[4308] Fix | Delete
'subtitle' => esc_html__( 'Choose standard sidebar for WooCommerce products', 'herald' ),
[4309] Fix | Delete
'options' => herald_get_sidebars_list(),
[4310] Fix | Delete
'default' => herald_get_default_option( 'product_sidebar' ),
[4311] Fix | Delete
'required' => array( 'product_use_sidebar', '!=', 'none' )
[4312] Fix | Delete
),
[4313] Fix | Delete
[4314] Fix | Delete
array(
[4315] Fix | Delete
'id' => 'product_sticky_sidebar',
[4316] Fix | Delete
'type' => 'select',
[4317] Fix | Delete
'title' => esc_html__( 'Product sticky sidebar', 'herald' ),
[4318] Fix | Delete
'subtitle' => esc_html__( 'Choose sticky sidebar for WooCommerce products', 'herald' ),
[4319] Fix | Delete
'options' => herald_get_sidebars_list(),
[4320] Fix | Delete
'default' => herald_get_default_option( 'product_sticky_sidebar' ),
[4321] Fix | Delete
'required' => array( 'product_use_sidebar', '!=', 'none' )
[4322] Fix | Delete
),
[4323] Fix | Delete
[4324] Fix | Delete
array(
[4325] Fix | Delete
'id' => 'product_cat_use_sidebar',
[4326] Fix | Delete
'type' => 'image_select',
[4327] Fix | Delete
'title' => esc_html__( 'Product archives sidebar layout', 'herald' ),
[4328] Fix | Delete
'subtitle' => esc_html__( 'Choose sidebar layout for WooCommerce products category, tag, archive etc...', 'herald' ),
[4329] Fix | Delete
'options' => herald_get_sidebar_layouts(),
[4330] Fix | Delete
'default' => herald_get_default_option( 'product_cat_use_sidebar' ),
[4331] Fix | Delete
),
[4332] Fix | Delete
[4333] Fix | Delete
array(
[4334] Fix | Delete
'id' => 'product_cat_sidebar',
[4335] Fix | Delete
'type' => 'select',
[4336] Fix | Delete
'title' => esc_html__( 'Product archives standard sidebar', 'herald' ),
[4337] Fix | Delete
'subtitle' => esc_html__( 'Choose standard sidebar for WooCommerce products category, tag, archive etc...', 'herald' ),
[4338] Fix | Delete
'options' => herald_get_sidebars_list(),
[4339] Fix | Delete
'default' => herald_get_default_option( 'product_cat_sidebar' ),
[4340] Fix | Delete
'required' => array( 'product_cat_use_sidebar', '!=', 'none' )
[4341] Fix | Delete
),
[4342] Fix | Delete
[4343] Fix | Delete
array(
[4344] Fix | Delete
'id' => 'product_cat_sticky_sidebar',
[4345] Fix | Delete
'type' => 'select',
[4346] Fix | Delete
'title' => esc_html__( 'Product archives sticky sidebar', 'herald' ),
[4347] Fix | Delete
'subtitle' => esc_html__( 'Choose sticky sidebar for WooCommerce products category, tag, archive etc...', 'herald' ),
[4348] Fix | Delete
'options' => herald_get_sidebars_list(),
[4349] Fix | Delete
'default' => herald_get_default_option( 'product_cat_sticky_sidebar' ),
[4350] Fix | Delete
'required' => array( 'product_cat_use_sidebar', '!=', 'none' )
[4351] Fix | Delete
)
[4352] Fix | Delete
) )
[4353] Fix | Delete
);
[4354] Fix | Delete
}
[4355] Fix | Delete
[4356] Fix | Delete
/* bbPress */
[4357] Fix | Delete
[4358] Fix | Delete
if ( herald_is_bbpress_active() ) {
[4359] Fix | Delete
Redux::setSection( $opt_name , array(
[4360] Fix | Delete
'icon' => 'el-icon-quotes',
[4361] Fix | Delete
'title' => esc_html__( 'bbPress', 'herald' ),
[4362] Fix | Delete
'desc' => esc_html__( 'Manage options for bbPress pages', 'herald' ),
[4363] Fix | Delete
'fields' => array(
[4364] Fix | Delete
array(
[4365] Fix | Delete
'id' => 'forum_use_sidebar',
[4366] Fix | Delete
'type' => 'image_select',
[4367] Fix | Delete
'title' => esc_html__( 'Forum sidebar layout', 'herald' ),
[4368] Fix | Delete
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress forums', 'herald' ),
[4369] Fix | Delete
'options' => herald_get_sidebar_layouts(),
[4370] Fix | Delete
'default' => herald_get_default_option( 'forum_use_sidebar' ),
[4371] Fix | Delete
),
[4372] Fix | Delete
[4373] Fix | Delete
array(
[4374] Fix | Delete
'id' => 'forum_sidebar',
[4375] Fix | Delete
'type' => 'select',
[4376] Fix | Delete
'title' => esc_html__( 'Forum standard sidebar', 'herald' ),
[4377] Fix | Delete
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress forums', 'herald' ),
[4378] Fix | Delete
'options' => herald_get_sidebars_list(),
[4379] Fix | Delete
'default' => herald_get_default_option( 'forum_sidebar' ),
[4380] Fix | Delete
'required' => array( 'forum_use_sidebar', '!=', 'none' )
[4381] Fix | Delete
),
[4382] Fix | Delete
[4383] Fix | Delete
array(
[4384] Fix | Delete
'id' => 'forum_sticky_sidebar',
[4385] Fix | Delete
'type' => 'select',
[4386] Fix | Delete
'title' => esc_html__( 'Forum sticky sidebar', 'herald' ),
[4387] Fix | Delete
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress forums', 'herald' ),
[4388] Fix | Delete
'options' => herald_get_sidebars_list(),
[4389] Fix | Delete
'default' => herald_get_default_option( 'forum_sticky_sidebar' ),
[4390] Fix | Delete
'required' => array( 'forum_use_sidebar', '!=', 'none' )
[4391] Fix | Delete
),
[4392] Fix | Delete
[4393] Fix | Delete
array(
[4394] Fix | Delete
'id' => 'topic_use_sidebar',
[4395] Fix | Delete
'type' => 'image_select',
[4396] Fix | Delete
'title' => esc_html__( 'Topic sidebar layout', 'herald' ),
[4397] Fix | Delete
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress topics', 'herald' ),
[4398] Fix | Delete
'options' => herald_get_sidebar_layouts(),
[4399] Fix | Delete
'default' => herald_get_default_option( 'topic_use_sidebar' ),
[4400] Fix | Delete
),
[4401] Fix | Delete
[4402] Fix | Delete
array(
[4403] Fix | Delete
'id' => 'topic_sidebar',
[4404] Fix | Delete
'type' => 'select',
[4405] Fix | Delete
'title' => esc_html__( 'Topic standard sidebar', 'herald' ),
[4406] Fix | Delete
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress topics', 'herald' ),
[4407] Fix | Delete
'options' => herald_get_sidebars_list(),
[4408] Fix | Delete
'default' => herald_get_default_option( 'topic_sidebar' ),
[4409] Fix | Delete
'required' => array( 'topic_use_sidebar', '!=', 'none' )
[4410] Fix | Delete
),
[4411] Fix | Delete
[4412] Fix | Delete
array(
[4413] Fix | Delete
'id' => 'topic_sticky_sidebar',
[4414] Fix | Delete
'type' => 'select',
[4415] Fix | Delete
'title' => esc_html__( 'Topic sticky sidebar', 'herald' ),
[4416] Fix | Delete
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress topics', 'herald' ),
[4417] Fix | Delete
'options' => herald_get_sidebars_list(),
[4418] Fix | Delete
'default' => herald_get_default_option( 'topic_sticky_sidebar' ),
[4419] Fix | Delete
'required' => array( 'topic_use_sidebar', '!=', 'none' )
[4420] Fix | Delete
),
[4421] Fix | Delete
[4422] Fix | Delete
array(
[4423] Fix | Delete
'id' => 'bb_user_use_sidebar',
[4424] Fix | Delete
'type' => 'image_select',
[4425] Fix | Delete
'title' => esc_html__( 'User sidebar layout', 'herald' ),
[4426] Fix | Delete
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress user pages', 'herald' ),
[4427] Fix | Delete
'options' => herald_get_sidebar_layouts(),
[4428] Fix | Delete
'default' => herald_get_default_option( 'bb_user_use_sidebar' ),
[4429] Fix | Delete
),
[4430] Fix | Delete
[4431] Fix | Delete
array(
[4432] Fix | Delete
'id' => 'bb_user_sidebar',
[4433] Fix | Delete
'type' => 'select',
[4434] Fix | Delete
'title' => esc_html__( 'User standard sidebar', 'herald' ),
[4435] Fix | Delete
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress user pages', 'herald' ),
[4436] Fix | Delete
'options' => herald_get_sidebars_list(),
[4437] Fix | Delete
'default' => herald_get_default_option( 'bb_user_sidebar' ),
[4438] Fix | Delete
'required' => array( 'bb_user_use_sidebar', '!=', 'none' )
[4439] Fix | Delete
),
[4440] Fix | Delete
[4441] Fix | Delete
array(
[4442] Fix | Delete
'id' => 'bb_user_sticky_sidebar',
[4443] Fix | Delete
'type' => 'select',
[4444] Fix | Delete
'title' => esc_html__( 'User sticky sidebar', 'herald' ),
[4445] Fix | Delete
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress user pages', 'herald' ),
[4446] Fix | Delete
'options' => herald_get_sidebars_list(),
[4447] Fix | Delete
'default' => herald_get_default_option( 'bb_user_sticky_sidebar' ),
[4448] Fix | Delete
'required' => array( 'bb_user_use_sidebar', '!=', 'none' )
[4449] Fix | Delete
)
[4450] Fix | Delete
[4451] Fix | Delete
[4452] Fix | Delete
) )
[4453] Fix | Delete
);
[4454] Fix | Delete
}
[4455] Fix | Delete
[4456] Fix | Delete
[4457] Fix | Delete
Redux::setSection( $opt_name , array(
[4458] Fix | Delete
'type' => 'divide',
[4459] Fix | Delete
'id' => 'herald-divide',
[4460] Fix | Delete
)
[4461] Fix | Delete
);
[4462] Fix | Delete
[4463] Fix | Delete
/* Translation Options */
[4464] Fix | Delete
[4465] Fix | Delete
$translate_options[] = array(
[4466] Fix | Delete
'id' => 'enable_translate',
[4467] Fix | Delete
'type' => 'switch',
[4468] Fix | Delete
'switch' => true,
[4469] Fix | Delete
'title' => esc_html__( 'Enable theme translation?', 'herald' ),
[4470] Fix | Delete
'default' => herald_get_default_option( 'enable_translate' ),
[4471] Fix | Delete
);
[4472] Fix | Delete
[4473] Fix | Delete
$translate_strings = herald_get_translate_options();
[4474] Fix | Delete
[4475] Fix | Delete
foreach ( $translate_strings as $string_key => $string ) {
[4476] Fix | Delete
$translate_options[] = array(
[4477] Fix | Delete
'id' => 'tr_'.$string_key,
[4478] Fix | Delete
'type' => 'text',
[4479] Fix | Delete
'title' => esc_html( $string['text'] ),
[4480] Fix | Delete
'subtitle' => isset( $string['desc'] ) ? $string['desc'] : '',
[4481] Fix | Delete
'default' => '',
[4482] Fix | Delete
);
[4483] Fix | Delete
}
[4484] Fix | Delete
[4485] Fix | Delete
Redux::setSection( $opt_name, array(
[4486] Fix | Delete
'icon' => 'el-icon-globe-alt',
[4487] Fix | Delete
'title' => esc_html__( 'Translation', 'herald' ),
[4488] Fix | Delete
'desc' => wp_kses_post( __( 'Use these settings to quckly translate or change the text in this theme. If you want to remove the text completely instead of modifying it, you can use <strong>"-1"</strong> as a value for particular field translation. <br/><br/><strong>Note:</strong> If you are using this theme for a multilingual website, you need to disable these options and use multilanguage plugins (such as WPML) and manual translation with .po and .mo files located inside the "languages" folder.', 'herald' ) ),
[4489] Fix | Delete
'fields' => $translate_options
[4490] Fix | Delete
)
[4491] Fix | Delete
);
[4492] Fix | Delete
[4493] Fix | Delete
/* Performance */
[4494] Fix | Delete
Redux::setSection( $opt_name , array(
[4495] Fix | Delete
'icon' => 'el-icon-dashboard',
[4496] Fix | Delete
'title' => esc_html__( 'Performance', 'herald' ),
[4497] Fix | Delete
'desc' => esc_html__( 'Use these options to put your theme to a high speed as well as save your server resources!', 'herald' ),
[4498] Fix | Delete
'fields' => array(
[4499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function