Example #1
0
/**
 * Loads the admin stylesheet for the required pages based off the $hook_suffix parameter.
 *
 * @since 0.2.0
 * @param string $hook_suffix The hook for the current page in the admin.
 */
function members_admin_enqueue_style($hook_suffix)
{
    $pages = array('users_page_roles', 'users_page_role-new', 'settings_page_members-settings');
    if (in_array($hook_suffix, $pages)) {
        nxt_enqueue_style('members-admin', trailingslashit(MEMBERS_URI) . 'css/admin.css', false, '20110525', 'screen');
    }
}
Example #2
0
 /**
  * Set up the enqueue for the CSS & JavaScript files.
  *
  * @since 3.0.0
  */
 function admin_load()
 {
     get_current_screen()->add_help_tab(array('id' => 'overview', 'title' => __('Overview'), 'content' => '<p>' . __('You can customize the look of your site without touching any of your theme&#8217;s code by using a custom background. Your background can be an image or a color.') . '</p>' . '<p>' . __('To use a background image, simply upload it, then choose your display options below. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.') . '</p>' . '<p>' . __('You can also choose a background color. If you know the hexadecimal code for the color you want, enter it in the Background Color field. If not, click on the Select a Color link, and a color picker will allow you to choose the exact shade you want.') . '</p>' . '<p>' . __('Don&#8217;t forget to click on the Save Changes button when you are finished.') . '</p>'));
     get_current_screen()->set_help_sidebar('<p><strong>' . __('For more information:') . '</strong></p>' . '<p>' . __('<a href="http://codex.nxtclass.org/Appearance_Background_Screen" target="_blank">Documentation on Custom Background</a>') . '</p>' . '<p>' . __('<a href="http://nxtclass.org/support/" target="_blank">Support Forums</a>') . '</p>');
     nxt_enqueue_script('custom-background');
     nxt_enqueue_style('farbtastic');
 }
 public function initialize()
 {
     $this->user = new stdClass();
     if (is_user_logged_in()) {
         /* Populate settings we need for the menu based on the current user. */
         $this->user->blogs = get_blogs_of_user(get_current_user_id());
         if (is_multisite()) {
             $this->user->active_blog = get_active_blog_for_user(get_current_user_id());
             $this->user->domain = empty($this->user->active_blog) ? user_admin_url() : trailingslashit(get_home_url($this->user->active_blog->blog_id));
             $this->user->account_domain = $this->user->domain;
         } else {
             $this->user->active_blog = $this->user->blogs[get_current_blog_id()];
             $this->user->domain = trailingslashit(home_url());
             $this->user->account_domain = $this->user->domain;
         }
     }
     add_action('nxt_head', 'nxt_admin_bar_header');
     add_action('admin_head', 'nxt_admin_bar_header');
     if (current_theme_supports('admin-bar')) {
         $admin_bar_args = get_theme_support('admin-bar');
         // add_theme_support( 'admin-bar', array( 'callback' => '__return_false') );
         $header_callback = $admin_bar_args[0]['callback'];
     }
     if (empty($header_callback)) {
         $header_callback = '_admin_bar_bump_cb';
     }
     add_action('nxt_head', $header_callback);
     nxt_enqueue_script('admin-bar');
     nxt_enqueue_style('admin-bar');
     do_action('admin_bar_init');
 }
Example #4
0
 /**
  */
 public function init_styles()
 {
     parent::init_styles();
     if (is_admin()) {
         // need image editor styles
         nxt_enqueue_style('imgareaselect');
     }
 }
Example #5
0
 function woothemes_add_css()
 {
     nxt_register_style('prettyPhoto', get_template_directory_uri() . '/includes/css/prettyPhoto.css');
     if (is_page_template('template-portfolio.php') || is_front_page() || is_singular() && get_post_type() == 'portfolio' || is_tax('portfolio-gallery')) {
         nxt_enqueue_style('prettyPhoto');
     }
     do_action('woothemes_add_css');
 }
