http://www.yourdomain.com/wp-content/themes/classipress/images/phone.png
.phoneico { float:left; height:16px; width:16px; padding-right:5px; background:transparent url(images/phone.png) no-repeat scroll 0 0; }
function cp_user_contact_methods( $methods ) { return array( 'twitter_id' => __( 'Twitter', APP_TD ), 'facebook_id' => __( 'Facebook', APP_TD ), 'paypal_email' => __( 'PayPal Email', APP_TD ), ); } add_action( 'user_contactmethods', 'cp_user_contact_methods' );
function cp_user_contact_methods( $methods ) { return array( 'phone_number' => __( 'Phone Number', APP_TD ), 'twitter_id' => __( 'Twitter', APP_TD ), 'facebook_id' => __( 'Facebook', APP_TD ), 'paypal_email' => __( 'PayPal Email', APP_TD ), ); } add_action( 'user_contactmethods', 'cp_user_contact_methods' );
function cp_profile_fields_description( $field ) { $description = array( 'twitter_id' => __( 'Enter your Twitter username without the URL.', APP_TD ), 'facebook_id' => sprintf( __( "Enter your Facebook username without the URL. <br />Don't have one yet? <a target='_blank' href='%s'>Get a custom URL.</a>", APP_TD ), 'http://www.facebook.com/username/' ), 'paypal_email' => __( 'Used for purchasing ads via PayPal (if enabled).', APP_TD ), ); return isset($description[$field]) ? '<br /><span class="description">' . $description[$field] . '</span>' : ''; }
function cp_profile_fields_description( $field ) { $description = array( 'phone_number' => __( 'Your main contact number.', APP_TD ), 'twitter_id' => __( 'Enter your Twitter username without the URL.', APP_TD ), 'facebook_id' => sprintf( __( "Enter your Facebook username without the URL. <br />Don't have one yet? <a target='_blank' href='%s'>Get a custom URL.</a>", APP_TD ), 'http://www.facebook.com/username/' ), 'paypal_email' => __( 'Used for purchasing ads via PayPal (if enabled).', APP_TD ), ); return isset($description[$field]) ? '<br /><span class="description">' . $description[$field] . '</span>' : ''; }
<ul class="author-info"> <li><strong><?php _e( 'Member Since:', APP_TD ); ?></strong> <?php echo date_i18n(get_option('date_format'), strtotime($curauth->user_registered)); ?></li> <?php if ( !empty($curauth->user_url) ) { ?><li><strong><?php _e( 'Website:', APP_TD ); ?></strong> <a href="<?php echo esc_url($curauth->user_url); ?>"><?php echo strip_tags( $curauth->user_url ); ?></a></li><?php } ?> <?php if ( !empty($curauth->twitter_id) ) { ?><li><div class="twitterico"></div><a href="http://twitter.com/<?php echo urlencode($curauth->twitter_id); ?>" target="_blank"><?php _e( 'Twitter', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($curauth->facebook_id) ) { ?><li><div class="facebookico"></div><a href="http://facebook.com/<?php echo urlencode($curauth->facebook_id); ?>" target="_blank"><?php _e( 'Facebook', APP_TD ); ?></a></li><?php } ?> </ul>
<ul class="author-info"> <li><strong><?php _e( 'Member Since:', APP_TD ); ?></strong> <?php echo date_i18n(get_option('date_format'), strtotime($curauth->user_registered)); ?></li> <?php if ( !empty($curauth->user_url) ) { ?><li><strong><?php _e( 'Website:', APP_TD ); ?></strong> <a href="<?php echo esc_url($curauth->user_url); ?>"><?php echo strip_tags( $curauth->user_url ); ?></a></li><?php } ?> <?php if ( !empty($curauth->phone_number) ) { ?><li><div class="phoneico"></div><?php echo esc_attr( $current_user->phone_number ); ?></li><?php } ?> <?php if ( !empty($curauth->twitter_id) ) { ?><li><div class="twitterico"></div><a href="http://twitter.com/<?php echo urlencode($curauth->twitter_id); ?>" target="_blank"><?php _e( 'Twitter', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($curauth->facebook_id) ) { ?><li><div class="facebookico"></div><a href="http://facebook.com/<?php echo urlencode($curauth->facebook_id); ?>" target="_blank"><?php _e( 'Facebook', APP_TD ); ?></a></li><?php } ?> </ul>
<ul class="user-details"> <li><div class="emailico"></div><a href="mailto:<?php echo $current_user->user_email; ?>"><?php echo $current_user->user_email; ?></a></li> <?php if ( !empty($current_user->twitter_id) ) { ?><li><div class="twitterico"></div><a href="http://twitter.com/<?php echo esc_attr( $current_user->twitter_id ); ?>" target="_blank"><?php _e( 'Twitter', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($current_user->facebook_id) ) { ?><li><div class="facebookico"></div><a href="http://facebook.com/<?php echo esc_attr( $current_user->facebook_id ); ?>" target="_blank"><?php _e( 'Facebook', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($current_user->user_url) ) { ?><li><div class="globeico"></div><a href="<?php echo esc_attr( $current_user->user_url ); ?>" target="_blank"><?php echo esc_html( $current_user->user_url ); ?></a></li><?php } ?> </ul>
<ul class="user-details"> <li><div class="emailico"></div><a href="mailto:<?php echo $current_user->user_email; ?>"><?php echo $current_user->user_email; ?></a></li> <?php if ( !empty($current_user->phone_number) ) { ?><li><div class="phoneico"></div><?php echo esc_attr( $current_user->phone_number ); ?></li><?php } ?> <?php if ( !empty($current_user->twitter_id) ) { ?><li><div class="twitterico"></div><a href="http://twitter.com/<?php echo esc_attr( $current_user->twitter_id ); ?>" target="_blank"><?php _e( 'Twitter', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($current_user->facebook_id) ) { ?><li><div class="facebookico"></div><a href="http://facebook.com/<?php echo esc_attr( $current_user->facebook_id ); ?>" target="_blank"><?php _e( 'Facebook', APP_TD ); ?></a></li><?php } ?> <?php if ( !empty($current_user->user_url) ) { ?><li><div class="globeico"></div><a href="<?php echo esc_attr( $current_user->user_url ); ?>" target="_blank"><?php echo esc_html( $current_user->user_url ); ?></a></li><?php } ?> </ul>
paulogoode (December 19th, 2012)
paulogoode (December 19th, 2012)
There are currently 1 users browsing this thread. (0 members and 1 guests)