Source Code Documentation


s2member\includes\classes\sc-if-conds.inc.php


  1. <?php
  2. /**
  3. * Shortcode `[s2If /]`.
  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\s2If
  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_sc_if_conds"))
  21. {
  22. /**
  23. * Shortcode `[s2If /]`.
  24. *
  25. * @package s2Member\s2If
  26. * @since 3.5
  27. */
  28. class c_ws_plugin__s2member_sc_if_conds
  29. {
  30. /**
  31. * Handles the Shortcode for: `[s2If /]`.
  32. *
  33. * These Shortcodes are also safe to use on a Multisite Blog Farm.
  34. *
  35. * Is Multisite Networking enabled? Please keep the following in mind.
  36. * ``current_user_can()``, will ALWAYS return true for a Super Admin!
  37. * *(this can be confusing when testing conditionals)*.
  38. *
  39. * If you're running a Multisite Blog Farm, you can Filter this array:
  40. * `ws_plugin__s2member_sc_if_conditionals_blog_farm_safe`
  41. * ``$blog_farm_safe``
  42. *
  43. * @package s2Member\s2If
  44. * @since 3.5
  45. *
  46. * @attaches-to ``add_shortcode("s2If")`` + _s2If, __s2If, ___s2If for nesting.
  47. *
  48. * @param array $attr An array of Attributes.
  49. * @param str $content Content inside the Shortcode.
  50. * @param str $shortcode The actual Shortcode name itself.
  51. * @return inner Return-value of inner routine.
  52. */
  53. public static function sc_if_conditionals ($attr = FALSE, $content = FALSE, $shortcode = FALSE)
  54. {
  55. return c_ws_plugin__s2member_sc_if_conds_in::sc_if_conditionals ($attr, $content, $shortcode);
  56. }
  57. }
  58. }
  59. ?>

s2member\includes\classes\sc-if-conds.inc.php

Source Code Documentation