本文整理汇总了PHP中wp_admin_css_color函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_admin_css_color函数的具体用法?PHP wp_admin_css_color怎么用?PHP wp_admin_css_color使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_admin_css_color函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: register_admin_color_scheme
public function register_admin_color_scheme()
{
global $_wp_admin_css_colors;
wp_admin_css_color('darkadmin', __('DarkAdmin'), plugins_url('css/colors-darkadmin.css', __FILE__), array('#222', '#333', '#0074a2', '#2ea2cc'));
$_wp_admin_css_colors['darkadmin']->icon_colors = array('base' => '#999', 'focus' => '#2ea2cc', 'current' => '#fff');
$this->replace_css('colors', 'colors-darkadmin.css');
}
开发者ID:WpHub,项目名称:Dark-Admin,代码行数:7,代码来源:dark-admin.php
示例2: collectSchema
/**
* Collect schema from wordpress active theme
*
* @return boolean true on success false if color schema folder is not exists
* in the active theme folder
*/
public function collectSchema()
{
$options = $this->getOptions();
$path = get_template_directory() . $options['path'];
// make sure that the color schema folder exsists
if (!file_exists($path) || !is_dir($path)) {
return;
// just ignore
}
// register the new color schema
$contents = new \DirectoryIterator($path);
foreach ($contents as $content) {
if ($contents->isDot()) {
continue;
}
if ($contents->isDir()) {
$name = $content->getFilename();
$init = parse_ini_file($content->getPathname() . '/schema.ini');
if (!is_array($init)) {
trigger_error('Unbale Admin Color Schema Config File', E_USER_ERROR);
}
$suffix = is_rtl() ? '-rtl' : '';
$url = get_template_directory_uri() . $options['path'] . '/' . $name . "/colors{$suffix}.css";
wp_admin_css_color($name, __(isset($init['name']) && !empty($init['name']) ? $init['name'] : $name, isset($init['domain']) && !empty($init['domain']) ? $init['domain'] : 'default'), $url, isset($init['colors']) && is_array($init['colors']) ? $init['colors'] : array(), isset($init['icons']) && is_array($init['icons']) ? $init['icons'] : array());
}
}
}
开发者ID:hyyan,项目名称:admin-color-schema,代码行数:33,代码来源:HyyanAdminColorSchema.php
示例3: register_scheme
/**
* Register the admin color scheme
*
* @action admin_init
*/
public function register_scheme()
{
$suffix = is_rtl() ? '-rtl' : '';
$suffix .= SCRIPT_DEBUG ? '' : '.min';
$url = add_query_arg(['ver' => static::VERSION], plugins_url("assets/colors{$suffix}.css", __FILE__));
wp_admin_css_color('godaddy', 'GoDaddy', $url, ['#212121', '#77c043', '#008a32', '#f2812e'], ['base' => '#000', 'focus' => '#008a32', 'current' => '#fff']);
}
开发者ID:fritzdenim,项目名称:pangMoves,代码行数:12,代码来源:gd-admin-color-scheme.php
示例4: admin_init
public function admin_init()
{
$schemes = $this->get_option('schemes', array());
foreach ($schemes as $scheme) {
wp_admin_css_color($scheme['slug'], $scheme['name'], esc_url($scheme['uri']), array($scheme['base_color'], $scheme['icon_color'], $scheme['highlight_color'], $scheme['notification_color']), array('base' => $scheme['icon_color'], 'focus' => $scheme['icon_focus'], 'current' => $scheme['icon_current']));
}
}
开发者ID:watsonad,项目名称:gpoa,代码行数:7,代码来源:plugin.php
示例5: additional_admin_color_schemes
function additional_admin_color_schemes()
{
//Get the theme directory
$theme_dir = get_template_directory_uri();
//Color Template hinzufügen
wp_admin_css_color('hinzkunz', __('Hinz und Kunz'), $theme_dir . '/admin-colors/hinzkunz/colors.css', array('#004c5a', '#004c5a', '#004c5a', '#004c5a'));
}
开发者ID:stefanamport,项目名称:_s,代码行数:7,代码来源:backend-template-hinzkunz.php
示例6: mp6_register_admin_color_scheme
function mp6_register_admin_color_scheme()
{
global $wp_styles, $_wp_admin_css_colors;
wp_admin_css_color('mp6', 'MP6', plugins_url('css/colors-mp6.css', __FILE__), array('#222', '#333', '#0074a2', '#2ea2cc'));
$_wp_admin_css_colors['mp6']->icon_colors = array('base' => '#999', 'focus' => '#2ea2cc', 'current' => '#fff');
// set modification time
$wp_styles->registered['colors']->ver = filemtime(plugin_dir_path(__FILE__) . 'css/colors-mp6.css');
// set dependencies
$wp_styles->registered['colors']->deps[] = 'open-sans';
$wp_styles->registered['colors']->deps[] = 'dashicons';
}
开发者ID:briancompton,项目名称:knightsplaza,代码行数:11,代码来源:mp6.php
示例7: usa_color_schemes
/**
* Register color schemes.
*/
function usa_color_schemes()
{
$suffix = is_rtl() ? '-rtl' : '';
$debug = WP_DEBUG ? '' : '.min';
wp_admin_css_color('open-highway', __('Open Highway', 'admin_schemes'), plugins_url("open-highway/colors{$suffix}{$debug}.css", __FILE__), array('#212121', '#323a45', '#5b616b', '#fdb81e'), array('base' => '#fad980', 'focus' => '#fdb81e', 'current' => '#fdb81e'));
wp_admin_css_color('shenandoah', __('Shenandoah', 'admin_schemes'), plugins_url("shenandoah/colors{$suffix}{$debug}.css", __FILE__), array('#212121', '#494440', '#2e8540', '#4aa564'), array('base' => '#e4e5e7', 'focus' => '#212121', 'current' => '#212121'));
wp_admin_css_color('old-glory', __('Old Glory', 'admin_schemes'), plugins_url("old-glory/colors{$suffix}{$debug}.css", __FILE__), array('#112e51', '#205493', '#0071bc', '#cc2211'), array('base' => '#e1f3f8', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('from-many-one', __('From Many One', 'admin_schemes'), plugins_url("from-many-one/colors{$suffix}{$debug}.css", __FILE__), array('#212121', '#323a45', '#981b1e', '#9bdaf1'), array('base' => '#f1f1f3', 'focus' => '#9bdaf1', 'current' => '#9bdaf1'));
wp_admin_css_color('nasa', __('NASA', 'admin_schemes'), plugins_url("nasa/colors{$suffix}{$debug}.css", __FILE__), array('#000', '#262626', '#0B3D91', '#FC3D21'), array('base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('nasa-1976', __('NASA 1976', 'admin_schemes'), plugins_url("nasa-1976/colors{$suffix}{$debug}.css", __FILE__), array('#0F1515', '#1e2a29', '#5D824B', '#a7b145'), array('base' => '#f1f3f3', 'focus' => '#fff', 'current' => '#fff'));
}
开发者ID:0aveRyan,项目名称:american-admin-schemes,代码行数:14,代码来源:american-admin-schemes.php
示例8: add_colors
/**
* Register color schemes.
*/
function add_colors()
{
$suffix = is_rtl() ? '-rtl' : '';
wp_admin_css_color('vinyard', __('Vinyard', 'admin_schemes'), plugins_url("vineyard/colors{$suffix}.css", __FILE__), array('#301D25', '#462b36', '#d3995d', '#eabe3f'), array('base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('primary', __('Primary', 'admin_schemes'), plugins_url("primary/colors{$suffix}.css", __FILE__), array('#282b48', '#35395c', '#f38135', '#e7c03a'), array('base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('80s-kid', __('80\'s Kid', 'admin_schemes'), plugins_url("80s-kid/colors{$suffix}.css", __FILE__), array('#0A3D80', '#0c4da1', '#ed5793', '#eb853b'), array('base' => '#e4e5e7', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('aubergine', __('Aubergine', 'admin_schemes'), plugins_url("aubergine/colors{$suffix}.css", __FILE__), array('#4c4b5f', '#585a61', '#e87162', '#da9b49'), array('base' => '#e4e4e7', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('cruise', __('Cruise', 'admin_schemes'), plugins_url("cruise/colors{$suffix}.css", __FILE__), array('#292B46', '#36395c', '#8bbc9f', '#d2ac1f'), array('base' => '#f1f1f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('flat', __('Flat', 'admin_schemes'), plugins_url("flat/colors{$suffix}.css", __FILE__), array('#1F2C39', '#2c3e50', '#1abc9c', '#f39c12'), array('base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('lawn', __('Lawn', 'admin_schemes'), plugins_url("lawn/colors{$suffix}.css", __FILE__), array('#0F1515', '#1e2a29', '#5D824B', '#a7b145'), array('base' => '#f1f3f3', 'focus' => '#fff', 'current' => '#fff'));
wp_admin_css_color('seashore', __('Seashore', 'admin_schemes'), plugins_url("seashore/colors{$suffix}.css", __FILE__), array('#F8F6F1', '#d5cdad', '#7D6B5C', '#456a7f'), array('base' => '#533C2F', 'focus' => '#F8F6F1', 'current' => '#F8F6F1'));
}
开发者ID:kirandash,项目名称:customadminwp,代码行数:15,代码来源:admin-color-schemes.php
示例9: add_color_scheme
/**
* Register the custom admin color scheme
*/
function add_color_scheme()
{
// child theme
if (file_exists(get_stylesheet_directory() . "/admin-color.css")) {
wp_admin_css_color('st', __('Super Thorough', 'st-color-scheme'), get_stylesheet_directory_uri() . '/admin-color.css', array('#474247', '#de1e7e', '#ec76b1', '#d51d79'));
} elseif (file_exists(get_template_directory() . "/admin-color.css")) {
// parent theme
wp_admin_css_color('st', __('Super Thorough', 'st-color-scheme'), get_template_directory_uri() . '/admin-color.css', array('#474247', '#de1e7e', '#ec76b1', '#d51d79'));
} else {
// plugin
wp_admin_css_color('st', __('Super Thorough', 'st-color-scheme'), plugins_url('st-admin.css', __FILE__), array('#474247', '#de1e7e', '#ec76b1', '#d51d79'));
}
}
开发者ID:marktimemedia,项目名称:super-thorough-color-scheme,代码行数:16,代码来源:st-admin-color-scheme.php
示例10: wpacs_add_color_schemes
/**
* Register the color schemes
*/
function wpacs_add_color_schemes()
{
$rtlsuff = is_rtl() ? '-rtl' : '';
wp_admin_css_color('blood', __('Blood', 'wpacs-admin-schemes'), plugins_url("blood/colors{$rtlsuff}.css", __FILE__), array('#bf0000', '#fc4141', '#222222', '#b03f3f'));
wp_admin_css_color('babyblue', __('Baby Blue', 'wpacs-admin-schemes'), plugins_url("babyblue/colors{$rtlsuff}.css", __FILE__), array('#6bc4ff', '#0077ff', '#034799', '#08a8cc'));
wp_admin_css_color('fresh', __('Fresh', 'wpacs-admin-schemes'), plugins_url("fresh/colors{$rtlsuff}.css", __FILE__), array('#71bd00', '#a7e051', '#426e00', '#7f9959'));
wp_admin_css_color('pumpkin', __('Pumpkin', 'wpacs-admin-schemes'), plugins_url("pumpkin/colors{$rtlsuff}.css", __FILE__), array('#c99300', '#edbc34', '#7a5900', '#ccb064'));
wp_admin_css_color('night', __('Night', 'wpacs-admin-schemes'), plugins_url("night/colors{$rtlsuff}.css", __FILE__), array('#222222', '#444444', '#666666', '#333333'));
wp_admin_css_color('facebook', __('Facebook', 'wpacs-admin-schemes'), plugins_url("facebook/colors{$rtlsuff}.css", __FILE__), array('#2a4994', '#3763d4', '#252661', '#132142'));
wp_admin_css_color('tiranga', __('Tiranga', 'wpacs-admin-schemes'), plugins_url("tiranga/colors{$rtlsuff}.css", __FILE__), array('#ff9933', '#128807', '#000088', '#94510d'));
wp_admin_css_color('remix', __('Remix', 'wpacs-admin-schemes'), plugins_url("remix/colors{$rtlsuff}.css", __FILE__), array('#aa9d88', '#627c83', '#59524c', '#e14d43'));
wp_admin_css_color('modern', __('Modern', 'wpacs-admin-schemes'), plugins_url("modern/colors{$rtlsuff}.css", __FILE__), array('#009688', '#ffc107', '#212121', '#00796b'));
wp_admin_css_color('elegance', __('Elegance', 'wpacs-admin-schemes'), plugins_url("elegance/colors{$rtlsuff}.css", __FILE__), array('#568259', '#4a4238', '#00120b', '#3f6142'));
wp_admin_css_color('simplicity', __('Simplicity', 'wpacs-admin-schemes'), plugins_url("simplicity/colors{$rtlsuff}.css", __FILE__), array('#9e9e9e', '#cddc39', '#616161', '#98a80c'));
wp_admin_css_color('chocolate', __('Chocolate', 'wpacs-admin-schemes'), plugins_url("chocolate/colors{$rtlsuff}.css", __FILE__), array('#5d4037', '#795548', '#362620', '#422d26'));
}
开发者ID:JDarkGreen,项目名称:animes,代码行数:19,代码来源:wp-admin-color-schemes.php
示例11: makeHooks
/**
* Build admin hooks.
*
* @since 3.3.0
*/
public function makeHooks()
{
//Admin panel
if (!TTO_IS_ADMIN) {
return;
}
//i18n
$locale = apply_filters('theme_locale', get_locale(), TTO_I18N);
load_textdomain(TTO_I18N, TTO_PATH . '/languages/' . $locale . '.mo');
//Add custom CSS colors ~ Earth
wp_admin_css_color('teatocss-earth', TeaThemeOptions::__('Tea T.O. ~ Earth'), TTO_URI . '/assets/css/teato.admin.earth.css?ver=v' . TTO_VERSION_NUM, array('#222', '#303231', '#55bb3a', '#91d04d'));
//Add custom CSS colors ~ Ocean
wp_admin_css_color('teatocss-ocean', TeaThemeOptions::__('Tea T.O. ~ Ocean'), TTO_URI . '/assets/css/teato.admin.ocean.css?ver=v' . TTO_VERSION_NUM, array('#222', '#303231', '#3a80bb', '#4d9dd0'));
//Add custom CSS colors ~ Vulcan
wp_admin_css_color('teatocss-vulcan', TeaThemeOptions::__('Tea T.O. ~ Vulcan'), TTO_URI . '/assets/css/teato.admin.vulcan.css?ver=v' . TTO_VERSION_NUM, array('#222', '#303231', '#bb3a3a', '#d04d4d'));
//Add custom CSS colors ~ Wind
wp_admin_css_color('teatocss-wind', TeaThemeOptions::__('Tea T.O. ~ Wind'), TTO_URI . '/assets/css/teato.admin.wind.css?ver=v' . TTO_VERSION_NUM, array('#222', '#303231', '#69d2e7', '#a7dbd8'));
//Hooks
add_action('admin_menu', array(&$this, 'hookAssets'), 999);
//Get configs
$hooks = TeaThemeOptions::getConfigs('backendhooks');
$modules = TeaThemeOptions::getConfigs('modules');
if (isset($hooks['emojicons']) && $hooks['emojicons']) {
add_action('init', array(&$this, 'hookDisableWPEmojicons'));
}
if (isset($hooks['versioncheck']) && $hooks['versioncheck']) {
add_action('after_setup_theme', array(&$this, 'hookRemoveAdminWPVersionCheck'));
}
if (isset($hooks['baricons']) && $hooks['baricons']) {
add_action('wp_before_admin_bar_render', array(&$this, 'hookRemoveBarIcons'));
}
if (isset($hooks['menus']) && $hooks['menus']) {
add_action('admin_menu', array(&$this, 'hookRemoveMenus'));
}
if (isset($modules['sanitizedfilename']) && $modules['sanitizedfilename']) {
add_filter('sanitize_file_name', array(&$this, 'hookSanitizeFilename'), 10);
}
}
开发者ID:crewstyle,项目名称:TeaThemeOptions,代码行数:43,代码来源:BackendHook.php
示例12: colorScheme
/**
* Custom Admin Color Scheme
*/
public function colorScheme()
{
global $color_scheme;
global $base_plugin_directory;
wp_admin_css_color('custom-scheme', $color_scheme, $base_plugin_directory . '/assets/css/colors.css', array('#000000', '#e72234', '#ebecec', '#456a7f'));
}
开发者ID:austb25,项目名称:wp-base-theme,代码行数:9,代码来源:Dependencies.php
示例13: register_admin_style
/**
* Registers the bbPress admin color scheme
*
* Because wp-content can exist outside of the WordPress root there is no
* way to be certain what the relative path of the admin images is.
* We are including the two most common configurations here, just in case.
*
* @since bbPress (r2521)
*
* @uses wp_admin_css_color() To register the color scheme
*/
public function register_admin_style()
{
wp_admin_css_color('bbpress', __('Green', 'bbpress'), $this->styles_url . 'admin.css', array('#222222', '#006600', '#deece1', '#6eb469'));
}
开发者ID:rmccue,项目名称:bbPress,代码行数:15,代码来源:bbp-admin.php
示例14: register_admin_style
/**
* Registers the bbPress admin color scheme
*
* Because wp-content can exist outside of the WordPress root there is no
* way to be certain what the relative path of the admin images is.
* We are including the two most common configurations here, just in case.
*
* @since bbPress (r2521)
*
* @uses wp_admin_css_color() To register the color scheme
*/
public function register_admin_style()
{
// Updated admin color scheme CSS
if (function_exists('wp_enqueue_media')) {
$green_scheme = $this->styles_url . 'green.css';
} else {
$green_scheme = $this->styles_url . 'green-34.css';
}
// Register the green scheme
wp_admin_css_color('bbpress', esc_html_x('Green', 'admin color scheme', 'bbpress'), $green_scheme, array('#222222', '#006600', '#deece1', '#6eb469'));
}
开发者ID:hscale,项目名称:webento,代码行数:22,代码来源:admin.php
示例15: mp6_add_admin_colors
/**
* Add an admin color scheme.
*
* This helper function makes it easier to add color schemes to the admin by
* abstracting out the steps needed to add icon colors, customizer css, etc.
*
* @since 2.0
*
* @param string $slug The color scheme slug. Used to generate the stylesheet paths, if not overriden.
* @param array $args {
* An array of arguments.
* @type string 'label' The color scheme name, human-readable.
* Defaults to slug.
* @type array 'palette' An array of CSS color definitions which are used to give the user a feel for the theme.
* Default array().
* @type array 'icon' An array of colors used by svgpainter to generate the background, hover, and active
* icon colors for custom SVG icons.
* Default array('base' => '#eee', 'focus' => '#fff', 'current' => '#fff').
* @type array 'admin_path' Path to the admin stylesheet. Internally, MP6 uses the same file structure for
* all schemes, allowing us to define the path based on the scheme's slug.
* Default plugin_dir_path( __FILE__ ) . 'schemes/'. $args['slug'] .'/admin-colors.css'.
* @type array 'admin_url' URL to the admin stylesheet.
* Default plugins_url( "schemes/$slug/admin-colors.css", __FILE__ ).
* @type array 'customizer_path' Path to the customizer stylesheet. Internally, MP6 uses the same file structure for
* all schemes, allowing us to define the path based on the scheme's slug.
* Default 'schemes/'. $args['slug'] .'/customizer.css'.
* @type array 'customizer_url' URL to the customizer stylesheet.
* Default plugins_url( "schemes/$slug/customizer.css", __FILE__ ).
* }
* @return boolean True if the admin stylesheet was found & the new theme was added; false if there was no slug,
* or the stylesheet was not found.
*/
function mp6_add_admin_colors($slug, $args = array())
{
global $_wp_admin_css_colors;
$defaults = array('label' => $slug, 'palette' => array(), 'icon' => array('base' => '#eee', 'focus' => '#fff', 'current' => '#fff'), 'admin_path' => plugin_dir_path(__FILE__) . "schemes/{$slug}/admin-colors.css", 'admin_url' => plugins_url("schemes/{$slug}/admin-colors.css", __FILE__), 'customizer_path' => plugin_dir_path(__FILE__) . "schemes/{$slug}/customizer.css", 'customizer_url' => plugins_url("schemes/{$slug}/customizer.css", __FILE__));
$args = wp_parse_args($args, $defaults);
if (file_exists($args['admin_path'])) {
wp_admin_css_color($slug, $args['label'], $args['admin_url'], $args['palette']);
$_wp_admin_css_colors[$slug]->icon_colors = $args['icon'];
if (file_exists($args['customizer_path'])) {
$_wp_admin_css_colors[$slug]->customzier = $args['customizer_path'];
$_wp_admin_css_colors[$slug]->customzier_url = $args['customizer_url'];
}
return true;
}
return false;
}
开发者ID:briancompton,项目名称:knightsplaza,代码行数:48,代码来源:colors.php
示例16: register_admin_style
/**
* Registers the bbPress admin color scheme
*
* Because wp-content can exist outside of the WordPress root there is no
* way to be certain what the relative path of the admin images is.
* We are including the two most common configurations here, just in case.
*
* @since bbPress (r2521)
*
* @uses wp_admin_css_color() To register the color scheme
*/
public function register_admin_style()
{
// Normal wp-content dir
if (0 === $this->content_depth) {
$css_file = $this->styles_url . 'admin.css';
} elseif (1 === $this->content_depth) {
$css_file = $this->styles_url . 'admin-1.css';
} elseif (2 === $this->content_depth) {
$css_file = $this->styles_url . 'admin-2.css';
}
// Load the admin CSS styling
wp_admin_css_color('bbpress', __('Green', 'bbpress'), $css_file, array('#222222', '#006600', '#deece1', '#6eb469'));
}
开发者ID:hscale,项目名称:webento,代码行数:24,代码来源:bbp-admin.php
示例17: str_replace
$pathdata['path'] = str_replace($pathdata['subdir'], $subdir, $pathdata['path']);
$pathdata['url'] = str_replace($pathdata['subdir'], $subdir, $pathdata['url']);
$pathdata['subdir'] = str_replace($pathdata['subdir'], $subdir, $pathdata['subdir']);
do_action('download_monitor_dlm_upload_dir', $pathdata);
return $pathdata;
}
}
################################################################################
// REPLACE ADMIN URL
################################################################################
if (function_exists('admin_url')) {
wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
} else {
wp_admin_css_color('classic', __('Blue'), get_bloginfo('wpurl') . '/wp-admin/css/colors-classic.css', array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
wp_admin_css_color('fresh', __('Gray'), get_bloginfo('wpurl') . '/wp-admin/css/colors-fresh.css', array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));
}
wp_enqueue_script('common');
wp_enqueue_script('jquery-color');
@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
if (!current_user_can('upload_files') || !current_user_can('user_can_add_new_download')) {
wp_die(__('You do not have permission to upload files/downloads.'));
}
load_plugin_textdomain('wp-download_monitor', '/');
?>
<!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
do_action('admin_xml_ns');
?>
<?php
language_attributes();
开发者ID:nickpeirson,项目名称:download-monitor,代码行数:31,代码来源:uploader.php
示例18: _mw_adminimize_admin_styles
/**
* add new adminstyle to usersettings
* @param $file
*/
function _mw_adminimize_admin_styles($file)
{
global $wp_version;
$_mw_adminimize_path = WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)) . '/css/';
if (version_compare($wp_version, '3.0alpha', '>=')) {
// MW Adminimize Classic Tweak
$styleName = 'Adminimize:' . ' Tweak ' . __('Blue');
wp_admin_css_color('mw_classic_tweak', $styleName, $_mw_adminimize_path . 'mw_classic28_tweak.css', array('#073447', '#21759b', '#eaf3fa', '#bbd8e7'));
// MW Adminimize Fresh Tweak
$styleName = 'Adminimize:' . ' Tweak ' . __('Gray');
wp_admin_css_color('mw_fresh_tweak', $styleName, $_mw_adminimize_path . 'mw_fresh28_tweak.css', array('#464646', '#6d6d6d', '#f1f1f1', '#dfdfdf'));
}
if (version_compare($wp_version, '2.7alpha', '>=') && version_compare($wp_version, '3.0alpha', '<')) {
// MW Adminimize Classic
$styleName = 'Adminimize:' . ' ' . __('Blue');
wp_admin_css_color('mw_classic', $styleName, $_mw_adminimize_path . 'mw_classic27.css', array('#073447', '#21759b', '#eaf3fa', '#bbd8e7'));
// MW Adminimize Fresh
$styleName = 'Adminimize:' . ' ' . __('Gray');
wp_admin_css_color('mw_fresh', $styleName, $_mw_adminimize_path . 'mw_fresh27.css', array('#464646', '#6d6d6d', '#f1f1f1', '#dfdfdf'));
// MW Adminimize Classic Fixed
$styleName = 'Adminimize:' . ' Fixed ' . __('Blue');
wp_admin_css_color('mw_classic_fixed', $styleName, $_mw_adminimize_path . 'mw_classic28_fixed.css', array('#073447', '#21759b', '#eaf3fa', '#bbd8e7'));
// MW Adminimize Fresh Fixed
$styleName = 'Adminimize:' . ' Fixed ' . __('Gray');
wp_admin_css_color('mw_fresh_fixed', $styleName, $_mw_adminimize_path . 'mw_fresh28_fixed.css', array('#464646', '#6d6d6d', '#f1f1f1', '#dfdfdf'));
// MW Adminimize Classic Tweak
$styleName = 'Adminimize:' . ' Tweak ' . __('Blue');
wp_admin_css_color('mw_classic_tweak', $styleName, $_mw_adminimize_path . 'mw_classic28_tweak.css', array('#073447', '#21759b', '#eaf3fa', '#bbd8e7'));
// MW Adminimize Fresh Tweak
$styleName = 'Adminimize:' . ' Tweak ' . __('Gray');
wp_admin_css_color('mw_fresh_tweak', $styleName, $_mw_adminimize_path . 'mw_fresh28_tweak.css', array('#464646', '#6d6d6d', '#f1f1f1', '#dfdfdf'));
} elseif (version_compare($wp_version, '2.7alpha', '<')) {
// MW Adminimize Classic
$styleName = 'MW Adminimize:' . ' ' . __('Classic');
wp_admin_css_color('mw_classic', $styleName, $_mw_adminimize_path . 'mw_classic.css', array('#07273E', '#14568A', '#D54E21', '#2683AE'));
// MW Adminimize Fresh
$styleName = 'MW Adminimize:' . ' ' . __('Fresh');
wp_admin_css_color('mw_fresh', $styleName, $_mw_adminimize_path . 'mw_fresh.css', array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
// MW Adminimize WordPress 2.3
$styleName = 'MW Adminimize:' . ' ' . __('WordPress 2.3');
wp_admin_css_color('mw_wp23', $styleName, $_mw_adminimize_path . 'mw_wp23.css', array('#000000', '#14568A', '#448ABD', '#83B4D8'));
// MW Adminimize Colorblind
$styleName = 'MW Adminimize:' . ' ' . __('Maybe i\'m colorblind');
wp_admin_css_color('mw_colorblind', $styleName, $_mw_adminimize_path . 'mw_colorblind.css', array('#FF9419', '#F0720C', '#710001', '#550007', '#CF4529'));
// MW Adminimize Grey
$styleName = 'MW Adminimize:' . ' ' . __('Grey');
wp_admin_css_color('mw_grey', $styleName, $_mw_adminimize_path . 'mw_grey.css', array('#000000', '#787878', '#F0F0F0', '#D8D8D8', '#909090'));
}
/**
* style and changes for plugin Admin Drop Down Menu
* by Ozh
* http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
*/
if (function_exists('wp_ozh_adminmenu')) {
// MW Adminimize Classic include ozh adminmenu
$styleName = 'MW Adminimize inc. Admin Drop Down Menu' . ' ' . __('Classic');
wp_admin_css_color('mw_classic_ozh_am', $styleName, $_mw_adminimize_path . 'mw_classic_ozh_am.css', array('#07273E', '#14568A', '#D54E21', '#2683AE'));
// MW Adminimize Fresh include ozh adminmenu
$styleName = 'MW Adminimize inc. Admin Drop Down Menu' . ' ' . __('Fresh');
wp_admin_css_color('mw_fresh_ozh_am', $styleName, $_mw_adminimize_path . 'mw_fresh_ozh_am.css', array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
}
/**
* style and changes for plugin Lighter Menus
* by corpodibacco
* http://www.italyisfalling.com/lighter-menus
*/
if (function_exists('lm_build')) {
// MW Adminimize Classic include Lighter Menus
$styleName = 'MW Adminimize inc. Lighter Menus' . ' ' . __('Classic');
wp_admin_css_color('mw_classic_lm', $styleName, $_mw_adminimize_path . 'mw_classic_lm.css', array('#07273E', '#14568A', '#D54E21', '#2683AE'));
// MW Adminimize Fresh include Lighter Menus
$styleName = 'MW Adminimize inc. Lighter Menus' . ' ' . __('Fresh');
wp_admin_css_color('mw_fresh_lm', $styleName, $_mw_adminimize_path . 'mw_fresh_lm.css', array('#464646', '#CEE1EF', '#D54E21', '#2683AE'));
}
}
开发者ID:ahsaeldin,项目名称:projects,代码行数:79,代码来源:adminimize.php
示例19: add_colors
/**
* Register color schemes.
*/
function add_colors()
{
wp_admin_css_color('blacky_wood', __('Blood Moon Night', 'admin_schemes'), plugins_url("blood-moon-night/blacky-wood.css", __FILE__), array('#000', '#9C684F', '#BEBEBE', '#3C3C3C'), array('base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff'));
}
开发者ID:Alex-Space,项目名称:spl-blood-moon-night,代码行数:7,代码来源:spl-blood-moon-night-theme.php
示例20: register_admin_style
/**
* Registers the bbPress admin color scheme
*
* Because wp-content can exist outside of the WordPress root there is no
* way to be certain what the relative path of the admin images is.
* We are including the two most common configurations here, just in case.
*
* @since bbPress (r2521)
*
* @uses wp_admin_css_color() To register the color scheme
*/
public function register_admin_style()
{
// RTL and/or minified
$suffix = is_rtl() ? '-rtl' : '';
//$suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
// Mint
wp_admin_css_color('bbp-mint', esc_html_x('Mint', 'admin color scheme', 'bbpress'), $this->styles_url . 'mint' . $suffix . '.css', array('#4f6d59', '#33834e', '#5FB37C', '#81c498'), array('base' => '#f1f3f2', 'focus' => '#fff', 'current' => '#fff'));
// Evergreen
wp_admin_css_color('bbp-evergreen', esc_html_x('Evergreen', 'admin color scheme', 'bbpress'), $this->styles_url . 'evergreen' . $suffix . '.css', array('#324d3a', '#446950', '#56b274', '#324d3a'), array('base' => '#f1f3f2', 'focus' => '#fff', 'current' => '#fff'));
// Bail if already using the fresh color scheme
if ('fresh' === get_user_option('admin_color')) {
return;
}
// Force 'colors-fresh' dependency
global $wp_styles;
$wp_styles->registered['colors']->deps[] = 'colors-fresh';
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:28,代码来源:admin.php
注:本文中的wp_admin_css_color函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论