/** * Register CSS Styles * * Checks the styles option and hooks the required filter. * * @since 1.0 * @global $mashsb_options * @return void */ function mashsb_register_styles($hook) { if (!apply_filters('mashsb_register_styles', mashsbGetActiveStatus(), $hook)) { return; } global $mashsb_options; if (isset($mashsb_options['disable_styles'])) { return; } // Use minified libraries if Mashshare debug mode is turned off $suffix = mashsbIsDebugMode() ? '' : '.min'; $file = 'mashsb' . $suffix . '.css'; $url = MASHSB_PLUGIN_URL . 'assets/css/' . $file; wp_enqueue_style('mashsb-styles', $url, array(), MASHSB_VERSION); }
/** * Register Styles * * Checks the styles option and hooks the required filter. * * @since 1.0 * @global $mashsb_options * @return void */ function mashsb_register_styles($hook) { if (!apply_filters('mashsb_register_styles', mashsbGetActiveStatus(), $hook)) { return; } global $mashsb_options; if (isset($mashsb_options['disable_styles'])) { return; } // Use minified libraries if SCRIPT_DEBUG is turned off $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; $file = 'mashsb' . $suffix . '.css'; //$url = trailingslashit( plugins_url(). '/mashsharer/templates/' ) . $file; $url = MASHSB_PLUGIN_URL . 'templates/' . $file; wp_enqueue_style('mashsb-styles', $url, array(), MASHSB_VERSION); }