function xprofile_add_admin_css()
{
    if (!empty($_GET['page']) && strpos($_GET['page'], 'bp-profile-setup') !== false) {
        if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
            nxt_enqueue_style('xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.dev.css', array(), '20110723');
        } else {
            nxt_enqueue_style('xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css', array(), '20110723');
        }
    }
}
function messages_add_autocomplete_css()
{
    global $bp;
    if (bp_is_messages_component() && bp_is_current_action('compose')) {
        if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
            nxt_enqueue_style('bp-messages-autocomplete', BP_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.dev.css', array(), '20110723');
        } else {
            nxt_enqueue_style('bp-messages-autocomplete', BP_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.css', array(), '20110723');
        }
        nxt_print_styles();
    }
}
 function init()
 {
     global $pagenow;
     if ((current_user_can('edit_posts') || current_user_can('edit_pages')) && get_user_option('rich_editing') == 'true' && in_array($pagenow, array('post.php', 'post-new.php', 'page-new.php', 'page.php'))) {
         // Add the tinyMCE buttons and plugins.
         add_filter('mce_buttons', array(&$this, 'filter_mce_buttons'));
         add_filter('mce_external_plugins', array(&$this, 'filter_mce_external_plugins'));
         // Register the colourpicker JavaScript.
         nxt_register_script('woo-colourpicker', $this->framework_url() . 'js/colorpicker.js', array('jquery'), '3.6', true);
         // Loaded into the footer.
         nxt_enqueue_script('woo-colourpicker');
         // Register the colourpicker CSS.
         nxt_register_style('woo-colourpicker', $this->framework_url() . 'css/colorpicker.css');
         nxt_enqueue_style('woo-colourpicker');
         // Register the custom CSS styles.
         nxt_register_style('woo-shortcode-generator', $this->framework_url() . 'css/shortcode-generator.css');
         nxt_enqueue_style('woo-shortcode-generator');
     }
     // End IF Statement
 }
Example #9
0
/**
 * Enqueues CSS files.
 *
 * @since 2.0
 * @global object $bp BuddyPress global settings
 */
function dpa_add_css()
{
    global $bp;
    if (is_active_widget(false, false, 'achievements-sitewide') || is_active_widget(false, false, 'achievements-available-achievements') || is_active_widget(false, false, 'achievements-member-achievements') || is_active_widget(false, false, 'achievements-featured-achievement') || is_active_widget(false, false, 'achievements-member-achievements-available') || is_active_widget(false, false, 'achievements-member-points')) {
        nxt_enqueue_style('achievements-widget', plugins_url('/css/widget.css', __FILE__), array(), ACHIEVEMENTS_VERSION);
    }
    if (!bp_is_current_component($bp->achievements->slug)) {
        if (bp_is_active('activity') && bp_is_activity_component() && !bp_is_blog_page() || bp_is_component_front_page('activity') && bp_is_front_page()) {
            nxt_enqueue_style('achievements-directory', plugins_url('/css/directory.css', __FILE__), array(), ACHIEVEMENTS_VERSION);
        }
        nxt_print_styles();
        return;
    }
    if (DPA_SLUG_CREATE == $bp->current_action && dpa_permission_can_user_create() || DPA_SLUG_ACHIEVEMENT_EDIT == $bp->current_action && dpa_permission_can_user_edit() || DPA_SLUG_ACHIEVEMENT_CHANGE_PICTURE == $bp->current_action && dpa_permission_can_user_change_picture() || DPA_SLUG_ACHIEVEMENT_GRANT == $bp->current_action && dpa_permission_can_user_grant()) {
        nxt_enqueue_style('achievements-admin', plugins_url('/css/admin.css', __FILE__), array(), ACHIEVEMENTS_VERSION);
    }
    if ($bp->is_single_item) {
        nxt_enqueue_style('achievements-detail', plugins_url('/css/detail.css', __FILE__), array(), ACHIEVEMENTS_VERSION);
    } else {
        nxt_enqueue_style('achievements-directory', plugins_url('/css/directory.css', __FILE__), array(), ACHIEVEMENTS_VERSION);
    }
    nxt_print_styles();
}
/**
 * Enqueues BuddyPress basic styles
 *
 * @since 1.2
 */
function bp_tpack_enqueue_styles()
{
    // Do not enqueue CSS if it's disabled
    if (get_option('bp_tpack_disable_css')) {
        return;
    }
    // BP 1.5+
    if (version_compare(BP_VERSION, '1.3', '>')) {
        $stylesheet = 'bp.css';
        // Bump this when changes are made to bust cache
        $version = '20110918';
    } else {
        $stylesheet = 'bp-backpat.css';
        $version = '20110729';
    }
    // Add the wireframe BP page styles
    nxt_enqueue_style('bp', plugins_url('/bp-template-pack/') . $stylesheet, array(), $version);
    // Enqueue RTL styles for BP 1.5+
    if (version_compare(BP_VERSION, '1.3', '>') && is_rtl()) {
        nxt_enqueue_style('bp-rtl', plugins_url('/bp-template-pack/') . 'bp-rtl.css', array('bp'), $version);
    }
}
 /**
  * Handle enqueing styles when specific conditions are met
  *
  * @internal
  */
 public function handle_style_conditions()
 {
     // loop through styles and check if conditions are set
     foreach ($this->styles as $handle => $config_map) {
         // and conditions in stack?
         if (count($config_map->item_at(self::TRIGGER_CONDS))) {
             // check if ANY of the conditions eval to true
             foreach ($config_map->item_at(self::TRIGGER_CONDS) as $callback) {
                 // try to exec the callback
                 if (function_exists($callback) && call_user_func_array($callback, $config_map->item_at(self::TRIGGER_PARAMS)->to_array()) == true) {
                     // callback exists and evaled to true, enqueue it
                     nxt_enqueue_style($handle);
                     // done with this inner (conditions) loop
                     break;
                 }
             }
         }
     }
 }
/**
 * Loads admin panel styles and scripts.
 *
 * @package BuddyPress Core
 * @since {@internal Unknown}}
 */
function bp_core_add_admin_menu_styles()
{
    if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        nxt_enqueue_style('bp-admin-css', apply_filters('bp_core_admin_css', BP_PLUGIN_URL . '/bp-core/css/admin.dev.css'), array(), '20110723');
    } else {
        nxt_enqueue_style('bp-admin-css', apply_filters('bp_core_admin_css', BP_PLUGIN_URL . '/bp-core/css/admin.css'), array(), '20110723');
    }
    nxt_enqueue_script('thickbox');
    nxt_enqueue_style('thickbox');
}
Example #13
0
/**
 * {@internal Missing Short Description}}
 *
 * Wrap iframe content (produced by $content_func) in a doctype, html head/body
 * etc any additional function args will be passed to content_func.
 *
 * @since 2.5.0
 *
 * @param unknown_type $content_func
 */
