missing escaping function added
This commit is contained in:
parent
9d76e023d4
commit
ecbbc9b67e
File diff suppressed because it is too large
Load Diff
|
@ -26,30 +26,30 @@ class MP_Event_All_Info_In_One
|
|||
<ul>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_location', $post_id); ?>
|
||||
<li data-target-tabs="#mp_event_venue">
|
||||
<span class="dashicons dashicons-location"></span> <?php _e('Venue/Location', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-location"></span> <?php esc_html_e('Venue/Location', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_after_tab_name_location', $post_id); ?>
|
||||
<li data-target-tabs="#mp_ticket_type_pricing">
|
||||
<span class="dashicons dashicons-buddicons-tracking"></span> <?php _e('Ticket & Pricing', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-buddicons-tracking"></span> <?php esc_html_e('Ticket & Pricing', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_ticket_type', $post_id); ?>
|
||||
<li data-target-tabs="#mp_event_time">
|
||||
<span class="dashicons dashicons-calendar-alt"></span> <?php _e('Date & Time', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-calendar-alt"></span> <?php esc_html_e('Date & Time', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_date_time', $post_id); ?>
|
||||
|
||||
<li data-target-tabs="#mp_event_settings">
|
||||
<span class="dashicons dashicons-admin-generic"></span> <?php _e('Settings', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-admin-generic"></span> <?php esc_html_e('Settings', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_settings', $post_id); ?>
|
||||
<?php if (get_option('woocommerce_calc_taxes') == 'yes') { ?>
|
||||
<li data-target-tabs="#mp_event_tax_settings">
|
||||
<span class="dashicons dashicons-admin-settings"></span> <?php _e('Tax', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-admin-settings"></span> <?php esc_html_e('Tax', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_tax', $post_id); ?>
|
||||
<li data-target-tabs="#mp_event_rich_text">
|
||||
<span class="dashicons dashicons-admin-settings"></span> <?php _e('Rich text', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-admin-settings"></span> <?php esc_html_e('Rich text', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_rich_text', $post_id); ?>
|
||||
<?php do_action('mp_event_all_in_tab_menu'); ?>
|
||||
|
@ -60,24 +60,24 @@ class MP_Event_All_Info_In_One
|
|||
<div class="mp_tab_details">
|
||||
<?php do_action('mep_admin_event_details_before_tab_details_location', $post_id); ?>
|
||||
<div class="mp_tab_item active" data-tab-item="#mp_event_venue">
|
||||
<h3><?php echo $event_label;
|
||||
_e(' Location :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php echo esc_html($event_label);
|
||||
esc_html_e(' Location :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mp_event_venue($post_id); ?>
|
||||
</div>
|
||||
<?php do_action('mep_admin_event_details_after_tab_details_location', $post_id); ?>
|
||||
<div class="mp_tab_item" data-tab-item="#mp_ticket_type_pricing">
|
||||
<h3><?php _e('Ticket Type List :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php esc_html_e('Ticket Type List :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mep_event_ticket_type($post_id); ?>
|
||||
<h3><?php _e('Extra service Area :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php esc_html_e('Extra service Area :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mep_event_extra_price_option($post_id); ?>
|
||||
</div>
|
||||
<?php do_action('mep_admin_event_details_after_tab_details_ticket_type', $post_id); ?>
|
||||
<div class="mp_tab_item" data-tab-item="#mp_event_time">
|
||||
<h3><?php echo $event_label;
|
||||
_e(' Date & TIme :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php echo esc_html($event_label);
|
||||
esc_html_e(' Date & TIme :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mep_event_date_meta_box_cb($post_id); ?>
|
||||
<?php do_action('mp_event_recurring_every_day_setting', $post_id); ?>
|
||||
|
@ -85,15 +85,15 @@ class MP_Event_All_Info_In_One
|
|||
<?php do_action('mep_admin_event_details_after_tab_details_date_time', $post_id); ?>
|
||||
|
||||
<div class="mp_tab_item" data-tab-item="#mp_event_rich_text">
|
||||
<h3><?php echo $event_label;
|
||||
_e(' Rich Texts for SEO & Google Schema Text :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php echo esc_html($event_label);
|
||||
esc_html_e(' Rich Texts for SEO & Google Schema Text :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mp_event_rich_text($post_id); ?>
|
||||
</div>
|
||||
<?php do_action('mep_admin_event_details_after_tab_details_rich_text', $post_id); ?>
|
||||
<div class="mp_tab_item" data-tab-item="#mp_event_settings">
|
||||
<h3><?php echo $event_label;
|
||||
_e(' Settings :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php echo esc_html($event_label);
|
||||
esc_html_e(' Settings :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mp_event_settings($post_id); ?>
|
||||
</div>
|
||||
|
@ -101,8 +101,8 @@ class MP_Event_All_Info_In_One
|
|||
<?php if (get_option('woocommerce_calc_taxes') == 'yes') { ?>
|
||||
<div class="mp_tab_item" data-tab-item="#mp_event_tax_settings">
|
||||
|
||||
<h3><?php echo $event_label;
|
||||
_e(' Tax Settings :', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php echo esc_html($event_label);
|
||||
esc_html_e(' Tax Settings :', 'mage-eventpress'); ?></h3>
|
||||
<hr />
|
||||
<?php $this->mp_event_tax($post_id); ?>
|
||||
</div>
|
||||
|
@ -161,34 +161,34 @@ class MP_Event_All_Info_In_One
|
|||
$author_id = get_post_field('post_author', $post_id);
|
||||
|
||||
if ($this->is_gutenberg_active()) { ?>
|
||||
<input type="hidden" name="post_author_gutenberg" value="<?php echo $author_id; ?>">
|
||||
<input type="hidden" name="post_author_gutenberg" value="<?php echo esc_attr($author_id); ?>">
|
||||
<?php }
|
||||
?>
|
||||
<div class="mp_ticket_type_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th style="min-width: 160px;"><?php _e(" Location Source:", "mage-eventpress"); ?></th>
|
||||
<th style="min-width: 160px;"><?php esc_html_e(" Location Source:", "mage-eventpress"); ?></th>
|
||||
<td colspan="3" style="min-width: 450px;">
|
||||
<label>
|
||||
<select class="mp_formControl" name="mep_org_address">
|
||||
<option value="0" <?php echo ($mep_org_address == 0) ? 'selected' : ''; ?>><?php echo $event_label;
|
||||
<option value="0" <?php echo ($mep_org_address == 0) ? esc_attr('selected') : ''; ?>><?php echo esc_html($event_label);
|
||||
_e(' Details', 'mage-eventpress'); ?></option>
|
||||
<option value="1" <?php echo ($mep_org_address == 1) ? 'selected' : ''; ?>><?php _e('Organizer', 'mage-eventpress'); ?></option>
|
||||
<option value="1" <?php echo ($mep_org_address == 1) ? esc_attr('selected') : ''; ?>><?php esc_html_e('Organizer', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
<p class="event_meta_help_txt">
|
||||
<?php _e('Select Organizer if you already save the organizer details. Please remember if you select orginizer and not checked the the organizer from the Event Organizer list from the right sidebar, Event Location section if the frontend will be blank.', 'mage-eventpress'); ?>
|
||||
<?php esc_html_e('Select Organizer if you already save the organizer details. Please remember if you select orginizer and not checked the the organizer from the Event Organizer list from the right sidebar, Event Location section if the frontend will be blank.', 'mage-eventpress'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="mp_event_address">
|
||||
<th><?php _e('Location/Venue:', 'mage-eventpress'); ?></th>
|
||||
<th><?php esc_html_e('Location/Venue:', 'mage-eventpress'); ?></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_location_venue' placeholder="Ex: New york Meeting Center" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_location_venue'); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('Street:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Street:', 'mage-eventpress'); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_street' placeholder="Ex: 10 E 33rd St" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_street'); ?>'>
|
||||
|
@ -196,13 +196,13 @@ class MP_Event_All_Info_In_One
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="mp_event_address">
|
||||
<th><span><?php _e('City: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('City: ', 'mage-eventpress'); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_city' placeholder="Ex: New York" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_city'); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('State: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('State: ', 'mage-eventpress'); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_state' placeholder="Ex: NY" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_state'); ?>'>
|
||||
|
@ -210,13 +210,13 @@ class MP_Event_All_Info_In_One
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="mp_event_address">
|
||||
<th><span><?php _e('Postcode: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Postcode: ', 'mage-eventpress'); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_postcode' placeholder="Ex: 10016" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_postcode'); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('Country: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Country: ', 'mage-eventpress'); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_country' placeholder="Ex: USA" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_country'); ?>'>
|
||||
|
@ -229,8 +229,8 @@ class MP_Event_All_Info_In_One
|
|||
<div class="mp_form_area">
|
||||
<div class="mp_form_item">
|
||||
<label>
|
||||
<input type="checkbox" name='mep_sgm' value='1' <?php echo $map_visible > 0 ? 'checked' : ''; ?>>
|
||||
<span><?php _e('Show Google Map ', 'mage-eventpress'); ?></span>
|
||||
<input type="checkbox" name='mep_sgm' value='1' <?php echo $map_visible > 0 ? esc_attr('checked') : ''; ?>>
|
||||
<span><?php esc_html_e('Show Google Map ', 'mage-eventpress'); ?></span>
|
||||
</label>
|
||||
<?php
|
||||
if ($map_type == 'iframe') {
|
||||
|
@ -245,22 +245,25 @@ class MP_Event_All_Info_In_One
|
|||
?>
|
||||
|
||||
<div class='sec'>
|
||||
<input id="pac-input" name='location_name' value='<?php //echo $values['location_name'][0];
|
||||
?>' />
|
||||
<input id="pac-input" name='location_name' value='' />
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" class="form-control" required name="latitude" value="<?php if (array_key_exists('latitude', $values)) {
|
||||
echo $values['latitude'][0];
|
||||
echo esc_attr($values['latitude'][0]);
|
||||
} ?>">
|
||||
<input type="hidden" class="form-control" required name="longitude" value="<?php if (array_key_exists('longitude', $values)) {
|
||||
echo $values['longitude'][0];
|
||||
echo esc_attr($values['longitude'][0]);
|
||||
} ?>">
|
||||
<div id="map"></div>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
echo "<span class=mep_status><span class=err>No Google MAP API Key Found. Please enter API KEY <a href=" . get_site_url() . "/wp-admin/options-general.php?page=mep_event_settings_page>Here</a></span></span>";
|
||||
?>
|
||||
<span class=mep_status><span class=err>
|
||||
<?php esc_html_e('No Google MAP API Key Found. Please enter API KEY','mage-eventpress'); ?> <a href="<?php echo get_site_url() . esc_url('/wp-admin/options-general.php?page=mep_event_settings_page'); ?>"><?php esc_html_e('Here','mage-eventpress'); ?></a></span>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
|
@ -281,8 +284,8 @@ class MP_Event_All_Info_In_One
|
|||
function initMap() {
|
||||
var map = new google.maps.Map(document.getElementById('map'), {
|
||||
center: {
|
||||
lat: <?php echo $lat; ?>,
|
||||
lng: <?php echo $lon; ?>
|
||||
lat: <?php echo esc_attr($lat); ?>,
|
||||
lng: <?php echo esc_attr($lon); ?>
|
||||
},
|
||||
zoom: 17
|
||||
});
|
||||
|
@ -301,8 +304,8 @@ class MP_Event_All_Info_In_One
|
|||
anchorPoint: new google.maps.Point(0, -29),
|
||||
draggable: true,
|
||||
position: {
|
||||
lat: <?php echo $lat; ?>,
|
||||
lng: <?php echo $lon; ?>
|
||||
lat: <?php echo esc_attr($lat); ?>,
|
||||
lng: <?php echo esc_attr($lon); ?>
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -408,17 +411,17 @@ class MP_Event_All_Info_In_One
|
|||
<table id="repeatable-fieldset-one-t">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Type Name', 'mage-eventpress'); ?>"><?php _e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Price', 'mage-eventpress'); ?>"><?php _e('Price', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Ticket Type Name', 'mage-eventpress'); ?>"><?php esc_html_e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Ticket Price', 'mage-eventpress'); ?>"><?php esc_html_e('Price', 'mage-eventpress'); ?></th>
|
||||
<?php do_action('mep_pricing_table_head_after_price_col'); ?>
|
||||
<th style="min-width: 80px;" title="<?php _e('Available Qty', 'mage-eventpress'); ?>"><?php _e('Available', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Default Qty', 'mage-eventpress'); ?>"><?php _e('Default', 'mage-eventpress'); ?></th>
|
||||
<?php echo $rsvqty = '<th style="min-width: 80px;" title="' . esc_html__("Reserve Qty", "mage-eventpress") . '">' . esc_html__("Reserve", "mage-eventpress") . '</th>';
|
||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Available Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Available', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php esc_attr_e('Default Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Default', 'mage-eventpress'); ?></th>
|
||||
<?php echo $rsvqty = '<th style="min-width: 80px;" title="' . esc_attr__("Reserve Qty", "mage-eventpress") . '">' . esc_html__("Reserve", "mage-eventpress") . '</th>';
|
||||
apply_filters('mep_add_extra_column', $rsvqty); ?>
|
||||
<th style="min-width: 150px;" title="<?php _e('Sale End Date', 'mage-eventpress'); ?>"><?php _e('Sale End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;" title="<?php _e('Sale End Time', 'mage-eventpress'); ?>"><?php _e('Sale End Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 140px;" title="<?php _e('Qty Box Type', 'mage-eventpress'); ?>"><?php _e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;"><?php _e('Action', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 150px;" title="<?php esc_attr_e('Sale End Date', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;" title="<?php esc_attr_e('Sale End Time', 'mage-eventpress'); ?>"><?php esc_html_e('Sale End Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 140px;" title="<?php esc_attr_e('Qty Box Type', 'mage-eventpress'); ?>"><?php esc_html_e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;"><?php esc_html_e('Action', 'mage-eventpress'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="mp_event_type_sortable">
|
||||
|
@ -447,21 +450,21 @@ class MP_Event_All_Info_In_One
|
|||
<?php do_action('mep_pricing_table_data_after_price_col', $field, $post_id); ?>
|
||||
<td>
|
||||
<input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" name="option_qty_t[]" placeholder="Ex: 500" value="<?php if (isset($field['option_qty_t'])) {
|
||||
echo $field['option_qty_t'];
|
||||
echo esc_attr($field['option_qty_t']);
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" size="2" pattern="[0-9]*" step="1" class="mp_formControl" name="option_default_qty_t[]" placeholder="Ex: 1" value="<?php if (isset($field['option_default_qty_t'])) {
|
||||
echo $field['option_default_qty_t'];
|
||||
echo esc_attr($field['option_default_qty_t']);
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" class="mp_formControl" name="option_rsv_t[]" placeholder="Ex: 5" value="<?php if (isset($field['option_rsv_t'])) {
|
||||
echo $field['option_rsv_t'];
|
||||
echo esc_attr($field['option_rsv_t']);
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>" />
|
||||
|
@ -486,11 +489,11 @@ class MP_Event_All_Info_In_One
|
|||
<td>
|
||||
<select name="option_qty_t_type[]" class='mp_formControl'>
|
||||
<option value="inputbox" <?php if ($qty_t_type == 'inputbox') {
|
||||
echo "Selected";
|
||||
} ?>><?php _e('Input Box', 'mage-eventpress'); ?></option>
|
||||
echo esc_attr("Selected");
|
||||
} ?>><?php esc_html_e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown" <?php if ($qty_t_type == 'dropdown') {
|
||||
echo "Selected";
|
||||
} ?>><?php _e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
echo esc_attr("Selected");
|
||||
} ?>><?php esc_html_e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
|
@ -529,9 +532,9 @@ class MP_Event_All_Info_In_One
|
|||
</td>
|
||||
<td>
|
||||
<select name="option_qty_t_type[]" class='mp_formControl'>
|
||||
<option value=''><?php _e('Please Select', 'mage-eventpress'); ?></option>
|
||||
<option value="inputbox"><?php _e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown"><?php _e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
<option value=''><?php esc_html_e('Please Select', 'mage-eventpress'); ?></option>
|
||||
<option value="inputbox"><?php esc_html_e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown"><?php esc_html_e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -542,7 +545,7 @@ class MP_Event_All_Info_In_One
|
|||
</table>
|
||||
</div>
|
||||
<p>
|
||||
<button id="add-row-t" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New Ticket Type', 'mage-eventpress'); ?></button>
|
||||
<button id="add-row-t" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php esc_html_e('Add New Ticket Type', 'mage-eventpress'); ?></button>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
|
@ -553,15 +556,15 @@ class MP_Event_All_Info_In_One
|
|||
$mep_events_extra_prices = get_post_meta($post_id, 'mep_events_extra_prices', true);
|
||||
wp_nonce_field('mep_events_extra_price_nonce', 'mep_events_extra_price_nonce');
|
||||
?>
|
||||
<p class="event_meta_help_txt"><?php _e('Extra Service as Product that you can sell and it is not included on event package', 'mage-eventpress'); ?></p>
|
||||
<p class="event_meta_help_txt"><?php esc_html_e('Extra Service as Product that you can sell and it is not included on event package', 'mage-eventpress'); ?></p>
|
||||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one">
|
||||
<thead>
|
||||
<tr>
|
||||
<th title="<?php _e('Extra Service Name', 'mage-eventpress'); ?>"><?php _e('Name', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Extra Service Price', 'mage-eventpress'); ?>"><?php _e('Price', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Available Qty', 'mage-eventpress'); ?>"><?php _e('Available', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Qty Box Type', 'mage-eventpress'); ?>" style="min-width: 140px;"><?php _e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php esc_attr_e('Extra Service Name', 'mage-eventpress'); ?>"><?php esc_html_e('Name', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php esc_attr_e('Extra Service Price', 'mage-eventpress'); ?>"><?php esc_html_e('Price', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php esc_attr_e('Available Qty', 'mage-eventpress'); ?>"><?php esc_html_e('Available', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php esc_attr_e('Qty Box Type', 'mage-eventpress'); ?>" style="min-width: 140px;"><?php esc_html_e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -569,7 +572,6 @@ class MP_Event_All_Info_In_One
|
|||
<?php
|
||||
|
||||
if ($mep_events_extra_prices) :
|
||||
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
$qty_type = array_key_exists('option_qty_type', $field) ? esc_attr($field['option_qty_type']) : 'inputbox';
|
||||
?>
|
||||
|
@ -584,20 +586,20 @@ class MP_Event_All_Info_In_One
|
|||
echo '';
|
||||
} ?>" /></td>
|
||||
|
||||
<td><input type="number" class="mp_formControl" name="option_qty[]" placeholder="Ex: 100" value="<?php if ($field['option_qty'] != '') {
|
||||
echo esc_attr($field['option_qty']);
|
||||
} else {
|
||||
echo '';
|
||||
} ?>" /></td>
|
||||
<td>
|
||||
<input type="number" class="mp_formControl" name="option_qty[]"
|
||||
placeholder="Ex: 100"
|
||||
value="<?php echo esc_attr(($field['option_qty'] != '') ? $field['option_qty'] : ''); ?>" />
|
||||
</td>
|
||||
|
||||
<td align="center">
|
||||
<select name="option_qty_type[]" class='mp_formControl'>
|
||||
<option value="inputbox" <?php if ($qty_type == 'inputbox') {
|
||||
echo "Selected";
|
||||
} ?>><?php _e('Input Box', 'mage-eventpress'); ?></option>
|
||||
echo esc_attr("Selected");
|
||||
} ?>><?php esc_html_e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown" <?php if ($qty_type == 'dropdown') {
|
||||
echo "Selected";
|
||||
} ?>><?php _e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
echo esc_attr("Selected");
|
||||
} ?>><?php esc_html_e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -620,19 +622,19 @@ class MP_Event_All_Info_In_One
|
|||
<td><input type="number" class="mp_formControl" name="option_qty[]" placeholder="Ex: 100" value="" /></td>
|
||||
|
||||
<td><select name="option_qty_type[]" class='mp_formControl'>
|
||||
<option value=""><?php _e('Please Select Type', 'mage-eventpress'); ?></option>
|
||||
<option value="inputbox"><?php _e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown"><?php _e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
<option value=""><?php esc_html_e('Please Select Type', 'mage-eventpress'); ?></option>
|
||||
<option value="inputbox"><?php esc_html_e('Input Box', 'mage-eventpress'); ?></option>
|
||||
<option value="dropdown"><?php esc_html_e('Dropdown List', 'mage-eventpress'); ?></option>
|
||||
</select></td>
|
||||
<td>
|
||||
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove', 'mage-eventpress'); ?></button>
|
||||
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php esc_html_e('Remove', 'mage-eventpress'); ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p>
|
||||
<button id="add-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add Extra Price', 'mage-eventpress'); ?></button>
|
||||
<button id="add-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php esc_html_e('Add Extra Price', 'mage-eventpress'); ?></button>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
@ -645,33 +647,33 @@ class MP_Event_All_Info_In_One
|
|||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one-d">
|
||||
<thead>
|
||||
<th style="min-width: 120px;"><?php _e('Start Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('Start Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('End Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php esc_html_e('Start Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php esc_html_e('Start Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php esc_html_e('End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php esc_html_e('End Time', 'mage-eventpress'); ?></th>
|
||||
<?php do_action('mep_date_table_head', $post_id); ?>
|
||||
<th style="min-width: 60px;"><?php _e('Action', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 60px;"><?php esc_html_e('Action', 'mage-eventpress'); ?></th>
|
||||
</thead>
|
||||
<tbody class="mp_event_type_sortable">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="date" class="mp_formControl" name="event_start_date" placeholder="Start Date" value="<?php if (array_key_exists('event_start_date', $values)) {
|
||||
echo $values['event_start_date'][0];
|
||||
echo esc_attr($values['event_start_date'][0]);
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="time" class="mp_formControl" name="event_start_time" placeholder="Start Time" value="<?php if (array_key_exists('event_start_time', $values)) {
|
||||
echo $values['event_start_time'][0];
|
||||
echo esc_attr($values['event_start_time'][0]);
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="date" class="mp_formControl" name="event_end_date" placeholder="End Date" value="<?php if (array_key_exists('event_end_date', $values)) {
|
||||
echo $values['event_end_date'][0];
|
||||
echo esc_attr($values['event_end_date'][0]);
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="time" class="mp_formControl" name="event_end_time" placeholder="End Time" value="<?php if (array_key_exists('event_end_time', $values)) {
|
||||
echo date('H:i', strtotime($values['event_end_time'][0]));
|
||||
echo esc_attr(date('H:i', strtotime($values['event_end_time'][0])));
|
||||
} ?>" />
|
||||
</td>
|
||||
<?php do_action('mep_date_table_body_default_date', $post_id); ?>
|
||||
|
@ -689,23 +691,23 @@ class MP_Event_All_Info_In_One
|
|||
<tr>
|
||||
<td>
|
||||
<input type="date" class="mp_formControl" name="event_more_start_date[]" placeholder="Start Date" value="<?php if ($field['event_more_start_date'] != '') {
|
||||
echo date('Y-m-d', strtotime($field['event_more_start_date']));
|
||||
echo esc_attr(date('Y-m-d', strtotime($field['event_more_start_date'])));
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="time" class="mp_formControl" name="event_more_start_time[]" placeholder="Start Time" value="<?php if ($field['event_more_start_time'] != '') {
|
||||
echo date('H:i', strtotime($field['event_more_start_time']));
|
||||
echo esc_attr(date('H:i', strtotime($field['event_more_start_time'])));
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="date" class="mp_formControl" name="event_more_end_date[]" placeholder="End Date" value="<?php if ($field['event_more_end_date'] != '') {
|
||||
echo date('Y-m-d', strtotime($field['event_more_end_date']));
|
||||
echo esc_attr(date('Y-m-d', strtotime($field['event_more_end_date'])));
|
||||
} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<input type="time" class="mp_formControl" name="event_more_end_time[]" placeholder="End Time" value="<?php if ($field['event_more_end_time'] != '') {
|
||||
echo date('H:i', strtotime($field['event_more_end_time']));
|
||||
echo esc_attr(date('H:i', strtotime($field['event_more_end_time'])));
|
||||
} ?>" />
|
||||
</td>
|
||||
<?php do_action('mep_date_table_body_more_date', $post_id, $field); ?>
|
||||
|
@ -738,13 +740,13 @@ class MP_Event_All_Info_In_One
|
|||
</td>
|
||||
<?php do_action('mep_date_table_empty', $post_id); ?>
|
||||
<td>
|
||||
<button class="button remove-row-d"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove', 'mage-eventpress'); ?></button>
|
||||
<button class="button remove-row-d"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php esc_html_e('Remove', 'mage-eventpress'); ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button id="add-new-date-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add More Dates', 'mage-eventpress'); ?></button>
|
||||
<button id="add-new-date-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php esc_html_e('Add More Dates', 'mage-eventpress'); ?></button>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -769,25 +771,25 @@ class MP_Event_All_Info_In_One
|
|||
<?php _e('Rich Text Status', 'mage-eventpress'); ?>
|
||||
<select id='mep_rich_text_status' name='mep_rich_text_status'>
|
||||
<option value='enable' <?php if ($rt_status == 'enable') {
|
||||
echo 'Selected';
|
||||
} ?>><?php _e('Enable', 'mage-eventpress'); ?></option>
|
||||
echo esc_html('Selected');
|
||||
} ?>><?php esc_html_e('Enable', 'mage-eventpress'); ?></option>
|
||||
<option value='disable' <?php if ($rt_status == 'disable') {
|
||||
echo 'Selected';
|
||||
} ?>><?php _e('Disable', 'mage-eventpress'); ?></option>
|
||||
echo esc_html('Selected');
|
||||
} ?>><?php esc_html_e('Disable', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<table id='mep_rich_text_table' <?php if ($rt_status == 'disable') { ?> style='display:none;' <?php } ?>>
|
||||
<tr>
|
||||
<th><span><?php _e('Type :', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3"><?php _e('Event', 'mage-eventpress'); ?></td>
|
||||
<th><span><?php esc_html_e('Type :', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3"><?php esc_html_e('Event', 'mage-eventpress'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Name :', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Name :', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3"><?php echo get_the_title($post_id); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Start Date :', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Start Date :', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3"><?php echo $event_start_date ? get_mep_datetime($event_start_date, 'date-time-text') : ''; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -795,35 +797,35 @@ class MP_Event_All_Info_In_One
|
|||
<td colspan="3"><?php echo $event_end_date ? get_mep_datetime($event_end_date, 'date-time-text') : ''; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Event Status:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Event Status:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<select class="mp_formControl" name="mep_rt_event_status">
|
||||
<option value="EventRescheduled" <?php echo ($event_rt_status == 'EventMovedOnline') ? 'selected' : ''; ?>><?php _e('Event Rescheduled', 'mage-eventpress'); ?></option>
|
||||
<option value="EventMovedOnline" <?php echo ($event_rt_status == 'EventMovedOnline') ? 'selected' : ''; ?>><?php _e('Event Moved Online', 'mage-eventpress'); ?></option>
|
||||
<option value="EventPostponed" <?php echo ($event_rt_status == 'EventPostponed') ? 'selected' : ''; ?>><?php _e('Event Postponed', 'mage-eventpress'); ?></option>
|
||||
<option value="EventCancelled" <?php echo ($event_rt_status == 'EventCancelled') ? 'selected' : ''; ?>><?php _e('Event Cancelled', 'mage-eventpress'); ?></option>
|
||||
<option value="EventRescheduled" <?php echo ($event_rt_status == 'EventMovedOnline') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Event Rescheduled', 'mage-eventpress'); ?></option>
|
||||
<option value="EventMovedOnline" <?php echo ($event_rt_status == 'EventMovedOnline') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Event Moved Online', 'mage-eventpress'); ?></option>
|
||||
<option value="EventPostponed" <?php echo ($event_rt_status == 'EventPostponed') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Event Postponed', 'mage-eventpress'); ?></option>
|
||||
<option value="EventCancelled" <?php echo ($event_rt_status == 'EventCancelled') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Event Cancelled', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Event Attendance Mode:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Event Attendance Mode:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<select class="mp_formControl" name="mep_rt_event_attandence_mode">
|
||||
<option value="OfflineEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'OfflineEventAttendanceMode') ? 'selected' : ''; ?>><?php _e('OfflineEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
<option value="OnlineEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'OnlineEventAttendanceMode') ? 'selected' : ''; ?>><?php _e('OnlineEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
<option value="MixedEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'MixedEventAttendanceMode') ? 'selected' : ''; ?>><?php _e('MixedEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
<option value="OfflineEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'OfflineEventAttendanceMode') ? esc_attr('selected') : ''; ?>><?php esc_html_e('OfflineEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
<option value="OnlineEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'OnlineEventAttendanceMode') ? esc_attr('selected') : ''; ?>><?php esc_html_e('OnlineEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
<option value="MixedEventAttendanceMode" <?php echo ($event_rt_atdnce_mode == 'MixedEventAttendanceMode') ? esc_attr('selected') : ''; ?>><?php esc_html_e('MixedEventAttendanceMode', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Previous Start Date:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Previous Start Date:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input type='text' class="mp_formControl" name="mep_rt_event_prvdate" value='<?php echo $event_rt_prv_date; ?>' />
|
||||
<input type='text' class="mp_formControl" name="mep_rt_event_prvdate" value='<?php echo esc_attr($event_rt_prv_date); ?>' />
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -833,7 +835,7 @@ class MP_Event_All_Info_In_One
|
|||
if ($post_id) {
|
||||
?>
|
||||
<p class="event_meta_help_txt">
|
||||
<a href='https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=event&url=<?php echo get_the_permalink($post_id); ?>&user_agent=2' target="_blank"><?php _e('Check Rich Text Status', 'mage-eventpress'); ?></a>
|
||||
<a href='https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=event&url=<?php echo get_the_permalink($post_id); ?>&user_agent=2' target="_blank"><?php esc_html_e('Check Rich Text Status', 'mage-eventpress'); ?></a>
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
@ -884,7 +886,7 @@ class MP_Event_All_Info_In_One
|
|||
$mep_show_end_datetime = 'checked';
|
||||
}
|
||||
} else {
|
||||
$mep_show_end_datetime = 'checked';
|
||||
$mep_show_end_datetime = 'checked';
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -893,7 +895,7 @@ class MP_Event_All_Info_In_One
|
|||
<th><span><?php _e('Display End Datetime:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_show_end_datetime" value='yes' <?php echo $mep_show_end_datetime; ?> />
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_show_end_datetime" value='yes' <?php echo esc_attr($mep_show_end_datetime); ?> />
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</td>
|
||||
|
@ -916,7 +918,7 @@ class MP_Event_All_Info_In_One
|
|||
}
|
||||
?>
|
||||
<tr>
|
||||
<th title="<?php _e('Event SKU No:', 'mage-eventpress'); ?>"><span><?php _e('SKU No:', 'mage-eventpress'); ?></span></th>
|
||||
<th title="<?php esc_html_e('Event SKU No:', 'mage-eventpress'); ?>"><span><?php esc_html_e('SKU No:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mep_input_text" type="text" name="mep_event_sku" value="<?php echo get_post_meta($post_id, '_sku', true); ?>" />
|
||||
|
@ -925,10 +927,10 @@ class MP_Event_All_Info_In_One
|
|||
</tr>
|
||||
|
||||
<tr>
|
||||
<th><span><?php _e('Registration On/Off:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Registration On/Off:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_reg_status" <?php echo $reg_checked; ?> />
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_reg_status" <?php echo esc_attr($reg_checked); ?> />
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</td>
|
||||
|
@ -950,10 +952,10 @@ class MP_Event_All_Info_In_One
|
|||
}
|
||||
?>
|
||||
<tr>
|
||||
<th><span><?php _e('Show Available Seat?', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Show Available Seat?', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_available_seat" <?php echo $seat_checked; ?> />
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_available_seat" <?php echo esc_attr($seat_checked); ?> />
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
</td>
|
||||
|
@ -966,12 +968,12 @@ class MP_Event_All_Info_In_One
|
|||
wp_nonce_field('mep_event_reset_btn_nonce', 'mep_event_reset_btn_nonce');
|
||||
?>
|
||||
<tr>
|
||||
<th><span><?php _e('Reset Booking Count :', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Reset Booking Count :', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_reset_status" class="switch_checkbox" />
|
||||
<span class="slider round"></span>
|
||||
<span style="padding: 0 0 0 60px;"><?php _e('Current Booking Status :', 'mage-eventpress'); ?></span>
|
||||
<span style="padding: 0 0 0 60px;"><?php esc_html_e('Current Booking Status :', 'mage-eventpress'); ?></span>
|
||||
<span><?php mep_get_event_total_seat($post_id); ?></span>
|
||||
</label>
|
||||
</td>
|
||||
|
@ -979,7 +981,7 @@ class MP_Event_All_Info_In_One
|
|||
<tr>
|
||||
<td colspan="4">
|
||||
<p class="event_meta_help_txt">
|
||||
<?php _e('If you reset this count, All booking information will be removed including attendee list & its impossible to undo', 'mage-eventpress'); ?>
|
||||
<?php esc_html_e('If you reset this count, All booking information will be removed including attendee list & its impossible to undo', 'mage-eventpress'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -1000,33 +1002,33 @@ class MP_Event_All_Info_In_One
|
|||
// print_r($saved_user_role);
|
||||
?>
|
||||
<tr>
|
||||
<th><span><?php _e('Virtual ', 'mage-eventpress');
|
||||
echo $event_label . '?'; ?></span></th>
|
||||
<th><span><?php esc_html_e('Virtual ', 'mage-eventpress');
|
||||
echo esc_html($event_label . '?'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label class="mp_event_virtual_type_des_switch">
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_event_type" <?php echo $checked; ?> />
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_event_type" <?php echo esc_attr($checked); ?> />
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
<p></p>
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_type == 'online') ? 'active' : ''; ?>">
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_type == 'online') ? esc_attr('active') : ''; ?>">
|
||||
<?php wp_editor(htmlspecialchars_decode($description), 'mp_event_virtual_type_des'); ?>
|
||||
<p class="event_meta_help_txt"><?php _e('Please Enter Your Virtual event joining details Information. these information will send to buyer with confirmation email.', 'mage-eventpress') ?></p>
|
||||
<p class="event_meta_help_txt"><?php esc_html_e('Please Enter Your Virtual event joining details Information. these information will send to buyer with confirmation email.', 'mage-eventpress') ?></p>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Member Only Event?', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Member Only Event?', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label class="mp_event_virtual_type_des_switch">
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_member_only_event" <?php echo $member_checked; ?> />
|
||||
<input class="mp_opacity_zero" type="checkbox" name="mep_member_only_event" <?php echo esc_attr($member_checked); ?> />
|
||||
<span class="slider round"></span>
|
||||
</label>
|
||||
<p></p>
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_member_type == 'member_only') ? 'active' : ''; ?>">
|
||||
<label class="mp_event_virtual_type_des <?php echo ($event_member_type == 'member_only') ? esc_attr('active') : ''; ?>">
|
||||
<select name='mep_member_only_user_role[]' multiple>
|
||||
<option value="all" <?php if (in_array('all', $saved_user_role)) {
|
||||
echo 'Selected';
|
||||
} ?>><?php _e('For Any Logged in user', 'mage-eventpress'); ?> </option>
|
||||
echo esc_attr('Selected');
|
||||
} ?>><?php esc_html_e('For Any Logged in user', 'mage-eventpress'); ?> </option>
|
||||
<?php echo mep_get_user_list($saved_user_role); ?>
|
||||
</select>
|
||||
</label>
|
||||
|
@ -1053,28 +1055,28 @@ class MP_Event_All_Info_In_One
|
|||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<th><span><?php _e('Tax status:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Tax status:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<select class="mp_formControl" name="_tax_status">
|
||||
<option value="taxable" <?php echo ($tx_status == 'taxable') ? 'selected' : ''; ?>><?php _e('Taxable', 'mage-eventpress'); ?></option>
|
||||
<option value="shipping" <?php echo ($tx_status == 'shipping') ? 'selected' : ''; ?>><?php _e('Shipping only', 'mage-eventpress'); ?></option>
|
||||
<option value="none" <?php echo ($tx_status == 'none') ? 'selected' : ''; ?>><?php _e('None', 'mage-eventpress'); ?></option>
|
||||
<option value="taxable" <?php echo ($tx_status == 'taxable') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Taxable', 'mage-eventpress'); ?></option>
|
||||
<option value="shipping" <?php echo ($tx_status == 'shipping') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Shipping only', 'mage-eventpress'); ?></option>
|
||||
<option value="none" <?php echo ($tx_status == 'none') ? esc_attr('selected') : ''; ?>><?php esc_html_e('None', 'mage-eventpress'); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Tax class:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php esc_html_e('Tax class:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<select class="mp_formControl" name="_tax_class">
|
||||
<option value="standard" <?php echo ($tx_class == 'standard') ? 'selected' : ''; ?>><?php _e('Standard', 'mage-eventpress'); ?></option>
|
||||
<option value="standard" <?php echo ($tx_class == 'standard') ? esc_attr('selected') : ''; ?>><?php esc_html_e('Standard', 'mage-eventpress'); ?></option>
|
||||
<?php mep_get_all_tax_list($tx_class); ?>
|
||||
</select>
|
||||
</label>
|
||||
<p class="event_meta_help_txt">
|
||||
<?php _e('To add any new tax class , Please go to WooCommerce ->Settings->Tax Area', 'mage-eventpress'); ?>
|
||||
<?php esc_html_e('To add any new tax class , Please go to WooCommerce ->Settings->Tax Area', 'mage-eventpress'); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -1152,39 +1154,39 @@ function mep_events_ticket_type_save($post_id)
|
|||
for ($i = 0; $i < $count; $i++) {
|
||||
|
||||
if ($names[$i] != '') :
|
||||
$new[$i]['option_name_t'] = stripslashes(strip_tags($names[$i]));
|
||||
$new[$i]['option_name_t'] = stripslashes(strip_tags($names[$i]));
|
||||
endif;
|
||||
|
||||
if ($ticket_price[$i] != '') :
|
||||
$new[$i]['option_price_t'] = stripslashes(strip_tags($ticket_price[$i]));
|
||||
$new[$i]['option_price_t'] = stripslashes(strip_tags($ticket_price[$i]));
|
||||
endif;
|
||||
|
||||
if ($qty[$i] != '') :
|
||||
$new[$i]['option_qty_t'] = stripslashes(strip_tags($qty[$i]));
|
||||
$new[$i]['option_qty_t'] = stripslashes(strip_tags($qty[$i]));
|
||||
endif;
|
||||
|
||||
if ($rsv[$i] != '') :
|
||||
$new[$i]['option_rsv_t'] = stripslashes(strip_tags($rsv[$i]));
|
||||
$new[$i]['option_rsv_t'] = stripslashes(strip_tags($rsv[$i]));
|
||||
endif;
|
||||
|
||||
if ($dflt_qty[$i] != '') :
|
||||
$new[$i]['option_default_qty_t'] = stripslashes(strip_tags($dflt_qty[$i]));
|
||||
$new[$i]['option_default_qty_t'] = stripslashes(strip_tags($dflt_qty[$i]));
|
||||
endif;
|
||||
|
||||
if ($qty_type[$i] != '') :
|
||||
$new[$i]['option_qty_t_type'] = stripslashes(strip_tags($qty_type[$i]));
|
||||
$new[$i]['option_qty_t_type'] = stripslashes(strip_tags($qty_type[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end_date[$i] != '') :
|
||||
$new[$i]['option_sale_end_date'] = stripslashes(strip_tags($sale_end_date[$i]));
|
||||
$new[$i]['option_sale_end_date'] = stripslashes(strip_tags($sale_end_date[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end_time[$i] != '') :
|
||||
$new[$i]['option_sale_end_time'] = stripslashes(strip_tags($sale_end_time[$i]));
|
||||
$new[$i]['option_sale_end_time'] = stripslashes(strip_tags($sale_end_time[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end_date[$i] != '') :
|
||||
$new[$i]['option_sale_end_date_t'] = stripslashes(strip_tags($sale_end_date[$i] . ' ' . $sale_end_time[$i]));
|
||||
$new[$i]['option_sale_end_date_t'] = stripslashes(strip_tags($sale_end_date[$i] . ' ' . $sale_end_time[$i]));
|
||||
endif;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,13 +133,11 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||
|
||||
|
||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
||||
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
|
||||
$start_time = get_post_meta($eid, 'event_start_time', true);
|
||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
||||
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
|
||||
$start_time = get_post_meta($eid, 'event_start_time', true);
|
||||
echo "<ul class='event-custom-price'>";
|
||||
|
||||
|
||||
|
||||
if ($recurring == 'everyday' && $time_status == 'no') {
|
||||
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
|
||||
|
@ -147,8 +145,8 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if ($hide_date_status == 'no') {
|
||||
?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_attr(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
|
||||
<li><?php echo esc_html($event_label);
|
||||
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -165,8 +163,8 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if ($hide_date_status == 'no') {
|
||||
?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_attr(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
|
||||
<li><?php echo esc_html($event_label);
|
||||
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -174,7 +172,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo '</li>';
|
||||
}
|
||||
} elseif ($recurring == 'yes') {
|
||||
|
@ -184,8 +182,8 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if ($hide_date_status == 'no') {
|
||||
?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_attr(get_mep_datetime($_event_recurring_date['event_date'], 'date-text')); ?></li>
|
||||
<li><?php echo esc_html($event_label);
|
||||
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-text')); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -193,27 +191,27 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo '</li>';
|
||||
}
|
||||
} else {
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo mep_cart_display_user_list($user_info, $eid);
|
||||
echo '</li>';
|
||||
} else {
|
||||
if ($hide_date_status == 'no') {
|
||||
?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_attr(get_mep_datetime($cart_item['event_cart_display_date'], 'date-time-text')); ?></li>
|
||||
<li><?php echo esc_html($event_label);
|
||||
esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($cart_item['event_cart_display_date'], 'date-time-text')); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($hide_location_status == 'no') {
|
||||
?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(" Location", 'mage-eventpress'); ?>: <?php echo esc_attr($cart_item['event_cart_location']); ?></li>
|
||||
<li><?php echo esc_html($event_label);
|
||||
esc_html_e(" Location", 'mage-eventpress'); ?>: <?php echo esc_html($cart_item['event_cart_location']); ?></li>
|
||||
<?php
|
||||
}
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
|
||||
|
@ -221,7 +219,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
}
|
||||
if (is_array($event_extra_service) && sizeof($event_extra_service) > 0) {
|
||||
foreach ($event_extra_service as $extra_service) {
|
||||
echo '<li>' . esc_attr($extra_service['service_name']) . " - " . wc_price(esc_attr(mep_get_price_including_tax($eid, $extra_service['service_price']))) . ' x ' . esc_attr($extra_service['service_qty']) . ' = ' . wc_price(esc_attr(mep_get_price_including_tax($eid, (float) $extra_service['service_price'] * (float) $extra_service['service_qty']))) . '</li>';
|
||||
echo '<li>' . esc_html($extra_service['service_name']) . " - " . wc_price(esc_html(mep_get_price_including_tax($eid, $extra_service['service_price']))) . ' x ' . esc_html($extra_service['service_qty']) . ' = ' . wc_price(esc_html(mep_get_price_including_tax($eid, (float) $extra_service['service_price'] * (float) $extra_service['service_qty']))) . '</li>';
|
||||
}
|
||||
}
|
||||
do_action('mep_after_cart_item_display_list', $cart_item);
|
||||
|
@ -281,8 +279,8 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
|
|||
|
||||
$eid = array_key_exists('event_id', $values) ? $values['event_id'] : 0; //$values['event_id'];
|
||||
$start_time = get_post_meta($eid, 'event_start_time', true);
|
||||
$location_text = mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) : 'Location';
|
||||
$date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) : 'Date';
|
||||
$location_text = mep_get_option('mep_location_text', 'label_setting_sec', esc_html__('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', esc_html__('Location', 'mage-eventpress')) : 'Location';
|
||||
$date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', esc_html__('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', esc_html__('Date', 'mage-eventpress')) : 'Date';
|
||||
if (get_post_type($eid) == 'mep_events') {
|
||||
$event_id = $eid;
|
||||
$mep_events_extra_prices = array_key_exists('event_extra_option', $values) ? $values['event_extra_option'] : [];
|
||||
|
@ -296,16 +294,16 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
|
|||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
|
||||
|
||||
$name_lable = get_post_meta($event_id, 'mep_name_label', true) ? get_post_meta($event_id, 'mep_name_label', true) : __('Name', 'mage-eventpress');
|
||||
$email_lable = get_post_meta($event_id, 'mep_email_label', true) ? get_post_meta($event_id, 'mep_email_label', true) : __('Email', 'mage-eventpress');
|
||||
$phone_lable = get_post_meta($event_id, 'mep_phone_label', true) ? get_post_meta($event_id, 'mep_phone_label', true) : __('Phone', 'mage-eventpress');
|
||||
$address_lable = get_post_meta($event_id, 'mep_address_label', true) ? get_post_meta($event_id, 'mep_address_label', true) : __('Address', 'mage-eventpress');
|
||||
$tshirt_lable = get_post_meta($event_id, 'mep_tshirt_label', true) ? get_post_meta($event_id, 'mep_tshirt_label', true) : __('T-Shirt Size', 'mage-eventpress');
|
||||
$gender_lable = get_post_meta($event_id, 'mep_gender_label', true) ? get_post_meta($event_id, 'mep_gender_label', true) : __('Gender', 'mage-eventpress');
|
||||
$company_lable = get_post_meta($event_id, 'mep_company_label', true) ? get_post_meta($event_id, 'mep_company_label', true) : __('Company', 'mage-eventpress');
|
||||
$desg_lable = get_post_meta($event_id, 'mep_desg_label', true) ? get_post_meta($event_id, 'mep_desg_label', true) : __('Designation', 'mage-eventpress');
|
||||
$website_lable = get_post_meta($event_id, 'mep_website_label', true) ? get_post_meta($event_id, 'mep_website_label', true) : __('Website', 'mage-eventpress');
|
||||
$veg_lable = get_post_meta($event_id, 'mep_veg_label', true) ? get_post_meta($event_id, 'mep_veg_label', true) : __('Vegetarian', 'mage-eventpress');
|
||||
$name_lable = get_post_meta($event_id, 'mep_name_label', true) ? get_post_meta($event_id, 'mep_name_label', true) : esc_html__('Name', 'mage-eventpress');
|
||||
$email_lable = get_post_meta($event_id, 'mep_email_label', true) ? get_post_meta($event_id, 'mep_email_label', true) : esc_html__('Email', 'mage-eventpress');
|
||||
$phone_lable = get_post_meta($event_id, 'mep_phone_label', true) ? get_post_meta($event_id, 'mep_phone_label', true) : esc_html__('Phone', 'mage-eventpress');
|
||||
$address_lable = get_post_meta($event_id, 'mep_address_label', true) ? get_post_meta($event_id, 'mep_address_label', true) : esc_html__('Address', 'mage-eventpress');
|
||||
$tshirt_lable = get_post_meta($event_id, 'mep_tshirt_label', true) ? get_post_meta($event_id, 'mep_tshirt_label', true) : esc_html__('T-Shirt Size', 'mage-eventpress');
|
||||
$gender_lable = get_post_meta($event_id, 'mep_gender_label', true) ? get_post_meta($event_id, 'mep_gender_label', true) : esc_html__('Gender', 'mage-eventpress');
|
||||
$company_lable = get_post_meta($event_id, 'mep_company_label', true) ? get_post_meta($event_id, 'mep_company_label', true) : esc_html__('Company', 'mage-eventpress');
|
||||
$desg_lable = get_post_meta($event_id, 'mep_desg_label', true) ? get_post_meta($event_id, 'mep_desg_label', true) : esc_html__('Designation', 'mage-eventpress');
|
||||
$website_lable = get_post_meta($event_id, 'mep_website_label', true) ? get_post_meta($event_id, 'mep_website_label', true) : esc_html__('Website', 'mage-eventpress');
|
||||
$veg_lable = get_post_meta($event_id, 'mep_veg_label', true) ? get_post_meta($event_id, 'mep_veg_label', true) : esc_html__('Vegetarian', 'mage-eventpress');
|
||||
|
||||
|
||||
if ($recurring == 'everyday' && $time_status == 'no') {
|
||||
|
|
|
@ -42,9 +42,9 @@ if (!function_exists('mep_get_all_tax_list')) {
|
|||
|
||||
foreach ($result as $tax) {
|
||||
?>
|
||||
<option value="<?php echo $tax->slug; ?>" <?php if ($current_tax == $tax->slug) {
|
||||
<option value="<?php echo esc_attr($tax->slug); ?>" <?php if ($current_tax == $tax->slug) {
|
||||
echo 'Selected';
|
||||
} ?>><?php echo $tax->name; ?></option>
|
||||
} ?>><?php echo esc_html($tax->name); ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ if (!function_exists('mep_event_get_event_city_list')) {
|
|||
<?php
|
||||
foreach ($results as $result) {
|
||||
?>
|
||||
<li><a href='<?php echo get_site_url(); ?>/event-by-city-name/<?php echo $result->meta_value; ?>/'><?php echo $result->meta_value; ?></a></li>
|
||||
<li><a href='<?php echo get_site_url(); ?>/event-by-city-name/<?php echo esc_attr($result->meta_value); ?>/'><?php echo esc_html($result->meta_value); ?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
@ -1090,7 +1090,7 @@ if (!function_exists('mep_get_event_status')) {
|
|||
} else {
|
||||
$mm = "";
|
||||
}
|
||||
return "<span class='active'>$dd $hh $mm</span>";
|
||||
return "<span class='active'>".esc_html($dd)." ".esc_html($hh)." ".esc_html($mm)."</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1281,7 +1281,7 @@ if (!function_exists('mep_get_item_price')) {
|
|||
if (!function_exists('mep_get_string_part')) {
|
||||
function mep_get_string_part($data, $string) {
|
||||
$pieces = explode(" x ", $data);
|
||||
return $pieces[$string]; // piece1
|
||||
return esc_html($pieces[$string]); // piece1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1307,9 +1307,9 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
<div class="mep-user-ticket-list">
|
||||
<table>
|
||||
<tr>
|
||||
<th><?php _e('Name', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Event', 'mage-eventpress'); ?></th>
|
||||
<th><?php esc_html_e('Name', 'mage-eventpress'); ?></th>
|
||||
<th><?php esc_html_e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th><?php esc_html_e('Event', 'mage-eventpress'); ?></th>
|
||||
<?php do_action('mep_user_order_list_table_head'); ?>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -1341,7 +1341,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
<td>
|
||||
<?php echo get_post_meta(get_the_id(), 'ea_event_name', true);
|
||||
if ($virtual_info) { ?>
|
||||
<button id='mep_vr_view_btn_<?php echo get_the_id(); ?>' class='mep_view_vr_btn'><?php _e('View Virtual Info', 'mage-eventpress'); ?></button> <?php } ?>
|
||||
<button id='mep_vr_view_btn_<?php echo get_the_id(); ?>' class='mep_view_vr_btn'><?php esc_html_e('View Virtual Info', 'mage-eventpress'); ?></button> <?php } ?>
|
||||
</td>
|
||||
<?php do_action('mep_user_order_list_table_row', get_the_id()); ?>
|
||||
</tr>
|
||||
|
@ -1351,7 +1351,7 @@ if (!function_exists('mep_ticket_lits_users')) {
|
|||
<tr id='mep_vr_view_sec_<?php echo get_the_id(); ?>' class='mep_virtual_event_info_sec' style='display:none'>
|
||||
<td colspan='4'>
|
||||
<div class='mep-vr-vs-content'>
|
||||
<h3><?php _e('Virtual Event Information:', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php esc_html_e('Virtual Event Information:', 'mage-eventpress'); ?></h3>
|
||||
<?php echo htmlspecialchars_decode($virtual_info); ?>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -1382,18 +1382,14 @@ if (!function_exists('mep_event_template_name')) {
|
|||
if (!$template) :
|
||||
$template = $default_path . $template_name;
|
||||
endif;
|
||||
|
||||
// echo $template_path;
|
||||
if (is_dir($template_path)) {
|
||||
$thedir = glob($template_path . "*");
|
||||
} else {
|
||||
$thedir = glob($default_path . "*");
|
||||
// file_get_contents('./people.txt', FALSE, NULL, 20, 14);
|
||||
}
|
||||
|
||||
$theme = array();
|
||||
foreach ($thedir as $filename) {
|
||||
//Use the is_file function to make sure that it is not a directory.
|
||||
if (is_file($filename)) {
|
||||
$file = basename($filename);
|
||||
$naame = str_replace("?>", "", strip_tags(file_get_contents($filename, false, null, 24, 14)));
|
||||
|
@ -1521,8 +1517,8 @@ add_filter('manage_mep_events_posts_columns', 'mep_set_custom_edit_event_columns
|
|||
if (!function_exists('mep_set_custom_edit_event_columns')) {
|
||||
function mep_set_custom_edit_event_columns($columns) {
|
||||
unset($columns['date']);
|
||||
$columns['mep_status'] = __('Status', 'mage-eventpress');
|
||||
$columns['mep_event_date'] = __('Event Start Date', 'mage-eventpress');
|
||||
$columns['mep_status'] = esc_html__('Status', 'mage-eventpress');
|
||||
$columns['mep_event_date'] = esc_html__('Event Start Date', 'mage-eventpress');
|
||||
return $columns;
|
||||
}
|
||||
}
|
||||
|
@ -1535,13 +1531,13 @@ if (!function_exists('mep_get_full_time_and_date')) {
|
|||
$user_set_format = mep_get_option('mep_event_time_format', 'general_setting_sec', 'wtss');
|
||||
|
||||
if ($user_set_format == 12) {
|
||||
echo wp_date('D, d M Y h:i A', strtotime($datetime));
|
||||
echo esc_html(wp_date('D, d M Y h:i A', strtotime($datetime)));
|
||||
}
|
||||
if ($user_set_format == 24) {
|
||||
echo wp_date('D, d M Y H:i', strtotime($datetime));
|
||||
echo esc_html(wp_date('D, d M Y H:i', strtotime($datetime)));
|
||||
}
|
||||
if ($user_set_format == 'wtss') {
|
||||
echo wp_date($wpdatesettings, strtotime($datetime));
|
||||
echo esc_html(wp_date($wpdatesettings, strtotime($datetime)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1551,13 +1547,13 @@ if (!function_exists('mep_get_only_time')) {
|
|||
$user_set_format = mep_get_option('mep_event_time_format', 'general_setting_sec', 'wtss');
|
||||
$time_format = get_option('time_format');
|
||||
if ($user_set_format == 12) {
|
||||
echo date('h:i A', strtotime($datetime));
|
||||
echo esc_html(date('h:i A', strtotime($datetime)));
|
||||
}
|
||||
if ($user_set_format == 24) {
|
||||
echo date('H:i', strtotime($datetime));
|
||||
echo esc_html(date('H:i', strtotime($datetime)));
|
||||
}
|
||||
if ($user_set_format == 'wtss') {
|
||||
echo date($time_format, strtotime($datetime));
|
||||
echo esc_html(date($time_format, strtotime($datetime)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1596,7 +1592,7 @@ if (!function_exists('mep_get_event_city')) {
|
|||
'city' => $city,
|
||||
'country' => $country
|
||||
);
|
||||
echo apply_filters('mage_event_location_in_list_view', $content, $event_id, $address_arr);
|
||||
echo esc_html(apply_filters('mage_event_location_in_list_view', $content, $event_id, $address_arr));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1606,19 +1602,18 @@ if (!function_exists('mep_get_total_available_seat')) {
|
|||
$total_resv = mep_event_total_seat($event_id, 'resv');
|
||||
$total_sold = mep_ticket_sold($event_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
return $total_left;
|
||||
return esc_html($total_left);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_get_event_total_available_seat')) {
|
||||
function mep_get_event_total_available_seat($event_id, $date) {
|
||||
// echo $date;
|
||||
$total_seat = mep_event_total_seat($event_id, 'total');
|
||||
$total_resv = mep_event_total_seat($event_id, 'resv');
|
||||
$total_sold = mep_ticket_type_sold($event_id, '', $date);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
return $total_left;
|
||||
return esc_html($total_left);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1653,15 +1648,15 @@ if (!function_exists('mep_get_all_date_time')) {
|
|||
<ul>
|
||||
<?php if ($user_set_format == 12) { ?>
|
||||
<?php $timeformatassettings = 'h:i A'; ?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date('h:i A', strtotime($start_datetime)); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n('h:i A', strtotime($start_datetime)); ?></li>
|
||||
<?php } ?>
|
||||
<?php if ($user_set_format == 24) { ?>
|
||||
<?php $timeformatassettings = 'H:i'; ?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date('H:i', strtotime($start_datetime)); ?></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n('H:i', strtotime($start_datetime)); ?></li>
|
||||
<?php } ?>
|
||||
<?php if ($user_set_format == 'wtss'){ ?>
|
||||
<?php $timeformatassettings = get_option('time_format'); ?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date($time_format, strtotime($start_datetime));
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($start_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n($time_format, strtotime($start_datetime));
|
||||
} ?></li>
|
||||
}
|
||||
}
|
||||
|
@ -1689,7 +1684,7 @@ if (!function_exists('mep_get_all_date_time')) {
|
|||
}
|
||||
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($end_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date($timeformatassettings, strtotime($end_datetime)); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php _e('End', 'mage-eventpress'); ?>)</span></li>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime($end_datetime)); ?> <i class="fa fa-clock-o"></i> <?php echo date($timeformatassettings, strtotime($end_datetime)); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php esc_html_e('End', 'mage-eventpress'); ?>)</span></li>
|
||||
</ul>
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
|
@ -2025,7 +2020,7 @@ if (!function_exists('mep_reset_event_booking')) {
|
|||
add_filter('manage_mep_events_posts_columns', 'mep_set_custom_mep_events_columns');
|
||||
if (!function_exists('mep_set_custom_mep_events_columns')) {
|
||||
function mep_set_custom_mep_events_columns($columns) {
|
||||
$columns['mep_event_seat'] = apply_filters('mep_seat_status_head_text', __('Seats [ Total - Sold = Available ]', 'mage-eventpress'));
|
||||
$columns['mep_event_seat'] = apply_filters('mep_seat_status_head_text', esc_html__('Seats [ Total - Sold = Available ]', 'mage-eventpress'));
|
||||
return $columns;
|
||||
}
|
||||
}
|
||||
|
@ -2116,8 +2111,6 @@ if (!function_exists('mep_ticket_type_sold')) {
|
|||
)
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
// echo '<pre>'; print_r($loop); echo '</pre>';
|
||||
// echo $loop->post_count;
|
||||
return $loop->post_count;
|
||||
}
|
||||
}
|
||||
|
@ -2125,7 +2118,6 @@ if (!function_exists('mep_ticket_type_sold')) {
|
|||
|
||||
if (!function_exists('mep_extra_service_sold')) {
|
||||
function mep_extra_service_sold($event_id, $type, $date) {
|
||||
//echo $date;
|
||||
$args = array(
|
||||
'post_type' => 'mep_extra_service',
|
||||
'posts_per_page' => -1,
|
||||
|
@ -2237,58 +2229,59 @@ if (!function_exists('get_mep_datetime')) {
|
|||
$timestamp = strtotime($date . ' ' . $timezone);
|
||||
|
||||
if ($type == 'date') {
|
||||
return wp_date($date_format, $timestamp);
|
||||
return esc_html(wp_date($date_format, $timestamp));
|
||||
}
|
||||
if ($type == 'date-time') {
|
||||
return wp_date($wpdatesettings, $timestamp);
|
||||
return esc_html(wp_date($wpdatesettings, $timestamp));
|
||||
}
|
||||
if ($type == 'date-text') {
|
||||
|
||||
return wp_date($date_format, $timestamp);
|
||||
return esc_html(wp_date($date_format, $timestamp));
|
||||
}
|
||||
|
||||
if ($type == 'date-time-text') {
|
||||
return wp_date($wpdatesettings, $timestamp, wp_timezone());
|
||||
return esc_html(wp_date($wpdatesettings, $timestamp, wp_timezone()));
|
||||
}
|
||||
if ($type == 'time') {
|
||||
return wp_date($time_format, $timestamp, wp_timezone());
|
||||
return esc_html(wp_date($time_format, $timestamp, wp_timezone()));
|
||||
}
|
||||
|
||||
if ($type == 'Hour') {
|
||||
return wp_date('H', $timestamp, wp_timezone());
|
||||
return esc_html(wp_date('H', $timestamp, wp_timezone()));
|
||||
}
|
||||
if ($type == 'hour') {
|
||||
return wp_date('h', $timestamp, wp_timezone());
|
||||
return esc_html(wp_date('h', $timestamp, wp_timezone()));
|
||||
}
|
||||
if ($type == 'minute') {
|
||||
return wp_date('i', $timestamp, wp_timezone());
|
||||
return esc_html(wp_date('i', $timestamp, wp_timezone()));
|
||||
}
|
||||
|
||||
if ($type == 'second') {
|
||||
return wp_date('s', $timestamp, wp_timezone());
|
||||
return esc_html(wp_date('s', $timestamp, wp_timezone()));
|
||||
}
|
||||
|
||||
if ($type == 'day') {
|
||||
return wp_date('d', $timestamp);
|
||||
return esc_html(wp_date('d', $timestamp));
|
||||
}
|
||||
if ($type == 'Dday') {
|
||||
return wp_date('D', $timestamp);
|
||||
return esc_html(wp_date('D', $timestamp));
|
||||
}
|
||||
if ($type == 'month') {
|
||||
return wp_date('m', $timestamp);
|
||||
return esc_html(wp_date('m', $timestamp));
|
||||
}
|
||||
if ($type == 'month-name') {
|
||||
return wp_date('M', $timestamp);
|
||||
return esc_html(wp_date('M', $timestamp));
|
||||
}
|
||||
if ($type == 'year') {
|
||||
return wp_date('y', $timestamp);
|
||||
return esc_html(wp_date('y', $timestamp));
|
||||
}
|
||||
if ($type == 'year-full') {
|
||||
return wp_date('Y', $timestamp);
|
||||
return esc_html(wp_date('Y', $timestamp));
|
||||
}
|
||||
if ($type == 'timezone') {
|
||||
return wp_date('T', $timestamp);
|
||||
return esc_html(wp_date('T', $timestamp));
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2317,31 +2310,31 @@ function mep_get_location($event_id, $type) {
|
|||
|
||||
if ($type == 'full') {
|
||||
|
||||
echo implode(',', array_filter($location_arr));
|
||||
echo esc_html(implode(',', array_filter($location_arr)));
|
||||
}
|
||||
|
||||
if ($type == 'location') {
|
||||
echo $location;
|
||||
echo esc_html($location);
|
||||
}
|
||||
|
||||
if ($type == 'street') {
|
||||
echo $street;
|
||||
echo esc_html($street);
|
||||
}
|
||||
|
||||
if ($type == 'state') {
|
||||
echo $state;
|
||||
echo esc_html($state);
|
||||
}
|
||||
|
||||
if ($type == 'city') {
|
||||
echo $city;
|
||||
echo esc_html($city);
|
||||
}
|
||||
|
||||
if ($type == 'zip') {
|
||||
echo $zip;
|
||||
echo esc_html($zip);
|
||||
}
|
||||
|
||||
if ($type == 'country') {
|
||||
echo $country;
|
||||
echo esc_html($country);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2552,7 +2545,7 @@ function mep_exclude_hidden_product_from_search_engine() {
|
|||
if ($visibility[0]->name == 'exclude-from-catalog') {
|
||||
$check_event_hidden = get_post_meta($post_id, 'link_mep_event', true) ? get_post_meta($post_id, 'link_mep_event', true) : 0;
|
||||
if ($check_event_hidden > 0) {
|
||||
echo '<!--Exclude Hidden Event Wc Product From Search Engine--> <meta name="robots" content="noindex, nofollow">';
|
||||
echo '<meta name="robots" content="noindex, nofollow">';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2591,32 +2584,32 @@ if (!function_exists('get_event_list_js')) {
|
|||
jQuery(document).ready(function () {
|
||||
|
||||
|
||||
jQuery(document).on("change", ".etp_<?php echo $id; ?>", function () {
|
||||
jQuery(document).on("change", ".etp_<?php echo esc_attr($id); ?>", function () {
|
||||
var sum = 0;
|
||||
jQuery(".etp_<?php echo $id; ?>").each(function () {
|
||||
jQuery(".etp_<?php echo esc_attr($id); ?>").each(function () {
|
||||
sum += +jQuery(this).val();
|
||||
});
|
||||
jQuery("#ttyttl_<?php echo $id; ?>").html(sum);
|
||||
jQuery("#ttyttl_<?php echo esc_attr($id); ?>").html(sum);
|
||||
});
|
||||
|
||||
jQuery(".extra-qty-box_<?php echo $id; ?>").on('change', function () {
|
||||
jQuery(".extra-qty-box_<?php echo esc_attr($id); ?>").on('change', function () {
|
||||
var sum = 0;
|
||||
var total = <?php if ($event_meta['_price'][0]) {
|
||||
echo $event_meta['_price'][0];
|
||||
echo esc_attr($event_meta['_price'][0]);
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>;
|
||||
|
||||
jQuery('.price_jq_<?php echo $id; ?>').each(function () {
|
||||
jQuery('.price_jq_<?php echo esc_attr($id); ?>').each(function () {
|
||||
var price = jQuery(this);
|
||||
var count = price.closest('tr').find('.extra-qty-box_<?php echo $id; ?>');
|
||||
var count = price.closest('tr').find('.extra-qty-box_<?php echo esc_attr($id); ?>');
|
||||
sum = (price.html() * count.val());
|
||||
total = total + sum;
|
||||
// price.closest('tr').find('.cart_total_price').html(sum + "â‚´");
|
||||
|
||||
});
|
||||
jQuery('#rowtotal_<?php echo $id; ?>').val(total);
|
||||
jQuery('#usertotal_<?php echo $id; ?>').html(mp_event_wo_commerce_price_format(total));
|
||||
jQuery('#rowtotal_<?php echo esc_attr($id); ?>').val(total);
|
||||
jQuery('#usertotal_<?php echo esc_attr($id); ?>').html(mp_event_wo_commerce_price_format(total));
|
||||
|
||||
|
||||
}).change(); //trigger change event on page load
|
||||
|
@ -2632,41 +2625,41 @@ if (!function_exists('get_event_list_js')) {
|
|||
|
||||
//jQuery('.btn-mep-event-cart').hide();
|
||||
|
||||
jQuery('.btn-mep-event-cart_<?php echo $id; ?>').attr('disabled', 'disabled');
|
||||
jQuery('.btn-mep-event-cart_<?php echo esc_attr($id); ?>').attr('disabled', 'disabled');
|
||||
|
||||
jQuery('#eventpxtp_<?php echo $id; ?>_<?php echo $count; ?>').on('change', function () {
|
||||
jQuery('#eventpxtp_<?php echo esc_attr($id); ?>_<?php echo esc_attr($count); ?>').on('change', function () {
|
||||
|
||||
var inputs = jQuery("#ttyttl_<?php echo $id; ?>").html() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo $id; ?>_<?php echo $count; ?>').val() || 0;
|
||||
var inputs = jQuery("#ttyttl_<?php echo esc_attr($id); ?>").html() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo esc_attr($id); ?>_<?php echo esc_attr($count); ?>').val() || 0;
|
||||
var input = parseInt(inputs);
|
||||
var children = jQuery('#dadainfo_<?php echo $count; ?> > div').length || 0;
|
||||
var children = jQuery('#dadainfo_<?php echo esc_attr($count); ?> > div').length || 0;
|
||||
|
||||
jQuery(document).on("change", ".etp_<?php echo $id; ?>", function () {
|
||||
jQuery(document).on("change", ".etp_<?php echo esc_attr($id); ?>", function () {
|
||||
var TotalQty = 0;
|
||||
jQuery(".etp_<?php echo $id; ?>").each(function () {
|
||||
jQuery(".etp_<?php echo esc_attr($id); ?>").each(function () {
|
||||
TotalQty += +jQuery(this).val();
|
||||
});
|
||||
//alert(sum);
|
||||
|
||||
if (TotalQty == 0) {
|
||||
//jQuery('.btn-mep-event-cart').hide();
|
||||
jQuery('.btn-mep-event-cart_<?php echo $id; ?>').attr('disabled', 'disabled');
|
||||
jQuery('#mep_btn_notice_<?php echo $id; ?>').show();
|
||||
jQuery('.btn-mep-event-cart_<?php echo esc_attr($id); ?>').attr('disabled', 'disabled');
|
||||
jQuery('#mep_btn_notice_<?php echo esc_attr($id); ?>').show();
|
||||
} else {
|
||||
//jQuery('.btn-mep-event-cart').show();
|
||||
jQuery('.btn-mep-event-cart_<?php echo $id; ?>').removeAttr('disabled');
|
||||
jQuery('#mep_btn_notice_<?php echo $id; ?>').hide();
|
||||
jQuery('.btn-mep-event-cart_<?php echo esc_attr($id); ?>').removeAttr('disabled');
|
||||
jQuery('#mep_btn_notice_<?php echo esc_attr($id); ?>').hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
if (input < children) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').empty();
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').empty();
|
||||
children = 0;
|
||||
}
|
||||
|
||||
for (var i = children + 1; i <= input; i++) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').append(
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
|
||||
jQuery('<div/>')
|
||||
.attr("id", "newDiv" + i)
|
||||
.html("<?php do_action("mep_reg_fields", $id); ?>")
|
||||
|
@ -2679,7 +2672,7 @@ if (!function_exists('get_event_list_js')) {
|
|||
}else{
|
||||
?>
|
||||
|
||||
jQuery('#mep_btn_notice_<?php echo $id; ?>').hide();
|
||||
jQuery('#mep_btn_notice_<?php echo esc_attr($id); ?>').hide();
|
||||
|
||||
jQuery('#quantity_5a7abbd1bff73').on('change', function () {
|
||||
var input = jQuery('#quantity_5a7abbd1bff73').val() || 0;
|
||||
|
@ -2801,14 +2794,14 @@ if (!function_exists('mep_event_rich_text_data')) {
|
|||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Event",
|
||||
"name": "<?php echo $event_name; ?>",
|
||||
"startDate": "<?php echo $event_start_date; ?>",
|
||||
"endDate": "<?php echo $event_end_date; ?>",
|
||||
"organizer": "<?php echo $org_name; ?>",
|
||||
"name": "<?php echo esc_attr($event_name); ?>",
|
||||
"startDate": "<?php echo esc_attr($event_start_date); ?>",
|
||||
"endDate": "<?php echo esc_attr($event_end_date); ?>",
|
||||
"organizer": "<?php echo esc_attr($org_name); ?>",
|
||||
|
||||
"eventStatus": "https://schema.org/<?php echo $event_rt_status; ?>",
|
||||
"eventAttendanceMode": "https://schema.org/<?php echo $event_rt_atdnce_mode; ?>",
|
||||
"previousStartDate": "<?php echo $event_rt_prv_date; ?>",
|
||||
"eventStatus": "https://schema.org/<?php echo esc_attr($event_rt_status); ?>",
|
||||
"eventAttendanceMode": "https://schema.org/<?php echo esc_attr($event_rt_atdnce_mode); ?>",
|
||||
"previousStartDate": "<?php echo esc_attr($event_rt_prv_date); ?>",
|
||||
"location": {
|
||||
"@type": "Place",
|
||||
"name": "<?php echo mep_get_event_location($event_id); ?>",
|
||||
|
@ -2827,7 +2820,7 @@ if (!function_exists('mep_event_rich_text_data')) {
|
|||
"description": "<?php echo strip_tags(get_the_excerpt($event_id)); ?>",
|
||||
"performer": {
|
||||
"@type": "PerformingGroup",
|
||||
"name": "<?php echo $org_name; ?>"
|
||||
"name": "<?php echo esc_attr($org_name); ?>"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2860,8 +2853,8 @@ if (!function_exists('mep_hide_event_order_data_from_thankyou_and_email')) {
|
|||
function mep_hide_event_order_data_from_thankyou_and_email($formatted_meta) {
|
||||
$hide_location_status = mep_get_option('mep_hide_location_from_order_page', 'general_setting_sec', 'no');
|
||||
$hide_date_status = mep_get_option('mep_hide_date_from_order_page', 'general_setting_sec', 'no');
|
||||
$location_text = mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) : 'Location';
|
||||
$date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) : 'Date';
|
||||
$location_text = mep_get_option('mep_location_text', 'label_setting_sec', esc_html__('Location', 'mage-eventpress')) ? mep_get_option('mep_location_text', 'label_setting_sec', __('Location', 'mage-eventpress')) : 'Location';
|
||||
$date_text = mep_get_option('mep_event_date_text', 'label_setting_sec', esc_html__('Date', 'mage-eventpress')) ? mep_get_option('mep_event_date_text', 'label_setting_sec', __('Date', 'mage-eventpress')) : 'Date';
|
||||
|
||||
$hide_location = $hide_location_status == 'yes' ? array($location_text) : array();
|
||||
$hide_date = $hide_date_status == 'yes' ? array($date_text) : array();
|
||||
|
@ -3099,28 +3092,27 @@ function mep_get_user_custom_field_ids($event_id) {
|
|||
|
||||
if (!function_exists('mep_get_reg_label')) {
|
||||
function mep_get_reg_label($event_id, $name = '') {
|
||||
// echo $name;
|
||||
if ($name == 'Name') {
|
||||
return get_post_meta($event_id, 'mep_name_label', true) ? get_post_meta($event_id, 'mep_name_label', true) : __('Name', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_name_label', true) ? get_post_meta($event_id, 'mep_name_label', true) : esc_html__('Name', 'mage-eventpress');
|
||||
} elseif ($name == 'Email') {
|
||||
return get_post_meta($event_id, 'mep_email_label', true) ? get_post_meta($event_id, 'mep_email_label', true) : __('Email', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_email_label', true) ? get_post_meta($event_id, 'mep_email_label', true) : esc_html__('Email', 'mage-eventpress');
|
||||
} elseif ($name == 'Phone') {
|
||||
return get_post_meta($event_id, 'mep_phone_label', true) ? get_post_meta($event_id, 'mep_phone_label', true) : __('Phone', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_phone_label', true) ? get_post_meta($event_id, 'mep_phone_label', true) : esc_html__('Phone', 'mage-eventpress');
|
||||
} elseif ($name == 'Address') {
|
||||
return get_post_meta($event_id, 'mep_address_label', true) ? get_post_meta($event_id, 'mep_address_label', true) : __('Address', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_address_label', true) ? get_post_meta($event_id, 'mep_address_label', true) : esc_html__('Address', 'mage-eventpress');
|
||||
} elseif ($name == 'T-Shirt Size') {
|
||||
return get_post_meta($event_id, 'mep_tshirt_label', true) ? get_post_meta($event_id, 'mep_tshirt_label', true) : __('T-Shirt Size', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_tshirt_label', true) ? get_post_meta($event_id, 'mep_tshirt_label', true) : esc_html__('T-Shirt Size', 'mage-eventpress');
|
||||
} elseif ($name == 'Gender') {
|
||||
return get_post_meta($event_id, 'mep_gender_label', true) ? get_post_meta($event_id, 'mep_gender_label', true) : __('Gender', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_gender_label', true) ? get_post_meta($event_id, 'mep_gender_label', true) : esc_html__('Gender', 'mage-eventpress');
|
||||
} elseif ($name == 'Company') {
|
||||
return get_post_meta($event_id, 'mep_company_label', true) ? get_post_meta($event_id, 'mep_company_label', true) : __('Company', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_company_label', true) ? get_post_meta($event_id, 'mep_company_label', true) : esc_html__('Company', 'mage-eventpress');
|
||||
} elseif ($name == 'Designation') {
|
||||
return get_post_meta($event_id, 'mep_desg_label', true) ? get_post_meta($event_id, 'mep_desg_label', true) : __('Designation', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_desg_label', true) ? get_post_meta($event_id, 'mep_desg_label', true) : esc_html__('Designation', 'mage-eventpress');
|
||||
} elseif ($name == 'Website') {
|
||||
return get_post_meta($event_id, 'mep_website_label', true) ? get_post_meta($event_id, 'mep_website_label', true) : __('Website', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_website_label', true) ? get_post_meta($event_id, 'mep_website_label', true) : esc_html__('Website', 'mage-eventpress');
|
||||
} elseif ($name == 'Vegetarian') {
|
||||
|
||||
return get_post_meta($event_id, 'mep_veg_label', true) ? get_post_meta($event_id, 'mep_veg_label', true) : __('Vegetarian', 'mage-eventpress');
|
||||
return get_post_meta($event_id, 'mep_veg_label', true) ? get_post_meta($event_id, 'mep_veg_label', true) : esc_html__('Vegetarian', 'mage-eventpress');
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
@ -3176,22 +3168,22 @@ if (!function_exists('mep_cart_display_user_list')) {
|
|||
<?php if (sizeof($custom_forms_id) > 0) {
|
||||
foreach ($custom_forms_id as $key => $value) {
|
||||
?>
|
||||
<li><?php _e($key, 'mage-eventpress');
|
||||
<li><?php esc_html_e($key, 'mage-eventpress');
|
||||
echo ": " . esc_attr($userinf[$value]); ?></li>
|
||||
<?php
|
||||
}
|
||||
} ?>
|
||||
<?php if ($userinf['user_ticket_type']) { ?>
|
||||
<li><?php _e('Ticket Type', 'mage-eventpress');
|
||||
<li><?php esc_html_e('Ticket Type', 'mage-eventpress');
|
||||
echo ": " . esc_attr($userinf['user_ticket_type']); ?></li> <?php } ?>
|
||||
|
||||
<?php if ($recurring == 'everyday' && $time_status == 'no') { ?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(' Date', 'mage-eventpress');
|
||||
esc_html_e(' Date', 'mage-eventpress');
|
||||
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-text')); ?></li>
|
||||
<?php } else { ?>
|
||||
<li><?php echo esc_attr($event_label);
|
||||
_e(' Date', 'mage-eventpress');
|
||||
esc_html_e(' Date', 'mage-eventpress');
|
||||
echo ": "; ?><?php echo esc_attr(get_mep_datetime($userinf['user_event_date'], 'date-time-text')); ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
@ -3342,28 +3334,28 @@ if (!function_exists('mep_single_page_js_script')) {
|
|||
$ticket_type = mep_remove_apostopie($field['option_name_t']);
|
||||
?>
|
||||
var inputs = jQuery("#ttyttl").html() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo $count; ?>').val() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo esc_attr($count); ?>').val() || 0;
|
||||
var input = parseInt(inputs);
|
||||
var children = jQuery('#dadainfo_<?php echo $count; ?> > div').length || 0;
|
||||
var children = jQuery('#dadainfo_<?php echo esc_attr($count); ?> > div').length || 0;
|
||||
|
||||
var selected_ticket = jQuery('#ttyttl').html();
|
||||
|
||||
if (input < children) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').empty();
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').empty();
|
||||
children = 0;
|
||||
}
|
||||
for (var i = children + 1; i <= input; i++) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').append(
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
|
||||
jQuery('<div/>')
|
||||
.attr("id", "newDiv" + i)
|
||||
.html("<?php do_action('mep_reg_fields', $event_start_date, $event_id, $ticket_type); ?>")
|
||||
);
|
||||
}
|
||||
jQuery('#eventpxtp_<?php echo $count; ?>').on('change', function () {
|
||||
jQuery('#eventpxtp_<?php echo esc_attr($count); ?>').on('change', function () {
|
||||
var inputs = jQuery("#ttyttl").html() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo $count; ?>').val() || 0;
|
||||
var inputs = jQuery('#eventpxtp_<?php echo esc_attr($count); ?>').val() || 0;
|
||||
var input = parseInt(inputs);
|
||||
var children = jQuery('#dadainfo_<?php echo $count; ?> > div').length || 0;
|
||||
var children = jQuery('#dadainfo_<?php echo esc_attr($count); ?> > div').length || 0;
|
||||
jQuery(document).on("change", ".etp", function () {
|
||||
var TotalQty = 0;
|
||||
jQuery(".etp").each(function () {
|
||||
|
@ -3371,11 +3363,11 @@ if (!function_exists('mep_single_page_js_script')) {
|
|||
});
|
||||
});
|
||||
if (input < children) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').empty();
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').empty();
|
||||
children = 0;
|
||||
}
|
||||
for (var i = children + 1; i <= input; i++) {
|
||||
jQuery('#dadainfo_<?php echo $count; ?>').append(
|
||||
jQuery('#dadainfo_<?php echo esc_attr($count); ?>').append(
|
||||
jQuery('<div/>')
|
||||
.attr("id", "newDiv" + i)
|
||||
.html("<?php do_action('mep_reg_fields', $event_start_date, $event_id, $ticket_type); ?>")
|
||||
|
@ -3558,7 +3550,6 @@ function mep_get_price_including_tax($event, $price, $args = array()) {
|
|||
|
||||
|
||||
if (!wc_prices_include_tax()) {
|
||||
// echo get_option( 'woocommerce_prices_include_tax' );
|
||||
$tax_rates = WC_Tax::get_rates($product->get_tax_class());
|
||||
$taxes = WC_Tax::calc_tax($line_price, $tax_rates, false);
|
||||
|
||||
|
@ -3629,7 +3620,7 @@ if (!function_exists('mep_show_custom_text_for_zero_price')) {
|
|||
function mep_show_custom_text_for_zero_price($return, $price, $args, $unformatted_price) {
|
||||
$show_free_text = mep_get_option('mep_show_zero_as_free', 'general_setting_sec', 'yes');
|
||||
if ($unformatted_price == 0 && $show_free_text == 'yes') {
|
||||
$return = mep_get_option('mep_free_price_text', 'label_setting_sec', __('Free', 'mage-eventpress'));
|
||||
$return = mep_get_option('mep_free_price_text', 'label_setting_sec', esc_html__('Free', 'mage-eventpress'));
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
@ -3688,12 +3679,11 @@ function mep_get_list_thumbnail($event_id) {
|
|||
|
||||
|
||||
if ($thumbnail_id > 0) {
|
||||
// echo $thumbnail_id;
|
||||
$thumbnail = wp_get_attachment_image_src($thumbnail_id, 'full');
|
||||
|
||||
|
||||
?>
|
||||
<img src="<?php echo $thumbnail[0]; ?>" class="attachment-full size-full wp-post-image" alt="<?php echo get_the_title($event_id); ?>"/>
|
||||
<img src="<?php echo esc_url($thumbnail[0]); ?>" class="attachment-full size-full wp-post-image" alt="<?php echo get_the_title($event_id); ?>"/>
|
||||
<?php
|
||||
} else {
|
||||
echo get_the_post_thumbnail($event_id, 'full');
|
||||
|
@ -3849,12 +3839,13 @@ function mep_get_user_list($name = []) {
|
|||
|
||||
if (!function_exists('mep_get_event_add_cart_sec')) {
|
||||
function mep_get_event_add_cart_sec($post_id) {
|
||||
global $event_meta;
|
||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
$cart_product_id = get_post_meta($post_id, 'link_wc_product', true) ? esc_attr(get_post_meta($post_id, 'link_wc_product', true)) : esc_attr($post_id);
|
||||
?>
|
||||
<!-- Register Now Title -->
|
||||
<h4 class="mep-cart-table-title">
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : _e('Register Now:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : esc_html__('Register Now:', 'mage-eventpress'); ?>
|
||||
</h4>
|
||||
<!--The event add to cart main form start here-->
|
||||
<form action="" method='post' id="mage_event_submit">
|
||||
|
@ -3874,19 +3865,19 @@ function mep_get_event_add_cart_sec($post_id) {
|
|||
<!--The Add to cart button table start Here-->
|
||||
<table class='table table-bordered mep_event_add_cart_table'>
|
||||
<tr>
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:', 'mage-eventpress');
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : esc_html__('Quantity:', 'mage-eventpress');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo $leftt; ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
<?php } ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : _e('Total', 'mage-eventpress'); ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : esc_html__('Total', 'mage-eventpress'); ?>
|
||||
<span id="usertotal"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td align="right">
|
||||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
|
||||
<button type="submit" name="add-to-cart" value="<?php echo $cart_product_id; ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?> </button>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?> </button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -4032,12 +4023,12 @@ function mep_license_error_code($license_data, $item_name = 'this Plugin') {
|
|||
if (!function_exists('mep_license_expire_date')) {
|
||||
function mep_license_expire_date($date) {
|
||||
if (empty($date) || $date == 'lifetime') {
|
||||
echo $date;
|
||||
echo esc_html($date);
|
||||
} else {
|
||||
if (strtotime(current_time('Y-m-d H:i')) < strtotime(date('Y-m-d H:i', strtotime($date)))) {
|
||||
echo get_mep_datetime($date, 'date-time-text');
|
||||
} else {
|
||||
_e('Expired', 'mage-eventpress');
|
||||
esc_html_e('Expired', 'mage-eventpress');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4140,11 +4131,10 @@ function mep_get_list_thumbnail_src($event_id,$size='full') {
|
|||
|
||||
if ($thumbnail_id > 0) {
|
||||
$thumbnail = wp_get_attachment_image_src($thumbnail_id, $size);
|
||||
// echo $thumbnail[0];
|
||||
echo is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : '';
|
||||
echo esc_attr(is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : '');
|
||||
} else {
|
||||
$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($event_id), $size);
|
||||
echo is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : '';
|
||||
echo esc_attr(is_array($thumbnail) && sizeof($thumbnail) > 0 ? $thumbnail[0] : '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4205,10 +4195,10 @@ if (!function_exists('mep_event_recurring_date_list_in_event_list_loop')) {
|
|||
<?php if ($show_multidate == 'yes') { ?>
|
||||
<span class='mep_more_date_btn mep-tem3-title-sec mp_event_visible_event_time'
|
||||
data-event-id="<?php echo esc_attr($event_id); ?>"
|
||||
data-active-text="<?php echo esc_attr(mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress'))); ?>"
|
||||
data-hide-text="<?php echo esc_attr(mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', __('Hide Date Lists', 'mage-eventpress'))); ?>"
|
||||
data-active-text="<?php echo esc_attr(mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', esc_html__('View More Date', 'mage-eventpress'))); ?>"
|
||||
data-hide-text="<?php echo esc_attr(mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', esc_html__('Hide Date Lists', 'mage-eventpress'))); ?>"
|
||||
>
|
||||
<?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress')); //_e('View More Date','mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', esc_html__('View More Date', 'mage-eventpress')); ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php
|
||||
|
@ -4232,18 +4222,6 @@ if (!function_exists('mep_event_list_date_schedule')) {
|
|||
?>
|
||||
<ul class='mp_event_more_date_list'>
|
||||
<?php
|
||||
if (strtotime(current_time('Y-m-d H:i')) < strtotime($start_datetime)) {
|
||||
?>
|
||||
<!--li><span class='mep-more-date'><i class="fa fa-calendar"></i>
|
||||
<?php echo get_mep_datetime($start_datetime, 'date-text'); ?>
|
||||
</span> <span class='mep-more-time'><i class="fa fa-clock-o"></i>
|
||||
<?php echo get_mep_datetime($start_datetime, 'time'); ?> - <?php if ($start_date != $end_date) {
|
||||
echo get_mep_datetime($end_datetime, 'date-text') . ' - ';
|
||||
}
|
||||
echo get_mep_datetime($end_datetime, 'time'); ?></span></li-->
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($recurring == 'everyday') {
|
||||
do_action('mep_event_everyday_date_list_display', $event_id);
|
||||
} else {
|
||||
|
@ -4296,9 +4274,9 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
?>
|
||||
<label>
|
||||
<select class="formControl" name="filter_with_category">
|
||||
<option selected value=""><?php _e('Select Category', 'mage-eventpress'); ?></option>
|
||||
<option selected value=""><?php esc_html_e('Select Category', 'mage-eventpress'); ?></option>
|
||||
<?php foreach ($category_lists as $category) { ?>
|
||||
<option value="<?php echo $category; ?>"><?php echo $category; ?></option>
|
||||
<option value="<?php echo esc_attr($category); ?>"><?php echo esc_html($category); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</label>
|
||||
|
@ -4309,9 +4287,9 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
?>
|
||||
<label>
|
||||
<select class="formControl" name="filter_with_organizer">
|
||||
<option selected value=""><?php _e('Select Organizer', 'mage-eventpress'); ?></option>
|
||||
<option selected value=""><?php esc_html_e('Select Organizer', 'mage-eventpress'); ?></option>
|
||||
<?php foreach ($organizer_lists as $organizer) { ?>
|
||||
<option value="<?php echo $organizer; ?>"><?php echo $organizer; ?></option>
|
||||
<option value="<?php echo esc_attr($organizer); ?>"><?php echo esc_html($organizer); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</label>
|
||||
|
@ -4322,20 +4300,20 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
?>
|
||||
<label>
|
||||
<select class="formControl" name="filter_with_city">
|
||||
<option selected value=""><?php _e('Select City', 'mage-eventpress'); ?></option>
|
||||
<option selected value=""><?php esc_html_e('Select City', 'mage-eventpress'); ?></option>
|
||||
<?php foreach ($city_lists as $city_list) { ?>
|
||||
<option value="<?php echo $city_list; ?>"><?php echo $city_list; ?></option>
|
||||
<option value="<?php echo esc_attr($city_list); ?>"><?php echo esc_html($city_list); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</label>
|
||||
<?php } ?>
|
||||
<?php if ($params['date-filter'] == 'yes') { ?>
|
||||
<label>
|
||||
<input type="text" class="formControl filter_datepicker search_with_start_date" placeholder="<?php _e('Start date', 'mage-eventpress'); ?>"/>
|
||||
<input type="text" class="formControl filter_datepicker search_with_start_date" placeholder="<?php esc_html_e('Start date', 'mage-eventpress'); ?>"/>
|
||||
<span class="fas fa-calendar-alt filter_date_icon"></span>
|
||||
</label>
|
||||
<label>
|
||||
<input type="text" class="formControl filter_datepicker search_with_end_date" placeholder="<?php _e('End date', 'mage-eventpress'); ?>"/>
|
||||
<input type="text" class="formControl filter_datepicker search_with_end_date" placeholder="<?php esc_html_e('End date', 'mage-eventpress'); ?>"/>
|
||||
<span class="fas fa-calendar-alt filter_date_icon"></span>
|
||||
</label>
|
||||
<?php } ?>
|
||||
|
@ -4343,19 +4321,19 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
<?php if ($params['title-filter'] == 'yes') { ?>
|
||||
<div class="filter_input_area">
|
||||
<label>
|
||||
<input name="title_filter" placeholder="<?php _e('Type Name here ....', 'mage-eventpress'); ?>" class="formControl"/>
|
||||
<input name="title_filter" placeholder="<?php esc_html_e('Type Name here ....', 'mage-eventpress'); ?>" class="formControl"/>
|
||||
</label>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="search_result_empty"><?php _e('No Match Result Found!', 'mage-eventpress'); ?></div>
|
||||
<div class="search_result_empty"><?php esc_html_e('No Match Result Found!', 'mage-eventpress'); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="textGray textCenter">
|
||||
<?php _e('Showing', 'mage-eventpress'); ?>
|
||||
<strong class="qty_count"><?php echo $params['show']; ?></strong>
|
||||
<?php _e('of', 'mage-eventpress'); ?>
|
||||
<strong class="total_filter_qty"><?php echo $loop->post_count; ?></strong>
|
||||
<?php esc_html_e('Showing', 'mage-eventpress'); ?>
|
||||
<strong class="qty_count"><?php echo esc_html($params['show']); ?></strong>
|
||||
<?php esc_html_e('of', 'mage-eventpress'); ?>
|
||||
<strong class="total_filter_qty"><?php echo esc_html($loop->post_count); ?></strong>
|
||||
</p>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -4406,8 +4384,8 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
ob_start();
|
||||
$per_page = $params['show']>1?$params['show']:$total_item;
|
||||
?>
|
||||
<input type="hidden" name="pagination_per_page" value="<?php echo $per_page; ?>"/>
|
||||
<input type="hidden" name="pagination_style" value="<?php echo $params['pagination-style']; ?>"/>
|
||||
<input type="hidden" name="pagination_per_page" value="<?php echo esc_attr($per_page); ?>"/>
|
||||
<input type="hidden" name="pagination_style" value="<?php echo esc_attr($params['pagination-style']); ?>"/>
|
||||
<?php if (($params['search-filter'] == 'yes' || $params['pagination'] == 'yes') && $total_item > $per_page) { ?>
|
||||
<div class="mpStyle pagination_area">
|
||||
<div class="allCenter">
|
||||
|
@ -4418,10 +4396,10 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
<button type="button"
|
||||
class="defaultButton pagination_load_more"
|
||||
data-load-more="0"
|
||||
data-load-more-text="<?php _e('Load More', 'mage-eventpress'); ?>"
|
||||
data-load-less-text="<?php _e('Less More', 'mage-eventpress'); ?>"
|
||||
data-load-more-text="<?php esc_html_e('Load More', 'mage-eventpress'); ?>"
|
||||
data-load-less-text="<?php esc_html_e('Less More', 'mage-eventpress'); ?>"
|
||||
>
|
||||
<?php _e('Load More', 'mage-eventpress'); ?>
|
||||
<?php esc_html_e('Load More', 'mage-eventpress'); ?>
|
||||
</button>
|
||||
<?php
|
||||
} else {
|
||||
|
@ -4431,7 +4409,7 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
<div class="buttonGroup">
|
||||
|
||||
<?php if ($total_page > 2) { ?>
|
||||
<button class="defaultButton_xs page_prev" type="button" title="<?php _e('GoTO Previous Page', 'mage-eventpress'); ?>" disabled>
|
||||
<button class="defaultButton_xs page_prev" type="button" title="<?php esc_html_e('GoTO Previous Page', 'mage-eventpress'); ?>" disabled>
|
||||
<span class="fas fa-chevron-left"></span>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
@ -4441,7 +4419,7 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
</div>
|
||||
<?php } ?>
|
||||
<?php for ($i = 0; $i < $total_page; $i++) { ?>
|
||||
<button class="defaultButton_xs <?php echo $i == 0 ? 'active_pagination' : ''; ?>" type="button" data-pagination="<?php echo $i; ?>"><?php echo $i + 1; ?></button>
|
||||
<button class="defaultButton_xs <?php echo $i == 0 ? 'active_pagination' : ''; ?>" type="button" data-pagination="<?php echo esc_attr($i); ?>"><?php echo esc_html($i + 1); ?></button>
|
||||
<?php } ?>
|
||||
<?php if ($total_page > 5) { ?>
|
||||
<div class="ellipse_right">
|
||||
|
@ -4450,7 +4428,7 @@ if (!class_exists('MPWEM_Helper')) {
|
|||
<?php } ?>
|
||||
|
||||
<?php if ($total_page > 2) { ?>
|
||||
<button class="defaultButton_xs page_next" type="button" title="<?php _e('GoTO Next Page', 'mage-eventpress'); ?>">
|
||||
<button class="defaultButton_xs page_next" type="button" title="<?php esc_html_e('GoTO Next Page', 'mage-eventpress'); ?>">
|
||||
<span class="fas fa-chevron-right"></span>
|
||||
</button>
|
||||
<?php } ?>
|
||||
|
|
|
@ -108,8 +108,8 @@ function mep_event_pagination($total_page)
|
|||
"current" => $paged,
|
||||
"total" => $total_page
|
||||
);
|
||||
echo "<div class='pagination-sec'>" . paginate_links($pargs) . "</div>";
|
||||
?>
|
||||
?>
|
||||
<div class='pagination-sec'><?php echo paginate_links($pargs); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
|
|
@ -198,17 +198,17 @@ function mep_event_list($atts, $content = null)
|
|||
</div>
|
||||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
var containerEl = document.querySelector('#mep_event_list_<?php echo $unq_id; ?>');
|
||||
var containerEl = document.querySelector('#mep_event_list_<?php echo esc_attr($unq_id); ?>');
|
||||
var mixer = mixitup(containerEl);
|
||||
<?php if ($pagination == 'carousal') { ?>
|
||||
jQuery('#mep-carousel<?php echo $cid; ?>').owlCarousel({
|
||||
jQuery('#mep-carousel<?php echo esc_attr($cid); ?>').owlCarousel({
|
||||
autoplay: <?php echo mep_get_option('mep_autoplay_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
autoplayTimeout:<?php echo mep_get_option('mep_speed_carousal', 'carousel_setting_sec', '5000'); ?>,
|
||||
autoplayHoverPause: true,
|
||||
loop: <?php echo mep_get_option('mep_loop_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
margin: 20,
|
||||
nav: <?php echo $nav; ?>,
|
||||
dots: <?php echo $dot; ?>,
|
||||
nav: <?php echo esc_attr($nav); ?>,
|
||||
dots: <?php echo esc_attr($dot); ?>,
|
||||
responsiveClass: true,
|
||||
responsive: {
|
||||
0: {
|
||||
|
@ -218,7 +218,7 @@ function mep_event_list($atts, $content = null)
|
|||
items: 2,
|
||||
},
|
||||
1000: {
|
||||
items: <?php echo $column; ?>,
|
||||
items: <?php echo esc_attr($column); ?>,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -324,7 +324,9 @@ function mep_expire_event_list($atts, $content = null)
|
|||
do_action('mep_event_list_shortcode', get_the_id(), $columnNumber, $style,$width);
|
||||
}
|
||||
wp_reset_postdata();
|
||||
echo '</div>';
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ($pagination == 'yes') {
|
||||
/**
|
||||
* The Pagination function mep_event_pagination is locet in inc/mep_query.php File
|
||||
|
@ -334,24 +336,24 @@ function mep_expire_event_list($atts, $content = null)
|
|||
?>
|
||||
<script>
|
||||
jQuery(function(){
|
||||
jQuery("<?php echo '#mep-carousel'.$cid; ?>").owlCarousel({
|
||||
jQuery("<?php echo '#mep-carousel'.esc_attr($cid); ?>").owlCarousel({
|
||||
autoplay: <?php echo mep_get_option('mep_autoplay_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
autoplayTimeout:<?php echo mep_get_option('mep_speed_carousal', 'carousel_setting_sec', '5000'); ?>,
|
||||
autoplayHoverPause: true,
|
||||
loop: <?php echo mep_get_option('mep_loop_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
margin:20,
|
||||
nav:<?php echo $nav; ?>,
|
||||
dots:<?php echo $dot; ?>,
|
||||
nav:<?php echo esc_attr($nav); ?>,
|
||||
dots:<?php echo esc_attr($dot); ?>,
|
||||
navText: ["<i class='fas fa-chevron-left'></i>","<i class='fas fa-chevron-right'></i>"],
|
||||
responsive:{
|
||||
0:{
|
||||
items:1
|
||||
},
|
||||
600:{
|
||||
items:<?php echo $column; ?>
|
||||
items:<?php echo esc_attr($column); ?>
|
||||
},
|
||||
1000:{
|
||||
items:<?php echo $column; ?>
|
||||
items:<?php echo esc_attr($column); ?>
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -450,7 +452,7 @@ function mep_event_onepage_list($atts, $content = null)
|
|||
$city = $params['city'];
|
||||
$country = $params['country'];
|
||||
$cid = $params['carousal-id'];
|
||||
$status = $params['status'];
|
||||
$status = $params['status'];
|
||||
$main_div = $pagination == 'carousal' ? '<div class="mage_grid_box owl-theme owl-carousel" id="mep-carousel' . $cid . '">' : '<div class="mage_grid_box">';
|
||||
|
||||
$time_line_div_start = $style == 'timeline' ? '<div class="timeline"><div class="timeline__wrap"><div class="timeline__items">' : '';
|
||||
|
@ -492,20 +494,20 @@ function mep_event_onepage_list($atts, $content = null)
|
|||
/**
|
||||
* The Main Query function mep_event_query is locet in inc/mep_query.php File
|
||||
*/
|
||||
$loop = mep_event_query($show, $sort, $cat, $org, $city, $country, $status);
|
||||
$loop = mep_event_query($show, $sort, $cat, $org, $city, $country, $status);
|
||||
$loop->the_post();
|
||||
|
||||
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
|
||||
$time = strtotime($start_datetime);
|
||||
$newformat = date_i18n('Y-m-d H:i:s', $time);
|
||||
$tt = get_the_terms(get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms(get_the_id(), 'mep_org');
|
||||
$org_class = mep_get_term_as_class(get_the_id(), 'mep_org');
|
||||
$cat_class = mep_get_term_as_class(get_the_id(), 'mep_cat');
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
$time = strtotime($start_datetime);
|
||||
$newformat = date_i18n('Y-m-d H:i:s', $time);
|
||||
$tt = get_the_terms(get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms(get_the_id(), 'mep_org');
|
||||
$org_class = mep_get_term_as_class(get_the_id(), 'mep_org');
|
||||
$cat_class = mep_get_term_as_class(get_the_id(), 'mep_cat');
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
echo '<div class="mage_grid_box">';
|
||||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
|
|
|
@ -11,11 +11,11 @@ function mep_event_status_admin_menu()
|
|||
}
|
||||
function mep_event_status_page()
|
||||
{
|
||||
$wp_v = get_bloginfo( 'version' );
|
||||
$wc_v = WC()->version;
|
||||
$wc_i = mep_woo_install_check();
|
||||
$from_name = mep_get_option( 'mep_email_form_name', 'email_setting_sec', '');
|
||||
$from_email = mep_get_option( 'mep_email_form_email', 'email_setting_sec', '');
|
||||
$wp_v = get_bloginfo( 'version' );
|
||||
$wc_v = WC()->version;
|
||||
$wc_i = mep_woo_install_check();
|
||||
$from_name = mep_get_option( 'mep_email_form_name', 'email_setting_sec', '');
|
||||
$from_email = mep_get_option( 'mep_email_form_email', 'email_setting_sec', '');
|
||||
?>
|
||||
<style>
|
||||
.mep_success{
|
||||
|
@ -49,29 +49,29 @@ $from_email = mep_get_option( 'mep_email_form_email', 'email_setting_sec', '');
|
|||
<tr>
|
||||
<td data-export-label="WC Version">WordPress Version:</td>
|
||||
<td class="help"><span class="woocommerce-help-tip"></span></td>
|
||||
<td><?php if($wp_v > 5.5){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.$wp_v.'</span>'; }else{ echo '<span class="mep_warning"> <span class="dashicons dashicons-saved"></span>'.$wp_v.'</span>'; } ?></td>
|
||||
<td><?php if($wp_v > 5.5){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.esc_html($wp_v).'</span>'; }else{ echo '<span class="mep_warning"> <span class="dashicons dashicons-saved"></span>'.esc_html($wp_v).'</span>'; } ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td data-export-label="WC Version">Woocommerce Installed:</td>
|
||||
<td class="help"><span class="woocommerce-help-tip"></span></td>
|
||||
<td><?php if($wc_i == 'Yes'){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.$wc_i.'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span>'.$wc_i.'</span>'; } ?></td>
|
||||
<td><?php if($wc_i == 'Yes'){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.esc_html($wc_i).'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span>'.esc_html($wc_i).'</span>'; } ?></td>
|
||||
</tr>
|
||||
<?php if(mep_woo_install_check() == 'Yes'){ ?>
|
||||
<tr>
|
||||
<td data-export-label="WC Version">Woocommerce Version:</td>
|
||||
<td class="help"><span class="woocommerce-help-tip"></span></td>
|
||||
<td><?php if($wc_v > 4.8){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.$wc_v.'</span>'; }else{ echo '<span class="mep_warning"> <span class="dashicons dashicons-no-alt"></span>'.$wc_v.'</span>'; } ?></td>
|
||||
<td><?php if($wc_v > 4.8){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.esc_html($wc_v).'</span>'; }else{ echo '<span class="mep_warning"> <span class="dashicons dashicons-no-alt"></span>'.esc_html($wc_v).'</span>'; } ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WC Version">Email From Name:</td>
|
||||
<td class="help"><span class="woocommerce-help-tip"></span></td>
|
||||
<td><?php if($from_name){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.$from_name.'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span></span>'; } ?></td>
|
||||
<td><?php if($from_name){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.esc_html($from_name).'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span></span>'; } ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td data-export-label="WC Version">From Email Address:</td>
|
||||
<td class="help"><span class="woocommerce-help-tip"></span></td>
|
||||
<td><?php if($from_email){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.$from_email.'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span></span>'; } ?></td>
|
||||
<td><?php if($from_email){ echo '<span class="mep_success"> <span class="dashicons dashicons-saved"></span>'.esc_html($from_email).'</span>'; }else{ echo '<span class="mep_error"> <span class="dashicons dashicons-no-alt"></span></span>'; } ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
do_action('mep_event_status_table_item_sec'); ?>
|
||||
|
|
|
@ -15,16 +15,16 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
$event_member_type = get_post_meta($event_id, 'mep_member_only_event', true) ? get_post_meta($event_id, 'mep_member_only_event', true) : 'for_all';
|
||||
|
||||
|
||||
$cart_btn_label = array_key_exists('cart-btn-label',$params) ? $params['cart-btn-label'] : mep_get_label($event_id, 'mep_cart_btn_text', __('Register This Event','mage-eventpress'));
|
||||
$ticket_type_label = array_key_exists('ticket-label',$params) ? $params['ticket-label'] : mep_get_label($event_id, 'mep_event_ticket_type_text', __('Ticket Type:','mage-eventpress'));
|
||||
$extra_service_label = array_key_exists('extra-service-label',$params) ? $params['extra-service-label'] : mep_get_label($event_id, 'mep_event_extra_service_text', __('Extra Service:','mage-eventpress'));
|
||||
$select_date_label = array_key_exists('select-date-label',$params) ? $params['select-date-label'] : mep_get_option('mep_event_rec_select_event_date_text', 'label_setting_sec', __('Select Event Date:', 'mage-eventpress'));
|
||||
$cart_btn_label = array_key_exists('cart-btn-label',$params) ? esc_html($params['cart-btn-label']) : mep_get_label($event_id, 'mep_cart_btn_text', esc_html__('Register This Event','mage-eventpress'));
|
||||
$ticket_type_label = array_key_exists('ticket-label',$params) ? esc_html($params['ticket-label']) : mep_get_label($event_id, 'mep_event_ticket_type_text', esc_html__('Ticket Type:','mage-eventpress'));
|
||||
$extra_service_label = array_key_exists('extra-service-label',$params) ? esc_html($params['extra-service-label']) : mep_get_label($event_id, 'mep_event_extra_service_text', esc_html__('Extra Service:','mage-eventpress'));
|
||||
$select_date_label = array_key_exists('select-date-label',$params) ? esc_html($params['select-date-label']) : mep_get_option('mep_event_rec_select_event_date_text', 'label_setting_sec', esc_html__('Select Event Date:', 'mage-eventpress'));
|
||||
// $select_date_label = 'U lala lala';
|
||||
$total_book = 0;
|
||||
$post_id = $event_id ? $event_id : get_the_id();
|
||||
$event_meta = get_post_custom($post_id);
|
||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? esc_html('event_expire_datetime') : $event_expire_on_old;
|
||||
$event_expire_date = $event_meta[$event_expire_on][0];
|
||||
// $event_sqi = array_key_exists('mep_sqi',$event_meta) ? $event_meta['mep_sqi'][0] : '';
|
||||
$mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]);
|
||||
|
@ -47,7 +47,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
$total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($post_id, 'resv'), $post_id);
|
||||
$total_sold = mep_ticket_sold($post_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
$reg_status = array_key_exists('mep_reg_status', $event_meta) ? $event_meta['mep_reg_status'][0] : '';
|
||||
$reg_status = array_key_exists('mep_reg_status', $event_meta) ? esc_html($event_meta['mep_reg_status'][0]) : '';
|
||||
$seat_left = apply_filters('mep_event_total_seat_count', $total_left, $post_id);
|
||||
$current = current_time('Y-m-d H:i:s');
|
||||
$time = strtotime($event_expire_date);
|
||||
|
@ -112,15 +112,15 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
|
||||
|
||||
if( $event_member_type == 'for_all' || ($event_member_type != 'for_all' && is_user_logged_in() && ( in_array(wp_get_current_user()->roles[0],$saved_user_role) || in_array('all',$saved_user_role) ) )){
|
||||
?>
|
||||
|
||||
<input type='hidden' value="<?php echo esc_attr($extra_service_label); ?>" id='mep_extra_service_label'/>
|
||||
<input type='hidden' value="<?php echo esc_attr($select_date_label); ?>" id='mep_select_date_label'/>
|
||||
|
||||
echo "<input type='hidden' value='$extra_service_label' id='mep_extra_service_label'/>";
|
||||
echo "<input type='hidden' value='$select_date_label' id='mep_select_date_label'/>";
|
||||
|
||||
//if( in_array($user_role,$saved_user_role) ){
|
||||
?>
|
||||
<!-- Register Now Title -->
|
||||
<h4 class="mep-cart-table-title">
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : _e('Register Now:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : esc_html__('Register Now:', 'mage-eventpress'); ?>
|
||||
</h4>
|
||||
<!--The event add to cart main form start here-->
|
||||
<form action="" method='post' id="mage_event_submit">
|
||||
|
@ -144,12 +144,12 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<tr>
|
||||
<td align="left" class='total-col'>
|
||||
<?php do_action('mep_before_price_calculation',$post_id); ?>
|
||||
<?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:', 'mage-eventpress');
|
||||
<?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : esc_html__('Quantity:', 'mage-eventpress');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo $leftt; ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo esc_attr($leftt); ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
<?php } ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : _e('Total', 'mage-eventpress'); ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : esc_html__('Total', 'mage-eventpress'); ?>
|
||||
<span id="usertotal"></span>
|
||||
</span>
|
||||
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
||||
|
@ -159,11 +159,10 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
|
||||
<?php if($not_in_the_cart){ ?>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo $cart_product_id; ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo $cart_btn_label; ?></button>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_attr($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php echo esc_html($cart_btn_label); ?></button>
|
||||
<?php }else{
|
||||
?>
|
||||
<!-- <button onclick="location.href='<?php echo wc_get_cart_url(); ?>';" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php _e('Already Added into Cart! View Cart', 'mage-eventpress'); ?> </button> -->
|
||||
<a href="<?php echo wc_get_cart_url(); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php _e('Already Added into Cart! View Cart', 'mage-eventpress'); ?> </a>
|
||||
?>
|
||||
<a href="<?php echo wc_get_cart_url(); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e('Already Added into Cart! View Cart', 'mage-eventpress'); ?> </a>
|
||||
<?php
|
||||
} ?>
|
||||
<?php do_action('mep_after_add_cart_btn',$post_id); ?>
|
||||
|
@ -173,24 +172,16 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<!--The Add to cart button table start Here-->
|
||||
</form>
|
||||
<!--The event add to cart main form end here-->
|
||||
|
||||
<?php
|
||||
<?php
|
||||
}else{
|
||||
echo '<span class="mep_warning">';
|
||||
_e("Whoops, this event for members only. Login to view content. Not a member? That's easy.","mage-eventpress");
|
||||
echo '</span>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<span class="mep_warning">
|
||||
<?php
|
||||
esc_html_e("Whoops, this event for members only. Login to view content. Not a member? That's easy.","mage-eventpress");
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
} // End Of checking Registration status
|
||||
}
|
||||
|
@ -209,7 +200,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
$post_id = $post->ID;
|
||||
$event_meta = get_post_custom($post_id);
|
||||
$event_expire_on_old = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? 'event_expire_datetime' : $event_expire_on_old;
|
||||
$event_expire_on = $event_expire_on_old == 'event_end_datetime' ? esc_html('event_expire_datetime') : $event_expire_on_old;
|
||||
$event_expire_date = $event_meta[$event_expire_on][0];
|
||||
// $event_sqi = $event_meta['mep_sqi'][0];
|
||||
$mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]);
|
||||
|
@ -265,7 +256,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
$hh = $hours > 0 ? $hours . " hours " : '';
|
||||
$mm = $minutes > 0 ? $minutes . " minutes " : '';
|
||||
// $qty_typec = $event_meta['qty_box_type'][0];
|
||||
$cart_product_id = get_post_meta($post_id, 'link_wc_product', true) ? esc_attr(get_post_meta($post_id, 'link_wc_product', true)) : esc_attr($post_id);
|
||||
$cart_product_id = get_post_meta($post_id, 'link_wc_product', true) ? esc_html(get_post_meta($post_id, 'link_wc_product', true)) : esc_html($post_id);
|
||||
$not_in_the_cart = apply_filters('mep_check_product_into_cart',true,$cart_product_id);
|
||||
/**
|
||||
* First Checking If the registration status enable or disable
|
||||
|
@ -296,7 +287,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
?>
|
||||
<!-- Register Now Title -->
|
||||
<h4 class="mep-cart-table-title">
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : _e('Register Now:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_register_now_text', 'label_setting_sec') ? mep_get_option('mep_register_now_text', 'label_setting_sec') : esc_html__('Register Now:', 'mage-eventpress'); ?>
|
||||
</h4>
|
||||
<!--The event add to cart main form start here-->
|
||||
<form action="" method='post' id="mage_event_submit">
|
||||
|
@ -318,12 +309,12 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
<!--The Add to cart button table start Here fff-->
|
||||
<table class='table table-bordered mep_event_add_cart_table'>
|
||||
<tr>
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:', 'mage-eventpress');
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : esc_html_e('Quantity:', 'mage-eventpress');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo $leftt; ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo esc_attr($leftt); ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
<?php } ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : _e('Total', 'mage-eventpress'); ?>
|
||||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : esc_html_e('Total', 'mage-eventpress'); ?>
|
||||
<span id="usertotal"></span>
|
||||
</span>
|
||||
</td>
|
||||
|
@ -331,9 +322,9 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
|
||||
<?php if($not_in_the_cart){ ?>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo $cart_product_id; ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?></button>
|
||||
<button type="submit" name="add-to-cart" value="<?php echo esc_html($cart_product_id); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?></button>
|
||||
<?php }else{ ?>
|
||||
<a href="<?php echo wc_get_cart_url(); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </a>
|
||||
<a href="<?php echo wc_get_cart_url(); ?>" class="button-default woocommerce button alt button alt btn-mep-event-cart"><?php esc_html_e('Already Added into Cart!', 'mage-eventpress'); ?> </a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -147,8 +147,8 @@ if (!function_exists('mep_date_in_default_theme')) {
|
|||
echo '</ul>';
|
||||
if (sizeof($more_date) > 2) {
|
||||
?>
|
||||
<p id="mep_single_view_all_date" class="mep-tem3-title-sec mep_single_date_btn"><?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', __('View More Date', 'mage-eventpress')); ?></p>
|
||||
<p id="mep_single_hide_all_date" class="mep-tem3-title-sec mep_single_date_btn"><?php echo mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', __('Hide Date Lists', 'mage-eventpress')); ?></p>
|
||||
<p id="mep_single_view_all_date" class="mep-tem3-title-sec mep_single_date_btn"><?php echo mep_get_option('mep_event_view_more_date_btn_text', 'label_setting_sec', esc_html__('View More Date', 'mage-eventpress')); ?></p>
|
||||
<p id="mep_single_hide_all_date" class="mep-tem3-title-sec mep_single_date_btn"><?php echo mep_get_option('mep_event_hide_date_list_btn_text', 'label_setting_sec', esc_html__('Hide Date Lists', 'mage-eventpress')); ?></p>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ if (!function_exists('mep_event_display_expire_text')) {
|
|||
ob_start();
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php echo mep_get_option('mep_event_expired_text', 'label_setting_sec') ? mep_get_option('mep_event_expired_text', 'label_setting_sec') : _e('Sorry, Event Expired', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_expired_text', 'label_setting_sec') ? mep_get_option('mep_event_expired_text', 'label_setting_sec') : esc_html__('Sorry, Event Expired', 'mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
echo ob_get_clean();
|
||||
|
@ -24,7 +24,7 @@ if (!function_exists('mep_event_display_no_seat_text')) {
|
|||
ob_start();
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Availables', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : esc_html__('No Seat Availables', 'mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
echo ob_get_clean();
|
||||
|
|
|
@ -22,9 +22,9 @@ if (!function_exists('mep_display_event_cat_name_in_list')) {
|
|||
}
|
||||
?>
|
||||
<div class="mep-event-cat-controls">
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All', 'mage-eventpress'); ?></button>
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button>
|
||||
<?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo $unq_id.'mage-' . $_terms->term_id; ?>"><?php echo $_terms->name; ?></button>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -57,8 +57,8 @@ if (!function_exists('mep_display_event_org_name_in_list')) {
|
|||
}
|
||||
?>
|
||||
<div class="mep-event-cat-controls">
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All', 'mage-eventpress'); ?></button><?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo $unq_id.'mage-' . $_terms->term_id; ?>"><?php echo $_terms->name; ?></button><?php } ?>
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php esc_html_e('All', 'mage-eventpress'); ?></button><?php foreach ($terms as $_terms) { ?>
|
||||
<button type="button" class="mep-cat-control" data-filter=".<?php echo esc_attr($unq_id.'mage-' . $_terms->term_id); ?>"><?php echo esc_html($_terms->name); ?></button><?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
|
|
@ -30,7 +30,7 @@ if (!function_exists('mep_ev_location_cart')) {
|
|||
}
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
echo esc_html(implode(',', array_filter($location_arr)));
|
||||
|
||||
$content = ob_get_clean();
|
||||
|
||||
|
@ -74,7 +74,7 @@ if (!function_exists('mep_ev_location_ticket')) {
|
|||
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
echo esc_html(implode(',', array_filter($location_arr)));
|
||||
$content = ob_get_clean();
|
||||
$address_arr = array(
|
||||
'location' => $location,
|
||||
|
@ -116,7 +116,7 @@ if (!function_exists('mep_ev_location')) {
|
|||
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
echo esc_html(implode(',', array_filter($location_arr)));
|
||||
$content = ob_get_clean();
|
||||
$address_arr = array(
|
||||
'location' => $location,
|
||||
|
@ -257,10 +257,10 @@ if (!function_exists('mep_ev_street')) {
|
|||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_street', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_street'][0]; ?></span>
|
||||
?>
|
||||
<span><?php echo get_term_meta($org_id, 'org_street', true); ?></span>
|
||||
<?php } else { ?>
|
||||
<span><?php echo esc_html($event_meta['mep_street'][0]); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -276,10 +276,10 @@ if (!function_exists('mep_ev_city')) {
|
|||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_city', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_city'][0]; ?></span>
|
||||
?>
|
||||
<span><?php echo get_term_meta($org_id, 'org_city', true); ?></span>
|
||||
<?php } else { ?>
|
||||
<span><?php echo esc_html($event_meta['mep_city'][0]); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -296,10 +296,10 @@ if (!function_exists('mep_ev_state')) {
|
|||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_state', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_state'][0]; ?></span>
|
||||
?>
|
||||
<span><?php echo get_term_meta($org_id, 'org_state', true); ?></span>
|
||||
<?php } else { ?>
|
||||
<span><?php echo esc_html($event_meta['mep_state'][0]); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -316,10 +316,10 @@ if (!function_exists('mep_ev_postcode')) {
|
|||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_postcode', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_postcode'][0]; ?></span>
|
||||
?>
|
||||
<span><?php echo get_term_meta($org_id, 'org_postcode', true); ?></span>
|
||||
<?php } else { ?>
|
||||
<span><?php echo esc_html($event_meta['mep_postcode'][0]); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -335,10 +335,10 @@ if (!function_exists('mep_ev_country')) {
|
|||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_country', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_country'][0]; ?></span>
|
||||
?>
|
||||
<span><?php echo get_term_meta($org_id, 'org_country', true); ?></span>
|
||||
<?php } else { ?>
|
||||
<span><?php echo esc_html($event_meta['mep_country'][0]); ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ if (!function_exists('mep_shortcode_timeline_js_script')) {
|
|||
?>
|
||||
|
||||
jQuery('.timeline').timeline({
|
||||
mode: '<?php echo $tmode; ?>',
|
||||
mode: '<?php echo esc_attr($tmode); ?>',
|
||||
visibleItems: 4
|
||||
});
|
||||
<?php
|
||||
|
|
|
@ -13,7 +13,7 @@ if (!function_exists('mep_display_speaker_list')) {
|
|||
{
|
||||
$speakers_id = get_post_meta($event_id, 'mep_event_speakers_list', true) ? maybe_unserialize(get_post_meta($event_id, 'mep_event_speakers_list', true)) : array();
|
||||
$speaker_icon = get_post_meta($event_id, 'mep_event_speaker_icon', true) ? get_post_meta($event_id, 'mep_event_speaker_icon', true) : 'fa fa-microphone';
|
||||
$speaker_label = get_post_meta($event_id, 'mep_speaker_title', true) ? get_post_meta($event_id, 'mep_speaker_title', true) : __("Speaker's", "mage-eventpress");
|
||||
$speaker_label = get_post_meta($event_id, 'mep_speaker_title', true) ? get_post_meta($event_id, 'mep_speaker_title', true) : esc_html__("Speaker's", "mage-eventpress");
|
||||
if (is_array($speakers_id) && sizeof($speakers_id) > 0) {
|
||||
require(mep_template_file_path('single/speaker-list.php'));
|
||||
}
|
||||
|
@ -29,11 +29,15 @@ if (!function_exists('mep_display_all_speaker_list')) {
|
|||
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
echo '<ul>';
|
||||
?>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($loop->posts as $speaker) {
|
||||
$speakers = $speaker->ID;
|
||||
require(mep_template_file_path('all-speaker-list.php'));
|
||||
}
|
||||
echo '</ul>';
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ if (!function_exists('mep_ev_ticket_type')) {
|
|||
|
||||
if ($mep_event_ticket_type) {
|
||||
?>
|
||||
<?php echo "<h3 class='ex-sec-title mep_ticket_type_title'>" .$ticket_type_label. "</h3>"; ?>
|
||||
<h3 class='ex-sec-title mep_ticket_type_title'><?php echo esc_html($ticket_type_label); ?> </h3>
|
||||
<table id='mep_event_ticket_type_table'>
|
||||
<?php do_action('mep_event_ticket_type_loop_list', $post_id); ?>
|
||||
</table>
|
||||
|
|
|
@ -22,7 +22,7 @@ if (!function_exists('mep_output_add_to_cart_custom_fields')) {
|
|||
} else {
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Available', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : esc_html__('No Seat Available', 'mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
do_action('mep_after_no_seat_notice');
|
||||
|
|
|
@ -7,8 +7,6 @@ add_action('mep_event_ticket_type_loop_list', 'mep_event_ticket_type_loop_list_h
|
|||
if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||
function mep_event_ticket_type_loop_list_html($post_id)
|
||||
{
|
||||
// echo $post_id;
|
||||
|
||||
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
ob_start();
|
||||
|
|
|
@ -65,7 +65,7 @@ if (!function_exists('mep_event_google_map')) {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo $user_api; ?>&callback=initMap" async defer></script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo esc_attr($user_api); ?>&callback=initMap" async defer></script>
|
||||
<?php }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,9 +10,9 @@ global $post,$event_meta;
|
|||
ob_start();
|
||||
if($event_meta['_price'][0]>0){
|
||||
if($event_meta['mep_price_label'][0]){ ?>
|
||||
<h3><?php echo esc_attr($event_meta['mep_price_label'][0]); ?>: </h3>
|
||||
<h3><?php echo esc_html($event_meta['mep_price_label'][0]); ?>: </h3>
|
||||
<?php }
|
||||
echo wc_price(esc_attr($event_meta['_price'][0]));
|
||||
echo wc_price(esc_html($event_meta['_price'][0]));
|
||||
}
|
||||
$content = ob_get_clean();
|
||||
echo apply_filters('mage_event_single_price', $content,$post->ID);
|
||||
|
|
|
@ -9,7 +9,7 @@ if (!function_exists('mep_shortcode_speaker_list_html')) {
|
|||
{
|
||||
?>
|
||||
<div class="mep-default-sidebar-speaker-list">
|
||||
<?php echo mep_display_speaker_list($event_id); ?>
|
||||
<?php mep_display_speaker_list($event_id); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ if (!function_exists('mep_shortcode_all_speaker_list_html')) {
|
|||
{
|
||||
?>
|
||||
<div class="mep-default-sidebar-speaker-list">
|
||||
<?php echo mep_display_all_speaker_list(); ?>
|
||||
<?php mep_display_all_speaker_list(); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -3,9 +3,11 @@ get_header();
|
|||
the_post();
|
||||
global $post, $woocommerce;
|
||||
if (post_password_required()) {
|
||||
echo '<div class="mep-events-wrapper">';
|
||||
echo get_the_password_form(); // WPCS: XSS ok.
|
||||
echo '</div>';
|
||||
?>
|
||||
<div class="mep-events-wrapper">
|
||||
<?php echo get_the_password_form();?>
|
||||
</div>
|
||||
<?php
|
||||
} else {
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
|
|
|
@ -105,10 +105,10 @@ if($ticket_user_id == $current_user_id || in_array( 'administrator', (array) $u
|
|||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php _e('Sorry, You Can not see this page, Because Its not your Attendee Information.','mage-eventpress'); ?></title>
|
||||
<title><?php esc_html_e('Sorry, You Can not see this page, Because Its not your Attendee Information.','mage-eventpress'); ?></title>
|
||||
</head>
|
||||
<body>
|
||||
<h3 style="text-align: center;border: 2px solid red;color: red;font-size: 30px;width: 60%;margin: 100px auto;padding: 30px;"><?php _e('Sorry, You Can not see this page, Because Its not your Attendee Information.','mage-eventpress'); ?></h3>
|
||||
<h3 style="text-align: center;border: 2px solid red;color: red;font-size: 30px;width: 60%;margin: 100px auto;padding: 30px;"><?php esc_html_e('Sorry, You Can not see this page, Because Its not your Attendee Information.','mage-eventpress'); ?></h3>
|
||||
<?php
|
||||
}
|
||||
do_action('at_footer');
|
||||
|
|
|
@ -34,8 +34,8 @@ function mep_event_welcome_page()
|
|||
?>
|
||||
|
||||
<h2 class="nav-tab-wrapper mage-event-welcome-tab">
|
||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=welcome" class="nav-tab <?php echo $active_tab == 'welcome' ? 'nav-tab-active' : ''; ?>">Welcome</a>
|
||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=kwb" class="nav-tab <?php echo $active_tab == 'kwb' ? 'nav-tab-active' : ''; ?>">Support & Knowladgebase</a>
|
||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=welcome" class="nav-tab <?php echo esc_html($active_tab) == 'welcome' ? 'nav-tab-active' : ''; ?>">Welcome</a>
|
||||
<a href="edit.php?post_type=mep_events&page=mep_event_welcome_page&tab=kwb" class="nav-tab <?php echo esc_html($active_tab) == 'kwb' ? 'nav-tab-active' : ''; ?>">Support & Knowladgebase</a>
|
||||
</h2>
|
||||
|
||||
<div class="tab-content">
|
||||
|
|
|
@ -67,15 +67,9 @@
|
|||
<li>EventWise Speaker list: <pre>[event-speaker-list event=EventID]</pre> <a href="https://vaincode.com/reevent/speaker-list/">View Example</a></li>
|
||||
<li>Event Cart Section only:<pre>[[event-add-cart-section event=EventID]</pre> <a href="https://vaincode.com/reevent/event-add-to-cart-section/">View Example</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="col_6 sd_12">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/knowledge_img.png" alt="feature" />
|
||||
</div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -144,86 +138,12 @@
|
|||
<h5>Do you offer customization?</h5>
|
||||
<p class="marT">: Yes! we offer customization service for our client. If you want any new features don’t
|
||||
hesitate to contact us. Email: magepeopleteam@gmail.com.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<!--<div class="col_12 mt_40 justifyBetween">
|
||||
<div class="shadow_two sd_12 pad_25">
|
||||
<div class="postDash customButton customIcon">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/faq_icon.png" alt="icon" />
|
||||
</div>
|
||||
<h3>Support And Feedback</h3>
|
||||
<p class="marT">Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean lacinia bibendum. Cum sociis natoque penatibus et magnis dis parturient montes </p>
|
||||
<p class="marT textColor">Cum sociis natoque penatibus et magnis dis parturientmo
|
||||
ntes nascetur ridiculus mus aenean lacinia bibendum. </p>
|
||||
<a href="#" class="customButton allCenter customSupport marT">Get Support</a>
|
||||
</div>
|
||||
<div class="shadow_two sd_12 pad_25">
|
||||
<div class="postDash customButton customIcon">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/faq_icon.png" alt="icon" />
|
||||
</div>
|
||||
<h3>Newsletter Subscription</h3>
|
||||
<p class="marT">Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean lacinia bibendum. Cum sociis natoque penatibus et magnis dis parturient montes </p>
|
||||
<p class="marT textColor">Cum sociis natoque penatibus et magnis dis parturientmo
|
||||
ntes nascetur ridiculus mus aenean lacinia bibendum. </p>
|
||||
<a href="#" class="customButton allCenter customSubscription marT">Subscrible Now</a>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<div class="tutorial">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
<div class="col_12">
|
||||
<div>
|
||||
<div class="postDash customButton customIcon">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/tutorial_icon.png" alt="icon" />
|
||||
</div>
|
||||
<h2>Video Tutorial</h2>
|
||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes nascetur </p>
|
||||
</div>
|
||||
<div class="mage_row">
|
||||
<div class="col_4_sd_6_es_12_padding">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/tutorial_img.png" alt="tutorial" />
|
||||
<h4 class="textCenter marT">Cross Domain Copy Paste (Pro)</h4>
|
||||
</div>
|
||||
<div class="col_4_sd_6_es_12_padding">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/tutorial_img.png" alt="tutorial" />
|
||||
<h4 class="textCenter marT">Mage Effects-CSS Transform</h4>
|
||||
</div>
|
||||
<div class="col_4_sd_6_es_12_padding">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/tutorial_img.png" alt="tutorial" />
|
||||
<h4 class="textCenter marT">Mage Effects-Floating Effects</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="justifyCenter">
|
||||
<button class="widgetButton allCenter load_more" type="button">View Load More</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="missing_feature">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
|
@ -241,20 +161,6 @@ hesitate to contact us. Email: magepeopleteam@gmail.com.</p>
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="withOurWork">
|
||||
<div class="mage_container">
|
||||
<div class="withWork allCenter">
|
||||
<div class="col_4 sd_12">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/withMage.png" alt="icon" />
|
||||
</div>
|
||||
<div class="col_8 sd_12 pad_25">
|
||||
<h3>MagePeople With Our Work?</h3>
|
||||
<p class="marT">Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean lacinia bib endum. Cum sociis natoque penatibus et magnis dis parturient montesCum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean Cum sociis natoque penatibus et magnis dis parturient montes nascetu parturient montes nascetur.</p>
|
||||
<a href="#" class="customButton allCenter marT">I'm Mage to Give You 5</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
</section>
|
||||
|
||||
<style>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<header class="mageStyle">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/top_bg.png" alt="banner" class="zeroRadius" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/top_bg.png" alt="banner" class="zeroRadius"/>
|
||||
<div class="topBanner fullAbsolute alignCenter">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
<div class="col_3 sd_2 alignCenter">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/logo.png" alt="logo" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/logo.png" alt="logo"/>
|
||||
</div>
|
||||
<div class="col_5 sd_6 alignCenter">
|
||||
<div class="textContent">
|
||||
|
@ -16,16 +16,16 @@
|
|||
<div class="flexColumn top_icon_area">
|
||||
<ul class="flexEqual">
|
||||
<li></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/refresh.png" alt="refresh" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/rocket.png" alt="rocket" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/refresh.png" alt="refresh"/></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/rocket.png" alt="rocket"/></a></li>
|
||||
</ul>
|
||||
<ul class="flexEqual">
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/setting.png" alt="settings" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/reading.png" alt="reading" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/graph.png" alt="graph" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/setting.png" alt="settings"/></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/reading.png" alt="reading"/></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/graph.png" alt="graph"/></a></li>
|
||||
</ul>
|
||||
<ul class="flexEqual">
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/gift.png" alt="gift" /></a></li>
|
||||
<li><a href="#"><img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/gift.png" alt="gift"/></a></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
|
@ -36,47 +36,6 @@
|
|||
</div>
|
||||
</header>
|
||||
<section class="mageStyle">
|
||||
<!--<div class="features">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
<div class="col_12">
|
||||
<div class="justifyCenter">
|
||||
<span class="preDash postDash customButton allCenter">PRO</span>
|
||||
</div>
|
||||
<h1 class="dBlock textCenter">Features</h1>
|
||||
</div>
|
||||
<div class="col_7 sd_12 alignCenter">
|
||||
<div>
|
||||
<h2>Cross Domain Copy Paste</h2>
|
||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean lacinia bibendum. Cum sociis natoque penatibus et magnis dis parturient montes Cum sociis natoque penatibus</p>
|
||||
<label><span class="fa fa-check-circle"></span>Extensions to step-up your install</label>
|
||||
<label><span class="fa fa-check-circle"></span>Free 24-7 Priority Support</label>
|
||||
<a href="#" class="buttonOutline allCenter_radius_transition">Succeed Today</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col_5 sd_12">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/feature_img.png" alt="feature" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="preset">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
<div class="col_6 sd_12">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/preset.png" alt="preset" />
|
||||
</div>
|
||||
<div class="col_6 sd_12 alignCenter">
|
||||
<div>
|
||||
<span class="postDash customButton allCenter">PRO</span>
|
||||
<h2>Preset</h2>
|
||||
<p>Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus aenean lacinia bibendum. Cum sociis natoque penatibus et magnis dis parturient montes Cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus</p>
|
||||
<a href="#" class="buttonOutline allCenter_radius_transition">Succeed Today</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="unlimited_section">
|
||||
<div class="mage_container">
|
||||
<div class="mage_row">
|
||||
|
@ -85,24 +44,24 @@
|
|||
<span class="postDash buttonOutline allCenter" style="margin-bottom:30px;">PRO VERSION FEATURES</span>
|
||||
<h2>Attendee Form buider for attendee management Pdf Ticket and Emailing Feature.</h2>
|
||||
<p>Event Manager Pro feature include two addons form builder and pdf ticket and emailing feature. with this pro version someone can take any kind information of attendee, attendee list can be exported as CSV. pdf ticket can send to buyer email
|
||||
after ticket purchasing etc.</p>
|
||||
after ticket purchasing etc.</p>
|
||||
<div>
|
||||
<div class="alignCenter content_area nowrap">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/icon_1.png" alt="icon" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_1.png" alt="icon"/>
|
||||
<div class="textContent">
|
||||
<h4>Attendee Management</h4>
|
||||
<p>Attendee can be managed easily with attendee form builder and attendee information can edit also can export as CSV</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alignCenter content_area nowrap">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/icon_2.png" alt="icon" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_2.png" alt="icon"/>
|
||||
<div class="textContent">
|
||||
<h4>PDF Ticketing </h4>
|
||||
<p>every ticket purchased a pdf ticket will be generate that can print as entry document, different pdf template possible.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alignCenter content_area nowrap">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/icon_3.png" alt="icon" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/icon_3.png" alt="icon"/>
|
||||
<div class="textContent">
|
||||
<h4>Emailing Features</h4>
|
||||
<p>Pro version has email feature, after purchase complete, pdf ticket can send to buyer by email, it has customize email shortcode.</p>
|
||||
|
@ -113,7 +72,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col_6 sd_12">
|
||||
<img src="<?php echo plugin_dir_url(__DIR__).'welcome/' ?>img/ullimited_img.png" alt="unlimited" />
|
||||
<img src="<?php echo plugin_dir_url(__DIR__) . 'welcome/' ?>img/ullimited_img.png" alt="unlimited"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -127,33 +86,32 @@
|
|||
</div>
|
||||
<h1 class="textCenter">Addons</h1>
|
||||
<div class="justifyBetween">
|
||||
<?php
|
||||
$url = 'https://vaincode.com/update/addon-list.json';
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
$obj = json_decode($data, true);
|
||||
<?php
|
||||
$url = 'https://vaincode.com/update/addon-list.json';
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
$obj = json_decode($data, true);
|
||||
|
||||
// print_r($data);
|
||||
|
||||
if(is_array($obj) && sizeof($obj) > 0){
|
||||
echo '<div class="addon_list_sec"><ul class="mep_addon_list">';
|
||||
foreach ($obj as $list) {
|
||||
echo '<li>';
|
||||
echo '<img src='.$list['banner'].'>';
|
||||
echo '<h3>'.$list['name'].'</h3>';
|
||||
// echo '<p>'.$list['excerpt'].'</p>';
|
||||
echo '<h4>'.$list['price'].'</h4>';
|
||||
echo '<a href='.$list['url'].' target="_blank">'.$list['btn_txt'].'</a>';
|
||||
echo '</li>';
|
||||
}
|
||||
echo '</ul></div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
if (is_array($obj) && sizeof($obj) > 0) {
|
||||
?>
|
||||
<div class="addon_list_sec">
|
||||
<ul class="mep_addon_list">
|
||||
<?php foreach ($obj as $list) { ?>
|
||||
<li>
|
||||
<img src="<?php echo esc_url($list['banner']); ?>" alt="">
|
||||
<h3><?php echo esc_html($list['name']); ?></h3>
|
||||
<h4><?php echo esc_html($list['price']); ?></h4>
|
||||
<a href="<?php echo esc_url($list['url']); ?>" target="_blank"><?php echo esc_html($list['btn_txt']); ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -172,5 +130,5 @@ echo '</ul></div>';
|
|||
</div>
|
||||
</section>
|
||||
<style>
|
||||
.widget h3{font-size:18px;}
|
||||
.widget h3 {font-size: 18px;}
|
||||
</style>
|
|
@ -767,9 +767,9 @@ class Insights {
|
|||
<?php foreach ( $reasons as $reason ) { ?>
|
||||
<li data-placeholder="<?php echo esc_attr( $reason['placeholder'] ); ?>">
|
||||
<label>
|
||||
<input type="radio" name="selected-reason" value="<?php echo $reason['id']; ?>">
|
||||
<div class="wd-de-reason-icon"><?php echo $reason['icon']; ?></div>
|
||||
<div class="wd-de-reason-text"><?php echo $reason['text']; ?></div>
|
||||
<input type="radio" name="selected-reason" value="<?php echo esc_attr($reason['id']); ?>">
|
||||
<div class="wd-de-reason-icon"><?php echo esc_html($reason['icon']); ?></div>
|
||||
<div class="wd-de-reason-text"><?php echo esc_html($reason['text']); ?></div>
|
||||
</label>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
@ -779,9 +779,9 @@ class Insights {
|
|||
<?php foreach ( $custom_reasons as $reason ) { ?>
|
||||
<li data-placeholder="<?php echo esc_attr( $reason['placeholder'] ); ?>" data-customreason="true">
|
||||
<label>
|
||||
<input type="radio" name="selected-reason" value="<?php echo $reason['id']; ?>">
|
||||
<div class="wd-de-reason-icon"><?php echo $reason['icon']; ?></div>
|
||||
<div class="wd-de-reason-text"><?php echo $reason['text']; ?></div>
|
||||
<input type="radio" name="selected-reason" value="<?php echo esc_attr($reason['id']); ?>">
|
||||
<div class="wd-de-reason-icon"><?php echo esc_html($reason['icon']); ?></div>
|
||||
<div class="wd-de-reason-text"><?php echo esc_html($reason['text']); ?></div>
|
||||
</label>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
|
|
@ -255,7 +255,7 @@ class License {
|
|||
<?php printf( $this->client->__trans( 'Activate <strong>%s</strong> by your license key to get professional support and automatic update from your WordPress dashboard.' ), $this->client->name ); ?>
|
||||
</p>
|
||||
<form method="post" action="<?php $this->formActionUrl(); ?>" novalidate="novalidate" spellcheck="false">
|
||||
<input type="hidden" name="_action" value="<?php echo $action; ?>">
|
||||
<input type="hidden" name="_action" value="<?php echo esc_attr($action); ?>">
|
||||
<input type="hidden" name="_nonce" value="<?php echo wp_create_nonce( $this->client->name ); ?>">
|
||||
<div class="license-input-fields">
|
||||
<div class="license-input-key">
|
||||
|
|
|
@ -196,11 +196,11 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
|
||||
ob_start();
|
||||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field';
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field';
|
||||
?> field-wrapper field-post-objects-wrapper
|
||||
field-post-objects-wrapper-<?php echo $field_id; ?>">
|
||||
<div class="field-list <?php if($sortable){ echo 'sortable'; }?>" id="<?php echo $field_id; ?>">
|
||||
field-post-objects-wrapper-<?php echo esc_attr($field_id); ?>">
|
||||
<div class="field-list <?php if($sortable){ echo 'sortable'; }?>" id="<?php echo esc_attr($field_id); ?>">
|
||||
<?php
|
||||
if(!empty($args)):
|
||||
foreach ($args as $argsKey=>$arg):
|
||||
|
@ -333,10 +333,10 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
|
||||
ob_start();
|
||||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-switcher-wrapper
|
||||
field-switcher-wrapper-<?php echo esc_attr($id); ?>">
|
||||
<label class="switcher <?php echo $checked; ?>">
|
||||
<label class="switcher <?php echo esc_attr($checked); ?>">
|
||||
<input type="checkbox" id="<?php echo esc_attr($id); ?>" value="<?php echo esc_attr($value); ?>"
|
||||
name="<?php echo esc_attr($field_name); ?>" <?php echo esc_attr($checked); ?>>
|
||||
<span class="layer"></span>
|
||||
|
@ -475,18 +475,18 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
if(!empty($args)):
|
||||
?>
|
||||
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-google-map-wrapper
|
||||
field-google-map-wrapper-<?php echo $id; ?>">
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-google-map-wrapper
|
||||
field-google-map-wrapper-<?php echo esc_attr($id); ?>">
|
||||
<div class="item-list">
|
||||
<?php
|
||||
foreach ($args as $index=>$name):
|
||||
?>
|
||||
<div class="item">
|
||||
<span class="field-title"><?php echo $name; ?></span>
|
||||
<span class="input-wrapper"><input type='text' name='<?php echo $field_name;?>[<?php
|
||||
echo $index; ?>]' value='<?php
|
||||
echo $values[$index]; ?>' /></span>
|
||||
<span class="field-title"><?php echo esc_html($name); ?></span>
|
||||
<span class="input-wrapper"><input type='text' name='<?php echo esc_attr($field_name);?>[<?php
|
||||
echo esc_attr($index); ?>]' value='<?php
|
||||
echo esc_attr($values[$index]); ?>' /></span>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
|
@ -498,23 +498,23 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<?php
|
||||
if($preview):
|
||||
?>
|
||||
<div id="map-<?php echo $field_id; ?>"></div>
|
||||
<div id="map-<?php echo esc_attr($field_id); ?>"></div>
|
||||
<script>
|
||||
function initMap() {
|
||||
var myLatLng = {lat: <?php echo $lat; ?>, lng: <?php echo $lng; ?>};
|
||||
var map = new google.maps.Map(document.getElementById('map-<?php echo $field_id; ?>'), {
|
||||
zoom: <?php echo $zoom; ?>,
|
||||
var myLatLng = {lat: <?php echo esc_html($lat); ?>, lng: <?php echo esc_html($lng); ?>};
|
||||
var map = new google.maps.Map(document.getElementById('map-<?php echo esc_html($field_id); ?>'), {
|
||||
zoom: <?php echo esc_html($zoom); ?>,
|
||||
center: myLatLng
|
||||
});
|
||||
var marker = new google.maps.Marker({
|
||||
position: myLatLng,
|
||||
map: map,
|
||||
title: '<?php echo $title; ?>'
|
||||
title: '<?php echo esc_html($title); ?>'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script async defer
|
||||
src="https://maps.googleapis.com/maps/api/js?key=<?php echo $apikey; ?>&callback=initMap">
|
||||
src="https://maps.googleapis.com/maps/api/js?key=<?php echo esc_html($apikey); ?>&callback=initMap">
|
||||
</script>
|
||||
<?php
|
||||
endif;
|
||||
|
@ -630,15 +630,15 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
|
||||
ob_start();
|
||||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-border-wrapper
|
||||
field-border-wrapper-<?php echo $id; ?>">
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?>
|
||||
id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-border-wrapper
|
||||
field-border-wrapper-<?php echo esc_attr($id); ?>">
|
||||
<div class="item-list">
|
||||
<div class="item">
|
||||
<span class="field-title">Width</span>
|
||||
<span class="input-wrapper"><input type='number' name='<?php echo $field_name;?>[width]' value='<?php
|
||||
<span class="input-wrapper"><input type='number' name='<?php echo esc_attr($field_name);?>[width]' value='<?php
|
||||
echo $width; ?>' /></span>
|
||||
<select name="<?php echo $field_name;?>[unit]">
|
||||
<select name="<?php echo esc_attr($field_name);?>[unit]">
|
||||
<option <?php if($unit == 'px') echo 'selected'; ?> value="px">px</option>
|
||||
<option <?php if($unit == '%') echo 'selected'; ?> value="%">%</option>
|
||||
<option <?php if($unit == 'em') echo 'selected'; ?> value="em">em</option>
|
||||
|
@ -652,7 +652,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
</div>
|
||||
<div class="item">
|
||||
<span class="field-title">Style</span>
|
||||
<select name="<?php echo $field_name;?>[style]">
|
||||
<select name="<?php echo esc_attr($field_name);?>[style]">
|
||||
<option <?php if($style == 'dotted') echo 'selected'; ?> value="dotted">dotted</option>
|
||||
<option <?php if($style == 'dashed') echo 'selected'; ?> value="dashed">dashed</option>
|
||||
<option <?php if($style == 'solid') echo 'selected'; ?> value="solid">solid</option>
|
||||
|
@ -666,8 +666,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
</div>
|
||||
<div class="item">
|
||||
<span class="field-title">Color</span>
|
||||
<span class="input-wrapper"><input class="colorpicker" type='text' name='<?php echo $field_name;
|
||||
?>[color]' value='<?php echo $color; ?>' /></span>
|
||||
<span class="input-wrapper"><input class="colorpicker" type='text' name='<?php echo esc_attr($field_name);
|
||||
?>[color]' value='<?php echo esc_attr($color); ?>' /></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="error-mgs"></div>
|
||||
|
@ -783,8 +783,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
ob_start();
|
||||
if(!empty($args)):
|
||||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-margin-wrapper
|
||||
field-margin-wrapper-<?php echo $id; ?>">
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo esc_attr($depends); ?>]" <?php } ?> id="field-wrapper-<?php echo esc_attr($id); ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-margin-wrapper
|
||||
field-margin-wrapper-<?php echo esc_attr($id); ?>">
|
||||
<div class="item-list">
|
||||
<?php
|
||||
foreach ($args as $index=>$arg):
|
||||
|
@ -792,11 +792,11 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
$unit = $values[$index]['unit'];
|
||||
?>
|
||||
<div class="item">
|
||||
<span class="field-title"><?php echo $name; ?></span>
|
||||
<span class="input-wrapper"><input type='number' name='<?php echo $field_name;?>[<?php
|
||||
echo $index; ?>][val]' value='<?php
|
||||
echo $values[$index]['val']; ?>' /></span>
|
||||
<select name="<?php echo $field_name;?>[<?php echo $index; ?>][unit]">
|
||||
<span class="field-title"><?php echo esc_html($name); ?></span>
|
||||
<span class="input-wrapper"><input type='number' name='<?php echo esc_attr($field_name);?>[<?php
|
||||
echo esc_attr($index); ?>][val]' value='<?php
|
||||
echo esc_attr($values[$index]['val']); ?>' /></span>
|
||||
<select name="<?php echo esc_attr($field_name);?>[<?php echo esc_attr($index); ?>][unit]">
|
||||
<option <?php if($unit == 'px') echo 'selected'; ?> value="px">px</option>
|
||||
<option <?php if($unit == '%') echo 'selected'; ?> value="%">%</option>
|
||||
<option <?php if($unit == 'em') echo 'selected'; ?> value="em">em</option>
|
||||
|
|
|
@ -52,7 +52,7 @@ if( ! class_exists( 'AddMenuPage' ) ) {
|
|||
//$description = $section['description'];
|
||||
|
||||
$description = $section['id'] ;
|
||||
echo '<div id="'.$section['id'].'"></div>';
|
||||
echo '<div id="'.esc_attr($section['id']).'"></div>';
|
||||
}
|
||||
|
||||
public function display_fields() {
|
||||
|
|
|
@ -93,7 +93,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
?>
|
||||
|
||||
<div class='wrap ppof-settings ppof-metabox'>
|
||||
<div class='navigation <?php echo $get_nav_position; ?>'>
|
||||
<div class='navigation <?php echo esc_attr($get_nav_position); ?>'>
|
||||
|
||||
<div class="nav-header">
|
||||
<?php
|
||||
|
@ -128,9 +128,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
} ?> <?php if ( $current_page == $page_id ) {
|
||||
echo 'active';
|
||||
} ?>">
|
||||
<a dataid="<?php echo $page_id; ?>" href='#<?php //echo $pagenow.'?'.$section_id;
|
||||
?><?php echo
|
||||
$page_id; ?>' class='nav-item'><?php echo $page['page_nav']; ?>
|
||||
<a dataid="<?php echo esc_attr($page_id); ?>" href='#<?php echo esc_attr($page_id); ?>' class='nav-item'><?php echo esc_html($page['page_nav']); ?>
|
||||
|
||||
<?php if ( ( $page_settings_count > 1 ) ) {
|
||||
echo '<i class="child-nav-icon fas fa-angle-down"></i>';
|
||||
|
@ -148,9 +146,9 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
?>
|
||||
<li>
|
||||
|
||||
<a sectionId="<?php echo $section_id; ?>" dataid="<?php echo $page_id; ?>" href='#<?php echo $section_id; ?>' class='nav-item <?php if ( $current_page == $page_id ) {
|
||||
<a sectionId="<?php echo esc_attr($section_id); ?>" dataid="<?php echo esc_attr($page_id); ?>" href='#<?php echo esc_attr($section_id); ?>' class='nav-item <?php if ( $current_page == $page_id ) {
|
||||
echo 'active';
|
||||
} ?>'><?php echo $nav_sections_title; ?>
|
||||
} ?>'><?php echo esc_html($nav_sections_title); ?>
|
||||
|
||||
|
||||
</a>
|
||||
|
@ -205,7 +203,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
}
|
||||
?>
|
||||
|
||||
<div class="form-wrapper <?php echo $form_wrapper_position; ?>">
|
||||
<div class="form-wrapper <?php echo esc_attr($form_wrapper_position); ?>">
|
||||
|
||||
<div class="form-section">
|
||||
<?php
|
||||
|
@ -219,13 +217,13 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
<div class="tab-content <?php if ( $current_page == 1 ) {
|
||||
echo 'active';
|
||||
} ?> tab-content-<?php
|
||||
echo $panelsIndex; ?>">
|
||||
echo esc_attr($panelsIndex); ?>">
|
||||
<?php
|
||||
foreach ( $panel['sections'] as $sectionIndex => $section ):
|
||||
?>
|
||||
<div class="section">
|
||||
<h1 id="<?php echo $sectionIndex; ?>" class="section-title"><?php echo $section['title']; ?></h1>
|
||||
<p class="description"><?php echo $section['description']; ?></p>
|
||||
<h1 id="<?php echo esc_attr($sectionIndex); ?>" class="section-title"><?php echo esc_html($section['title']); ?></h1>
|
||||
<p class="description"><?php echo esc_html($section['description']); ?></p>
|
||||
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
|
@ -234,7 +232,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
foreach ( $section['options'] as $option ):
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $option['title']; ?></th>
|
||||
<th scope="row"><?php echo esc_html($option['title']); ?></th>
|
||||
<td>
|
||||
<?php
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ if( ! class_exists( 'TaxonomyEdit' ) ) {
|
|||
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<th scope="row" valign="top"><label for="<?php echo $option['id']; ?>"><?php echo $option['title']; ?></label></th>
|
||||
<th scope="row" valign="top"><label for="<?php echo esc_attr($option['id']); ?>"><?php echo esc_html($option['title']); ?></label></th>
|
||||
<td>
|
||||
<?php
|
||||
|
||||
|
@ -90,7 +90,7 @@ if( ! class_exists( 'TaxonomyEdit' ) ) {
|
|||
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<th scope="row" valign="top"><label for="<?php echo $option['id']; ?>"><?php echo $option['title']; ?></label></th>
|
||||
<th scope="row" valign="top"><label for="<?php echo esc_attr($option['id']); ?>"><?php echo esc_html($option['title']); ?></label></th>
|
||||
<td>
|
||||
<?php
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ if( ! class_exists( 'AddThemePage' ) ) {
|
|||
//$description = $section['description'];
|
||||
|
||||
$description = $section['id'] ;
|
||||
echo '<div id="'.$section['id'].'"></div>';
|
||||
echo '<div id="'.esc_attr($section['id']).'"></div>';
|
||||
}
|
||||
|
||||
public function display_fields() {
|
||||
|
|
|
@ -484,10 +484,10 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
protected function render() {
|
||||
global $post;
|
||||
$settings = $this->get_settings_for_display();
|
||||
$user_select_event = $settings['mep_event_list'] > 0 ? $settings['mep_event_list'] : 0;
|
||||
$ticket_table = $settings['mep_ticket_label'] ? $settings['mep_ticket_label'] : 'Ticket Type:';
|
||||
$cart_label = $settings['mep_cart_btn_label'] ? $settings['mep_cart_btn_label'] : 'Register For This Event';
|
||||
$ex_service_table = $settings['mep_ex_service_label'] ? $settings['mep_ex_service_label'] : 'Extra Service:';
|
||||
$user_select_event = $settings['mep_event_list'] > 0 ? esc_attr($settings['mep_event_list']) : 0;
|
||||
$ticket_table = $settings['mep_ticket_label'] ? esc_attr($settings['mep_ticket_label']) : 'Ticket Type:';
|
||||
$cart_label = $settings['mep_cart_btn_label'] ? esc_attr($settings['mep_cart_btn_label']) : 'Register For This Event';
|
||||
$ex_service_table = $settings['mep_ex_service_label'] ? esc_attr($settings['mep_ex_service_label']) : 'Extra Service:';
|
||||
|
||||
$event_id = $user_select_event > 0 ? $user_select_event : $post->ID;
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
|
|
|
@ -21,7 +21,7 @@ class MEPCalendarWidget extends Widget_Base {
|
|||
}
|
||||
|
||||
public function get_title() {
|
||||
return __( 'Event Calendar', 'mage-eventpress' );
|
||||
return esc_html__( 'Event Calendar', 'mage-eventpress' );
|
||||
}
|
||||
|
||||
public function get_icon() {
|
||||
|
|
|
@ -98,7 +98,7 @@ class MEPEventCityListWidget extends Widget_Base {
|
|||
protected function render() {
|
||||
|
||||
$settings = $this->get_settings_for_display();
|
||||
$mep_event_city_list_icon_html = '<i class="' . $settings['mep_event_city_list_icon'] . '" aria-hidden="true"></i>';
|
||||
$mep_event_city_list_icon_html = '<i class="' . esc_attr($settings['mep_event_city_list_icon']) . '" aria-hidden="true"></i>';
|
||||
?>
|
||||
<div class="mep-elementor-event-city-list-widget">
|
||||
<?php echo do_shortcode('[event-city-list]'); ?>
|
||||
|
|
|
@ -500,18 +500,18 @@ class MEPEventCountdownWidget extends Widget_Base {
|
|||
$timezone = get_mep_datetime($event_datetime,'timezone');
|
||||
?>
|
||||
<div class="mep-default-title mep-elementor-widget-countdown mep-event-countdown-sec">
|
||||
<div id="countdown<?php echo $event_id; ?>" class="mep-event-countdown-timer"></div>
|
||||
<div id="countdown<?php echo esc_attr($event_id); ?>" class="mep-event-countdown-timer"></div>
|
||||
</div>
|
||||
<script>
|
||||
jQuery(document).ready(function($) {
|
||||
jQuery('#countdown<?php echo $event_id; ?>').countdown({
|
||||
year: <?php echo $year; ?>, // YYYY Format
|
||||
month: <?php echo $month; ?>, // 1-12
|
||||
day: <?php echo $day; ?>, // 1-31
|
||||
hour: <?php echo $hour; ?>, // 24 hour format 0-23
|
||||
minute: <?php echo $minute; ?>, // 0-59
|
||||
second: <?php echo $second; ?>, // 0-59
|
||||
timezone: <?php echo $timezone; ?>, // http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
jQuery('#countdown<?php echo esc_attr($event_id); ?>').countdown({
|
||||
year: <?php echo esc_attr($year); ?>, // YYYY Format
|
||||
month: <?php echo esc_attr($month); ?>, // 1-12
|
||||
day: <?php echo esc_attr($day); ?>, // 1-31
|
||||
hour: <?php echo esc_attr($hour); ?>, // 24 hour format 0-23
|
||||
minute: <?php echo esc_attr($minute); ?>, // 0-59
|
||||
second: <?php echo esc_attr($second); ?>, // 0-59
|
||||
timezone: <?php echo esc_attr($timezone); ?>, // http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
labels: true, // Show/Hide label elements
|
||||
});
|
||||
});
|
||||
|
|
|
@ -211,7 +211,8 @@ class MEPEventDateWidget extends Widget_Base {
|
|||
if(!empty($event_datetime)){
|
||||
?>
|
||||
<div class="mep-default-datetime mep-elementor-widget-datetime">
|
||||
<span><?php echo $mep_location_icon; echo $before_text; ?></span><span><?php echo get_mep_datetime($event_datetime,$datetdisplaystyle); ?></span> <span><?php echo $after_text; ?></span>
|
||||
<span><?php echo esc_html($mep_location_icon.' '.$before_text); ?></span>
|
||||
<span><?php echo esc_html(get_mep_datetime($event_datetime,$datetdisplaystyle)); ?></span> <span><?php echo esc_html($after_text); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -964,19 +964,19 @@ class MEPEventListRecurringWidget extends Widget_Base {
|
|||
protected function render() {
|
||||
|
||||
$settings = $this->get_settings_for_display();
|
||||
$cat = $settings['mep_event_list_recurring_cat'] > 0 ? $settings['mep_event_list_recurring_cat'] : '';
|
||||
$org = $settings['mep_event_list_recurring_org'] > 0 ? $settings['mep_event_list_recurring_org'] : '';
|
||||
$show = $settings['mep_event_list_recurring_show'] ? $settings['mep_event_list_recurring_show'] : '3';
|
||||
$style = $settings['mep_event_list_recurring_style'] ? $settings['mep_event_list_recurring_style'] : 'grid';
|
||||
$timeline_style = $settings['mep_event_list_recurring_timeline_mode'] ? $settings['mep_event_list_recurring_timeline_mode'] : 'vertical';
|
||||
$column = $settings['mep_event_list_recurring_column'] ? $settings['mep_event_list_recurring_column'] : '3';
|
||||
$cat_filter = $settings['mep_event_list_recurring_cat_filter'] ? $settings['mep_event_list_recurring_cat_filter'] : 'no';
|
||||
$org_filter = $settings['mep_event_list_recurring_org_filter'] ? $settings['mep_event_list_recurring_org_filter'] : 'no';
|
||||
$sort = $settings['mep_event_list_recurring_sort'] ? $settings['mep_event_list_recurring_sort'] : 'DESC';
|
||||
$pagination = $settings['mep_event_list_recurring_pagination'] ? $settings['mep_event_list_recurring_pagination'] : 'no';
|
||||
$carousel_id = $settings['mep_event_list_recurring_carousel_id'] ? $settings['mep_event_list_recurring_carousel_id'] : '102448';
|
||||
$carousel_nav = $settings['mep_event_list_recurring_carousel_nav'] ? $settings['mep_event_list_recurring_carousel_nav'] : 'no';
|
||||
$carousel_dot = $settings['mep_event_list_recurring_carousel_dot'] ? $settings['mep_event_list_recurring_carousel_dot'] : 'yes';
|
||||
$cat = $settings['mep_event_list_recurring_cat'] > 0 ? esc_attr($settings['mep_event_list_recurring_cat']) : '';
|
||||
$org = $settings['mep_event_list_recurring_org'] > 0 ? esc_attr($settings['mep_event_list_recurring_org']) : '';
|
||||
$show = $settings['mep_event_list_recurring_show'] ? esc_attr($settings['mep_event_list_recurring_show']) : '3';
|
||||
$style = $settings['mep_event_list_recurring_style'] ? esc_attr($settings['mep_event_list_recurring_style']) : 'grid';
|
||||
$timeline_style = $settings['mep_event_list_recurring_timeline_mode'] ? esc_attr($settings['mep_event_list_recurring_timeline_mode']) : 'vertical';
|
||||
$column = $settings['mep_event_list_recurring_column'] ? esc_attr($settings['mep_event_list_recurring_column']) : '3';
|
||||
$cat_filter = $settings['mep_event_list_recurring_cat_filter'] ? esc_attr($settings['mep_event_list_recurring_cat_filter']) : 'no';
|
||||
$org_filter = $settings['mep_event_list_recurring_org_filter'] ? esc_attr($settings['mep_event_list_recurring_org_filter']) : 'no';
|
||||
$sort = $settings['mep_event_list_recurring_sort'] ? esc_attr($settings['mep_event_list_recurring_sort']) : 'DESC';
|
||||
$pagination = $settings['mep_event_list_recurring_pagination'] ? esc_attr($settings['mep_event_list_recurring_pagination']) : 'no';
|
||||
$carousel_id = $settings['mep_event_list_recurring_carousel_id'] ? esc_attr($settings['mep_event_list_recurring_carousel_id']) : '102448';
|
||||
$carousel_nav = $settings['mep_event_list_recurring_carousel_nav'] ? esc_attr($settings['mep_event_list_recurring_carousel_nav']) : 'no';
|
||||
$carousel_dot = $settings['mep_event_list_recurring_carousel_dot'] ? esc_attr($settings['mep_event_list_recurring_carousel_dot']) : 'yes';
|
||||
?>
|
||||
<div class="mep-elementor-event-list-recurring-widget">
|
||||
<?php echo do_shortcode('[event-list-recurring cat='.$cat.' org='.$org.' show='.$show.' style='.$style.' timeline-mode='.$timeline_style.' column='.$column.' cat-filter='.$cat_filter.' org-filter='.$org_filter.' sort='.$sort.' pagination='.$pagination.' carousal-id='.$carousel_id.' carousal-nav='.$carousel_nav.' carousal-dots='.$carousel_dot.']'); ?>
|
||||
|
|
|
@ -816,42 +816,21 @@ class MEPEventListWidget extends Widget_Base {
|
|||
|
||||
|
||||
|
||||
$cat = $settings['mep_event_list_cat'] > 0 ? $settings['mep_event_list_cat'] : '';
|
||||
$org = $settings['mep_event_list_org'] > 0 ? $settings['mep_event_list_org'] : '';
|
||||
|
||||
$style = $settings['mep_event_list_style'] ? $settings['mep_event_list_style'] : 'grid';
|
||||
$column = $settings['mep_event_list_column'] ? $settings['mep_event_list_column'] : '3';
|
||||
$cat_filter = $settings['mep_event_list_cat_filter'] ? $settings['mep_event_list_cat_filter'] : 'no';
|
||||
$org_filter = $settings['mep_event_list_org_filter'] ? $settings['mep_event_list_org_filter'] : 'no';
|
||||
$show = $settings['mep_event_list_show'] ? $settings['mep_event_list_show'] : '10';
|
||||
$pagination = $settings['mep_event_list_pagination'] ? $settings['mep_event_list_pagination'] : 'no';
|
||||
$carousal_id = $settings['mep_event_carousal_id'] ? $settings['mep_event_carousal_id'] : '102448';
|
||||
$carousal_nav = $settings['mep_event_list_carousal_nav'] ? $settings['mep_event_list_carousal_nav'] : 'no';
|
||||
$carousal_dot = $settings['mep_event_list_carousal_dot'] ? $settings['mep_event_list_carousal_dot'] : 'yes';
|
||||
$timeline_style = $settings['mep_event_list_timeline_mode'] ? $settings['mep_event_list_timeline_mode'] : 'vertical';
|
||||
$sort = $settings['mep_event_list_sort'] ? $settings['mep_event_list_sort'] : 'ASC';
|
||||
$status = $settings['mep_event_list_status'] ? $settings['mep_event_list_status'] : 'upcoming';
|
||||
|
||||
|
||||
|
||||
// "cat" => "0",
|
||||
// "org" => "0",
|
||||
// "style" => "grid",
|
||||
// "column" => 3,
|
||||
// "cat-filter" => "no",
|
||||
// "org-filter" => "no",
|
||||
// "show" => "-1",
|
||||
// "pagination" => "no",
|
||||
// "city" => "",
|
||||
// "country" => "",
|
||||
// "carousal-nav" => "no",
|
||||
// "carousal-dots" => "yes",
|
||||
// "carousal-id" => "102448",
|
||||
// "timeline-mode" => "vertical",
|
||||
// 'sort' => 'ASC',
|
||||
// 'status' => 'upcoming'
|
||||
|
||||
$cat = $settings['mep_event_list_cat'] > 0 ? esc_attr($settings['mep_event_list_cat']) : '';
|
||||
$org = $settings['mep_event_list_org'] > 0 ? esc_attr($settings['mep_event_list_org']) : '';
|
||||
|
||||
$style = $settings['mep_event_list_style'] ? esc_attr($settings['mep_event_list_style']) : 'grid';
|
||||
$column = $settings['mep_event_list_column'] ? esc_attr($settings['mep_event_list_column']) : '3';
|
||||
$cat_filter = $settings['mep_event_list_cat_filter'] ? esc_attr($settings['mep_event_list_cat_filter']) : 'no';
|
||||
$org_filter = $settings['mep_event_list_org_filter'] ? esc_attr($settings['mep_event_list_org_filter']) : 'no';
|
||||
$show = $settings['mep_event_list_show'] ? esc_attr($settings['mep_event_list_show']) : '10';
|
||||
$pagination = $settings['mep_event_list_pagination'] ? esc_attr($settings['mep_event_list_pagination']) : 'no';
|
||||
$carousal_id = $settings['mep_event_carousal_id'] ? esc_attr($settings['mep_event_carousal_id']) : '102448';
|
||||
$carousal_nav = $settings['mep_event_list_carousal_nav'] ? esc_attr($settings['mep_event_list_carousal_nav']) : 'no';
|
||||
$carousal_dot = $settings['mep_event_list_carousal_dot'] ? esc_attr($settings['mep_event_list_carousal_dot']) : 'yes';
|
||||
$timeline_style = $settings['mep_event_list_timeline_mode'] ? esc_attr($settings['mep_event_list_timeline_mode']) : 'vertical';
|
||||
$sort = $settings['mep_event_list_sort'] ? esc_attr($settings['mep_event_list_sort']) : 'ASC';
|
||||
$status = $settings['mep_event_list_status'] ? esc_attr($settings['mep_event_list_status']) : 'upcoming';
|
||||
|
||||
?>
|
||||
<div class="mep-elementor-event-list-widget">
|
||||
|
|
|
@ -193,7 +193,9 @@ class MEPEventLocationWidget extends Widget_Base {
|
|||
if(!empty($mep_event_location_style)){
|
||||
?>
|
||||
<div class="mep-default-location mep-elementor-widget-location">
|
||||
<span><?php echo $mep_location_icon; echo $before_text; ?></span> <span><?php echo mep_get_location($event_id,$mep_event_location_style); ?></span> <span><?php echo $after_text; ?></span>
|
||||
<span><?php echo esc_html($mep_location_icon.' '.$before_text); ?></span>
|
||||
<span><?php mep_get_location($event_id,$mep_event_location_style); ?></span>
|
||||
<span><?php echo esc_html($after_text); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ class MEPEventOrgWidget extends Widget_Base {
|
|||
if(sizeof($author_terms) > 0){
|
||||
?>
|
||||
<div class="mep-default-org mep-elementor-widget-org">
|
||||
<span><?php echo $before_text; ?></span> <span><?php echo $author_terms[0]->name; ?></span> <span><?php echo $after_text; ?></span>
|
||||
<span><?php echo esc_html($before_text); ?></span> <span><?php echo esc_html($author_terms[0]->name); ?></span> <span><?php echo esc_html($after_text); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ class MEPSpeakerListWidget extends Widget_Base {
|
|||
protected function render() {
|
||||
|
||||
$settings = $this->get_settings_for_display();
|
||||
$mep_event_list = $settings['mep_event_list'] > 0 ? $settings['mep_event_list'] : '';
|
||||
$mep_event_list = $settings['mep_event_list'] > 0 ? esc_attr($settings['mep_event_list']) : '';
|
||||
?>
|
||||
<div class="mep-elementor-event-speaker-list-widget">
|
||||
<?php echo do_shortcode('[event-speaker-list event="'.$mep_event_list.'"]'); ?>
|
||||
|
|
|
@ -110,7 +110,7 @@ class MEPEventSeattWidget extends Widget_Base {
|
|||
if (get_post_type($event_id) == 'mep_events') {
|
||||
?>
|
||||
<div class="mep-default-seat mep-elementor-widget-seat">
|
||||
<span><?php echo $before_text; ?></span> <span><?php do_action('mep_event_seat',$event_id); ?></span><span><?php echo $after_text; ?></span>
|
||||
<span><?php echo esc_html($before_text); ?></span> <span><?php do_action('mep_event_seat',$event_id); ?></span><span><?php echo esc_html($after_text); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -971,19 +971,19 @@ class MEPExpiredEventWidget extends Widget_Base {
|
|||
protected function render() {
|
||||
|
||||
$settings = $this->get_settings_for_display();
|
||||
$cat = $settings['mep_event_list_cat'] > 0 ? $settings['mep_event_list_cat'] : '';
|
||||
$org = $settings['mep_event_list_org'] > 0 ? $settings['mep_event_list_org'] : '';
|
||||
$show = $settings['mep_event_list_show'] ? $settings['mep_event_list_show'] : '3';
|
||||
$style = $settings['mep_event_list_style'] ? $settings['mep_event_list_style'] : 'grid';
|
||||
$timeline_style = $settings['mep_event_list_timeline_mode'] ? $settings['mep_event_list_timeline_mode'] : 'vertical';
|
||||
$column = $settings['mep_event_list_column'] ? $settings['mep_event_list_column'] : '3';
|
||||
$cat_filter = $settings['mep_event_list_cat_filter'] ? $settings['mep_event_list_cat_filter'] : 'no';
|
||||
$org_filter = $settings['mep_event_list_org_filter'] ? $settings['mep_event_list_org_filter'] : 'no';
|
||||
$sort = $settings['mep_event_list_sort'] ? $settings['mep_event_list_sort'] : 'DESC';
|
||||
$pagination = $settings['mep_event_list_pagination'] ? $settings['mep_event_list_pagination'] : 'no';
|
||||
$carousel_id = $settings['mep_event_carousel_id'] ? $settings['mep_event_carousel_id'] : '102448';
|
||||
$carousel_nav = $settings['mep_event_list_carousel_nav'] ? $settings['mep_event_list_carousel_nav'] : 'no';
|
||||
$carousel_dot = $settings['mep_event_list_carousel_dot'] ? $settings['mep_event_list_carousel_dot'] : 'yes';
|
||||
$cat = $settings['mep_event_list_cat'] > 0 ? esc_attr($settings['mep_event_list_cat']) : '';
|
||||
$org = $settings['mep_event_list_org'] > 0 ? esc_attr($settings['mep_event_list_org']) : '';
|
||||
$show = $settings['mep_event_list_show'] ? esc_attr($settings['mep_event_list_show']) : '3';
|
||||
$style = $settings['mep_event_list_style'] ? esc_attr($settings['mep_event_list_style']) : 'grid';
|
||||
$timeline_style = $settings['mep_event_list_timeline_mode'] ? esc_attr($settings['mep_event_list_timeline_mode']) : 'vertical';
|
||||
$column = $settings['mep_event_list_column'] ? esc_attr($settings['mep_event_list_column']) : '3';
|
||||
$cat_filter = $settings['mep_event_list_cat_filter'] ? esc_attr($settings['mep_event_list_cat_filter']) : 'no';
|
||||
$org_filter = $settings['mep_event_list_org_filter'] ? esc_attr($settings['mep_event_list_org_filter']) : 'no';
|
||||
$sort = $settings['mep_event_list_sort'] ? esc_attr($settings['mep_event_list_sort']) : 'DESC';
|
||||
$pagination = $settings['mep_event_list_pagination'] ? esc_attr($settings['mep_event_list_pagination']) : 'no';
|
||||
$carousel_id = $settings['mep_event_carousel_id'] ? esc_attr($settings['mep_event_carousel_id']) : '102448';
|
||||
$carousel_nav = $settings['mep_event_list_carousel_nav'] ? esc_attr($settings['mep_event_list_carousel_nav']) : 'no';
|
||||
$carousel_dot = $settings['mep_event_list_carousel_dot'] ? esc_attr($settings['mep_event_list_carousel_dot']) : 'yes';
|
||||
|
||||
?>
|
||||
<div class="mep-elementor-expired-event-widget">
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
<li>
|
||||
<a href='<?php echo get_the_permalink($speakers); ?>'><?php if (has_post_thumbnail($speakers)) {
|
||||
echo get_the_post_thumbnail($speakers, 'medium');
|
||||
} else {
|
||||
echo '<img src="' . plugins_url('../images/no-photo.jpg', __DIR__) . '"/>';
|
||||
} ?>
|
||||
<h6><?php echo get_the_title($speakers); ?></h6>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='<?php echo get_the_permalink($speakers); ?>'>
|
||||
<?php if (has_post_thumbnail($speakers)) {
|
||||
echo get_the_post_thumbnail($speakers, 'medium');
|
||||
} else { ?>
|
||||
<img src="<?php echo esc_url(plugins_url('../images/no-photo.jpg', __DIR__)); ?>" alt=""/>;
|
||||
<?php } ?>
|
||||
<h6><?php echo get_the_title($speakers); ?></h6>
|
||||
</a>
|
||||
</li>
|
|
@ -1,44 +1,40 @@
|
|||
<?php
|
||||
$day = mep_get_event_upcomming_date($event_id, 'day');
|
||||
$month = mep_get_event_upcomming_date($event_id, 'month-name');
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
$mep_hide_event_hover_btn = mep_get_option('mep_hide_event_hover_btn', 'general_setting_sec', 'no');
|
||||
$mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text', 'general_setting_sec', 'Book Now');
|
||||
$day = mep_get_event_upcomming_date($event_id, 'day');
|
||||
$month = mep_get_event_upcomming_date($event_id, 'month-name');
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
$mep_hide_event_hover_btn = mep_get_option('mep_hide_event_hover_btn', 'general_setting_sec', 'no');
|
||||
$mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text', 'general_setting_sec', 'Book Now');
|
||||
|
||||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop <?php echo esc_attr($columnNumber); ?> mep_event_<?php echo esc_attr($style); ?>_item mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>' data-title="<?php echo get_the_title($event_id); ?>" data-city-name="<?php echo get_post_meta($event_id, 'mep_city', true); ?>" data-category="<?php echo esc_attr($taxonomy_category); ?>" data-organizer="<?php echo $taxonomy_organizer; ?>" data-date="<?php echo get_mep_datetime($date, 'date'); ?>" style="width:calc(<?php echo $width; ?>% - 14px);">
|
||||
<div class='filter_item mep-event-list-loop <?php echo esc_attr($columnNumber); ?> mep_event_<?php echo esc_attr($style); ?>_item mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>' data-title="<?php echo get_the_title($event_id); ?>" data-city-name="<?php echo get_post_meta($event_id, 'mep_city', true); ?>" data-category="<?php echo esc_attr($taxonomy_category); ?>" data-organizer="<?php echo esc_attr($taxonomy_organizer); ?>" data-date="<?php echo esc_attr(get_mep_datetime($date, 'date')); ?>" style="width:calc(<?php echo esc_attr($width); ?>% - 14px);">
|
||||
<?php do_action('mep_event_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo esc_url(get_the_permalink()); ?>">
|
||||
<div class="mep_bg_thumb" data-bg-image="<?php esc_attr(mep_get_list_thumbnail_src($event_id, 'medium')); ?>">
|
||||
<!-- <img data-src="--><?php //mep_get_list_thumbnail_src($event_id);
|
||||
?>
|
||||
<!--" class="lazyload" src="" alt="" />-->
|
||||
</div>
|
||||
<div class="mep_bg_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id, 'medium'); ?>"></div>
|
||||
</a>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number', $day, $event_id); ?></div>
|
||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name', $month, $event_id); ?></div>
|
||||
<div class="mep-day"><?php echo esc_html(apply_filters('mep_event_list_only_day_number', $day, $event_id)); ?></div>
|
||||
<div class="mep-month"><?php echo esc_html(apply_filters('mep_event_list_only_month_name', $month, $event_id)); ?></div>
|
||||
</div>
|
||||
<?php
|
||||
if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', __('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', esc_html__('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php } elseif ($recurring != 'no') {
|
||||
?>
|
||||
?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', __('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', esc_html__('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($event_type == 'online') { ?>
|
||||
<div class='mep-eventtype-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : _e('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : esc_html__('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
@ -52,13 +48,13 @@ $date = get_post_meta($event_id, 'event_upcoming_datet
|
|||
} ?>
|
||||
<h3 class='mep_list_date'>
|
||||
<?php if ($show_price == 'yes') {
|
||||
echo $show_price_label . " " . mep_event_list_price($event_id);
|
||||
echo esc_html($show_price_label). " " . mep_event_list_price($event_id);
|
||||
} ?>
|
||||
</h3>
|
||||
</div>
|
||||
<?php
|
||||
if ($style == 'list') {
|
||||
?>
|
||||
?>
|
||||
<div class="mep-event-excerpt">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
|
@ -69,16 +65,14 @@ $date = get_post_meta($event_id, 'event_upcoming_datet
|
|||
<?php
|
||||
if ($hide_org_list == 'no') {
|
||||
if (sizeof($author_terms) > 0) {
|
||||
?>
|
||||
?>
|
||||
<li class="mep_list_org_name">
|
||||
<div class="evl-ico"><i class="fa fa-university"></i></div>
|
||||
<div class="evl-cc">
|
||||
<h5>
|
||||
<?php echo mep_get_option('mep_organized_by_text', 'label_setting_sec') ? mep_get_option('mep_organized_by_text', 'label_setting_sec') : _e('Organized By:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_organized_by_text', 'label_setting_sec') ? mep_get_option('mep_organized_by_text', 'label_setting_sec') : esc_html__('Organized By:', 'mage-eventpress'); ?>
|
||||
</h5>
|
||||
<h6><?php
|
||||
echo $author_terms[0]->name;
|
||||
?></h6>
|
||||
<h6><?php echo esc_html($author_terms[0]->name); ?></h6>
|
||||
</div>
|
||||
</li>
|
||||
<?php }
|
||||
|
@ -90,13 +84,13 @@ $date = get_post_meta($event_id, 'event_upcoming_datet
|
|||
<div class="evl-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class="evl-cc">
|
||||
<h5>
|
||||
<?php echo mep_get_option('mep_location_text', 'label_setting_sec') ? mep_get_option('mep_location_text', 'label_setting_sec') : _e('Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_location_text', 'label_setting_sec') ? mep_get_option('mep_location_text', 'label_setting_sec') : esc_html__('Location:', 'mage-eventpress'); ?>
|
||||
|
||||
</h5>
|
||||
<h6><?php mep_get_event_city($event_id); ?></h6>
|
||||
</div>
|
||||
</li>
|
||||
<?php }
|
||||
<?php }
|
||||
}
|
||||
if ($hide_time_list == 'no' && $recurring == 'no') {
|
||||
do_action('mep_event_list_date_li', $event_id, 'grid');
|
||||
|
@ -110,7 +104,7 @@ $date = get_post_meta($event_id, 'event_upcoming_datet
|
|||
</div>
|
||||
<?php if ('yes' == $mep_hide_event_hover_btn) { ?>
|
||||
<div class="item_hover_effect">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo $mep_hide_event_hover_btn_text; ?></a>
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo esc_html($mep_hide_event_hover_btn_text); ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
|
@ -6,7 +6,7 @@ $month = get_mep_datetime(get_post_meta($event_id, 'event_upcoming_datetime', tr
|
|||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
// $date = mep_get_event_upcomming_date($event_id, 'date');
|
||||
$date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop mep_event_list_item mep_event_minimal_list mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'
|
||||
data-title="<?php echo esc_attr(get_the_title($event_id)); ?>"
|
||||
|
@ -27,13 +27,18 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
<a href="<?php the_permalink(); ?>">
|
||||
<div class="mep-list-header">
|
||||
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
||||
<?php mep_get_event_upcomming_date($event_id, 1); ?>
|
||||
<?php
|
||||
mep_get_event_upcomming_date($event_id, 1);
|
||||
?>
|
||||
<?php if ($available_seat == 0) {
|
||||
if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'> <?php do_action('mep_event_list_date_li', $event_id, 'minimal'); ?> <span class='mep_minimal_list_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span></h3>
|
||||
}
|
||||
?>
|
||||
<h3 class='mep_list_date'> <?php do_action('mep_event_list_date_li', $event_id, 'minimal'); ?>
|
||||
<span class='mep_minimal_list_location'>
|
||||
<i class="fas fa-map-marker-alt"></i>
|
||||
<?php mep_get_event_city($event_id); ?>
|
||||
</span>
|
||||
</h3>
|
||||
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
|
|
|
@ -4,7 +4,7 @@ $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_m
|
|||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
// $date = mep_get_event_upcomming_date($event_id, 'date');
|
||||
$date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop mep_event_list_item mep_event_native_list mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'
|
||||
data-title="<?php echo esc_attr(get_the_title($event_id)); ?>"
|
||||
|
@ -14,13 +14,11 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
data-date="<?php echo esc_attr(get_mep_datetime($date, 'date')); ?>"
|
||||
>
|
||||
<?php do_action('mep_event_minimal_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>">
|
||||
<div class="mep_bg_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id,'thumbnail'); ?>">
|
||||
<!-- <img data-src="--><?php //mep_get_list_thumbnail_src($event_id); ?><!--" class="lazyload" src="" alt="" />-->
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>">
|
||||
<div class="mep_bg_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id, 'thumbnail'); ?>"></div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="mep_list_event_details">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
|
@ -29,7 +27,13 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
<?php if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'> <?php do_action('mep_event_list_date_li', $event_id, 'minimal'); ?> <span class='mep_minimal_list_location'><i class='fa fa-map-marker'></i> <?php mep_get_event_city($event_id); ?></span></h3>
|
||||
<h3 class='mep_list_date'>
|
||||
<?php do_action('mep_event_list_date_li', $event_id, 'minimal'); ?>
|
||||
<span class='mep_minimal_list_location'>
|
||||
<i class='fa fa-map-marker'></i>
|
||||
<?php mep_get_event_city($event_id); ?>
|
||||
</span>
|
||||
</h3>
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
</div>
|
||||
|
|
|
@ -4,7 +4,7 @@ $event_type = get_post_meta(get_the_id(), 'mep_event_type', true) ? get_post_met
|
|||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
// $date = mep_get_event_upcomming_date($event_id, 'date');
|
||||
$date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop mep_event_list_item mep_event_spring_list mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'
|
||||
data-title="<?php echo esc_attr(get_the_title($event_id)); ?>"
|
||||
|
@ -15,16 +15,16 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
>
|
||||
<?php do_action('mep_event_spring_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_date_wrapper">
|
||||
<h4 class='mep_spring_list_date'> <?php echo $start_date_format; ?></h4>
|
||||
<h4 class='mep_spring_list_date'> <?php echo esc_html($start_date_format); ?></h4>
|
||||
</div>
|
||||
|
||||
<div class="mep_list_event_details mep_list_details_col_one">
|
||||
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
|
||||
<span class="mep_spring_event_time"><i class="far fa-clock"></i> <?php echo $start_time_format; ?> - <?php echo $end_time_format; ?></span>
|
||||
<span class="mep_spring_event_time"><i class="far fa-clock"></i> <?php echo esc_html($start_time_format); ?> - <?php echo esc_html($end_time_format); ?></span>
|
||||
<span class='mep_spring_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span>
|
||||
<span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo $start_date_format; ?> - <?php echo $end_date_format; ?></span>
|
||||
<span class="mep_spring_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html($start_date_format); ?> - <?php echo esc_html($end_date_format); ?></span>
|
||||
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
|
@ -38,23 +38,23 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
} ?>
|
||||
<span class="mep_price">
|
||||
<?php if ($show_price == 'yes') {
|
||||
echo $show_price_label . " " . mep_event_list_price($event_id);
|
||||
echo esc_html($show_price_label) . " " . mep_event_list_price($event_id);
|
||||
} ?>
|
||||
</span>
|
||||
<?php if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', __('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', esc_html__('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php } elseif ($recurring != 'no') {
|
||||
?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', __('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', esc_html__('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
if ($event_type == 'online') { ?>
|
||||
<div class='mep-eventtype-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : _e('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : esc_html__('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
|
@ -66,4 +66,4 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
</a>
|
||||
</div>
|
||||
<?php do_action('mep_event_spring_list_loop_end', $event_id); ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,32 +1,42 @@
|
|||
<?php
|
||||
$day = get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'day');
|
||||
$month = get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'month-name');
|
||||
<?php
|
||||
$day = get_mep_datetime(get_post_meta($event_id, 'event_upcoming_datetime', true), 'day');
|
||||
$month = get_mep_datetime(get_post_meta($event_id, 'event_upcoming_datetime', true), 'month-name');
|
||||
// $date = mep_get_event_upcomming_date($event_id, 'date');
|
||||
$date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class="timeline__item">
|
||||
<div class="timeline__content">
|
||||
<div class='mep_event_timeline_list'>
|
||||
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number',$day,$event_id); ?></div>
|
||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name',$month,$event_id); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep_list_event_details">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<div class="mep-list-header">
|
||||
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
||||
<?php if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'> <span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'time'); ?> - <?php if($start_datetime == $end_datetime){ echo get_mep_datetime($event_meta['event_end_datetime'][0],'time'); }else{ echo get_mep_datetime($event_meta['event_end_datetime'][0],'date-time-text'); } ?></span> <span class='mep_minimal_list_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span></h3></a>
|
||||
<?php do_action('mep_event_list_loop_footer',$event_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php do_action('mep_event_minimal_list_loop_end',$event_id); ?>
|
||||
</div>
|
||||
<div class="timeline__content">
|
||||
<div class='mep_event_timeline_list'>
|
||||
<?php do_action('mep_event_minimal_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number', $day, $event_id); ?></div>
|
||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name', $month, $event_id); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep_list_event_details">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<div class="mep-list-header">
|
||||
<h2 class='mep_list_title'><?php the_title(); ?></h2>
|
||||
<?php if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'>
|
||||
<span class='mep_minimal_list_date'>
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?php echo esc_html(get_mep_datetime($event_meta['event_start_datetime'][0], 'time')); ?> - <?php if ($start_datetime == $end_datetime) {
|
||||
echo esc_html(get_mep_datetime($event_meta['event_end_datetime'][0], 'time'));
|
||||
} else {
|
||||
echo esc_html(get_mep_datetime($event_meta['event_end_datetime'][0], 'date-time-text'));
|
||||
} ?>
|
||||
</span>
|
||||
<span class='mep_minimal_list_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span></h3>
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php do_action('mep_event_minimal_list_loop_end', $event_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1 +1,3 @@
|
|||
<div class='mep_event_title_list_item mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'><a href='<?php the_permalink(); ?>'><?php the_title(); ?></a></div>
|
||||
<div class='mep_event_title_list_item mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'>
|
||||
<a href='<?php the_permalink(); ?>'><?php the_title(); ?></a>
|
||||
</div>
|
|
@ -4,7 +4,7 @@ $event_type = get_post_meta(get_the_id(), 'mep_event_type', true) ? get_post_met
|
|||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
// $date = mep_get_event_upcomming_date($event_id, 'date');
|
||||
$date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
||||
$date = get_post_meta($event_id, 'event_upcoming_datetime', true);
|
||||
?>
|
||||
<div class='filter_item mep-event-list-loop mep_event_list_item mep_event_winter_list mix <?php echo esc_attr($org_class) . ' ' . esc_attr($cat_class); ?>'
|
||||
data-title="<?php echo esc_attr(get_the_title($event_id)); ?>"
|
||||
|
@ -16,13 +16,11 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
<?php do_action('mep_event_winter_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_date_wrapper">
|
||||
<i class="fas fa-caret-right"></i>
|
||||
<h4 class='mep_winter_list_date'><span class="mep_winter_list_dd"><?php echo $start_dd; ?></span><span class="mep_winter_list_mm_yy"><?php echo $start_mm_yy; ?></span></h4>
|
||||
<h4 class='mep_winter_list_date'><span class="mep_winter_list_dd"><?php echo esc_html($start_dd); ?></span><span class="mep_winter_list_mm_yy"><?php echo esc_html($start_mm_yy); ?></span></h4>
|
||||
</div>
|
||||
<div class="mep_list_winter_thumb_wrapper">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>">
|
||||
<div class="mep_list_winter_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id,'thumbnail'); ?>">
|
||||
<!-- <img data-src="--><?php //mep_get_list_thumbnail_src($event_id); ?><!--" class="lazyload" src="" alt="" />-->
|
||||
</div>
|
||||
<div class="mep_list_winter_thumb" data-bg-image="<?php mep_get_list_thumbnail_src($event_id, 'thumbnail'); ?>"></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="mep_list_event_details">
|
||||
|
@ -31,14 +29,14 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
<div class="mep_list_details_col_one">
|
||||
<span class="mep_price">
|
||||
<?php if ($show_price == 'yes') {
|
||||
echo $show_price_label . " " . mep_event_list_price($event_id);
|
||||
echo esc_html($show_price_label) . " " . mep_event_list_price($event_id);
|
||||
} ?>
|
||||
</span>
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
|
||||
<span class="mep_winter_event_time"><i class="far fa-clock"></i> <?php echo $start_time_format; ?> - <?php echo $end_time_format; ?></span>
|
||||
<span class="mep_winter_event_time"><i class="far fa-clock"></i> <?php echo esc_html($start_time_format); ?> - <?php echo esc_html($end_time_format); ?></span>
|
||||
<span class='mep_winter_event_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span>
|
||||
<span class="mep_winter_event_date"><i class="far fa-calendar-alt"></i> <?php echo $start_date_format; ?> - <?php echo $end_date_format; ?></span>
|
||||
<span class="mep_winter_event_date"><i class="far fa-calendar-alt"></i> <?php echo esc_html($start_date_format); ?> - <?php echo esc_html($end_date_format); ?></span>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
|
@ -50,24 +48,21 @@ $date = get_post_meta($event_id,'event_upcoming_datetime',true);
|
|||
|
||||
<?php if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', __('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_multidate_ribon_text', 'label_setting_sec', esc_html__('Multi Date Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php } elseif ($recurring != 'no') {
|
||||
?>
|
||||
<?php } elseif ($recurring != 'no') { ?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', __('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
if ($event_type == 'online') { ?>
|
||||
<div class='mep-eventtype-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : _e('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
<span><?php echo mep_get_option('mep_event_recurring_ribon_text', 'label_setting_sec', esc_html__('Recurring Event', 'mage-eventpress')); ?></span>
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
if ($event_type == 'online') { ?>
|
||||
<div class='mep-eventtype-ribbon mep-tem3-title-sec'>
|
||||
<span><?php echo mep_get_option('mep_event_virtual_label', 'label_setting_sec') ? mep_get_option('mep_event_virtual_label', 'label_setting_sec') : esc_html__('Virtual Event', 'mage-eventpress'); ?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php do_action('mep_event_list_loop_footer', $event_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php do_action('mep_event_winter_list_loop_end', $event_id); ?>
|
||||
</div>
|
||||
</div>
|
|
@ -14,7 +14,7 @@ the_post();
|
|||
</div>
|
||||
<div class='mep_event_list'>
|
||||
<div class="mep_cat-details">
|
||||
<h3><?php _e('All Events Of ', 'mage-eventpress');
|
||||
<h3><?php esc_html_e('All Events Of ', 'mage-eventpress');
|
||||
the_title(); ?></h3>
|
||||
</div>
|
||||
<div class='mage_grid_box'>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div id="mep_add_calender_button" class='mep-add-calender'><i class="fa fa-calendar"></i><?php _e(mep_get_label($pid,'mep_calender_btn_text','Add Calendar'),'mage-eventpress'); ?></div>
|
||||
<div id="mep_add_calender_button" class='mep-add-calender'><i class="fa fa-calendar"></i><?php esc_html_e(mep_get_label($pid,'mep_calender_btn_text','Add Calendar'),'mage-eventpress'); ?></div>
|
||||
<ul id="mep_add_calender_links">
|
||||
<li><a href="https://calendar.google.com/calendar/r/eventedit?text=<?php echo $event->post_title; ?>&dates=<?php echo mep_calender_date($event_start); ?>/<?php echo mep_calender_date($event_end); ?>&details=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>&location=<?php echo $location; ?>&sf=true" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Google</a></li>
|
||||
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo $event->post_title; ?>&st=<?php echo mep_calender_date($event_start); ?>&et=<?php echo mep_calender_date($event_end); ?>&desc=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>&in_loc=<?php echo $location; ?>&uid=" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Yahoo</a></li>
|
||||
<li><a href ="https://outlook.live.com/owa/?path=/calendar/view/Month&rru=addevent&startdt=<?php echo mep_calender_date($event_start); ?>&enddt=<?php echo mep_calender_date($event_end); ?>&subject=<?php echo $event->post_title; ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Outlook</a></li>
|
||||
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo mep_calender_date($event_end); ?>&date_start=<?php echo mep_calender_date($event_start); ?>&summary=<?php echo $event->post_title; ?>&location=<?php echo $location; ?>&description=<?php echo substr(mage_array_strip($event->post_content),0,1000); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender'>Apple</a></li>
|
||||
<li><a href="https://calendar.google.com/calendar/r/eventedit?text=<?php echo esc_html($event->post_title); ?>&dates=<?php echo esc_html(mep_calender_date($event_start)); ?>/<?php echo esc_html(mep_calender_date($event_end)); ?>&details=<?php echo esc_html(substr(mage_array_strip($event->post_content),0,1000)); ?>&location=<?php echo esc_html($location); ?>&sf=true" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow"><?php esc_html_e('Google','mage-eventpress'); ?></a></li>
|
||||
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo esc_html($event->post_title); ?>&st=<?php echo esc_html(mep_calender_date($event_start)); ?>&et=<?php echo esc_html(mep_calender_date($event_end)); ?>&desc=<?php echo esc_html(substr(mage_array_strip($event->post_content),0,1000)); ?>&in_loc=<?php echo esc_html($location); ?>&uid=" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow"><?php esc_html_e('Yahoo','mage-eventpress'); ?></a></li>
|
||||
<li><a href ="https://outlook.live.com/owa/?path=/calendar/view/Month&rru=addevent&startdt=<?php echo esc_html(mep_calender_date($event_start)); ?>&enddt=<?php echo esc_html(mep_calender_date($event_end)); ?>&subject=<?php echo esc_html($event->post_title); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow"><?php esc_html_e('Outlook','mage-eventpress'); ?></a></li>
|
||||
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo esc_html(mep_calender_date($event_end)); ?>&date_start=<?php echo esc_html(mep_calender_date($event_start)); ?>&summary=<?php echo esc_html($event->post_title); ?>&location=<?php echo esc_html($location); ?>&description=<?php echo esc_html(substr(mage_array_strip($event->post_content),0,1000)); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender'><?php esc_html_e('Apple','mage-eventpress'); ?></a></li>
|
||||
</ul>
|
|
@ -1,6 +1,20 @@
|
|||
<li>
|
||||
<span class="mep-more-date"><i class="fa fa-calendar"></i>
|
||||
<span class='mep_date_scdl_start_datetime'> <?php echo get_mep_datetime($start_datetime, 'date-text'); ?> <?php echo get_mep_datetime($start_datetime, 'time'); ?></span>
|
||||
<?php if($end_date_display_status == 'yes'){?> <span class='mep_date_scdl_end_datetime'> <?php echo ' <span class="mep_date_scdl_separator"> - </span> '; if ($start_date != $end_date) { get_mep_datetime($end_datetime, 'date-text'); } echo ' '.get_mep_datetime($end_datetime, 'time'); echo '</span>'; } ?>
|
||||
<span class="mep-more-date">
|
||||
<i class="fa fa-calendar"></i>
|
||||
<span class='mep_date_scdl_start_datetime'>
|
||||
<?php echo esc_html(get_mep_datetime($start_datetime, 'date-text')); ?>
|
||||
<?php echo esc_html(get_mep_datetime($start_datetime, 'time')); ?>
|
||||
</span>
|
||||
<?php if ($end_date_display_status == 'yes') { ?>
|
||||
<span class='mep_date_scdl_end_datetime'>
|
||||
<span class="mep_date_scdl_separator"> - </span>
|
||||
<?php
|
||||
if ($start_date != $end_date) {
|
||||
esc_html(get_mep_datetime($end_datetime, 'date-text'));
|
||||
}
|
||||
echo ' ' . esc_html(get_mep_datetime($end_datetime, 'time'));
|
||||
?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</li>
|
|
@ -1 +1,4 @@
|
|||
<h3><i class="fa fa-calendar"></i> <?php echo mep_get_option('mep_event_schedule_text', 'label_setting_sec', __('Event Schedule Details', 'mage-eventpress')); ?></h3>
|
||||
<h3>
|
||||
<i class="fa fa-calendar"></i>
|
||||
<?php echo mep_get_option('mep_event_schedule_text', 'label_setting_sec', esc_html__('Event Schedule Details', 'mage-eventpress')); ?>
|
||||
</h3>
|
|
@ -1,11 +1,11 @@
|
|||
<div class="mep-day-details-section">
|
||||
<h4><?php _e('Event Timelines', 'mage-eventpress'); ?></h4>
|
||||
<h4><?php esc_html_e('Event Timelines', 'mage-eventpress'); ?></h4>
|
||||
<?php
|
||||
foreach ($mep_event_day as $field) {
|
||||
?>
|
||||
<div class="mep-day-title"><?php echo $field['mep_day_title']; ?></div>
|
||||
<div class="mep-day-title"><?php echo esc_html($field['mep_day_title']); ?></div>
|
||||
<div class="mep-day-details">
|
||||
<p><?php echo $field['mep_day_content']; ?></p>
|
||||
<p><?php echo esc_html($field['mep_day_content']); ?></p>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<h3 class='ex-sec-title mep_extra_service_title'><?php echo $extra_service_label; ?></h3>
|
||||
<h3 class='ex-sec-title mep_extra_service_title'><?php echo esc_html($extra_service_label); ?></h3>
|
||||
<table id='mep_event_extra_service_table'>
|
||||
<tr class='mep_extra_service_table_head'>
|
||||
<td align="left"><?php echo mep_get_option('mep_name_text', 'label_setting_sec', __('Name:', 'mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec', __('Quantity:', 'mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_price_text', 'label_setting_sec', __('Price:', 'mage-eventpress')); ?></td>
|
||||
<td align="left"><?php echo mep_get_option('mep_name_text', 'label_setting_sec', esc_html__('Name:', 'mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec', esc_html__('Quantity:', 'mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_price_text', 'label_setting_sec', esc_html__('Price:', 'mage-eventpress')); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
|
@ -16,21 +16,21 @@
|
|||
|
||||
|
||||
|
||||
$total_extra_service = (int) $service_qty;
|
||||
$qty_type = $service_qty_type;
|
||||
$total_sold = (int) mep_extra_service_sold($post_id, $service_name, $event_date);
|
||||
$ext_left = ($total_extra_service - $total_sold);
|
||||
$total_extra_service = (int) $service_qty;
|
||||
$qty_type = $service_qty_type;
|
||||
$total_sold = (int) mep_extra_service_sold($post_id, $service_name, $event_date);
|
||||
$ext_left = ($total_extra_service - $total_sold);
|
||||
|
||||
$tic_price = mep_get_price_including_tax($post_id, $service_price);
|
||||
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id, $service_price)));
|
||||
$data_price = str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
|
||||
$data_price = str_replace(wc_get_price_thousand_separator(), '', $data_price);
|
||||
$data_price = str_replace(wc_get_price_decimal_separator(), '.', $data_price);
|
||||
$tic_price = mep_get_price_including_tax($post_id, $service_price);
|
||||
$actual_price = mage_array_strip(wc_price(mep_get_price_including_tax($post_id, $service_price)));
|
||||
$data_price = str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
|
||||
$data_price = str_replace(wc_get_price_thousand_separator(), '', $data_price);
|
||||
$data_price = str_replace(wc_get_price_decimal_separator(), '.', $data_price);
|
||||
?>
|
||||
<tr>
|
||||
<td align="Left"><?php echo $service_name; ?>
|
||||
<div class="xtra-item-left"><?php echo $ext_left; ?>
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : _e('Left:', 'mage-eventpress'); ?>
|
||||
<td align="Left"><?php echo esc_html($service_name); ?>
|
||||
<div class="xtra-item-left"><?php echo esc_html($ext_left); ?>
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>
|
||||
</div>
|
||||
<input type="hidden" name='mep_event_start_date_es[]' value='<?php echo esc_attr($event_date); ?>'>
|
||||
</td>
|
||||
|
@ -40,7 +40,7 @@
|
|||
if ($qty_type == 'dropdown') { ?>
|
||||
<select name="event_extra_service_qty[]" id="eventpxtp_" class='extra-qty-box'>
|
||||
<?php for ($i = 0; $i <= $ext_left; $i++) { ?>
|
||||
<option value="<?php echo esc_attr($i); ?>"><?php echo $i; ?> <?php echo $service_name; ?></option>
|
||||
<option value="<?php echo esc_attr($i); ?>"><?php echo esc_html($i); ?> <?php echo esc_html($service_name); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } else { ?>
|
||||
|
@ -51,12 +51,12 @@
|
|||
</div>
|
||||
<?php }
|
||||
} else {
|
||||
echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : _e('Not Available', 'mage-eventpress');
|
||||
echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : esc_html__('Not Available', 'mage-eventpress');
|
||||
} ?>
|
||||
</td>
|
||||
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $service_price));
|
||||
<td class="mage_text_center"><?php echo wc_price(esc_html(mep_get_price_including_tax($post_id, $service_price)));
|
||||
if ($ext_left > 0) { ?>
|
||||
<p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? $tic_price : 0; ?></p>
|
||||
<p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? esc_html($tic_price) : 0; ?></p>
|
||||
<input type="hidden" name='event_extra_service_name[]' value='<?php echo esc_attr($service_name); ?>'>
|
||||
<input type="hidden" name='event_extra_service_price[]' value='<?php echo esc_attr($service_price); ?>'>
|
||||
<?php } ?>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<div class="mep-event-faq-part">
|
||||
<h3 class="ex-sec-title"><?php _e('Event F.A.Q', 'mage-eventpress'); ?></h3>
|
||||
<h3 class="ex-sec-title"><?php esc_html_e('Event F.A.Q', 'mage-eventpress'); ?></h3>
|
||||
<div id='mep-event-accordion' class="">
|
||||
<?php
|
||||
foreach ($mep_event_faq as $field) {
|
||||
?>
|
||||
<h3><?php if ($field['mep_faq_title'] != '') echo esc_attr($field['mep_faq_title']); ?></h3>
|
||||
<p><?php if ($field['mep_faq_content'] != '') echo esc_attr($field['mep_faq_content']); ?></p>
|
||||
<h3><?php if ($field['mep_faq_title'] != '') echo esc_html($field['mep_faq_title']); ?></h3>
|
||||
<p><?php if ($field['mep_faq_content'] != '') echo esc_html($field['mep_faq_content']); ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
<p> <?php echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : _e('By:','mage-eventpress'); ?> <a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>"><?php echo $author_terms[0]->name; ?></a></p>
|
||||
<p>
|
||||
<?php echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : esc_html__('By:','mage-eventpress'); ?>
|
||||
<a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>">
|
||||
<?php echo esc_html($author_terms[0]->name); ?>
|
||||
</a>
|
||||
</p>
|
|
@ -1,5 +1,5 @@
|
|||
<div class="mep-event-meta">
|
||||
<span class='mep-share-btn-title'> <?php _e(mep_get_label($post_id, 'mep_share_text', "Share This $event_label:"), 'mage-eventpress'); ?></span>
|
||||
<span class='mep-share-btn-title'> <?php esc_html_e(mep_get_label($post_id, 'mep_share_text', "Share This $event_label:"), 'mage-eventpress'); ?></span>
|
||||
<ul class='mep-social-share'>
|
||||
<?php do_action('mep_before_social_share_list',get_the_id()); ?>
|
||||
<li> <a data-toggle="tooltip" title="" class="facebook" onclick="window.open('https://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>','Facebook','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>" data-original-title="Share on Facebook"><i class="fab fa-facebook-f"></i></a></li>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<h3><?php ?><i class="<?php echo esc_attr($speaker_icon); ?>"></i> <?php echo $speaker_label; ?></h3>
|
||||
<h3><?php ?><i class="<?php echo esc_attr($speaker_icon); ?>"></i> <?php echo esc_html($speaker_label); ?></h3>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($speakers_id as $speakers) {
|
||||
|
@ -7,7 +7,9 @@
|
|||
<a href='<?php echo get_the_permalink($speakers); ?>'><?php if (has_post_thumbnail($speakers)) {
|
||||
echo get_the_post_thumbnail($speakers, 'medium');
|
||||
} else {
|
||||
echo '<img src="' . plugins_url('../images/no-photo.jpg', __DIR__) . '"/>';
|
||||
?>
|
||||
<img src="<?php echo esc_url(plugins_url('../images/no-photo.jpg', __DIR__)); ?>" alt=""/>
|
||||
<?php
|
||||
} ?>
|
||||
<h6><?php echo get_the_title($speakers); ?></h6>
|
||||
</a>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
<tr>
|
||||
<?php do_action('mep_ticket_type_list_row_start',$field, $post_id); ?>
|
||||
<td align="Left"><?php echo $field['option_name_t']; ?>
|
||||
<?php if ($mep_available_seat == 'on') { ?><div class="xtra-item-left"><?php echo max($total_ticket_left, 0); ?>
|
||||
<td align="Left"><?php echo esc_html($field['option_name_t']); ?>
|
||||
<?php if ($mep_available_seat == 'on') { ?><div class="xtra-item-left"><?php echo esc_html(max($total_ticket_left, 0)); ?>
|
||||
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : _e('Left:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>
|
||||
|
||||
</div> <?php } ?>
|
||||
</td>
|
||||
<td class="ticket-qty">
|
||||
<span class="tkt-qty">
|
||||
<?php echo mep_get_option('mep_ticket_qty_text', 'label_setting_sec') ? mep_get_option('mep_ticket_qty_text', 'label_setting_sec') : _e('Ticket Qty:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_ticket_qty_text', 'label_setting_sec') ? mep_get_option('mep_ticket_qty_text', 'label_setting_sec') : esc_html__('Ticket Qty:', 'mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
$tic_price = mep_get_price_including_tax($post_id,$ticket_price);
|
||||
|
@ -22,8 +22,8 @@
|
|||
<select name="option_qty[]" id="eventpxtp_<?php echo esc_attr($count); ?>" <?php if ($total_left <= 0) { ?> style='display: none!important;' <?php } ?> class='extra-qty-box etp'>
|
||||
<?php
|
||||
for ($i = $total_min_seat; $i <= $total_left; $i++) { ?>
|
||||
<option value="<?php echo esc_attr($i); ?>" <?php if ($i == $default_quantity) { echo 'Selected'; } ?>><?php echo esc_attr($i); ?>
|
||||
<?php echo mep_get_option('mep_ticket_text', 'label_setting_sec') ? mep_get_option('mep_ticket_text', 'label_setting_sec') : _e('Ticket:', 'mage-eventpress'); ?>
|
||||
<option value="<?php echo esc_attr($i); ?>" <?php if ($i == $default_quantity) { echo esc_attr('Selected'); } ?>><?php echo esc_html($i); ?>
|
||||
<?php echo mep_get_option('mep_ticket_text', 'label_setting_sec') ? mep_get_option('mep_ticket_text', 'label_setting_sec') : esc_html__('Ticket:', 'mage-eventpress'); ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
@ -38,17 +38,17 @@
|
|||
} else {
|
||||
?>
|
||||
<input id="eventpxtp_<?php echo esc_attr($count); ?>" type="hidden" class='extra-qty-box etp' name='option_qty[]' data-price='0' value='0' min="0" max="0">
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Availables', 'mage-eventpress');
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : esc_html__('No Seat Availables', 'mage-eventpress');
|
||||
}
|
||||
$ticket_name = mep_remove_apostopie($field['option_name_t']);
|
||||
do_action('mep_after_ticket_type_qty', $post_id, $ticket_name, $field, $default_quantity,$start_date);
|
||||
?>
|
||||
</td>
|
||||
<td class="ticket-price"><span class="tkt-pric">
|
||||
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : _e('Per Ticket Price:', 'mage-eventpress'); ?>
|
||||
</span> <strong><?php echo wc_price(mep_get_price_including_tax($post_id,$ticket_price)); ?></strong>
|
||||
<?php echo mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') ? mep_get_option('mep_per_ticket_price_text', 'label_setting_sec') : esc_html__('Per Ticket Price:', 'mage-eventpress'); ?>
|
||||
</span> <strong><?php echo wc_price(esc_html(mep_get_price_including_tax($post_id,$ticket_price))); ?></strong>
|
||||
<?php if ($total_seats > 0) { ?>
|
||||
<p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? $tic_price : 0; ?></p>
|
||||
<p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? esc_html($tic_price) : 0; ?></p>
|
||||
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
|
|
@ -1 +1,12 @@
|
|||
<h5><strong><?php echo mep_get_option('mep_total_seat_text', 'label_setting_sec') ? mep_get_option('mep_total_seat_text', 'label_setting_sec') : _e('Total Seats:', 'mage-eventpress'); ?></strong> <?php echo $total_seat; if ($mep_available_seat == 'on') { ?> (<strong><?php echo max($total_left, 0); ?></strong> <?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : _e('Left:', 'mage-eventpress'); ?>)<?php } ?></h5>
|
||||
<h5>
|
||||
<strong>
|
||||
<?php echo mep_get_option('mep_total_seat_text', 'label_setting_sec') ? mep_get_option('mep_total_seat_text', 'label_setting_sec') : esc_html__('Total Seats:', 'mage-eventpress'); ?>
|
||||
</strong>
|
||||
<?php
|
||||
echo esc_html($total_seat);
|
||||
if ($mep_available_seat == 'on') {
|
||||
?>
|
||||
(<strong><?php echo esc_html(max($total_left, 0)); ?></strong>
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>)
|
||||
<?php } ?>
|
||||
</h5>
|
|
@ -3,24 +3,24 @@ get_header();
|
|||
the_post();
|
||||
$term_id = get_queried_object()->term_id;
|
||||
?>
|
||||
<div class="mep-events-wrapper">
|
||||
<div class='mep_event_list'>
|
||||
<div class="mep_cat-details">
|
||||
<h1><?php echo get_queried_object()->name; ?></h1>
|
||||
<p><?php echo get_queried_object()->description; ?></p>
|
||||
</div>
|
||||
<div class='mage_grid_box'>
|
||||
<?php
|
||||
$loop = mep_event_query(20, 'ASC', '', $term_id, '', '', 'upcoming');
|
||||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
|
||||
}
|
||||
wp_reset_postdata();
|
||||
mep_event_pagination($loop->max_num_pages);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-events-wrapper">
|
||||
<div class='mep_event_list'>
|
||||
<div class="mep_cat-details">
|
||||
<h1><?php echo get_queried_object()->name; ?></h1>
|
||||
<p><?php echo get_queried_object()->description; ?></p>
|
||||
</div>
|
||||
<div class='mage_grid_box'>
|
||||
<?php
|
||||
$loop = mep_event_query(20, 'ASC', '', $term_id, '', '', 'upcoming');
|
||||
while ($loop->have_posts()) {
|
||||
$loop->the_post();
|
||||
do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
|
||||
}
|
||||
wp_reset_postdata();
|
||||
mep_event_pagination($loop->max_num_pages);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
|
@ -29,7 +29,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : esc_html__('Event Date:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_date_only',get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : esc_html__('Event Time:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_time_only',get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -51,7 +51,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location_venue'); ?>
|
||||
<?php //do_action('mep_event_location_city'); ?> </p>
|
||||
|
@ -75,7 +75,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php if ($hide_location_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_map',get_the_id()); ?>
|
||||
</div>
|
||||
|
|
|
@ -33,7 +33,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : esc_html__('Event Date:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_date_only',get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -44,7 +44,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : esc_html__('Event Time:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_time_only',get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -55,7 +55,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p>
|
||||
<span><?php do_action('mep_event_location_venue'); ?></span>
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
// Template Name: Springfield
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
||||
?>
|
||||
<div class="mep-default-theme spring_field">
|
||||
|
@ -36,32 +36,32 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php } ?>
|
||||
<?php if ($hide_calendar_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action('mep_event_add_calender',get_the_id()); ?>
|
||||
<?php do_action('mep_event_add_calender', get_the_id()); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<?php do_action('mep_event_map',get_the_id()); ?>
|
||||
<?php do_action('mep_event_map', get_the_id()); ?>
|
||||
</div>
|
||||
<div class="mep_spring_date">
|
||||
<?php if ($hide_schedule_details == 'no') { ?>
|
||||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3><?php _e('Date and Time:', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php esc_html_e('Date and Time:', 'mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_date'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php } ?>
|
||||
<?php if ($hide_location_details == 'no') { ?>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location',get_the_id()); ?></p>
|
||||
<p><?php do_action('mep_event_location', get_the_id()); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
@ -72,21 +72,21 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
if($speaker_status == 'yes'){ ?>
|
||||
<div class="mep-theme_springfield-sidebar-speaker-list mep-default-sidebar-speaker-list">
|
||||
<?php do_action('mep_event_speakers_list',get_the_id()); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
if ($speaker_status == 'yes') { ?>
|
||||
<div class="mep-theme_springfield-sidebar-speaker-list mep-default-sidebar-speaker-list">
|
||||
<?php do_action('mep_event_speakers_list', get_the_id()); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="mep-default-feature-content">
|
||||
<h4 class="mep-cart-table-title"><?php _e('Description', 'mage-eventpress'); ?></h4>
|
||||
<h4 class="mep-cart-table-title"><?php esc_html_e('Description', 'mage-eventpress'); ?></h4>
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
<div class="mep-theme1-faq-sec">
|
||||
<?php do_action('mep_event_faq',get_the_id()); ?>
|
||||
<?php do_action('mep_event_faq', get_the_id()); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-cart-sec">
|
||||
<?php do_action('mep_add_to_cart',get_the_id()) ?>
|
||||
<?php do_action('mep_add_to_cart', get_the_id()) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -3,15 +3,15 @@
|
|||
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
||||
|
||||
?>
|
||||
|
@ -23,7 +23,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php do_action('mep_event_thumbnail'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<h4 class="mep-cart-table-title"><?php _e('Description', 'mage-eventpress'); ?></h4>
|
||||
<h4 class="mep-cart-table-title"><?php esc_html_e('Description', 'mage-eventpress'); ?></h4>
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
<div class="mep-theme1-faq-sec">
|
||||
<?php do_action('mep_event_faq',get_the_id()); ?>
|
||||
|
@ -88,4 +88,4 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -16,7 +16,7 @@ $hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_detail
|
|||
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
||||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||
?>
|
||||
<div class="mep-default-theme bristol">
|
||||
<div class="mep-default-feature-image">
|
||||
|
@ -30,7 +30,7 @@ $event_label = mep_get_option('mep_event_label', 'general_setting_sec', '
|
|||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3><?php _e('Date and Time:', 'mage-eventpress'); ?></h3>
|
||||
<h3><?php esc_html_e('Date and Time:', 'mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_date'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@ $event_label = mep_get_option('mep_event_label', 'general_setting_sec', '
|
|||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e("$event_label Location:", 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__("$event_label Location:", 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location',get_the_id()); ?></p>
|
||||
</div>
|
||||
|
@ -84,12 +84,12 @@ $event_label = mep_get_option('mep_event_label', 'general_setting_sec', '
|
|||
<?php do_action('mep_add_to_cart',get_the_id()) ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<h4 class="mep-cart-table-title"><?php _e("About The $event_label", 'mage-eventpress'); ?></h4>
|
||||
<h4 class="mep-cart-table-title"><?php esc_html_e("About The $event_label", 'mage-eventpress'); ?></h4>
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<h4 class="mep-cart-table-title">
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e("$event_label Location:", 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__("$event_label Location:", 'mage-eventpress'); ?>
|
||||
</h4>
|
||||
<?php do_action('mep_event_map',get_the_id()); ?>
|
||||
</div>
|
||||
|
|
|
@ -29,7 +29,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : esc_html__('Event Date:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_date_only', get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -40,7 +40,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : esc_html__('Event Time:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_time_only', get_the_id()); ?>
|
||||
</div>
|
||||
|
@ -51,7 +51,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p>
|
||||
<span><?php do_action('mep_event_location_venue'); ?></span>
|
||||
|
@ -70,7 +70,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<div class="mep-default-col-1">
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Find Location On Google Map:', 'mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : esc_html__('Find Location On Google Map:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_map', get_the_id()); ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue