<?php global $userdata; // make sure google maps is enabled $gmap_check = get_option('cp_gmaps_key'); ?> <div class="content_right"> <div class="tabprice"> <ul class="tabnavig"> <?php if (!empty($gmap_check)) { ?>[*]<span class="big"><?php _e('Map', 'cp') ?></span> <?php } ?>[*]<span class="big"><?php _e('Contact', 'cp') ?></span>[*]<span class="big"><?php _e('Poster', 'cp') ?></span>[/list] <?php if (!empty($gmap_check)) { ?> <div id="priceblock1"> <div class="clr"></div> <div class="singletab"> <?php include_once(TEMPLATEPATH . '/includes/sidebar-gmap.php' ); ?> </div> </div> <?php } ?> <div id="priceblock2"> <div class="clr"></div> <div class="singletab"> <?php if (get_option('cp_ad_inquiry_form') == 'yes' && is_user_logged_in()) { include_once(TEMPLATEPATH . '/includes/sidebar-contact.php' ); } elseif (get_option('cp_ad_inquiry_form') <> 'yes'){ include_once(TEMPLATEPATH . '/includes/sidebar-contact.php' ); } else { ?> <div class="pad25"></div> <p class="contact_msg center"><?php _e('You must be logged in to inquire about this ad.', 'cp') ?></p> <div class="pad100"></div> <?php } ?> </div> </div> <div id="priceblock3"> <div class="clr"></div> <div class="singletab"> <div class="priceblocksmall dotted"> <p class="member-title"><?php _e('Information about the ad poster','cp');?></p> <ul class="member">[*]<span><?php _e('Listed by:','cp');?></span> <?php // check to see if ad is legacy or not if(get_post_meta($post->ID, 'name', true)) { if (get_the_author() != '') { ?> <?php the_author_meta('display_name'); ?> <?php } else { echo get_post_meta($post->ID, 'name', true); } ?> <?php } else { ?> <?php the_author_meta('display_name'); ?> <?php } ?> [*]<span><?php _e('Member Since:','cp');?></span> <?php echo date_i18n(get_option('date_format'), strtotime(get_the_author_meta('user_registered'))); ?> [/list] <div class="pad50"></div> <div class="clr"></div> </div> </div> </div> </div> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Ad Sidebar', 'cp')) : else : ?> <?php endif; ?> </div>
There are currently 1 users browsing this thread. (0 members and 1 guests)