function nxt_iframe($content_func)
{
    _nxt_admin_html_begin();
    ?>
<title><?php 
    bloginfo('name');
    ?>
 &rsaquo; <?php 
    _e('Uploads');
    ?>
 &#8212; <?php 
    _e('NXTClass');
    ?>
</title>
<?php 
    nxt_enqueue_style('colors');
    // Check callback name for 'media'
    if (is_array($content_func) && !empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media') || !is_array($content_func) && 0 === strpos($content_func, 'media')) {
        nxt_enqueue_style('media');
    }
    nxt_enqueue_style('ie');
    ?>
<script type="text/javascript">
//<![CDATA[
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof nxtOnload!='function'){nxtOnload=func;}else{var oldonload=nxtOnload;nxtOnload=function(){oldonload();func();}}};
var userSettings = {'url':'<?php 
    echo SITECOOKIEPATH;
    ?>
','uid':'<?php 
    if (!isset($current_user)) {
        $current_user = nxt_get_current_user();
    }
    echo $current_user->ID;
    ?>
','time':'<?php 
    echo time();
    ?>
'};
var ajaxurl = '<?php 
    echo admin_url('admin-ajax.php');
    ?>
', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php 
    echo (int) is_rtl();
    ?>
;
//]]>
</script>
<?php 
    do_action('admin_enqueue_scripts', 'media-upload-popup');
    do_action('admin_print_styles-media-upload-popup');
    do_action('admin_print_styles');
    do_action('admin_print_scripts-media-upload-popup');
    do_action('admin_print_scripts');
    do_action('admin_head-media-upload-popup');
    do_action('admin_head');
    if (is_string($content_func)) {
        do_action("admin_head_{$content_func}");
    }
    ?>
</head>
<body<?php 
    if (isset($GLOBALS['body_id'])) {
        echo ' id="' . $GLOBALS['body_id'] . '"';
    }
    ?>
 class="no-js">
<script type="text/javascript">
document.body.className = document.body.className.replace('no-js', 'js');
</script>
<?php 
    $args = func_get_args();
    $args = array_slice($args, 1);
    call_user_func_array($content_func, $args);
    do_action('admin_print_footer_scripts');
    ?>
<script type="text/javascript">if(typeof nxtOnload=='function')nxtOnload();</script>
</body>
</html>
<?php 
}
 /**
  * load_editor()
  *
  * Loads editor scripts and styles
  */
 function load_editor()
 {
     do_action('courseware_editor');
     nxt_enqueue_script('assignments');
     nxt_enqueue_style('datetimepicker');
 }
