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

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

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


]]>
2011-12-07T01:02:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=55388#p55388 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: December 7, 2011, 1:02 am

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

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


]]>
2011-11-05T19:25:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=51762#p51762 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: November 5, 2011, 8:25 pm

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

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


]]>
2011-10-29T20:34:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=49857#p49857 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: October 29, 2011, 9:34 pm

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

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


]]>
2011-10-17T15:38:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=47651#p47651 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: October 17, 2011, 1:38 pm

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

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


]]>
2011-10-11T14:34:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=46051#p46051 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: October 11, 2011, 12:34 pm

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

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


]]>
2011-10-03T15:46:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=44182#p44182 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: October 3, 2011, 1:46 pm

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

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


]]>
2011-10-03T03:40:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=42889#p42889 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: October 3, 2011, 1:40 am

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

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


]]>
2011-09-27T05:25:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=41135#p41135 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: September 27, 2011, 3:25 am

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

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


]]>
2011-09-26T21:02:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=39891#p39891 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: September 26, 2011, 7:02 pm

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

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


]]>
2011-09-17T16:19:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=38035#p38035 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: September 17, 2011, 2:19 pm

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

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


]]>
2011-09-14T01:27:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=36616#p36616 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: September 13, 2011, 11:27 pm

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

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


]]>
2011-09-13T12:02:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=35344#p35344 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: September 13, 2011, 10:02 am

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

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


]]>
2011-08-15T14:11:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=31451#p31451 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: August 15, 2011, 3:11 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\admin-notices.inc.php ?php /** * Enqueues/displays administrative notices. * * 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\Admin_Notices * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_notices" ) ) { /** * Enqueues/displays administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 */ class c_ws_plugin__s2member_admin_notices { /** * Enqueues administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param str|array $on_pages Optional. Defaults to any page. String or array of pages to display this notice on. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param int $time Optional. Unix timestamp indicating when this notice will be displayed. * @param bool $dismiss Optional. If true, the notice will remain persistent, until dismissed. Defaults to false. * @return null */ public static function enqueue_admin_notice ( $notice = FALSE , $on_pages = FALSE , $error = FALSE , $time = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice ) /* If we have a valid string. */ { $notices = ( array ) get_option ( "ws_plugin__s2member_notices" ) ; /**/ array_push ( $notices , array ( "notice" = $notice , "on_pages" = $on_pages , "error" = $error , "time" = $time , "dismiss" = $dismiss ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , c_ws_plugin__s2member_utils_arrays:: array_unique ( $notices ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_enqueue_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Displays an administrative notice. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param bool $dismiss Optional. If true, the notice will be displayed with a dismissal link. Defaults to false. * @return null */ public static function display_admin_notice ( $notice = FALSE , $error = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_display_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice && $error ) /* Slightly different/special format for errors. */ { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="error fade"p' . $notice . '/p/div' ; /* Error. */ } else if ( is_string ( $notice ) && $notice ) { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="updated fade"p' . $notice . '/p/div' ; } /**/ do_action ( "ws_plugin__s2member_after_display_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Processes all administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @attaches-to ``add_action("admin_notices");`` * @attaches-to ``add_action("user_admin_notices");`` * @attaches-to ``add_action("network_admin_notices");`` * @todo Update to ``add_action("all_admin_notices");``. * * @return null */ public static function admin_notices ( ) { global $pagenow ; /* This holds the current page filename. */ /**/ do_action ( "ws_plugin__s2member_before_admin_notices" , get_defined_vars ( ) ) ; /**/ if ( is_admin ( ) && is_array ( $notices = get_option ( "ws_plugin__s2member_notices" ) ) && ! empty ( $notices ) ) { $a = (is_blog_admin ( ) ) ? "blog" : $a ; $a = (is_user_admin ( ) ) ? "user" : $a ; $a = (is_network_admin ( ) ) ? "network" : $a ; $a = ( ! $a ) ? "blog" : $a ; /* Default Blog Admin. */ /**/ foreach ( $notices as $i = $notice ) /* Check several things about each Notice. */ foreach ( ( ( ! $notice [ "on_pages" ] ) ? array ( "*" ) : ( array ) $notice [ "on_pages" ] ) as $page ) { if ( ! preg_match ( "/^(.+?)\:/" , $page ) ) /* NO prefix? */ $page = "blog:" . ltrim ( $page , ":" ) ; /* `blog:` */ /**/ $adms = preg_split ( "/\|/" , preg_replace ( "/\:(.*)$/i" , "" , $page ) ) ; $page = preg_replace ( "/^([^\:]*)\:/i" , "" , $page ) ; /**/ if ( empty ( $adms ) || in_array ( "*" , $adms ) || in_array ( $a , $adms ) ) if ( ! $page || "*" === $page || $pagenow === $page || $_GET [ "page" ] === $page ) { if ( strtotime ( "now" ) = (int) $notice [ "time" ] ) /* Time to show it? */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices_before_display" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! $notice [ "dismiss" ] || ( ! empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) && $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] === md5 ( $notice [ "notice" ] ) ) ) unset ( $notices [ $i ] ) ; /* Clear this administrative notice now? */ /**/ if ( ! $notice [ "dismiss" ] || empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) || $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] !== md5 ( $notice [ "notice" ] ) ) c_ws_plugin__s2member_admin_notices:: display_admin_notice ( $notice [ "notice" ] , $notice [ "error" ] , $notice [ "dismiss" ] ) ; /**/ do_action ( "ws_plugin__s2member_during_admin_notices_after_display" , get_defined_vars ( ) ) ; } /**/ continue 2 ; /* This Notice processed; continue. */ } } /**/ $notices = array_merge ( $notices ) ; /* Re-index array. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , $notices ) ; } /**/ do_action ( "ws_plugin__s2member_after_admin_notices" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-notices.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 2:11 pm


]]>
2011-07-11T17:27:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=27659#p27659 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: July 11, 2011, 6:27 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\admin-notices.inc.php ?php /** * Enqueues/displays administrative notices. * * 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\Admin_Notices * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_notices" ) ) { /** * Enqueues/displays administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 */ class c_ws_plugin__s2member_admin_notices { /** * Enqueues administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param str|array $on_pages Optional. Defaults to any page. String or array of pages to display this notice on. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param int $time Optional. Unix timestamp indicating when this notice will be displayed. * @param bool $dismiss Optional. If true, the notice will remain persistent, until dismissed. Defaults to false. * @return null */ public static function enqueue_admin_notice ( $notice = FALSE , $on_pages = FALSE , $error = FALSE , $time = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice ) /* If we have a valid string. */ { $notices = ( array ) get_option ( "ws_plugin__s2member_notices" ) ; /**/ array_push ( $notices , array ( "notice" = $notice , "on_pages" = $on_pages , "error" = $error , "time" = $time , "dismiss" = $dismiss ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , c_ws_plugin__s2member_utils_arrays:: array_unique ( $notices ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_enqueue_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Displays an administrative notice. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param bool $dismiss Optional. If true, the notice will be displayed with a dismissal link. Defaults to false. * @return null */ public static function display_admin_notice ( $notice = FALSE , $error = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_display_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice && $error ) /* Slightly different/special format for errors. */ { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="error fade"p' . $notice . '/p/div' ; /* Error. */ } else if ( is_string ( $notice ) && $notice ) { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="updated fade"p' . $notice . '/p/div' ; } /**/ do_action ( "ws_plugin__s2member_after_display_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Processes all administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @attaches-to ``add_action("admin_notices");`` * @attaches-to ``add_action("user_admin_notices");`` * @attaches-to ``add_action("network_admin_notices");`` * @todo Update to ``add_action("all_admin_notices");``. * * @return null */ public static function admin_notices ( ) { global $pagenow ; /* This holds the current page filename. */ /**/ do_action ( "ws_plugin__s2member_before_admin_notices" , get_defined_vars ( ) ) ; /**/ if ( is_admin ( ) && is_array ( $notices = get_option ( "ws_plugin__s2member_notices" ) ) && ! empty ( $notices ) ) { $a = (is_blog_admin ( ) ) ? "blog" : $a ; $a = (is_user_admin ( ) ) ? "user" : $a ; $a = (is_network_admin ( ) ) ? "network" : $a ; $a = ( ! $a ) ? "blog" : $a ; /* Default Blog Admin. */ /**/ foreach ( $notices as $i = $notice ) /* Check several things about each Notice. */ foreach ( ( ( ! $notice [ "on_pages" ] ) ? array ( "*" ) : ( array ) $notice [ "on_pages" ] ) as $page ) { if ( ! preg_match ( "/^(.+?)\:/" , $page ) ) /* NO prefix? */ $page = "blog:" . ltrim ( $page , ":" ) ; /* `blog:` */ /**/ $adms = preg_split ( "/\|/" , preg_replace ( "/\:(.*)$/i" , "" , $page ) ) ; $page = preg_replace ( "/^([^\:]*)\:/i" , "" , $page ) ; /**/ if ( empty ( $adms ) || in_array ( "*" , $adms ) || in_array ( $a , $adms ) ) if ( ! $page || "*" === $page || $pagenow === $page || $_GET [ "page" ] === $page ) { if ( strtotime ( "now" ) = (int) $notice [ "time" ] ) /* Time to show it? */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices_before_display" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! $notice [ "dismiss" ] || ( ! empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) && $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] === md5 ( $notice [ "notice" ] ) ) ) unset ( $notices [ $i ] ) ; /* Clear this administrative notice now? */ /**/ if ( ! $notice [ "dismiss" ] || empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) || $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] !== md5 ( $notice [ "notice" ] ) ) c_ws_plugin__s2member_admin_notices:: display_admin_notice ( $notice [ "notice" ] , $notice [ "error" ] , $notice [ "dismiss" ] ) ; /**/ do_action ( "ws_plugin__s2member_during_admin_notices_after_display" , get_defined_vars ( ) ) ; } /**/ continue 2 ; /* This Notice processed; continue. */ } } /**/ $notices = array_merge ( $notices ) ; /* Re-index array. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , $notices ) ; } /**/ do_action ( "ws_plugin__s2member_after_admin_notices" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-notices.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-11T15:13:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=27040#p27040 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: July 11, 2011, 4:13 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\admin-notices.inc.php ?php /** * Enqueues/displays administrative notices. * * 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\Admin_Notices * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_admin_notices" ) ) { /** * Enqueues/displays administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 */ class c_ws_plugin__s2member_admin_notices { /** * Enqueues administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param str|array $on_pages Optional. Defaults to any page. String or array of pages to display this notice on. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param int $time Optional. Unix timestamp indicating when this notice will be displayed. * @param bool $dismiss Optional. If true, the notice will remain persistent, until dismissed. Defaults to false. * @return null */ public static function enqueue_admin_notice ( $notice = FALSE , $on_pages = FALSE , $error = FALSE , $time = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice ) /* If we have a valid string. */ { $notices = ( array ) get_option ( "ws_plugin__s2member_notices" ) ; /**/ array_push ( $notices , array ( "notice" = $notice , "on_pages" = $on_pages , "error" = $error , "time" = $time , "dismiss" = $dismiss ) ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_enqueue_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , c_ws_plugin__s2member_utils_arrays:: array_unique ( $notices ) ) ; } /**/ do_action ( "ws_plugin__s2member_after_enqueue_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Displays an administrative notice. * * @package s2Member\Admin_Notices * @since 3.5 * * @param str $notice String value of actual notice *( i.e. the message )*. * @param bool $error Optional. True if this notice is regarding an error. Defaults to false. * @param bool $dismiss Optional. If true, the notice will be displayed with a dismissal link. Defaults to false. * @return null */ public static function display_admin_notice ( $notice = FALSE , $error = FALSE , $dismiss = FALSE ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_display_admin_notice" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_string ( $notice ) && $notice && $error ) /* Slightly different/special format for errors. */ { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="error fade"p' . $notice . '/p/div' ; /* Error. */ } else if ( is_string ( $notice ) && $notice ) { $notice .= ( $dismiss ) ? ' [ a href="' . add_query_arg ( "ws-plugin--s2member-dismiss-admin-notice" , urlencode ( md5 ( $notice ) ) , $_SERVER [ "REQUEST_URI" ] ) . '"dismiss message/a ]' : '' ; /**/ echo 'div class="updated fade"p' . $notice . '/p/div' ; } /**/ do_action ( "ws_plugin__s2member_after_display_admin_notice" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Processes all administrative notices. * * @package s2Member\Admin_Notices * @since 3.5 * * @attaches-to ``add_action("admin_notices");`` * @attaches-to ``add_action("user_admin_notices");`` * @attaches-to ``add_action("network_admin_notices");`` * @todo Update to ``add_action("all_admin_notices");``. * * @return null */ public static function admin_notices ( ) { global $pagenow ; /* This holds the current page filename. */ /**/ do_action ( "ws_plugin__s2member_before_admin_notices" , get_defined_vars ( ) ) ; /**/ if ( is_admin ( ) && is_array ( $notices = get_option ( "ws_plugin__s2member_notices" ) ) && ! empty ( $notices ) ) { $a = (is_blog_admin ( ) ) ? "blog" : $a ; $a = (is_user_admin ( ) ) ? "user" : $a ; $a = (is_network_admin ( ) ) ? "network" : $a ; $a = ( ! $a ) ? "blog" : $a ; /* Default Blog Admin. */ /**/ foreach ( $notices as $i = $notice ) /* Check several things about each Notice. */ foreach ( ( ( ! $notice [ "on_pages" ] ) ? array ( "*" ) : ( array ) $notice [ "on_pages" ] ) as $page ) { if ( ! preg_match ( "/^(.+?)\:/" , $page ) ) /* NO prefix? */ $page = "blog:" . ltrim ( $page , ":" ) ; /* `blog:` */ /**/ $adms = preg_split ( "/\|/" , preg_replace ( "/\:(.*)$/i" , "" , $page ) ) ; $page = preg_replace ( "/^([^\:]*)\:/i" , "" , $page ) ; /**/ if ( empty ( $adms ) || in_array ( "*" , $adms ) || in_array ( $a , $adms ) ) if ( ! $page || "*" === $page || $pagenow === $page || $_GET [ "page" ] === $page ) { if ( strtotime ( "now" ) = (int) $notice [ "time" ] ) /* Time to show it? */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices_before_display" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! $notice [ "dismiss" ] || ( ! empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) && $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] === md5 ( $notice [ "notice" ] ) ) ) unset ( $notices [ $i ] ) ; /* Clear this administrative notice now? */ /**/ if ( ! $notice [ "dismiss" ] || empty ( $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] ) || $_GET [ "ws-plugin--s2member-dismiss-admin-notice" ] !== md5 ( $notice [ "notice" ] ) ) c_ws_plugin__s2member_admin_notices:: display_admin_notice ( $notice [ "notice" ] , $notice [ "error" ] , $notice [ "dismiss" ] ) ; /**/ do_action ( "ws_plugin__s2member_during_admin_notices_after_display" , get_defined_vars ( ) ) ; } /**/ continue 2 ; /* This Notice processed; continue. */ } } /**/ $notices = array_merge ( $notices ) ; /* Re-index array. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_admin_notices" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ update_option ( "ws_plugin__s2member_notices" , $notices ) ; } /**/ do_action ( "ws_plugin__s2member_after_admin_notices" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\admin-notices.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 3:13 pm


]]>
2011-07-09T05:40:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=12995&p=25289#p25289 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\admin-notices.inc.php
Docs updated: December 20, 2011, 9:49 am

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

Statistics: Posted by System Robot — July 9th, 2011, 5:40 am


]]>