function espresso_seating_price_select_action($event_id, $atts = '')
 {
     global $org_options;
     $price_range = seating_chart::get_price_range($event_id);
     $price = "";
     if ($price_range['min'] != $price_range['max']) {
         $price = '<span class="section-title">' . __('Price Range', 'event_espresso') . '</span>: ' . $org_options['currency_symbol'] . number_format($price_range['min'], 2) . ' - ' . $org_options['currency_symbol'] . number_format($price_range['max'], 2);
     } else {
         $price = '<span class="section-title">' . __('Price', 'event_espresso') . '</span>: ' . $org_options['currency_symbol'] . number_format($price_range['min'], 2);
     }
     echo $price;
 }
Beispiel #2
0
						<th scope="row" class="header">
							<?php 
    echo empty($price_type) ? __('Price per attendee:', 'event_espresso') : __('Type/Price per attendee:', 'event_espresso');
    ?>
						</th>
						<td>
							<span class="event_espresso_value"><?php 
    echo empty($price_type) ? $org_options['currency_symbol'] . number_format($final_price, 2) : stripslashes_deep($price_type) . ' / ' . $org_options['currency_symbol'] . number_format($final_price, 2);
    ?>
</span>
						</td>
					</tr>
<?php 
} else {
    // Added for seating chart addon
    $price_range = seating_chart::get_price_range($event_id);
    $price = "";
    if ($price_range['min'] != $price_range['max']) {
        $price = $org_options['currency_symbol'] . number_format($price_range['min'], 2) . ' - ' . $org_options['currency_symbol'] . number_format($price_range['max'], 2);
    } else {
        $price = $org_options['currency_symbol'] . number_format($price_range['min'], 2);
    }
    ?>
					<tr>
						<th scope="row" class="header"><?php 
    _e('Price:', 'event_espresso');
    ?>
</th>
						<td><span class="event_espresso_value"><?php 
    echo $price;
    ?>