Example #15
0
 /**
  * Enqueue theme CSS safely
  *
  * For maximum flexibility, BuddyPress Default's stylesheet is enqueued, using nxt_enqueue_style().
  * If you're building a child theme of bp-default, your stylesheet will also be enqueued,
  * automatically, as dependent on bp-default's CSS. For this reason, bp-default child themes are
  * not recommended to include bp-default's stylesheet using @import.
  *
  * If you would prefer to use @import, or would like to change the way in which stylesheets are
  * enqueued, you can override bp_dtheme_enqueue_styles() in your theme's functions.php file.
  *
  * @see http://codex.nxtclass.org/Function_Reference/nxt_enqueue_style
  * @see http://codex.buddypress.org/releases/1-5-developer-and-designer-information/
  * @since 1.5
  */
 function bp_dtheme_enqueue_styles()
 {
     // Bump this when changes are made to bust cache
     $version = '20120110';
     // Register our main stylesheet
     nxt_register_style('bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version);
     // If the current theme is a child of bp-default, enqueue its stylesheet
     if (is_child_theme() && 'bp-default' == get_template()) {
         nxt_enqueue_style(get_stylesheet(), get_stylesheet_uri(), array('bp-default-main'), $version);
     }
     // Enqueue the main stylesheet
     nxt_enqueue_style('bp-default-main');
     // Default CSS RTL
     if (is_rtl()) {
         nxt_enqueue_style('bp-default-main-rtl', get_template_directory_uri() . '/_inc/css/default-rtl.css', array('bp-default-main'), $version);
     }
     // Responsive layout
     if (current_theme_supports('bp-default-responsive')) {
         nxt_enqueue_style('bp-default-responsive', get_template_directory_uri() . '/_inc/css/responsive.css', array('bp-default-main'), $version);
         if (is_rtl()) {
             nxt_enqueue_style('bp-default-responsive-rtl', get_template_directory_uri() . '/_inc/css/responsive-rtl.css', array('bp-default-responsive'), $version);
         }
     }
 }
/**
 * Handle the BuddyBar CSS
 */
function bp_core_load_buddybar_css()
{
    if (bp_use_nxt_admin_bar() || (int) bp_get_option('hide-loggedout-adminbar') && !is_user_logged_in() || defined('BP_DISABLE_ADMIN_BAR') && BP_DISABLE_ADMIN_BAR) {
        return;
    }
    if (file_exists(get_stylesheet_directory() . '/_inc/css/adminbar.css')) {
        // Backwards compatibility
        $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css';
    } elseif (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/buddybar.dev.css';
    } else {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/buddybar.css';
    }
    nxt_enqueue_style('bp-admin-bar', apply_filters('bp_core_admin_bar_css', $stylesheet), array(), '20110723');
    if (!is_rtl()) {
        return;
    }
    if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/buddybar-rtl.dev.css';
    } else {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/buddybar-rtl.css';
    }
    nxt_enqueue_style('bp-admin-bar-rtl', apply_filters('bp_core_buddybar_rtl_css', $stylesheet), array('bp-admin-bar'), '20110723');
}
Example #17
0
 public static function enqueue_scripts()
 {
     nxt_enqueue_script('word-count');
     if (self::$has_tinymce) {
         nxt_enqueue_script('editor');
     }
     if (self::$has_quicktags) {
         nxt_enqueue_script('quicktags');
     }
     if (in_array('nxtlink', self::$plugins, true) || in_array('link', self::$qt_buttons, true)) {
         nxt_enqueue_script('nxtlink');
         nxt_enqueue_script('nxtdialogs-popup');
         nxt_enqueue_style('nxt-jquery-ui-dialog');
     }
     if (in_array('nxtfullscreen', self::$plugins, true) || in_array('fullscreen', self::$qt_buttons, true)) {
         nxt_enqueue_script('nxt-fullscreen');
     }
     if (self::$has_medialib) {
         add_thickbox();
         nxt_enqueue_script('media-upload');
     }
 }
