: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'id' => 'color_header_sticky_bg',
'title' => esc_html__( 'Background color', 'herald' ),
'default' => herald_get_default_option( 'color_header_sticky_bg' ),
'required' => array( 'header_sticky', '=', true )
'id' => 'color_header_sticky_txt',
'title' => esc_html__( 'Text color', 'herald' ),
'default' => herald_get_default_option( 'color_header_sticky_txt' ),
'required' => array( 'header_sticky', '=', true )
'id' => 'color_header_sticky_acc',
'title' => esc_html__( 'Accent color', 'herald' ),
'default' => herald_get_default_option( 'color_header_sticky_acc' ),
'required' => array( 'header_sticky', '=', true )
'id' => 'header_sticky_left',
'title' => esc_html__( 'Left slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in left slot', 'herald' ),
'options' => herald_get_header_elements( 'sticky', 'left' ),
'default' => herald_get_default_option( 'header_sticky_left' ),
'required' => array( 'header_sticky', '=', true )
'id' => 'header_sticky_center',
'title' => esc_html__( 'Center slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in center slot', 'herald' ),
'options' => herald_get_header_elements( 'sticky', 'center' ),
'default' => herald_get_default_option( 'header_sticky_center' ),
'required' => array( 'header_sticky', '=', true )
'id' => 'header_sticky_right',
'title' => esc_html__( 'Right slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in right slot', 'herald' ),
'options' => herald_get_header_elements( 'sticky', 'right' ),
'default' => herald_get_default_option( 'header_sticky_right' ),
'required' => array( 'header_sticky', '=', true )
Redux::setSection( $opt_name , array(
'title' => esc_html__( 'Responsive Header', 'herald' ),
'desc' => esc_html__( 'Manage settings for responsive header, used for mobiles, tablets and other smaller resolutions)', 'herald' ),
'id' => 'header_responsive_breakpoint',
'title' => esc_html__( 'Responsive header breakpoint', 'herald' ),
'subtitle' => esc_html__( 'Choose exact width of the browser which will trigger responsive header', 'herald' ),
'desc' => esc_html__( 'Note: value is in px', 'herald' ),
'default' => herald_get_default_option( 'header_responsive_breakpoint' ),
'display_value' => 'text'
'id' => 'header_responsive_elements',
'title' => esc_html__( 'Responsive menu elements', 'herald' ),
'subtitle' => esc_html__( 'Choose which elements you want to add to your main navigation in responsive/mobile menu', 'herald' ),
'secondary-menu-1' => esc_html__( 'Secondary menu 1', 'herald' ),
'secondary-menu-2' => esc_html__( 'Secondary menu 2', 'herald' ),
'secondary-menu-3' => esc_html__( 'Secondary menu 3', 'herald' ),
'social-menu' => esc_html__( 'Social menu', 'herald' ),
'default' => herald_get_default_option( 'header_responsive_elements' ),
'id' => 'header_responsive_actions',
'title' => esc_html__( 'Responsive header actions', 'herald' ),
'subtitle' => esc_html__( 'Choose elements you want to display in responsive header', 'herald' ),
'options' => herald_get_header_responsive_actions(),
'default' => herald_get_default_option( 'header_responsive_actions' ),
'id' => 'header_responsive_group',
'title' => esc_html__( 'Group secondary menus on mobile under "more" link ', 'herald' ),
'subtitle' => esc_html__( 'Enable this option if you like to display secondary menus grouped within a single "more" link in responsive/mobile menu', 'herald' ),
'default' => herald_get_default_option( 'header_responsive_group' ),
'id' => 'header_ad_responsive',
'title' => esc_html__( 'Header ad', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display your header ad on mobile devices', 'herald' ),
'desc' => esc_html__( 'Note: ad must be added in Header Ad Slot in Theme Options -> Ads', 'herald' ),
'default' => herald_get_default_option( 'header_ad_responsive' ),
Redux::setSection( $opt_name , array(
'title' => esc_html__( 'Mega Menu', 'herald' ),
'desc' => esc_html__( 'Manage settings for mega menu', 'herald' ),
'title' => esc_html__( 'Enable mega menu', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to enable mega menu functionality', 'herald' ),
'default' => herald_get_default_option( 'mega_menu' ),
'id' => 'mega_menu_layout',
'type' => 'image_select',
'title' => esc_html__( 'Mega menu posts layout', 'herald' ),
'subtitle' => esc_html__( 'Choose how to display your posts in mega menu', 'herald' ),
'options' => herald_get_main_layouts( false, false, array( 'a', 'a1', 'a2', 'a3', 'b', 'b1', 'c', 'c1', 'd', 'd1', 'e' ) ),
'default' => herald_get_default_option( 'mega_menu_layout' ),
'required' => array( 'mega_menu', '=', true )
'id' => 'mega_menu_limit',
'title' => esc_html__( 'Number of posts', 'herald' ),
'subtitle' => esc_html__( 'Choose max number of posts in mega menu', 'herald' ),
'default' => herald_get_default_option( 'mega_menu_limit' ),
'required' => array( 'mega_menu', '=', true )
'id' => 'mega_menu_sub_cat',
'title' => esc_html__( 'Display child categories', 'herald' ),
'subtitle' => esc_html__( 'If you check this option, links to child categories of a current category will be automatically displayed', 'herald' ),
'default' => herald_get_default_option( 'mega_menu_sub_cat' ),
'required' => array( 'mega_menu', '=', true )
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-screen',
'title' => esc_html__( 'Content', 'herald' ),
'desc' => esc_html__( 'Manage your main content styling options', 'herald' ),
'id' => 'content_layout',
'type' => 'image_select',
'title' => esc_html__( 'Content layout', 'herald' ),
'boxed' => array( 'title' => esc_html__( 'Boxed', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/content_boxed.png' ) ),
'wide' => array( 'title' => esc_html__( 'Wide', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/content_full.png' ) ),
'default' => herald_get_default_option( 'content_layout' ),
'id' => 'body_background',
'title' => esc_html__( 'Body background', 'herald' ),
'subtitle' => esc_html__( 'Setup your body background color, image or pattern', 'herald' ),
'default' => herald_get_default_option( 'body_background' ),
'required' => array( 'content_layout', '=', 'boxed' )
'id' => 'color_content_bg',
'title' => esc_html__( 'Content background color', 'herald' ),
'subtitle' => esc_html__( 'Specify main content background color', 'herald' ),
'default' => herald_get_default_option( 'color_content_bg' ),
'id' => 'color_content_title',
'title' => esc_html__( 'Title (heading) color', 'herald' ),
'subtitle' => esc_html__( 'This color applies to headings, post/page tiles, widget titles, etc... ', 'herald' ),
'default' => herald_get_default_option( 'color_content_title' ),
'id' => 'color_content_txt',
'title' => esc_html__( 'Text color', 'herald' ),
'subtitle' => esc_html__( 'This color applies to standard text', 'herald' ),
'default' => herald_get_default_option( 'color_content_txt' ),
'id' => 'color_content_acc',
'title' => esc_html__( 'Accent color', 'herald' ),
'subtitle' => esc_html__( 'This color applies to links, buttons, pagination, etc...', 'herald' ),
'default' => herald_get_default_option( 'color_content_acc' ),
'id' => 'color_content_meta',
'title' => esc_html__( 'Meta color', 'herald' ),
'subtitle' => esc_html__( 'This color applies to miscellaneous elements such as meta icons etc...', 'herald' ),
'default' => herald_get_default_option( 'color_content_meta' ),
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-bookmark-empty',
'title' => esc_html__( 'Footer', 'herald' ),
'desc' => esc_html__( 'Manage options for your footer area', 'herald' ),
'id' => 'color_footer_bg',
'title' => esc_html__( 'Background color', 'herald' ),
'subtitle' => esc_html__( 'Specify footer background color', 'herald' ),
'default' => herald_get_default_option( 'color_footer_bg' ),
'id' => 'color_footer_txt',
'title' => esc_html__( 'Text color', 'herald' ),
'subtitle' => esc_html__( 'This is the standard text color for footer', 'herald' ),
'default' => herald_get_default_option( 'color_footer_txt' ),
'id' => 'color_footer_acc',
'title' => esc_html__( 'Accent color', 'herald' ),
'subtitle' => esc_html__( 'This color will apply to buttons, links, etc...', 'herald' ),
'default' => herald_get_default_option( 'color_footer_acc' ),
'id' => 'color_footer_meta',
'title' => esc_html__( 'Meta color', 'herald' ),
'subtitle' => esc_html__( 'This color will apply to miscellaneous text like date, number of views, etc...', 'herald' ),
'default' => herald_get_default_option( 'color_footer_meta' ),
'id' => 'footer_widgets',
'title' => esc_html__( 'Display footer widgetized area', 'herald' ),
'subtitle' => wp_kses_post( sprintf( __( 'Check if you want to include footer widgetized area in your theme. You can manage the footer content in the <a href="%s">Apperance -> Widgets</a> settings.', 'herald' ), admin_url( 'widgets.php' ) ) ),
'default' => herald_get_default_option( 'footer_widgets' ),
'type' => 'image_select',
'title' => esc_html__( 'Footer columns', 'herald' ),
'subtitle' => esc_html__( 'Choose number of columns to display in footer area', 'herald' ),
'desc' => wp_kses_post( sprintf( __( 'Note: Each column represents one Footer Sidebar in <a href="%s">Apperance -> Widgets</a> settings.', 'herald' ), admin_url( 'widgets.php' ) ) ),
'1_12' => array( 'title' => esc_html__( '1 Column', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/footer_col_1.png' ) ),
'2_6' => array( 'title' => esc_html__( '2 Columns', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/footer_col_2.png' ) ),
'3_4' => array( 'title' => esc_html__( '3 Columns', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/footer_col_3.png' ) ),
'4_3' => array( 'title' => esc_html__( '4 Columns', 'herald' ), 'img' => get_parent_theme_file_uri( '/assets/img/admin/footer_col_4.png' ) )
'default' => herald_get_default_option( 'footer_layout' ),
'required' => array( 'footer_widgets', '=', true )
'title' => esc_html__( 'Display footer bottom bar', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display footer bottom bar', 'herald' ),
'default' => herald_get_default_option( 'footer_bottom' ),
'id' => 'footer_copyright',
'title' => esc_html__( 'Copyright', 'herald' ),
'subtitle' => esc_html__( 'Specify the copyright text to show at the bottom of the website', 'herald' ),
'default' => herald_get_default_option( 'footer_copyright' ),
'default_editor' => 'html'
'required' => array( 'footer_bottom', '=', true )
'title' => esc_html__( 'Left slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in left slot', 'herald' ),
'options' => herald_get_footer_elements( 'left' ),
'default' => herald_get_default_option( 'footer_left' ),
'required' => array( 'footer_bottom', '=', true )
'title' => esc_html__( 'Center slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in center slot', 'herald' ),
'options' => herald_get_footer_elements( 'center' ),
'default' => herald_get_default_option( 'footer_center' ),
'required' => array( 'footer_bottom', '=', true )
'title' => esc_html__( 'Right slot', 'herald' ),
'subtitle' => esc_html__( 'Check which elements to add in right slot', 'herald' ),
'options' => herald_get_footer_elements( 'right' ),
'default' => herald_get_default_option( 'footer_right' ),
'required' => array( 'footer_bottom', '=', true )
Redux::setSection( $opt_name , array(
'icon' => ' el-icon-list',
'title' => esc_html__( 'Sidebars', 'herald' ),
'desc' => wp_kses( sprintf( __( 'Use this panel to generate additional sidebars. You can manage sidebars content in the <a href="%s">Apperance -> Widgets</a> settings.', 'herald' ), admin_url( 'widgets.php' ) ), wp_kses_allowed_html( 'post' ) ),
'default' => herald_get_default_option( 'sidebars' )
Redux::setSection( $opt_name , array(
'icon' => 'el-icon-th-large',
'title' => esc_html__( 'Main Layouts', 'herald' ),
Redux::setSection( $opt_name , array(
'title' => esc_html__( 'Layout A', 'herald' ),
'id' => 'section_layout_a',
'type' => 'herald_section',
'title' => '<img src="'.esc_url( get_parent_theme_file_uri( '/assets/img/admin/layout_a.png' ) ).'"/>'.esc_html__( 'Layout A', 'herald' ),
'subtitle' => esc_html__( 'Manage options for posts displayed in Layout A', 'herald' ),
'title' => esc_html__( 'Display category', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to display a category link for posts in Layout A', 'herald' ),
'default' => herald_get_default_option( 'lay_a_cat' ),
'title' => esc_html__( 'Meta data', 'herald' ),
'subtitle' => esc_html__( 'Check which meta data to show for posts in Layout A', 'herald' ),
'options' => herald_get_meta_opts(),
'default' => herald_get_default_option( 'lay_a_meta' ),
'title' => esc_html__( 'Layout A content type', 'herald' ),
'excerpt' => esc_html__( 'Excerpt (automatically limit number of characters)', 'herald' ),
'content' => esc_html__( 'Full content (optionally split with "<--more-->" tag)', 'herald' ),
'none' => esc_html__( 'None', 'herald' )
'subtitle' => esc_html__( 'Choose content type', 'herald' ),
'default' => herald_get_default_option( 'lay_a_content' ),
'id' => 'lay_a_excerpt_limit',
'title' => esc_html__( 'Excerpt limit', 'herald' ),
'subtitle' => esc_html__( 'Specify your excerpt limit', 'herald' ),
'desc' => esc_html__( 'Note: Value represents number of characters', 'herald' ),
'default' => herald_get_default_option( 'lay_a_excerpt_limit' ),
'required' => array( 'lay_a_excerpt_limit', '=', 'excerpt' )
'title' => esc_html__( 'Read more link', 'herald' ),
'subtitle' => esc_html__( 'Check if you want to enable read more link for Layout A', 'herald' ),
'default' => herald_get_default_option( 'lay_a_rm' ),
'id' => 'img_size_lay_a_ratio',
'title' => esc_html__( 'Layout A image ratio', 'herald' ),
'subtitle' => esc_html__( 'Choose an image ratio for Layout A', 'herald' ),
'options' => herald_get_image_ratio_opts(),
'default' => herald_get_default_option( 'img_size_lay_a_ratio' ),
'id' => 'img_size_lay_a_custom',
'title' => esc_html__( 'Layout A image custom ratio', 'herald' ),
'subtitle' => esc_html__( 'Specify your custom ratio for Layout A images', 'herald' ),