: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'id' => 'section_single_sticky',
'title' => esc_html__( 'Sticky bar', 'herald' ),
'subtitle' => esc_html__( 'Sticky bottom bar options', 'herald' ),
'id' => 'single_sticky_bar',
'title' => esc_html__( 'Display sticky bottom bar', 'herald' ),
'default' => herald_get_default_option( 'single_sticky_bar' ),
'id' => 'single_sticky_prevnext',
'title' => esc_html__( 'Display prev/next posts', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display previous and next post links in sticky bar', 'herald' ),
'default' => herald_get_default_option( 'single_sticky_prevnext' ),
'required' => array( 'single_sticky_bar', '=', true )
'id' => 'single_prevnext_same_cat',
'title' => esc_html__( 'Get prev/next posts from the same category', 'herald' ),
'subtitle' => esc_html__( 'Check if previous and next post will be pulled from the same category as current post', 'herald' ),
'default' => herald_get_default_option( 'single_prevnext_same_cat' ),
'required' => array( 'single_sticky_prevnext', '=', true )
'id' => 'single_sticky_comments',
'title' => esc_html__( 'Display comments button', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display comments button in sticky bar', 'herald' ),
'default' => herald_get_default_option( 'single_sticky_comments' ),
'required' => array( 'single_sticky_bar', '=', true )
'id' => 'single_sticky_share',
'title' => esc_html__( 'Display share buttons', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display share buttons in sticky bar', 'herald' ),
'desc' => !function_exists( 'meks_ess_share' ) ? wp_kses_post( sprintf( __( 'Note: <a href="%s">Meks Easy Social Share plugin</a> must be activated to use this option.', 'herald' ), admin_url( 'themes.php?page=install-required-plugins' ) ) ): '',
'default' => herald_get_default_option( 'single_sticky_share' ),
'required' => array( 'single_sticky_bar', '=', true )
'id' => 'section_related',
'title' => esc_html__( 'Related posts', 'herald' ),
'subtitle' => esc_html__( 'These are options for the related posts area below the single post', 'herald' ),
'id' => 'single_related',
'title' => esc_html__( 'Display "related" posts box', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display an additional area with related posts below the post content', 'herald' ),
'default' => herald_get_default_option( 'single_related' ),
'id' => 'related_layout',
'type' => 'image_select',
'title' => esc_html__( 'Related posts layout', 'herald' ),
'subtitle' => esc_html__( 'Choose how to display your related posts', 'herald' ),
'options' => herald_get_main_layouts(),
'default' => herald_get_default_option( 'related_layout' ),
'title' => esc_html__( 'Related area posts number limit', 'herald' ),
'default' => herald_get_default_option( 'related_limit' ),
'required' => array( 'single_related', '=', true ),
'title' => esc_html__( 'Related area chooses from posts', 'herald' ),
'cat' => esc_html__( 'Located in the same category', 'herald' ),
'tag' => esc_html__( 'Tagged with at least one same tag', 'herald' ),
'cat_or_tag' => esc_html__( 'Located in the same category OR tagged with a same tag', 'herald' ),
'cat_and_tag' => esc_html__( 'Located in the same category AND tagged with a same tag', 'herald' ),
'author' => esc_html__( 'By the same author', 'herald' ),
'0' => esc_html__( 'All posts', 'herald' )
'default' => herald_get_default_option( 'related_type' ),
'required' => array( 'single_related', '=', true ),
'title' => esc_html__( 'Related posts are ordered by', 'herald' ),
'options' => herald_get_post_order_opts(),
'default' => herald_get_default_option( 'related_order' ),
'required' => array( 'single_related', '=', true ),
'title' => esc_html__( 'Related posts are not older than', 'herald' ),
'options' => herald_get_time_diff_opts(),
'default' => herald_get_default_option( 'related_time' ),
'required' => array( 'single_related', '=', true ),
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-file-edit',
'title' => esc_html__( 'Page', 'herald' ),
'desc' => esc_html__( 'Manage default settings for your pages', 'herald' ),
'type' => 'image_select',
'title' => esc_html__( 'Page layout', 'herald' ),
'subtitle' => esc_html__( 'Choose a default layout for your pages', 'herald' ),
'desc' => esc_html__( 'Note: You can override this option for each specific page', 'herald' ),
'options' => herald_get_page_layouts(),
'default' => herald_get_default_option( 'page_layout' ),
'id' => 'page_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Display sidebar', 'herald' ),
'desc' => esc_html__( 'Note: You can override this option for each particular page', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'page_use_sidebar' ),
'title' => esc_html__( 'Page standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a page standard sidebar', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'page_sidebar' ),
'required' => array( 'page_use_sidebar', '!=', 'none' )
'id' => 'page_sticky_sidebar',
'title' => esc_html__( 'Page sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a page sticky sidebar', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'page_sticky_sidebar' ),
'required' => array( 'page_use_sidebar', '!=', 'none' )
'title' => esc_html__( 'Display the featured image', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display the featured image on single pages', 'herald' ),
'default' => herald_get_default_option( 'page_fimg' ),
'title' => esc_html__( 'Display the featured image caption', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display the caption/description on the featured image', 'herald' ),
'default' => herald_get_default_option( 'page_fimg_cap' ),
'required' => array( 'page_fimg', '=', true )
'id' => 'img_size_lay_page_ratio',
'title' => esc_html__( 'Featured image ratio', 'herald' ),
'subtitle' => esc_html__( 'Choose an image ratio', 'herald' ),
'options' => herald_get_image_ratio_opts( true ),
'default' => herald_get_default_option( 'img_size_lay_page_ratio' ),
'id' => 'img_size_lay_page_custom',
'title' => esc_html__( 'Featured image custom ratio', 'herald' ),
'subtitle' => esc_html__( 'Specify your custom ratio ', 'herald' ),
'desc' => esc_html__( 'Note: put 3:4 or 2:1 or any custom ratio you want', 'herald' ),
'default' => herald_get_default_option( 'img_size_lay_page_custom' ),
'required' => array( 'img_size_lay_page_ratio', '=', 'custom' ),
'title' => esc_html__( 'Display comments', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display comments on pages', 'herald' ),
'description' => esc_html__( 'Note: This is just an option to quickly hide/display comments on pages. If you want to allow/disallow comments properly, you need to do it in the "Discussion" box for each particular page.', 'herald' ),
'default' => herald_get_default_option( 'page_comments' ), )
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-folder',
'title' => esc_html__( 'Category Template', 'herald' ),
'desc' => esc_html__( 'Manage settings for the category templates. Note: these are global category settings, you can optionally modify these settings for each individual category.', 'herald' ),
'id' => 'category_fa_layout',
'type' => 'image_select',
'title' => esc_html__( 'Featured area layout', 'herald' ),
'subtitle' => esc_html__( 'Choose a default featured area layout for categories', 'herald' ),
'options' => herald_get_featured_layouts( false, true ),
'default' => herald_get_default_option( 'category_fa_layout' ),
'id' => 'category_fa_order',
'title' => esc_html__( 'Featured area chooses from', 'herald' ),
'options' => herald_get_fa_post_opts(),
'default' => herald_get_default_option( 'category_fa_order' ),
'required' => array( 'category_fa_layout', '!=', 'none' ),
'id' => 'category_fa_unique',
'title' => esc_html__( 'Make featured area posts unique', 'herald' ),
'subtitle' => esc_html__( 'Do not duplicate featured area posts and exclude them from main post listing below', 'herald' ),
'default' => herald_get_default_option( 'category_fa_unique' ),
'required' => array( 'category_fa_layout', '!=', 'none' ),
'title' => esc_html__( 'Display child category navigation', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display links to child categories in category heading', 'herald' ),
'default' => herald_get_default_option( 'category_sub' ),
'title' => esc_html__( 'Display category description', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display category description', 'herald' ),
'default' => herald_get_default_option( 'category_desc' ),
'id' => 'category_layout',
'type' => 'image_select',
'title' => esc_html__( 'Main layout', 'herald' ),
'subtitle' => esc_html__( 'Choose how to display your posts on category templates', 'herald' ),
'desc' => esc_html__( 'Note: You can override this option for each category separately', 'herald' ),
'options' => herald_get_main_layouts(),
'default' => herald_get_default_option( 'category_layout' ),
'title' => esc_html__( 'Posts per page', 'herald' ),
'subtitle' => esc_html__( 'Choose how many posts per page you want to display', 'herald' ),
'inherit' => wp_kses( sprintf( __( 'Inherit from global option in <a href="%s">Settings->Reading</a>', 'herald' ), admin_url( 'options-general.php' ) ), wp_kses_allowed_html( 'post' ) ),
'custom' => esc_html__( 'Custom number', 'herald' )
'default' => herald_get_default_option( 'category_ppp' ),
'id' => 'category_ppp_num',
'title' => esc_html__( 'Number of posts per page', 'herald' ),
'default' => herald_get_default_option( 'category_ppp_num' ),
'required' => array( 'category_ppp', '=', 'custom' ),
'id' => 'category_starter_layout',
'type' => 'image_select',
'title' => esc_html__( 'Starter layout', 'herald' ),
'subtitle' => esc_html__( 'By choosing a starter layout, first "x" posts on the page will be displayed in this layout', 'herald' ),
'options' => herald_get_main_layouts( false, true ),
'default' => herald_get_default_option( 'category_starter_layout' ),
'id' => 'category_starter_limit',
'title' => esc_html__( 'Number of starter posts', 'herald' ),
'subtitle' => esc_html__( 'Specify how many posts to display in "starter" layout', 'herald' ),
'default' => herald_get_default_option( 'category_starter_limit' ),
'required' => array( 'category_starter_layout', '!=', 'none' ),
'id' => 'category_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Display sidebar', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'category_use_sidebar' ),
'id' => 'category_sidebar',
'title' => esc_html__( 'Category standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a standard category sidebar', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'category_sidebar' ),
'required' => array( 'category_use_sidebar', '!=', 'none' )
'id' => 'category_sticky_sidebar',
'title' => esc_html__( 'Category sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a sticky category sidebar', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'category_sticky_sidebar' ),
'required' => array( 'category_use_sidebar', '!=', 'none' )
'type' => 'image_select',
'title' => esc_html__( 'Pagination', 'herald' ),
'subtitle' => esc_html__( 'Choose a pagination type for category template', 'herald' ),
'desc' => esc_html__( 'Note: You can override this option for each category separately', 'herald' ),
'options' => herald_get_pagination_layouts(),
'default' => herald_get_default_option( 'category_pag' ),
Redux::setSection( $opt_name , array(
'icon' => ' el-icon-tag',
'title' => esc_html__( 'Tag Template', 'herald' ),
'desc' => esc_html__( 'Manage settings for the tag templates', 'herald' ),
'type' => 'image_select',
'title' => esc_html__( 'Main layout', 'herald' ),
'subtitle' => esc_html__( 'Choose how to display your posts on the tag template', 'herald' ),
'options' => herald_get_main_layouts(),
'default' => herald_get_default_option( 'tag_layout' ),
'title' => esc_html__( 'Posts per page', 'herald' ),
'subtitle' => esc_html__( 'Choose how many posts per page you want to display', 'herald' ),
'inherit' => wp_kses( sprintf( __( 'Inherit from global option in <a href="%s">Settings->Reading</a>', 'herald' ), admin_url( 'options-general.php' ) ), wp_kses_allowed_html( 'post' ) ),
'custom' => esc_html__( 'Custom number', 'herald' )
'default' => herald_get_default_option( 'tag_ppp' ),
'title' => esc_html__( 'Number of posts per page', 'herald' ),
'default' => herald_get_default_option( 'tag_ppp_num' ),
'required' => array( 'tag_ppp', '=', 'custom' ),
'id' => 'tag_starter_layout',
'type' => 'image_select',
'title' => esc_html__( 'Starter layout', 'herald' ),
'subtitle' => esc_html__( 'By choosing a starter layout, first "x" posts on the page will be displayed in this layout', 'herald' ),
'options' => herald_get_main_layouts( false, true ),
'default' => herald_get_default_option( 'tag_starter_layout' ),
'id' => 'tag_starter_limit',
'title' => esc_html__( 'Number of starter posts', 'herald' ),
'subtitle' => esc_html__( 'Specify how many posts to display in "starter" layout', 'herald' ),
'default' => herald_get_default_option( 'tag_starter_limit' ),
'required' => array( 'tag_starter_layout', '!=', 'none' ),
'id' => 'tag_use_sidebar',
'type' => 'image_select',
'title' => esc_html__( 'Display sidebar', 'herald' ),
'options' => herald_get_sidebar_layouts(),
'default' => herald_get_default_option( 'tag_use_sidebar' ),
'title' => esc_html__( 'Tag standard sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a standard sidebar for the tag template', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'tag_sidebar' ),
'required' => array( 'tag_use_sidebar', '!=', 'none' )
'id' => 'tag_sticky_sidebar',
'title' => esc_html__( 'Tag sticky sidebar', 'herald' ),
'subtitle' => esc_html__( 'Choose a sticky sidebar for the tag template', 'herald' ),
'options' => herald_get_sidebars_list(),
'default' => herald_get_default_option( 'tag_sticky_sidebar' ),
'required' => array( 'tag_use_sidebar', '!=', 'none' )
'type' => 'image_select',
'title' => esc_html__( 'Pagination', 'herald' ),
'subtitle' => esc_html__( 'Choose a pagination type for tag template', 'herald' ),
'options' => herald_get_pagination_layouts(),
'default' => herald_get_default_option( 'tag_pag' ),
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-user',
'title' => esc_html__( 'Author Template', 'herald' ),
'desc' => esc_html__( 'Manage settings for the author templates', 'herald' ),
'title' => esc_html__( 'Author description', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display the author avatar with bio/description', 'herald' ),
'default' => herald_get_default_option( 'author_desc' ),
'title' => esc_html__( 'Author social links', 'herald' ),
'subtitle' => esc_html__( 'Choose if you want to display the author social links', 'herald' ),
'default' => herald_get_default_option( 'author_social' ),
'type' => 'image_select',
'title' => esc_html__( 'Main layout', 'herald' ),
'subtitle' => esc_html__( 'Choose how to display your posts on the author template', 'herald' ),
'options' => herald_get_main_layouts(),
'default' => herald_get_default_option( 'author_layout' ),