/** * Handle enqueing internal styles * * @internal */ public function handle_style_internal() { // are we at the admin dashboard? if (is_admin()) { // yes, enqueue admin styles if (nxt_style_is('@:dynamic-admin', 'registered')) { nxt_enqueue_style('@:dynamic-admin'); } } else { // enq active theme stylesheet nxt_enqueue_style('@:style'); // enqueue public styles if (nxt_style_is('@:dynamic', 'registered')) { nxt_enqueue_style('@:dynamic'); } } }
/** * Include OpenID stylesheet. * * "Intelligently" decides whether to enqueue or print the CSS file, based on whether * the 'nxt_print_styles' * action has been run. (This logic taken from the core nxt_admin_css function) **/ function openid_style() { if (!nxt_style_is('openid', 'registered')) { nxt_register_style('openid', plugins_url('openid/f/openid.css'), array(), OPENID_PLUGIN_REVISION); } if (did_action('nxt_print_styles')) { nxt_print_styles('openid'); } else { nxt_enqueue_style('openid'); } }