| 1 |
<?php |
| 2 |
// @codingStandardsIgnoreFile |
| 3 |
/** |
| 4 |
* CSS/JS loading handlers for s2Member. |
| 5 |
* |
| 6 |
* Copyright: © 2009-2011 |
| 7 |
* {@link http://websharks-inc.com/ WebSharks, Inc.} |
| 8 |
* (coded in the USA) |
| 9 |
* |
| 10 |
* Released under the terms of the GNU General Public License. |
| 11 |
* You should have received a copy of the GNU General Public License, |
| 12 |
* along with this software. In the main directory, see: /licensing/ |
| 13 |
* If not, see: {@link http://www.gnu.org/licenses/}. |
| 14 |
* |
| 15 |
* @package s2Member\CSS_JS |
| 16 |
* @since 3.5 |
| 17 |
*/ |
| 18 |
if(!defined('WPINC')) // MUST have WordPress. |
| 19 |
exit ("Do not access this file directly."); |
| 20 |
|
| 21 |
if(!class_exists("c_ws_plugin__s2member_css_js")) |
| 22 |
{ |
| 23 |
/** |
| 24 |
* CSS/JS loading handlers for s2Member. |
| 25 |
* |
| 26 |
* @package s2Member\CSS_JS |
| 27 |
* @since 3.5 |
| 28 |
*/ |
| 29 |
class c_ws_plugin__s2member_css_js |
| 30 |
{ |
| 31 |
/** |
| 32 |
* Outputs CSS for theme integration. |
| 33 |
* |
| 34 |
* @package s2Member\CSS_JS |
| 35 |
* @since 3.5 |
| 36 |
* |
| 37 |
* @attaches-to ``add_action("init");`` |
| 38 |
*/ |
| 39 |
public static function css() |
| 40 |
{ |
| 41 |
if(!empty($_GET["ws_plugin__s2member_css"])) |
| 42 |
c_ws_plugin__s2member_css_js_in::css(); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Outputs JS for theme integration. |
| 47 |
* |
| 48 |
* @package s2Member\CSS_JS |
| 49 |
* @since 3.5 |
| 50 |
* |
| 51 |
* @attaches-to ``add_action("init");`` |
| 52 |
*/ |
| 53 |
public static function js_w_globals() |
| 54 |
{ |
| 55 |
if(!empty($_GET["ws_plugin__s2member_js_w_globals"])) |
| 56 |
c_ws_plugin__s2member_css_js_in::js_w_globals(); |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
|