<div class="bigright"<?php if(get_option($GLOBALS['app_abbr'].'_ad_images') == 'no') echo 'style="float:none;"'; ?>>
<ul>
<?php
// grab the category id for the functions below
$cat_id = appthemes_get_custom_taxonomy( $post->ID, APP_TAX_CAT, 'term_id' );
// check to see if ad is legacy or not
if ( get_post_meta( $post->ID, 'expires', true ) ) { ?>
<li><span><?php _e('Location:', 'appthemes') ?></span> <?php echo get_post_meta( $post->ID, 'location', true ); ?></li>
<li><span><?php _e('Phone:', 'appthemes') ?></span> <?php echo get_post_meta( $post->ID, 'phone', true ); ?></li>
<?php if ( get_post_meta( $post->ID, 'cp_adURL', true ) ) ?>
<li><span><?php _e('URL:','appthemes'); ?></span> <?php echo appthemes_make_clickable( get_post_meta( $post->ID, 'cp_adURL', true ) ); ?></li>
<li><span><?php _e('Listed:', 'appthemes') ?></span> <?php the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ?></li>
<li><span><?php _e('Expires:', 'appthemes') ?></span> <?php echo cp_timeleft( strtotime( get_post_meta( $post->ID, 'expires', true ) ) ); ?></li>
<?php
} else {
if ( get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes' ) : ?>
<li id="cp_sold"><span><?php _e('This item has been sold', 'appthemes'); ?></span></li>
<?php endif; ?>
<?php
// 3.0+ display the custom fields instead (but not text areas)
cp_get_ad_details( $post->ID, $cat_id );
?>
<li><span class="pink"><?php _e('Cena za godzinę:', 'appthemes') ?></span> <?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></li>
<li id="cp_listed"><span class="pink"><?php _e('Listed:', 'appthemes') ?></span> <?php the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ?></li>
<?php if ( get_post_meta($post->ID, 'cp_sys_expire_date', true) ) ?>
<li id="cp_expires"><span><?php _e( 'Expires:', 'appthemes' ) ?></span> <?php echo cp_timeleft( strtotime( get_post_meta( $post->ID, 'cp_sys_expire_date', true) ) ); ?></li>
<?php
} // end legacy check
?>
</ul>
</div><!-- /bigright --><div class="bigright"<?php if(get_option($GLOBALS['app_abbr'].'_ad_images') == 'no') echo 'style="float:none;"'; ?>>
<ul>
<?php
// grab the category id for the functions below
$cat_id = appthemes_get_custom_taxonomy( $post->ID, APP_TAX_CAT, 'term_id' );
// check to see if ad is legacy or not
if ( get_post_meta( $post->ID, 'expires', true ) ) { ?>
<li><span><?php _e('Location:', 'appthemes') ?></span> <?php echo get_post_meta( $post->ID, 'location', true ); ?></li>
<li><span><?php _e('Phone:', 'appthemes') ?></span> <?php echo get_post_meta( $post->ID, 'phone', true ); ?></li>
<?php if ( get_post_meta( $post->ID, 'cp_adURL', true ) ) ?>
<li><span><?php _e('URL:','appthemes'); ?></span> <?php echo appthemes_make_clickable( get_post_meta( $post->ID, 'cp_adURL', true ) ); ?></li>
<li><span><?php _e('Listed:', 'appthemes') ?></span> <?php the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ?></li>
<li><span><?php _e('Expires:', 'appthemes') ?></span> <?php echo cp_timeleft( strtotime( get_post_meta( $post->ID, 'expires', true ) ) ); ?></li>
<?php
} else {
if ( get_post_meta($post->ID, 'cp_ad_sold', true) == 'yes' ) : ?>
<li id="cp_sold"><span><?php _e('This item has been sold', 'appthemes'); ?></span></li>
<?php endif; ?>
<?php
// 3.0+ display the custom fields instead (but not text areas)
cp_get_ad_details( $post->ID, $cat_id );
?>
<li><span class="pink"><?php _e('Cena za godzinę:', 'appthemes') ?></span> <?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy( $post->ID ); else cp_get_price( $post->ID, 'cp_price' ); ?></li>
<li id="cp_listed"><span class="pink"><?php _e('Listed:', 'appthemes') ?></span> <?php the_time( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ?></li>
<?php if ( get_post_meta($post->ID, 'cp_sys_expire_date', true) ) ?>
<li id="cp_expires"><span><?php _e( 'Expires:', 'appthemes' ) ?></span> <?php echo cp_timeleft( strtotime( get_post_meta( $post->ID, 'cp_sys_expire_date', true) ) ); ?></li>
<?php
} // end legacy check
?>
</ul>
</div><!-- /bigright -->