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
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/core/admin
File: options.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Load embedded Redux Framework
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
if ( ! class_exists( 'Redux' ) ) {
[6] Fix | Delete
return;
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* Redux params
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
$opt_name = 'herald_settings';
[14] Fix | Delete
[15] Fix | Delete
$args = array(
[16] Fix | Delete
'opt_name' => $opt_name,
[17] Fix | Delete
'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' )),
[18] Fix | Delete
'display_version' => herald_get_update_notification(),
[19] Fix | Delete
'menu_type' => 'menu',
[20] Fix | Delete
'allow_sub_menu' => true,
[21] Fix | Delete
'menu_title' => esc_html__( 'Theme Options', 'herald' ),
[22] Fix | Delete
'page_title' => esc_html__( 'Herald Options', 'herald' ),
[23] Fix | Delete
'google_api_key' => '',
[24] Fix | Delete
'google_update_weekly' => false,
[25] Fix | Delete
'async_typography' => true,
[26] Fix | Delete
'admin_bar' => true,
[27] Fix | Delete
'admin_bar_icon' => 'dashicons-admin-generic',
[28] Fix | Delete
'admin_bar_priority' => '100',
[29] Fix | Delete
'global_variable' => '',
[30] Fix | Delete
'dev_mode' => false,
[31] Fix | Delete
'update_notice' => false,
[32] Fix | Delete
'customizer' => false,
[33] Fix | Delete
'allow_tracking' => false,
[34] Fix | Delete
'ajax_save' => false,
[35] Fix | Delete
'page_priority' => '27.11',
[36] Fix | Delete
'page_parent' => 'themes.php',
[37] Fix | Delete
'page_permissions' => 'manage_options',
[38] Fix | Delete
'menu_icon' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1OTUuM3B4IiBoZWlnaHQ9Ijg0MS45cHgiIHZpZXdCb3g9IjAgMCA1OTUuMyA4NDEuOSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTk1LjMgODQxLjk7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNODIuOCwxNDguOXY1NDRsMjE1LTY5LjFsMjE1LDY5LjF2LTU0NEg4Mi44eiBNNDMzLjYsNTU0LjNoLTcwVjQxMS40SDIzMi4zdjE0M0gxNjJWMjIyLjloMGg3MC4zdjEyOS45aDEzMS4zVjIyMi45aDcwVjU1NC4zeiIvPjwvc3ZnPg==',
[39] Fix | Delete
'last_tab' => '',
[40] Fix | Delete
'page_icon' => 'icon-themes',
[41] Fix | Delete
'page_slug' => 'herald_options',
[42] Fix | Delete
'save_defaults' => true,
[43] Fix | Delete
'default_show' => false,
[44] Fix | Delete
'default_mark' => '',
[45] Fix | Delete
'show_import_export' => true,
[46] Fix | Delete
'transient_time' => 60 * MINUTE_IN_SECONDS,
[47] Fix | Delete
'output' => false,
[48] Fix | Delete
'output_tag' => true,
[49] Fix | Delete
'database' => '',
[50] Fix | Delete
'system_info' => false
[51] Fix | Delete
);
[52] Fix | Delete
[53] Fix | Delete
$GLOBALS['redux_notice_check'] = 1;
[54] Fix | Delete
[55] Fix | Delete
/* Footer social icons */
[56] Fix | Delete
[57] Fix | Delete
$args['share_icons'][] = array(
[58] Fix | Delete
'url' => 'https://www.facebook.com/mekshq',
[59] Fix | Delete
'title' => 'Like us on Facebook',
[60] Fix | Delete
'icon' => 'el-icon-facebook'
[61] Fix | Delete
);
[62] Fix | Delete
[63] Fix | Delete
$args['share_icons'][] = array(
[64] Fix | Delete
'url' => 'http://twitter.com/mekshq',
[65] Fix | Delete
'title' => 'Follow us on Twitter',
[66] Fix | Delete
'icon' => 'el-icon-twitter'
[67] Fix | Delete
);
[68] Fix | Delete
[69] Fix | Delete
$args['intro_text'] = '';
[70] Fix | Delete
$args['footer_text'] = '';
[71] Fix | Delete
[72] Fix | Delete
[73] Fix | Delete
/**
[74] Fix | Delete
* Initialize Redux
[75] Fix | Delete
*/
[76] Fix | Delete
[77] Fix | Delete
Redux::setArgs( $opt_name , $args );
[78] Fix | Delete
[79] Fix | Delete
[80] Fix | Delete
/**
[81] Fix | Delete
* Include redux option fields (settings)
[82] Fix | Delete
*/
[83] Fix | Delete
[84] Fix | Delete
include_once get_parent_theme_file_path( '/core/admin/options-fields.php' );
[85] Fix | Delete
[86] Fix | Delete
[87] Fix | Delete
/**
[88] Fix | Delete
* Append custom css to redux framework admin panel
[89] Fix | Delete
*
[90] Fix | Delete
* @return void
[91] Fix | Delete
* @since 1.0
[92] Fix | Delete
*/
[93] Fix | Delete
[94] Fix | Delete
if ( !function_exists( 'herald_redux_custom_css' ) ):
[95] Fix | Delete
function herald_redux_custom_css() {
[96] Fix | Delete
wp_register_style( 'herald-redux-custom', get_parent_theme_file_uri( '/assets/css/admin/options.css' ), array( 'redux-admin-css' ), HERALD_THEME_VERSION, 'all' );
[97] Fix | Delete
wp_enqueue_style( 'herald-redux-custom' );
[98] Fix | Delete
}
[99] Fix | Delete
endif;
[100] Fix | Delete
[101] Fix | Delete
add_action( 'redux/page/herald_settings/enqueue', 'herald_redux_custom_css' );
[102] Fix | Delete
[103] Fix | Delete
[104] Fix | Delete
/**
[105] Fix | Delete
* Remove redux framework admin page
[106] Fix | Delete
*
[107] Fix | Delete
* @return void
[108] Fix | Delete
* @since 1.0
[109] Fix | Delete
*/
[110] Fix | Delete
[111] Fix | Delete
if ( !function_exists( 'herald_remove_redux_page' ) ):
[112] Fix | Delete
function herald_remove_redux_page() {
[113] Fix | Delete
remove_submenu_page( 'tools.php', 'redux-about' );
[114] Fix | Delete
}
[115] Fix | Delete
endif;
[116] Fix | Delete
[117] Fix | Delete
add_action( 'admin_menu', 'herald_remove_redux_page', 99 );
[118] Fix | Delete
[119] Fix | Delete
[120] Fix | Delete
/* Prevent redux auto redirect */
[121] Fix | Delete
update_option( 'redux_version_upgraded_from', 100 );
[122] Fix | Delete
[123] Fix | Delete
[124] Fix | Delete
/* More redux cleanup, blah... */
[125] Fix | Delete
[126] Fix | Delete
add_action( 'init', 'herald_redux_cleanup' );
[127] Fix | Delete
[128] Fix | Delete
if ( !function_exists( 'herald_redux_cleanup' ) ):
[129] Fix | Delete
function herald_redux_cleanup() {
[130] Fix | Delete
[131] Fix | Delete
if ( class_exists( 'ReduxFrameworkPlugin' ) ) {
[132] Fix | Delete
remove_action( 'admin_notices', array( ReduxFrameworkPlugin::get_instance(), 'admin_notices' ) );
[133] Fix | Delete
}
[134] Fix | Delete
}
[135] Fix | Delete
endif;
[136] Fix | Delete
[137] Fix | Delete
[138] Fix | Delete
/**
[139] Fix | Delete
* Add our Sidebar generator custom field to redux
[140] Fix | Delete
*
[141] Fix | Delete
* @since 1.0
[142] Fix | Delete
*/
[143] Fix | Delete
[144] Fix | Delete
if ( !function_exists( 'herald_sidgen_field_path' ) ):
[145] Fix | Delete
function herald_sidgen_field_path($field) {
[146] Fix | Delete
return get_parent_theme_file_path( '/core/admin/options-custom-fields/sidgen/field_sidgen.php' );
[147] Fix | Delete
}
[148] Fix | Delete
endif;
[149] Fix | Delete
[150] Fix | Delete
add_filter( "redux/herald_settings/field/class/sidgen", "herald_sidgen_field_path" );
[151] Fix | Delete
[152] Fix | Delete
/**
[153] Fix | Delete
* Add our section custom field to redux
[154] Fix | Delete
*
[155] Fix | Delete
* @since 1.0
[156] Fix | Delete
*/
[157] Fix | Delete
[158] Fix | Delete
if ( !function_exists( 'herald_section_field_path' ) ):
[159] Fix | Delete
function herald_section_field_path( $field ) {
[160] Fix | Delete
return get_parent_theme_file_path( '/core/admin/options-custom-fields/section/section.php' );
[161] Fix | Delete
}
[162] Fix | Delete
endif;
[163] Fix | Delete
[164] Fix | Delete
add_filter( "redux/herald_settings/field/class/herald_section", "herald_section_field_path" );
[165] Fix | Delete
?>
[166] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function