Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
clone
/
wp-conte...
/
themes
/
herald
/
core
/
admin
•
File:
options.php
•
Content:
<?php /** * Load embedded Redux Framework */ if ( ! class_exists( 'Redux' ) ) { return; } /** * Redux params */ $opt_name = 'herald_settings'; $args = array( 'opt_name' => $opt_name, '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(), 'menu_type' => 'menu', 'allow_sub_menu' => true, 'menu_title' => esc_html__( 'Theme Options', 'herald' ), 'page_title' => esc_html__( 'Herald Options', 'herald' ), 'google_api_key' => '', 'google_update_weekly' => false, 'async_typography' => true, 'admin_bar' => true, 'admin_bar_icon' => 'dashicons-admin-generic', 'admin_bar_priority' => '100', 'global_variable' => '', 'dev_mode' => false, 'update_notice' => false, 'customizer' => false, 'allow_tracking' => false, 'ajax_save' => false, 'page_priority' => '27.11', 'page_parent' => 'themes.php', 'page_permissions' => 'manage_options', 'menu_icon' => 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1OTUuM3B4IiBoZWlnaHQ9Ijg0MS45cHgiIHZpZXdCb3g9IjAgMCA1OTUuMyA4NDEuOSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTk1LjMgODQxLjk7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNODIuOCwxNDguOXY1NDRsMjE1LTY5LjFsMjE1LDY5LjF2LTU0NEg4Mi44eiBNNDMzLjYsNTU0LjNoLTcwVjQxMS40SDIzMi4zdjE0M0gxNjJWMjIyLjloMGg3MC4zdjEyOS45aDEzMS4zVjIyMi45aDcwVjU1NC4zeiIvPjwvc3ZnPg==', 'last_tab' => '', 'page_icon' => 'icon-themes', 'page_slug' => 'herald_options', 'save_defaults' => true, 'default_show' => false, 'default_mark' => '', 'show_import_export' => true, 'transient_time' => 60 * MINUTE_IN_SECONDS, 'output' => false, 'output_tag' => true, 'database' => '', 'system_info' => false ); $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'] = ''; /** * Initialize Redux */ 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 * * @return void * @since 1.0 */ 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' ); } endif; add_action( 'redux/page/herald_settings/enqueue', 'herald_redux_custom_css' ); /** * Remove redux framework admin page * * @return void * @since 1.0 */ if ( !function_exists( 'herald_remove_redux_page' ) ): function herald_remove_redux_page() { remove_submenu_page( 'tools.php', 'redux-about' ); } endif; 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' ) ); } } endif; /** * Add our Sidebar generator custom field to redux * * @since 1.0 */ 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' ); } endif; add_filter( "redux/herald_settings/field/class/sidgen", "herald_sidgen_field_path" ); /** * Add our section custom field to redux * * @since 1.0 */ 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' ); } endif; add_filter( "redux/herald_settings/field/class/herald_section", "herald_section_field_path" ); ?>
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List