jmega (April 9th, 2013), romainvincent (May 17th, 2013)
<?php if ( $review_id = va_get_user_review_id( get_current_user_id(), get_the_ID() ) ) : ?>
<p>
<?php _e( 'You have already reviewed this listing.', APP_TD ); ?>
</p>
<?php elseif ( va_user_can_add_reviews() ) : ?>
<?php appthemes_load_template( 'form-review.php' ); ?>
<?php elseif ( get_current_user_id() == get_the_author_meta('ID') ) : ?>
<p>
<?php _e( "You can't review your own listing.", APP_TD ); ?>
</p>
<?php elseif ( !is_user_logged_in() ) : ?>
<p>
<?php printf( __( "Please %s to add your review.", APP_TD ), html_link( wp_login_url(), __( 'login', APP_TD ) ) ); ?>
</p>
<?php endif; ?>
<?php if ( $review_id = va_get_user_review_id( get_current_user_id(), get_the_ID() ) ) : ?>
<p>
<?php _e( 'You have already reviewed this listing.', APP_TD ); ?>
</p>
<?php elseif ( !is_user_logged_in() ) : ?>
<?php appthemes_load_template( 'form-review.php' ); ?>
<?php elseif ( get_current_user_id() == get_the_author_meta('ID') ) : ?>
<p>
<?php _e( "You can't review your own listing.", APP_TD ); ?>
</p>
<?php endif; ?>
jmega (April 9th, 2013), romainvincent (May 17th, 2013)
jmega (April 9th, 2013)
jmega (April 9th, 2013)
archersoftech (May 15th, 2013), jmega (April 9th, 2013), tbase (April 8th, 2013)
There are currently 1 users browsing this thread. (0 members and 1 guests)