: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'main-navigation' => esc_html__( 'Main navigation', 'herald' ),
'entry-title' => esc_html__( 'Post/Page titles', 'herald' ),
'meta-category a' => esc_html__( 'Category links', 'herald' ),
'herald-mod-title' => esc_html__( 'Module titles', 'herald' ),
'herald-sidebar .widget-title' => esc_html__( 'Widget titles', 'herald' ),
'herald-site-footer .widget-title' => esc_html__( 'Footer widget titles', 'herald' ),
'default' => herald_get_default_option( 'uppercase' ),
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Ads', 'herald' ),
'desc' => esc_html__( 'Use this options to fill your ads slots. Both image and JavaScript related ads are allowed.', 'herald' ),
'title' => esc_html__( 'Header ad slot', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed in website header. You can enable it in header main area settings', 'herald' ),
'default' => herald_get_default_option( 'ad_header' ),
'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' ),
'default_editor' => 'html',
'id' => 'ad_below_header',
'title' => esc_html__( 'Below header', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed between your header and website content', 'herald' ),
'default' => herald_get_default_option( 'ad_below_header' ),
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
'default_editor' => 'html',
'id' => 'ad_above_footer',
'title' => esc_html__( 'Above footer', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed between your footer and website content', 'herald' ),
'default' => herald_get_default_option( 'ad_above_footer' ),
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
'default_editor' => 'html',
'id' => 'ad_above_single',
'title' => esc_html__( 'Above single post content', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed above post content on your single post templates', 'herald' ),
'default' => herald_get_default_option( 'ad_above_single' ),
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
'default_editor' => 'html',
'id' => 'ad_below_single',
'title' => esc_html__( 'Below single post content', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed below post content on your single post templates', 'herald' ),
'default' => herald_get_default_option( 'ad_below_single' ),
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
'default_editor' => 'html',
'id' => 'ad_single_meta',
'title' => esc_html__( 'Inside single post meta bar', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed inside vertical meta bar on single post templates', 'herald' ),
'default' => herald_get_default_option( 'ad_single_meta' ),
'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' ),
'default_editor' => 'html',
'id' => 'ad_between_posts',
'title' => esc_html__( 'Between posts', 'herald' ),
'subtitle' => esc_html__( 'This ad will be displayed between posts on archive templates such as category archives, tag archives etc...', 'herald' ),
'default' => herald_get_default_option( 'ad_between_posts' ),
'desc' => esc_html__( 'Note: If you want to paste HTML or JavaScript code, use "text" mode in editor', 'herald' ),
'default_editor' => 'html',
'id' => 'ad_between_posts_position',
'title' => esc_html__( 'Between posts position', 'herald' ),
'subtitle' => esc_html__( 'Specify after how many posts you want to display ad', 'herald' ),
'default' => herald_get_default_option( 'ad_between_posts_position' ),
'id' => 'ad_exclude_404',
'title' => esc_html__( 'Do not show ads on 404 page', 'herald' ),
'subtitle' => esc_html__( 'Disable ads on 404 error page', 'herald' ),
'default' => herald_get_default_option( 'ad_exclude_404' ),
'id' => 'ad_exclude_from_pages',
'title' => esc_html__( 'Do not show ads on specific pages', 'herald' ),
'subtitle' => esc_html__( 'Select pages on which you don\'t want to display ads', 'herald' ),
'default' => herald_get_default_option( 'ad_exclude_from_pages' ),
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-wrench',
'title' => esc_html__( 'Misc.', 'herald' ),
'desc' => esc_html__( 'These are some additional miscellaneous theme settings', 'herald' ),
'title' => esc_html__( 'RTL mode (right to left)', 'herald' ),
'subtitle' => esc_html__( 'Enable this option if you are using right to left writing/reading', 'herald' ),
'default' => herald_get_default_option( 'rtl_mode' ),
'title' => esc_html__( 'Skip RTL for specific language(s)', 'herald' ),
'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' ) ),
'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' ),
'default' => herald_get_default_option( 'rtl_lang_skip' ),
'required' => array( 'rtl_mode', '=', true )
'title' => esc_html__( 'More string', 'herald' ),
'subtitle' => esc_html__( 'Specify your "more" string to append after limited post excerpts', 'herald' ),
'default' => herald_get_default_option( 'more_string' ),
'title' => esc_html__( 'Smooth scrolling', 'herald' ),
'subtitle' => esc_html__( 'Use this option to enable smooth scrolling effect on the website', 'herald' ),
'default' => herald_get_default_option( 'smooth_scroll' ),
'id' => 'auto_gallery_img_sizes',
'title' => esc_html__( 'Automatic gallery image sizes', 'herald' ),
'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' ),
'default' => herald_get_default_option( 'auto_gallery_img_sizes' ),
'title' => esc_html__( 'Open galleries and image post format in pop-up', 'herald' ),
'subtitle' => esc_html__( 'If you enable this option, galleries and image post format will be open in pop-up', 'herald' ),
'default' => herald_get_default_option( 'popup_img' ),
'id' => 'on_single_img_popup',
'title' => esc_html__( 'Open content image(s) in pop-up', 'herald' ),
'subtitle' => esc_html__( 'Enable this option if you want to open your content image(s) in pop-up', 'herald' ),
'default' => herald_get_default_option( 'on_single_img_popup' ),
'title' => esc_html__( 'Post views forgery', 'herald' ),
'subtitle' => esc_html__( 'Specify a value to add to the real number of entry views for each post', 'herald' ),
'desc' => esc_html__( 'i.e. If a post has 45 views and you put 100, your post will display 145 views', 'herald' ),
'default' => herald_get_default_option( 'views_forgery' ),
'id' => 'overlay_opacity',
'title' => esc_html__( 'Image overlay opacity', 'herald' ),
'subtitle' => esc_html__( 'For post layouts which have the text over the image, choose values for image overlay opacity', 'herald' ),
'description' => esc_html__( 'Note: First value is for initial opacity, second one is for image hover', 'herald' ),
'default' => herald_get_default_option( 'overlay_opacity' ),
'display_value' => 'label',
'title' => esc_html__( 'Display scroll to top button', 'herald' ),
'subtitle' => esc_html__( 'If you check this option, scroll to top button will appear at the bottom on the page while you scroll', 'herald' ),
'default' => herald_get_default_option( 'scroll_to_top' ),
'title' => esc_html__( '404 Image', 'herald' ),
'subtitle' => esc_html__( 'Upload image to display on 404 error page', 'herald' ),
'default' => herald_get_default_option( 'image_404' ),
'id' => 'multibyte_rtime',
'title' => esc_html__( 'Enable "multibyte" support for reading time', 'herald' ),
'subtitle' => esc_html__( 'Check this option if your site is using language with special characters (i.e. Japanese)', 'herald' ),
'default' => herald_get_default_option( 'multibyte_rtime' ),
'id' => 'primary_category',
'title' => esc_html__( 'Primary category support', 'herald' ),
'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' ),
'default' => herald_get_default_option( 'primary_category' ),
'id' => 'words_read_per_minute',
'title' => esc_html__( 'Words to read per minute', 'herald' ),
'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' ),
'default' => herald_get_default_option( 'words_read_per_minute' ),
if ( herald_is_woocommerce_active() ) {
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-shopping-cart',
'title' => esc_html__( 'WooCommerce', 'herald' ),
'desc' => esc_html__( 'Manage options for WooCommerce pages', 'herald' ),
'id' => 'product_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Product sidebar layout', 'herald' ),
'subtitle' => esc_html__( 'Choose sidebar layout for WooCommerce products', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'product_use_sidebar' ), ),
'id' => 'product_sidebar',
'title' => esc_html__( 'Product standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose standard sidebar for WooCommerce products', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'product_sidebar' ),
'required' => array( 'product_use_sidebar', '!=', 'none' )
'id' => 'product_sticky_sidebar',
'title' => esc_html__( 'Product sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose sticky sidebar for WooCommerce products', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'product_sticky_sidebar' ),
'required' => array( 'product_use_sidebar', '!=', 'none' )
'id' => 'product_cat_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Product archives sidebar layout', 'herald' ),
'subtitle' => esc_html__( 'Choose sidebar layout for WooCommerce products category, tag, archive etc...', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'product_cat_use_sidebar' ),
'id' => 'product_cat_sidebar',
'title' => esc_html__( 'Product archives standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose standard sidebar for WooCommerce products category, tag, archive etc...', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'product_cat_sidebar' ),
'required' => array( 'product_cat_use_sidebar', '!=', 'none' )
'id' => 'product_cat_sticky_sidebar',
'title' => esc_html__( 'Product archives sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose sticky sidebar for WooCommerce products category, tag, archive etc...', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'product_cat_sticky_sidebar' ),
'required' => array( 'product_cat_use_sidebar', '!=', 'none' )
if ( herald_is_bbpress_active() ) {
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-quotes',
'title' => esc_html__( 'bbPress', 'herald' ),
'desc' => esc_html__( 'Manage options for bbPress pages', 'herald' ),
'id' => 'forum_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Forum sidebar layout', 'herald' ),
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress forums', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'forum_use_sidebar' ),
'title' => esc_html__( 'Forum standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress forums', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'forum_sidebar' ),
'required' => array( 'forum_use_sidebar', '!=', 'none' )
'id' => 'forum_sticky_sidebar',
'title' => esc_html__( 'Forum sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress forums', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'forum_sticky_sidebar' ),
'required' => array( 'forum_use_sidebar', '!=', 'none' )
'id' => 'topic_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Topic sidebar layout', 'herald' ),
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress topics', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'topic_use_sidebar' ),
'title' => esc_html__( 'Topic standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress topics', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'topic_sidebar' ),
'required' => array( 'topic_use_sidebar', '!=', 'none' )
'id' => 'topic_sticky_sidebar',
'title' => esc_html__( 'Topic sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress topics', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'topic_sticky_sidebar' ),
'required' => array( 'topic_use_sidebar', '!=', 'none' )
'id' => 'bb_user_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'User sidebar layout', 'herald' ),
'subtitle' => esc_html__( 'Choose sidebar layout for bbPress user pages', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'bb_user_use_sidebar' ),
'id' => 'bb_user_sidebar',
'title' => esc_html__( 'User standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose standard sidebar for bbPress user pages', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'bb_user_sidebar' ),
'required' => array( 'bb_user_use_sidebar', '!=', 'none' )
'id' => 'bb_user_sticky_sidebar',
'title' => esc_html__( 'User sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose sticky sidebar for bbPress user pages', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'bb_user_sticky_sidebar' ),
'required' => array( 'bb_user_use_sidebar', '!=', 'none' )
Redux::setSection( $opt_name , array(
/* Translation Options */
$translate_options[] = array(
'id' => 'enable_translate',
'title' => esc_html__( 'Enable theme translation?', 'herald' ),
'default' => herald_get_default_option( 'enable_translate' ),
$translate_strings = herald_get_translate_options();
foreach ( $translate_strings as $string_key => $string ) {
$translate_options[] = array(
'id' => 'tr_'.$string_key,
'title' => esc_html( $string['text'] ),
'subtitle' => isset( $string['desc'] ) ? $string['desc'] : '',
Redux::setSection( $opt_name, array(
'icon' => 'el-icon-globe-alt',
'title' => esc_html__( 'Translation', 'herald' ),
'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' ) ),
'fields' => $translate_options
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-dashboard',
'title' => esc_html__( 'Performance', 'herald' ),
'desc' => esc_html__( 'Use these options to put your theme to a high speed as well as save your server resources!', 'herald' ),