Example #18
0
if ($admin_title == $title) {
    $admin_title = sprintf(__('%1$s &#8212; NXTClass'), $title);
} else {
    $admin_title = sprintf(__('%1$s &lsaquo; %2$s &#8212; NXTClass'), $title, $admin_title);
}
$admin_title = apply_filters('admin_title', $admin_title, $title);
nxt_user_settings();
_nxt_admin_html_begin();
?>
<title><?php 
echo $admin_title;
?>
</title>
<?php 
nxt_enqueue_style('colors');
nxt_enqueue_style('ie');
nxt_enqueue_script('utils');
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof nxtOnload!='function'){nxtOnload=func;}else{var oldonload=nxtOnload;nxtOnload=function(){oldonload();func();}}};
var userSettings = {
		'url': '<?php 
echo SITECOOKIEPATH;
?>
',
		'uid': '<?php 
if (!isset($current_user)) {
    $current_user = nxt_get_current_user();
}
echo $current_user->ID;
function flipping_team_styles()
{
    nxt_enqueue_style('flipping_team', plugins_url('/flipping-team.css', __FILE__));
}
function flipping_team_admin_styles() {
	nxt_enqueue_style( 'thickbox' ); // For media library
	nxt_enqueue_style( 'flipping-team', plugins_url( '/flipping-team.css', __FILE__ ) );

}
 /**
  * Dashboard setup action
  *
  * @return void
  */
 function nxt_dashboard_setup()
 {
     nxt_enqueue_style('w3tc-widget');
     nxt_enqueue_script('w3tc-metadata');
     nxt_enqueue_script('w3tc-widget');
     if ($this->_config->get_boolean('widget.latest.enabled')) {
         nxt_add_dashboard_widget('w3tc_latest', 'The Latest from W3 EDGE', array(&$this, 'widget_latest'), array(&$this, 'widget_latest_control'));
     }
     if ($this->_config->get_boolean('widget.pagespeed.enabled')) {
         nxt_add_dashboard_widget('w3tc_pagespeed', 'W3 Total Cache: Google Page Speed Report', array(&$this, 'widget_pagespeed'), array(&$this, 'widget_pagespeed_control'));
     }
 }
 function woo_framework_load_css()
 {
     nxt_register_style('woo-admin-interface', get_template_directory_uri() . '/functions/admin-style.css', '', '5.3.10');
     nxt_register_style('jquery-ui-datepicker', get_template_directory_uri() . '/functions/css/jquery-ui-datepicker.css');
     nxt_register_style('colourpicker', get_template_directory_uri() . '/functions/css/colorpicker.css');
     nxt_enqueue_style('woo-admin-interface');
     nxt_enqueue_style('jquery-ui-datepicker');
     nxt_enqueue_style('colourpicker');
 }
/**
 * Handle the Admin Bar CSS
 */
function bp_core_load_admin_bar_css()
{
    if (!bp_use_nxt_admin_bar()) {
        return;
    }
    // Admin bar styles
    if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/admin-bar.dev.css';
    } else {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/admin-bar.css';
    }
    nxt_enqueue_style('bp-admin-bar', apply_filters('bp_core_admin_bar_css', $stylesheet), array('admin-bar'), '20110723');
    if (!is_rtl()) {
        return;
    }
    if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/admin-bar-rtl.dev.css';
    } else {
        $stylesheet = BP_PLUGIN_URL . '/bp-core/css/admin-bar-rtl.css';
    }
    nxt_enqueue_style('bp-admin-bar-rtl', apply_filters('bp_core_admin_bar_rtl_css', $stylesheet), array('bp-admin-bar'), '20110723');
}
Example #24
0
 }
 $att_id = (int) $_GET['attachment_id'];
 if (!current_user_can('edit_post', $att_id)) {
     nxt_die(__('You are not allowed to edit this attachment.'));
 }
 $att = get_post($att_id);
 if (empty($att->ID)) {
     nxt_die(__('You attempted to edit an attachment that doesn&#8217;t exist. Perhaps it was deleted?'));
 }
 if ($att->post_status == 'trash') {
     nxt_die(__('You can&#8217;t edit this attachment because it is in the Trash. Please move it out of the Trash and try again.'));
 }
 add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
 nxt_enqueue_script('nxt-ajax-response');
 nxt_enqueue_script('image-edit');
 nxt_enqueue_style('imgareaselect');
 get_current_screen()->add_help_tab(array('id' => 'overview', 'title' => __('Overview'), 'content' => '<p>' . __('This screen allows you to edit five fields for metadata in a file within the media library.') . '</p>' . '<p>' . __('For images only, you can click on Edit Image under the thumbnail to expand out an inline image editor with icons for cropping, rotating, or flipping the image as well as for undoing and redoing. The boxes on the right give you more options for scaling the image, for cropping it, and for cropping the thumbnail in a different way than you crop the original image. You can click on Help in those boxes to get more information.') . '</p>' . '<p>' . __('Note that you crop the image by clicking on it (the Crop icon is already selected) and dragging the cropping frame to select the desired part. Then click Save to retain the cropping.') . '</p>' . '<p>' . __('Remember to click Update Media to save metadata entered or changed.') . '</p>'));
 get_current_screen()->set_help_sidebar('<p><strong>' . __('For more information:') . '</strong></p>' . '<p>' . __('<a href="http://codex.nxtclass.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' . '<p>' . __('<a href="http://nxtclass.org/support/" target="_blank">Support Forums</a>') . '</p>');
 require './admin-header.php';
 $parent_file = 'upload.php';
 $message = '';
 $class = '';
 if (isset($_GET['message'])) {
     switch ($_GET['message']) {
         case 'updated':
             $message = __('Media attachment updated.');
             $class = 'updated';
             break;
     }
 }
 if ($message) {
 public function onnxtPrintStyles()
 {
     if (self::getOption('prettify') == 'Y') {
         $sUrlPrefix = self::$PLUGIN_URL . 'resources/misc/js/google-code-prettify/';
         nxt_register_style('prettify_style', $sUrlPrefix . 'prettify.css');
         nxt_enqueue_style('prettify_style');
     }
 }
function optionsframework_load_styles()
{
    nxt_enqueue_style('admin-style', OPTIONS_FRAMEWORK_DIRECTORY . 'css/admin-style.css');
    nxt_enqueue_style('color-picker', OPTIONS_FRAMEWORK_DIRECTORY . 'css/colorpicker.css');
}
function bp_core_update_add_admin_menu_styles()
{
    if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
        nxt_enqueue_style('bp-admin-css', apply_filters('bp_core_admin_css', plugins_url('/buddypress') . '/bp-core/css/admin.dev.css'), array(), '20110723');
        nxt_enqueue_script('bp-update-js', apply_filters('bp_core_update_js', plugins_url('/buddypress') . '/bp-core/js/update.dev.js'), array('jquery'), '20110723');
    } else {
        nxt_enqueue_style('bp-admin-css', apply_filters('bp_core_admin_css', plugins_url('/buddypress') . '/bp-core/css/admin.css'), array(), '20110723');
        nxt_enqueue_script('bp-update-js', apply_filters('bp_core_update_js', plugins_url('/buddypress') . '/bp-core/js/update.js'), array('jquery'), '20110723');
    }
    nxt_enqueue_script('thickbox');
    nxt_enqueue_style('thickbox');
    ?>

	<style type="text/css">
		/* Wizard Icon */
		ul#adminmenu li.toplevel_page_bp-wizard .nxt-menu-image a img { display: none; }
		ul#adminmenu li.toplevel_page_bp-wizard .nxt-menu-image a { background-image: url( <?php 
    echo plugins_url('buddypress/bp-core/images/admin_menu_icon.png');
    ?>
 ) !important; background-position: -1px -32px; }
		ul#adminmenu li.toplevel_page_bp-wizard:hover .nxt-menu-image a,
		ul#adminmenu li.toplevel_page_bp-wizard.nxt-has-current-submenu .nxt-menu-image a {
			background-position: -1px 0;
		}

		/* Settings Icon */
		ul#adminmenu li.toplevel_page_bp-general-settings .nxt-menu-image a img { display: none; }
		ul#adminmenu li.toplevel_page_bp-general-settings .nxt-menu-image a { background-image: url( <?php 
    echo plugins_url('buddypress/bp-core/images/admin_menu_icon.png');
    ?>
 ) !important; background-position: -1px -32px; }
		ul#adminmenu li.toplevel_page_bp-general-settings:hover .nxt-menu-image a,
		ul#adminmenu li.toplevel_page_bp-general-settings.nxt-has-current-submenu .nxt-menu-image a {
			background-position: -1px 0;
		}
	</style>

