Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:35-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13094 2011-12-20T09:50:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=57830#p57830 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:50 am


]]>
2011-12-07T01:03:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=55512#p55512 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: December 7, 2011, 1:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:03 am


]]>
2011-11-05T19:26:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=51886#p51886 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: November 5, 2011, 8:26 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:26 pm


]]>
2011-10-29T20:35:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=49981#p49981 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: October 29, 2011, 9:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:35 pm


]]>
2011-10-17T15:39:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=47775#p47775 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: October 17, 2011, 1:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:39 pm


]]>
2011-10-11T14:35:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=46176#p46176 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: October 11, 2011, 12:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:35 pm


]]>
2011-10-03T15:47:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=44306#p44306 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: October 3, 2011, 1:47 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:47 pm


]]>
2011-10-03T03:41:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=43013#p43013 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: October 3, 2011, 1:41 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:41 am


]]>
2011-09-27T05:26:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=41259#p41259 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: September 27, 2011, 3:26 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:26 am


]]>
2011-09-26T21:03:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=40015#p40015 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:03 pm


]]>
2011-09-17T16:20:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=38157#p38157 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: September 17, 2011, 2:21 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:20 pm


]]>
2011-09-14T01:28:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=36738#p36738 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: September 13, 2011, 11:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:28 am


]]>
2011-09-13T12:03:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=35466#p35466 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: September 13, 2011, 10:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:03 pm


]]>
2011-08-15T15:14:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=31587#p31587 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: August 15, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-conds.inc.php ?php /** * Conditional utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_conds" ) ) { /** * Conditional utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_conds { /** * Determines whether or not BuddyPress is installed. * * @package s2Member\Utilities * @since 110720 * * @return bool True if BuddyPress is installed, else false. */ public static function bp_is_installed ( ) { return defined ( "BP_VERSION" ) ; } /** * Determines whether or not s2Member Pro is installed. * * @package s2Member\Utilities * @since 110720 * * @return bool True if s2Member Pro is installed, else false. */ public static function pro_is_installed ( ) { return defined ( "WS_PLUGIN__S2MEMBER_PRO_VERSION" ) ; } /** * Determines whether or not this is a Multisite Farm; * *( i.e. if ``MULTISITE_FARM == true`` inside `/wp-config.php` )*. * * With s2Member, this option may also indicate a Multisite Blog Farm. * ``$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["mms_registration_file"] === "wp-signup"``. * * @package s2Member\Utilities * @since 3.5 * * @return bool True if this is a Multisite Farm, else false. */ public static function is_multisite_farm ( ) { return ( is_multisite ( ) && ( ( is_main_site ( ) && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "mms_registration_file" ] === "wp-signup" ) || ( defined ( "MULTISITE_FARM" ) && MULTISITE_FARM) ) ) ; } /** * Checks if a Post is in a child Category. * * @package s2Member\Utilities * @since 3.5 * * @param array $cats An array of Category IDs. * @param int|str $post_id A numeric WordPress® Post ID. * @return bool True if the Post is inside a desendant of at least one of the specified Categories; else false. */ public static function in_descendant_category ( $cats = FALSE , $post_id = FALSE ) { foreach ( ( array ) $cats as $cat ) { $descendants = get_term_children ( (int) $cat , "category" ) ; if ( $descendants && in_category ( $descendants , $post_id ) ) return true ; } /**/ return false ; } /** * Checks to see if a URL/URI leads to the site root. * * @package s2Member\Utilities * @since 3.5 * * @param str $url_or_uri Either a full URL, or a URI to test against. * @return bool True if the URL or URI leads to the site root, else false. */ public static function is_site_root ( $url_or_uri = FALSE ) { if ( ( $parse = @ parse_url ( $url_or_uri ) ) ) /* See: http://php.net/manual/en/function.parse-url.php. */ { $parse [ "path" ] = ( ! empty ( $parse [ "path" ] ) ) ? ( ( strpos ( $parse [ "path" ] , "/" ) === 0 ) ? $parse [ "path" ] : "/" . $parse [ "path" ] ) : "/" ; $parse [ "path" ] = preg_replace ( "/\/+/" , "/" , $parse [ "path" ] ) ; /* Removes multi slashes. */ /**/ if ( empty ( $parse [ "host" ] ) || strcasecmp ( $parse [ "host" ] , parse_url ( site_url ( ) , PHP_URL_HOST) ) === 0 ) if ( $parse [ "path" ] === "/" || rtrim ( $parse [ "path" ] , "/" ) === rtrim ( parse_url ( site_url ( ) , PHP_URL_PATH) , "/" ) ) return true ; } /**/ return false ; } } } ? [ full view ]s2member\includes\classes\utils-conds.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:14 pm


]]>
2011-07-11T17:30:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=27757#p27757 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: July 11, 2011, 6:30 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-conds.inc.php ?php /** * Conditional utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_conds" ) ) { /** * Conditional utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_conds { /** * Determines whether or not this is a Multisite Farm; * *( i.e. if ``MULTISITE_FARM == true`` inside `/wp-config.php` )*. * * With s2Member, this option may also indicate a Multisite Blog Farm. * ``$GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["mms_registration_file"] === "wp-signup"``. * * @package s2Member\Utilities * @since 3.5 * * @return bool True if this is a Multisite Farm, else false. */ public static function is_multisite_farm ( ) { return ( is_multisite ( ) && ( ( is_main_site ( ) && $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "mms_registration_file" ] === "wp-signup" ) || ( defined ( "MULTISITE_FARM" ) && MULTISITE_FARM) ) ) ; } /** * Checks if a Post is in a child Category. * * @package s2Member\Utilities * @since 3.5 * * @param array $cats An array of Category IDs. * @param int|str $post_id A numeric WordPress® Post ID. * @return bool True if the Post is inside a desendant of at least one of the specified Categories; else false. */ public static function in_descendant_category ( $cats = FALSE , $post_id = FALSE ) { foreach ( ( array ) $cats as $cat ) { $descendants = get_term_children ( (int) $cat , "category" ) ; if ( $descendants && in_category ( $descendants , $post_id ) ) return true ; } /**/ return false ; } /** * Checks to see if a URL/URI leads to the site root. * * @package s2Member\Utilities * @since 3.5 * * @param str $url_or_uri Either a full URL, or a URI to test against. * @return bool True if the URL or URI leads to the site root, else false. */ public static function is_site_root ( $url_or_uri = FALSE ) { if ( ( $parse = @ parse_url ( $url_or_uri ) ) ) /* See: http://php.net/manual/en/function.parse-url.php. */ { $parse [ "path" ] = ( ! empty ( $parse [ "path" ] ) ) ? ( ( strpos ( $parse [ "path" ] , "/" ) === 0 ) ? $parse [ "path" ] : "/" . $parse [ "path" ] ) : "/" ; $parse [ "path" ] = preg_replace ( "/\/+/" , "/" , $parse [ "path" ] ) ; /* Removes multi slashes. */ /**/ if ( empty ( $parse [ "host" ] ) || strcasecmp ( $parse [ "host" ] , parse_url ( site_url ( ) , PHP_URL_HOST) ) === 0 ) if ( $parse [ "path" ] === "/" || rtrim ( $parse [ "path" ] , "/" ) === rtrim ( parse_url ( site_url ( ) , PHP_URL_PATH) , "/" ) ) return true ; } /**/ return false ; } } } ? [ full view ]s2member\includes\classes\utils-conds.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:30 pm


]]>
2011-07-09T06:10:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13094&p=25389#p25389 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-conds.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:10 am


]]>