: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Load embedded Redux Framework
if ( ! class_exists( 'Redux' ) ) {
$opt_name = 'herald_settings';
'display_name' => wp_kses( sprintf( __( 'Herald Options%sTheme Documentation%s', 'herald' ), '<a href="http://mekshq.com/documentation/herald" target="_blank">', '</a>' ), wp_kses_allowed_html( 'post' )),
'display_version' => herald_get_update_notification(),
'allow_sub_menu' => true,
'menu_title' => esc_html__( 'Theme Options', 'herald' ),
'page_title' => esc_html__( 'Herald Options', 'herald' ),
'google_update_weekly' => false,
'async_typography' => true,
'admin_bar_icon' => 'dashicons-admin-generic',
'admin_bar_priority' => '100',
'update_notice' => false,
'allow_tracking' => false,
'page_priority' => '27.11',
'page_parent' => 'themes.php',
'page_permissions' => 'manage_options',
'menu_icon' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1OTUuM3B4IiBoZWlnaHQ9Ijg0MS45cHgiIHZpZXdCb3g9IjAgMCA1OTUuMyA4NDEuOSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTk1LjMgODQxLjk7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNODIuOCwxNDguOXY1NDRsMjE1LTY5LjFsMjE1LDY5LjF2LTU0NEg4Mi44eiBNNDMzLjYsNTU0LjNoLTcwVjQxMS40SDIzMi4zdjE0M0gxNjJWMjIyLjloMGg3MC4zdjEyOS45aDEzMS4zVjIyMi45aDcwVjU1NC4zeiIvPjwvc3ZnPg==',
'page_icon' => 'icon-themes',
'page_slug' => 'herald_options',
'show_import_export' => true,
'transient_time' => 60 * MINUTE_IN_SECONDS,
$GLOBALS['redux_notice_check'] = 1;
/* Footer social icons */
$args['share_icons'][] = array(
'url' => 'https://www.facebook.com/mekshq',
'title' => 'Like us on Facebook',
'icon' => 'el-icon-facebook'
$args['share_icons'][] = array(
'url' => 'http://twitter.com/mekshq',
'title' => 'Follow us on Twitter',
'icon' => 'el-icon-twitter'
$args['intro_text'] = '';
$args['footer_text'] = '';
Redux::setArgs( $opt_name , $args );
* Include redux option fields (settings)
include_once get_parent_theme_file_path( '/core/admin/options-fields.php' );
* Append custom css to redux framework admin panel
if ( !function_exists( 'herald_redux_custom_css' ) ):
function herald_redux_custom_css() {
wp_register_style( 'herald-redux-custom', get_parent_theme_file_uri( '/assets/css/admin/options.css' ), array( 'redux-admin-css' ), HERALD_THEME_VERSION, 'all' );
wp_enqueue_style( 'herald-redux-custom' );
add_action( 'redux/page/herald_settings/enqueue', 'herald_redux_custom_css' );
* Remove redux framework admin page
if ( !function_exists( 'herald_remove_redux_page' ) ):
function herald_remove_redux_page() {
remove_submenu_page( 'tools.php', 'redux-about' );
add_action( 'admin_menu', 'herald_remove_redux_page', 99 );
/* Prevent redux auto redirect */
update_option( 'redux_version_upgraded_from', 100 );
/* More redux cleanup, blah... */
add_action( 'init', 'herald_redux_cleanup' );
if ( !function_exists( 'herald_redux_cleanup' ) ):
function herald_redux_cleanup() {
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) );
* Add our Sidebar generator custom field to redux
if ( !function_exists( 'herald_sidgen_field_path' ) ):
function herald_sidgen_field_path($field) {
return get_parent_theme_file_path( '/core/admin/options-custom-fields/sidgen/field_sidgen.php' );
add_filter( "redux/herald_settings/field/class/sidgen", "herald_sidgen_field_path" );
* Add our section custom field to redux
if ( !function_exists( 'herald_section_field_path' ) ):
function herald_section_field_path( $field ) {
return get_parent_theme_file_path( '/core/admin/options-custom-fields/section/section.php' );
add_filter( "redux/herald_settings/field/class/herald_section", "herald_section_field_path" );