<?php 
}
Example #28
0
 function styles()
 {
     nxt_enqueue_style('nxtclass-wiki', PLUGIN_URL . "/" . nxtWIKI_DIR_NAME . "/static/style.css");
     if (is_rtl()) {
         nxt_enqueue_style('nxtclass-wiki-rtl', PLUGIN_URL . "/" . nxtWIKI_DIR_NAME . "/static/rtl.css");
     }
 }
Example #29
0
/**
 * woo_custom_enqueue_css function.
 * 
 * @description Enqueue CSS files used with the custom fields.
 * @access public
 * @author Matty
 * @since 4.8.0
 * @return void
 */
function woo_custom_enqueue_css()
{
    global $pagenow;
    nxt_register_style('woo-custom-fields', get_template_directory_uri() . '/functions/css/woo-custom-fields.css');
    nxt_register_style('jquery-ui-datepicker', get_template_directory_uri() . '/functions/css/jquery-ui-datepicker.css');
    if (in_array($pagenow, array('post.php', 'post-new.php', 'page-new.php', 'page.php'))) {
        nxt_enqueue_style('woo-custom-fields');
        nxt_enqueue_style('jquery-ui-datepicker');
    }
}
Example #30
0
<?php

/**
 * Update Core administration panel.
 *
 * @package NXTClass
 * @subpackage Administration
 */
/** NXTClass Administration Bootstrap */
require_once './admin.php';
nxt_enqueue_style('plugin-install');
nxt_enqueue_script('plugin-install');
add_thickbox();
if (is_multisite() && !is_network_admin()) {
    nxt_redirect(network_admin_url('update-core.php'));
    exit;
}
if (!current_user_can('update_core')) {
    nxt_die(__('You do not have sufficient permissions to update this site.'));
}
function list_core_update($update)
{
    global $nxt_local_package, $nxtdb;
    static $first_pass = true;
    $version_string = 'en_US' == $update->locale && 'en_US' == get_locale() ? $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
    $current = false;
    if (!isset($update->response) || 'latest' == $update->response) {
        $current = true;
    }
    $submit = __('Update Now');
    $form_action = 'update-core.php?action=do-core-upgrade';