Source Code Documentation


s2member\includes\classes\css-js.inc.php


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

s2member\includes\classes\css-js.inc.php

Source Code Documentation