Exemplo n.º 1
0
 function espresso_member_price_select_action($event_id, $atts = '')
 {
     do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, '');
     $html = '';
     //$html .= is_admin() ? '' : '<p class="event_prices">';
     $html .= event_espresso_price_dropdown($event_id, $atts);
     //$html .= is_admin() ? '' : '</p>';
     echo $html;
     return;
 }
						</p>
						<?php 
            /*
             * Added for seating chart addon
             */
            $display_price_dropdown = true;
            if (defined('ESPRESSO_SEATING_CHART')) {
                $seating_chart_id = seating_chart::check_event_has_seating_chart($event_id);
                if ($seating_chart_id !== false) {
                    $display_price_dropdown = false;
                }
            }
            if ($display_price_dropdown == true) {
                ?>
							<p class="event_prices"><?php 
                echo event_espresso_price_dropdown($event_id);
                //Show pricing in a dropdown or text
                ?>
</p>
							<?php 
            } else {
                $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);
                }
                ?>
							<p class="event_prices"><?php 
                echo __('Price: ', 'event_espresso') . $price;
Exemplo n.º 3
0
 function espresso_price_dd_sc($atts)
 {
     global $wpdb, $org_options;
     extract(shortcode_atts(array('event_id' => '0'), $atts));
     $event_id = "{$event_id}";
     ob_start();
     event_espresso_price_dropdown($event_id);
     $buffer = ob_get_contents();
     ob_end_clean();
     return $buffer;
 }
Exemplo n.º 4
0
 function espresso_price_dd_sc($atts)
 {
     global $wpdb, $org_options;
     extract(shortcode_atts(array('event_id' => '0'), $atts));
     $event_id = "{$event_id}";
     $data = event_espresso_price_dropdown($event_id);
     return $data['category_name'];
 }