PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 110815
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v110815
260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 120219 All 188 releases
s2member / includes / classes / wp-footer.inc.php

wp-footer.inc.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 110815, at includes/classes/wp-footer.inc.php

60 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WordPress® footer code.
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\WP_Footer
15 * @since 110524RC
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_wp_footer"))
21 {
22 /**
23 * WordPress® footer code.
24 *
25 * @package s2Member\WP_Footer
26 * @since 110524RC
27 */
28 class c_ws_plugin__s2member_wp_footer
29 {
30 /**
31 * Generates footer code, when/if configured.
32 *
33 * @package s2Member\WP_Footer
34 * @since 110524RC
35 *
36 * @return null
37 */
38 public static function wp_footer_code ()
39 {
40 do_action ("ws_plugin__s2member_before_wp_footer_code", get_defined_vars ());
41 /**/
42 if (($code = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["wp_footer_code"]))
43 {
44 if (is_multisite () && c_ws_plugin__s2member_utils_conds::is_multisite_farm () && !is_main_site ())
45 {
46 echo do_shortcode ($code) . "\n"; /* No PHP here. */
47 }
48 else /* Otherwise, safe to allow PHP code. */
49 {
50 echo do_shortcode (c_ws_plugin__s2member_utilities::evl ($code));
51 }
52 }
53 /**/
54 do_action ("ws_plugin__s2member_after_wp_footer_code", get_defined_vars ());
55 /**/
56 return; /* Return for uniformity. */
57 }
58 }
59 }
60 ?>