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

sc-if-conds.inc.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 260917, at src/includes/classes/sc-if-conds.inc.php

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