PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php } ?>
<div class="contact">
<span class="button" ><?php echo $woo_options['woo_label_contact_agent_button']; ?></span>
<div class="agent-popup">
<?php the_commenter_avatar(array('avatar_size'=>'56')) ?>
<div class="details">
<?php $first_name = esc_attr( get_the_author_meta( 'first_name' ) ); ?>
<?php $last_name = esc_attr( get_the_author_meta( 'last_name' ) ); ?>
<?php if ( ($first_name != '') && ($last_name != '') ) { $display_name = $first_name.' '.$last_name; } else { $display_name = esc_attr( get_the_author_meta( 'display_name' ) ); } ?>
<span class="name"><?php echo $display_name; ?></span>
<span>
<?php echo esc_attr( get_the_author_meta( 'contact_number' ) ); ?>
</span>
<span>
<?php echo get_user_field("agency"); ?>
</span>
<span>
<?php $author_email = esc_attr( get_the_author_meta( 'user_email' ) ); ?>
<input type="text" style="display:none;" value="<?php echo $author_email; ?>" id="email" name="email" />
<?php if ($woo_options['woo_contact_form_link'] == 'true') { ?>
<a href="<?php bloginfo('url'); ?>/<?php echo $woo_options['woo_contact_form_page']; ?>/?propertyid=<?php echo $post->ID; ?>&agentid=<?php echo get_the_author_meta( 'ID' ); ?>" title="<?php echo $author_email; ?>"><?php echo $woo_options['woo_label_agent_email_link']; ?></a><?php } else { ?>
<a href="mailto:<?php echo $author_email; ?>" title="<?php echo $author_email; ?>"><?php echo $woo_options['woo_label_agent_email_link']; ?></a><?php } ?>
</span>
echo get_user_field('agency', $author_id);
$author_id = get_the_author_meta('ID');
<?php echo get_user_field('agency', get_the_author_meta('ID')); ?>
Users browsing this forum: No registered users and 3 guests