Changeset 633547
- Timestamp:
- 12/03/2012 03:23:08 PM (13 years ago)
- Location:
- dippler/trunk
- Files:
-
- 5 edited
-
classes/dippler-profile-manager.php (modified) (3 diffs)
-
main.php (modified) (2 diffs)
-
themes/twentyeleven_dippler/dippler-profile-page.php (modified) (1 diff)
-
themes/twentyten_dippler/dippler-profile-page.php (modified) (1 diff)
-
themes/twentytwelve_dippler/dippler-profile-page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dippler/trunk/classes/dippler-profile-manager.php
r616851 r633547 169 169 $data .= "<mendeley><![CDATA[{$this->mendeley}]]></mendeley>"; 170 170 $data .= "<skype><![CDATA[{$this->skype}]]></skype>"; 171 $data .= "<msn><![CDATA[{$this->msn}]]></msn>";172 171 $data .= "<blogurl><![CDATA[{$this->blogurl}]]></blogurl>"; 173 172 $data .= "<department><![CDATA[{$this->department}]]></department>"; … … 212 211 case 'homepage': 213 212 case 'blogurl': 214 case 'msn':215 213 case 'delicious': 216 214 if ( parse_url( $value, PHP_URL_HOST ) ) { … … 258 256 } 259 257 break; 260 case 'msn':261 if( !parse_url( $value, PHP_URL_HOST ) && !empty( $value ) ) {262 //If we don't have URL and it's not an email, let's assume its a profile263 if ( !filter_var( $value, FILTER_VALIDATE_EMAIL ) ) {264 $value = 'http://profile.live.com/'.$value;265 }266 //Otherwise possibly email, do nohting267 }268 break;269 258 } 270 259 $this->profile->{$field} = $value; -
dippler/trunk/main.php
r633521 r633547 1068 1068 //Email field 1069 1069 $this->getProfileField( 'dippler-email', __( 'Email', $this->getTextdomain() ), __( 'Your email', $this->getTextdomain() ), $profile->email ); 1070 //MSN field1071 $this->getProfileField( 'dippler-msn', __( 'MSN', $this->getTextdomain() ), __( 'Your MSN', $this->getTextdomain() ), $profile->msn );1072 1070 //Skype field 1073 1071 $this->getProfileField( 'dippler-skype', __( 'Skype', $this->getTextdomain() ), __( 'Your Skype', $this->getTextdomain() ), $profile->skype ); … … 1101 1099 $profile->skype = $this->getUpdatedProfileField( &$profile, 'skype' ); 1102 1100 $profile->twitter = $this->getUpdatedProfileField( &$profile, 'twitter' ); 1103 $profile->msn = $this->getUpdatedProfileField( &$profile, 'msn' );1104 1101 $profile->mendeley = $this->getUpdatedProfileField( &$profile, 'mendeley' ); 1105 1102 $profile->delicious = $this->getUpdatedProfileField( &$profile, 'delicious' ); -
dippler/trunk/themes/twentyeleven_dippler/dippler-profile-page.php
r633541 r633547 37 37 <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr> 38 38 <?php if ( is_user_logged_in() ) { ?> 39 <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>40 39 <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr> 41 40 <?php } ?> -
dippler/trunk/themes/twentyten_dippler/dippler-profile-page.php
r633541 r633547 37 37 <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr> 38 38 <?php if ( is_user_logged_in() ) { ?> 39 <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>40 39 <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr> 41 40 <?php } ?> -
dippler/trunk/themes/twentytwelve_dippler/dippler-profile-page.php
r633541 r633547 37 37 <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr> 38 38 <?php if ( is_user_logged_in() ) { ?> 39 <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>40 39 <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr> 41 40 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.