Source Code Documentation


s2member\includes\codes.inc.php


  1. <?php
  2. /**
  3. * Shortcodes for the s2Member plugin.
  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
  15. * @since 3.0
  16. */
  17. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  18. exit ("Do not access this file directly.");
  19. /*
  20. Add WordPress® Editor Shortcodes.
  21. */
  22. add_shortcode ("s2Key", "c_ws_plugin__s2member_sc_keys::sc_get_key");
  23. add_shortcode ("s2Get", "c_ws_plugin__s2member_sc_gets::sc_get_details");
  24. add_shortcode ("s2File", "c_ws_plugin__s2member_sc_files::sc_get_file");
  25. add_shortcode ("s2Stream", "c_ws_plugin__s2member_sc_files::sc_get_stream");
  26.  
  27. add_shortcode ("s2If", "c_ws_plugin__s2member_sc_if_conds::sc_if_conditionals");
  28. add_shortcode ("_s2If", "c_ws_plugin__s2member_sc_if_conds::sc_if_conditionals");
  29. add_shortcode ("__s2If", "c_ws_plugin__s2member_sc_if_conds::sc_if_conditionals");
  30. add_shortcode ("___s2If", "c_ws_plugin__s2member_sc_if_conds::sc_if_conditionals");
  31.  
  32. add_shortcode ("s2Member-Profile", "c_ws_plugin__s2member_sc_profile::sc_profile");
  33. add_shortcode ("s2Member-PayPal-Button", "c_ws_plugin__s2member_sc_paypal_button::sc_paypal_button");
  34. add_shortcode ("s2Member-Security-Badge", "c_ws_plugin__s2member_sc_s_badge::sc_s_badge");
  35. ?>

s2member\includes\codes.inc.php

Source Code Documentation