Code:
if ( $quantity == 'yes' && $job_amount_max > 1 ) {
$is_price_type = false;
if ( get_post_meta( $pid, 'price_type', true ) && get_post_meta( $pid, 'price_type', true ) != 'fixed' ) {
$is_price_type = true;
} ?>
<li class="main_li_nopad">
<label class="main_amount_box">
<?php if ( $is_price_type ) { ?>
<span><?php echo sprintf( __( '%s Rate', 'wpjobster' ), ucfirst( wpjobster_translate_string( get_post_meta( $pid, 'price_type', true ) ) ) ); ?></span>
<?php } else { ?>
<span><?php _e( 'Job Quantity', 'wpjobster' ); ?></span>
<?php } ?>
<span class="extra-price-inside"><?php echo wpjobster_get_show_price($prc); ?></span>
<?php if ( ! $is_price_type ) { echo '<br>'; } ?>
<?php if ( $quantity == 'yes' ) {
if ( $is_price_type ) { ?>
<br /><span class="sn-job-rate-text"><?php echo __( 'Number of', 'wpjobster' ) . ' ' . ucfirst( wpjobster_translate_string( wpj_change_rate_word( get_post_meta( $pid, 'price_type', true ), 'plural' ) ) ) . ':'; ?></span>
<?php } ?>
<span class="amount_section" <?php if ( $is_price_type ) { echo 'style="margin-top: 5px;"'; } ?>>
<a href="#" class="amount_rmv">−</a>
<input type="text" name="main_value_inp" class="main_value_inp current_amount main_amount" data-max="<?php echo $job_amount_max; ?>" value="1">
<a href="#" class="amount_add">+</a>
</span>
<?php } ?>
</label>
</li>
<?php }