Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:49:35-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13019 2011-12-20T09:49:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=57729#p57729 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\login-customizations.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:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=55411#p55411 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\login-customizations.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:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=51785#p51785 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\login-customizations.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:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=49880#p49880 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\login-customizations.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:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=47674#p47674 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\login-customizations.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:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=46074#p46074 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\login-customizations.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:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=44205#p44205 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\login-customizations.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:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=42912#p42912 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\login-customizations.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:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=41158#p41158 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\login-customizations.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:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=39914#p39914 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\login-customizations.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:02 pm


]]>
2011-09-17T16:19:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=38058#p38058 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\login-customizations.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:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=36639#p36639 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\login-customizations.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:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=35367#p35367 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\login-customizations.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:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=31474#p31474 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\login-customizations.inc.php
Docs updated: August 15, 2011, 3:12 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\login-customizations.inc.php ?php /** * Login customizations. * * 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\Login_Customizations * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_login_customizations" ) ) { /** * Login customizations. * * @package s2Member\Login_Customizations * @since 3.5 */ class c_ws_plugin__s2member_login_customizations { /** * Filters the login/registration logo URL. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_filter("login_headerurl");`` * * @param str $url Expects a login header URL passed in by the Filter. * @return str A URL based on s2Member's UI configuration. */ public static function login_header_url ( $url = FALSE ) { do_action ( "ws_plugin__s2member_before_login_header_url" , get_defined_vars ( ) ) ; /**/ $url = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_url" ] ; /**/ return apply_filters ( "ws_plugin__s2member_login_header_url" , $url , get_defined_vars ( ) ) ; } /** * Filters the login/registration logo title. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_filter("login_headertitle");`` * * @param str $title Expects a title passed in by the Filter. * @return str A title based on s2Member's UI configuration. */ public static function login_header_title ( $title = FALSE ) { do_action ( "ws_plugin__s2member_before_login_header_title" , get_defined_vars ( ) ) ; /**/ $title = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_title" ] ; /**/ return apply_filters ( "ws_plugin__s2member_login_header_title" , $title , get_defined_vars ( ) ) ; } /** * Styles login/registration *( i.e. `/wp-login.php` )*. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_action("login_head");`` * * @return void */ public static function login_header_styles ( ) { $s = "" ; /* Initialize styles string here to give Hooks a chance. */ $a = array ( ) ; /* Initialize here to give Filters a chance. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_login_header_styles" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $a [ ] = 'style type="text/css"' ; /* Open style tag, then give Filters a chance below. */ $i = apply_filters ( "ws_plugin__s2member_login_header_styles_important" , " !important" , get_defined_vars ( ) ) ; $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array_after_open" , $a , get_defined_vars ( ) ) ; /**/ $a [ ] = 'html, body { border:0' . $i . '; background:none' . $i . '; }' ; /* Clear existing. */ $a [ ] = 'html { background-color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_color" ] . $i . '; }' ; $a [ ] = 'html { background-image:url(' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_image" ] . ')' . $i . '; }' ; $a [ ] = 'html { background-repeat:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_image_repeat" ] . $i . '; }' ; /**/ $a [ ] = 'body, body * { font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_size" ] . $i . '; }' ; $a [ ] = 'body, body * { font-family:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_family" ] . $i . '; }' ; /**/ if ( ! version_compare ( get_bloginfo ( "version" ) , "3.2-RC4" , "=" ) ) /* Backward compatibility. */ $a [ ] = 'p#backtoblog a, p#backtoblog a:hover, p#backtoblog a:active, p#backtoblog a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; top:15px' . $i . '; left:15px' . $i . '; padding:10px' . $i . '; border:1px solid #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; background-color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_color" ] . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; }' ; /**/ $a [ ] = 'div#login { width:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src_width" ] . 'px' . $i . '; }' ; $a [ ] = 'div#login h1 a { background:url(' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src" ] . ') no-repeat top center' . $i . '; }' ; $a [ ] = 'div#login h1 a { display:block' . $i . '; width:100%' . $i . '; height:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src_height" ] . 'px' . $i . '; }' ; /**/ $a [ ] = 'div#login form { -moz-box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; -webkit-box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; }' ; /**/ $a [ ] = 'div#login p#nav, div#login p#nav a, div#login p#nav a:hover, div#login p#nav a:active, div#login p#nav a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; }' ; $a [ ] = 'div#login p#backtoblog, div#login p#backtoblog a, div#login p#backtoblog a:hover, div#login p#backtoblog a:active, div#login p#backtoblog a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; }' ; /**/ $a [ ] = 'div#login form p { margin:2px 0 16px 0' . $i . '; }' ; /* Handles paragraph margins inside the form. */ $a [ ] = 'div#login form input[type="text"], div#login form input[type="password"], div#login form textarea, div#login form select { font-weight:normal' . $i . '; color:#333333' . $i . '; background:none repeat scroll 0 0 #FBFBFB' . $i . '; border:1px solid #E5E5E5' . $i . '; font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_field_size" ] . $i . '; margin:0' . $i . '; padding:3px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; width:100%' . $i . '; width:98%' . $i . ' !ie8; margin-right:2%' . $i . ' !ie8; box-sizing:border-box' . $i . '; -ms-box-sizing:border-box' . $i . '; -moz-box-sizing:border-box' . $i . '; -webkit-box-sizing:border-box' . $i . '; }' ; $a [ ] = 'div#login form select { width:99.5%' . $i . ' !ie8; } div#login form select option { font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_field_size" ] . $i . '; }' ; $a [ ] = 'div#login form label { cursor:pointer' . $i . '; } div#login form label.ws-plugin--s2member-custom-reg-field-op-l { opacity:0.7' . $i . '; font-size:90%' . $i . '; vertical-align:middle' . $i . '; }' ; $a [ ] = 'div#login form input[type="checkbox"], div#login form input[type="radio"] { margin:0 3px 0 0' . $i . '; vertical-align:middle' . $i . '; }' ; $a [ ] = 'div#login form input#ws-plugin--s2member-custom-reg-field-user-pass2[type="password"] { margin-top:5px' . $i . '; }' ; /**/ $a [ ] = 'div#login form div.ws-plugin--s2member-custom-reg-field-divider-section { margin:2px 0 16px 0' . $i . '; border:0' . $i . '; height:1px' . $i . '; line-height:1px' . $i . '; background:#CCCCCC' . $i . '; }' ; $a [ ] = 'div#login form div.ws-plugin--s2member-custom-reg-field-divider-section-title { margin:2px 0 16px 0' . $i . '; border:0 solid #CCCCCC' . $i . '; border-width:0 0 1px 0' . $i . '; padding:0 0 10px 0' . $i . '; font-size:110%' . $i . '; }' ; /**/ $a [ ] = 'div#login form p.submit { margin-bottom:0' . $i . '; }' ; $a [ ] = 'div#login form input[type="submit"], div#login form input[type="submit"]:hover, div#login form input[type="submit"]:active, div#login form input[type="submit"]:focus { color:#666666' . $i . '; text-shadow:2px 2px 5px #EEEEEE' . $i . '; border:1px solid #999999' . $i . '; background:#FBFBFB' . $i . '; padding:5px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; }' ; $a [ ] = 'div#login form input[type="submit"]:hover, div#login form input[type="submit"]:active, div#login form input[type="submit"]:focus { color:#000000' . $i . '; text-shadow:2px 2px 5px #CCCCCC' . $i . '; border-color:#000000' . $i . '; }' ; $a [ ] = 'div#login form#registerform { padding-bottom:16px' . $i . '; } div#login form#registerform p.submit { float:none' . $i . '; margin-top:-10px' . $i . '; } div#login form#registerform input[type="submit"] { width:100%' . $i . '; }' ; $a [ ] = 'div#login form#lostpasswordform { padding-bottom:16px' . $i . '; } div#login form#lostpasswordform p.submit { float:none' . $i . '; } div#login form#lostpasswordform input[type="submit"] { width:100%' . $i . '; }' ; /**/ $a [ ] = 'div.ws-plugin--s2member-password-strength { margin-top:3px' . $i . '; font-color:#000000' . $i . '; background-color:#EEEEEE' . $i . '; padding:3px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; } div.ws-plugin--s2member-password-strength-short { background-color:#FFA0A0' . $i . '; } div.ws-plugin--s2member-password-strength-bad { background-color:#FFB78C' . $i . '; } div.ws-plugin--s2member-password-strength-good { background-color:#FFEC8B' . $i . '; } div.ws-plugin--s2member-password-strength-strong { background-color:#C3FF88' . $i . '; } div.ws-plugin--s2member-password-strength-mismatch { background-color:#D6C1AB' . $i . '; }' ; /**/ $a [ ] = 'div#login form#registerform p#reg_passmail { font-style:italic' . $i . '; }' ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_password" ] ) $a [ ] = 'p#reg_passmail { display:none' . $i . '; }' ; /**/ $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array_before_close" , $a , get_defined_vars ( ) ) ; $a [ ] = '/style' ; /* Now close style tag. There are other Filters below. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_login_header_styles" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array" , $a , get_defined_vars ( ) ) ; $s .= "\n" . implode ( "\n" , $a ) . "\n \n" ; /* Now put all array elements together. */ /**/ echo apply_filters ( "ws_plugin__s2member_login_header_styles" , $s , get_defined_vars ( ) ) ; /**/ do_action ( "ws_plugin__s2member_after_login_header_styles" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Displays login footer design. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_action("login_footer");`` * * @return void */ public static function login_footer_design ( ) { do_action ( "ws_plugin__s2member_before_login_footer_design" , get_defined_vars ( ) ) ; /**/ if ( ( $code = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_footer_design" ] ) ) /**/ if ( is_multisite ( ) && c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) && ! is_main_site ( ) ) { echo $code . "\n" ; /* No PHP here. */ } else /* Otherwise, safe to allow PHP code. */ { eval ( "?" . $code ) ; } /**/ do_action ( "ws_plugin__s2member_after_login_footer_design" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\login-customizations.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:28:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=27682#p27682 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\login-customizations.inc.php
Docs updated: July 11, 2011, 6:28 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\login-customizations.inc.php ?php /** * Login customizations. * * 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\Login_Customizations * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_login_customizations" ) ) { /** * Login customizations. * * @package s2Member\Login_Customizations * @since 3.5 */ class c_ws_plugin__s2member_login_customizations { /** * Filters the login/registration logo URL. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_filter("login_headerurl");`` * * @param str $url Expects a login header URL passed in by the Filter. * @return str A URL based on s2Member's UI configuration. */ public static function login_header_url ( $url = FALSE ) { do_action ( "ws_plugin__s2member_before_login_header_url" , get_defined_vars ( ) ) ; /**/ $url = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_url" ] ; /**/ return apply_filters ( "ws_plugin__s2member_login_header_url" , $url , get_defined_vars ( ) ) ; } /** * Filters the login/registration logo title. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_filter("login_headertitle");`` * * @param str $title Expects a title passed in by the Filter. * @return str A title based on s2Member's UI configuration. */ public static function login_header_title ( $title = FALSE ) { do_action ( "ws_plugin__s2member_before_login_header_title" , get_defined_vars ( ) ) ; /**/ $title = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_title" ] ; /**/ return apply_filters ( "ws_plugin__s2member_login_header_title" , $title , get_defined_vars ( ) ) ; } /** * Styles login/registration *( i.e. `/wp-login.php` )*. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_action("login_head");`` * * @return void */ public static function login_header_styles ( ) { $s = "" ; /* Initialize styles string here to give Hooks a chance. */ $a = array ( ) ; /* Initialize here to give Filters a chance. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_before_login_header_styles" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $a [ ] = 'style type="text/css"' ; /* Open style tag, then give Filters a chance below. */ $i = apply_filters ( "ws_plugin__s2member_login_header_styles_important" , " !important" , get_defined_vars ( ) ) ; $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array_after_open" , $a , get_defined_vars ( ) ) ; /**/ $a [ ] = 'html, body { border:0' . $i . '; background:none' . $i . '; }' ; /* Clear existing. */ $a [ ] = 'html { background-color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_color" ] . $i . '; }' ; $a [ ] = 'html { background-image:url(' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_image" ] . ')' . $i . '; }' ; $a [ ] = 'html { background-repeat:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_image_repeat" ] . $i . '; }' ; /**/ $a [ ] = 'body, body * { font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_size" ] . $i . '; }' ; $a [ ] = 'body, body * { font-family:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_family" ] . $i . '; }' ; /**/ if ( ! version_compare ( get_bloginfo ( "version" ) , "3.2-RC4" , "=" ) ) /* Backward compatibility. */ $a [ ] = 'p#backtoblog a, p#backtoblog a:hover, p#backtoblog a:active, p#backtoblog a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; top:15px' . $i . '; left:15px' . $i . '; padding:10px' . $i . '; border:1px solid #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; background-color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_color" ] . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; }' ; /**/ $a [ ] = 'div#login { width:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src_width" ] . 'px' . $i . '; }' ; $a [ ] = 'div#login h1 a { background:url(' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src" ] . ') no-repeat top center' . $i . '; }' ; $a [ ] = 'div#login h1 a { display:block' . $i . '; width:100%' . $i . '; height:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_logo_src_height" ] . 'px' . $i . '; }' ; /**/ $a [ ] = 'div#login form { -moz-box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; -webkit-box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; box-shadow:1px 1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . ', -1px -1px 5px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_box_shadow_color" ] . $i . '; }' ; /**/ $a [ ] = 'div#login p#nav, div#login p#nav a, div#login p#nav a:hover, div#login p#nav a:active, div#login p#nav a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; }' ; $a [ ] = 'div#login p#backtoblog, div#login p#backtoblog a, div#login p#backtoblog a:hover, div#login p#backtoblog a:active, div#login p#backtoblog a:focus { color:#' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_color" ] . $i . '; text-shadow:1px 1px 3px #' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_background_text_shadow_color" ] . $i . '; }' ; /**/ $a [ ] = 'div#login form p { margin:2px 0 16px 0' . $i . '; }' ; /* Handles paragraph margins inside the form. */ $a [ ] = 'div#login form input[type="text"], div#login form input[type="password"], div#login form textarea, div#login form select { font-weight:normal' . $i . '; color:#333333' . $i . '; background:none repeat scroll 0 0 #FBFBFB' . $i . '; border:1px solid #E5E5E5' . $i . '; font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_field_size" ] . $i . '; margin:0' . $i . '; padding:3px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; width:100%' . $i . '; width:98%' . $i . ' !ie8; margin-right:2%' . $i . ' !ie8; box-sizing:border-box' . $i . '; -ms-box-sizing:border-box' . $i . '; -moz-box-sizing:border-box' . $i . '; -webkit-box-sizing:border-box' . $i . '; }' ; $a [ ] = 'div#login form select { width:99.5%' . $i . ' !ie8; } div#login form select option { font-size:' . $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_font_field_size" ] . $i . '; }' ; $a [ ] = 'div#login form label { cursor:pointer' . $i . '; } div#login form label.ws-plugin--s2member-custom-reg-field-op-l { opacity:0.7' . $i . '; font-size:90%' . $i . '; vertical-align:middle' . $i . '; }' ; $a [ ] = 'div#login form input[type="checkbox"], div#login form input[type="radio"] { margin:0 3px 0 0' . $i . '; vertical-align:middle' . $i . '; }' ; $a [ ] = 'div#login form input#ws-plugin--s2member-custom-reg-field-user-pass2[type="password"] { margin-top:5px' . $i . '; }' ; /**/ $a [ ] = 'div#login form div.ws-plugin--s2member-custom-reg-field-divider-section { margin:2px 0 16px 0' . $i . '; border:0' . $i . '; height:1px' . $i . '; line-height:1px' . $i . '; background:#CCCCCC' . $i . '; }' ; $a [ ] = 'div#login form div.ws-plugin--s2member-custom-reg-field-divider-section-title { margin:2px 0 16px 0' . $i . '; border:0 solid #CCCCCC' . $i . '; border-width:0 0 1px 0' . $i . '; padding:0 0 10px 0' . $i . '; font-size:110%' . $i . '; }' ; /**/ $a [ ] = 'div#login form p.submit { margin-bottom:0' . $i . '; }' ; $a [ ] = 'div#login form input[type="submit"], div#login form input[type="submit"]:hover, div#login form input[type="submit"]:active, div#login form input[type="submit"]:focus { color:#666666' . $i . '; text-shadow:2px 2px 5px #EEEEEE' . $i . '; border:1px solid #999999' . $i . '; background:#FBFBFB' . $i . '; padding:5px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; }' ; $a [ ] = 'div#login form input[type="submit"]:hover, div#login form input[type="submit"]:active, div#login form input[type="submit"]:focus { color:#000000' . $i . '; text-shadow:2px 2px 5px #CCCCCC' . $i . '; border-color:#000000' . $i . '; }' ; $a [ ] = 'div#login form#registerform { padding-bottom:16px' . $i . '; } div#login form#registerform p.submit { float:none' . $i . '; margin-top:-10px' . $i . '; } div#login form#registerform input[type="submit"] { width:100%' . $i . '; }' ; $a [ ] = 'div#login form#lostpasswordform { padding-bottom:16px' . $i . '; } div#login form#lostpasswordform p.submit { float:none' . $i . '; } div#login form#lostpasswordform input[type="submit"] { width:100%' . $i . '; }' ; /**/ $a [ ] = 'div.ws-plugin--s2member-password-strength { margin-top:3px' . $i . '; font-color:#000000' . $i . '; background-color:#EEEEEE' . $i . '; padding:3px' . $i . '; -moz-border-radius:3px' . $i . '; -webkit-border-radius:3px' . $i . '; border-radius:3px' . $i . '; } div.ws-plugin--s2member-password-strength-short { background-color:#FFA0A0' . $i . '; } div.ws-plugin--s2member-password-strength-bad { background-color:#FFB78C' . $i . '; } div.ws-plugin--s2member-password-strength-good { background-color:#FFEC8B' . $i . '; } div.ws-plugin--s2member-password-strength-strong { background-color:#C3FF88' . $i . '; } div.ws-plugin--s2member-password-strength-mismatch { background-color:#D6C1AB' . $i . '; }' ; /**/ $a [ ] = 'div#login form#registerform p#reg_passmail { font-style:italic' . $i . '; }' ; /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_password" ] ) $a [ ] = 'p#reg_passmail { display:none' . $i . '; }' ; /**/ $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array_before_close" , $a , get_defined_vars ( ) ) ; $a [ ] = '/style' ; /* Now close style tag. There are other Filters below. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "ws_plugin__s2member_during_login_header_styles" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $a = apply_filters ( "ws_plugin__s2member_login_header_styles_array" , $a , get_defined_vars ( ) ) ; $s .= "\n" . implode ( "\n" , $a ) . "\n \n" ; /* Now put all array elements together. */ /**/ echo apply_filters ( "ws_plugin__s2member_login_header_styles" , $s , get_defined_vars ( ) ) ; /**/ do_action ( "ws_plugin__s2member_after_login_header_styles" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } /** * Displays login footer design. * * @package s2Member\Login_Customizations * @since 3.5 * * @attaches-to: ``add_action("login_footer");`` * * @return void */ public static function login_footer_design ( ) { do_action ( "ws_plugin__s2member_before_login_footer_design" , get_defined_vars ( ) ) ; /**/ if ( ( $code = $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "login_reg_footer_design" ] ) ) /**/ if ( is_multisite ( ) && c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) && ! is_main_site ( ) ) { echo $code . "\n" ; /* No PHP here. */ } else /* Otherwise, safe to allow PHP code. */ { eval ( "?" . $code ) ; } /**/ do_action ( "ws_plugin__s2member_after_login_footer_design" , get_defined_vars ( ) ) ; /**/ return ; /* Return for uniformity. */ } } } ? [ full view ]s2member\includes\classes\login-customizations.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

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


]]>
2011-07-09T06:08:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13019&p=25314#p25314 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\login-customizations.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, 6:08 am


]]>