version 3.4.9 released
This commit is contained in:
parent
45c44f3406
commit
a80fa6fdf6
177
css/style.css
177
css/style.css
|
@ -1,6 +1,6 @@
|
|||
.mep-hidden {display: none!important;}
|
||||
.mep-events-wrapper ,
|
||||
.mep_related_product_area{display:block;max-width: 1170px;margin: 20px auto;background: #fff;padding: 20px;font-size: 14px;letter-spacing: inherit;}
|
||||
.mep_related_product_area{display:block;max-width: 1320px;margin: 20px auto;background: #fff;padding: 20px;font-size: 14px;letter-spacing: inherit;}
|
||||
.mep-events-wrapper a,
|
||||
.mep-related-events-sec a{text-decoration: none;}
|
||||
.mep-events-wrapper ul,
|
||||
|
@ -171,7 +171,7 @@ span.mep_warning {
|
|||
}
|
||||
/******table*******/
|
||||
.mep-events-wrapper table {width: 100%;table-layout: fixed;margin: 0 0 15px 0;}
|
||||
.mep-events-wrapper table td {text-align:left;border-bottom: 1px solid #f0f0f0;padding: 10px;vertical-align: middle;font-size: 16px;font-weight: 500;}
|
||||
.mep-events-wrapper table td {text-align:left;border-bottom: 1px dotted #f0f0f0;padding: 10px;vertical-align: middle;font-size: 16px;font-weight: 500;}
|
||||
.mep-events-wrapper div.xtra-item-left {font-size: 11px;font-style: italic;margin: 5px 0 0 0;}
|
||||
.mep-events-wrapper td.ticket-qty,
|
||||
.mep-events-wrapper td.ticket-price {text-align: center;}
|
||||
|
@ -1676,6 +1676,9 @@ New Spring list style css added by ariful
|
|||
.mep_event_spring_list .mep_spring_list_date{
|
||||
color: #fff;
|
||||
}
|
||||
td.user-innnf{padding:0px !important;}
|
||||
table.table.table-bordered.mep_event_add_cart_table{background:#f7f7f7;}
|
||||
|
||||
/*************************************************************
|
||||
New Winter list style css added by ariful
|
||||
**************************************************************/
|
||||
|
@ -1896,3 +1899,173 @@ New Winter list style css added by ariful
|
|||
.mep_event_winter_list .mep-multidate-ribbon{
|
||||
background: #ff5959;
|
||||
}
|
||||
/*************************************************************
|
||||
List style footer list alignment css by ariful
|
||||
**************************************************************/
|
||||
.mep-list-footer ul li div{
|
||||
display:inline-block
|
||||
}
|
||||
/*************************************************************
|
||||
Elementor Grid style footer list location alignment css by ariful
|
||||
**************************************************************/
|
||||
|
||||
.mep-elementor-event-list-widget .row{
|
||||
width: 100%;
|
||||
}
|
||||
/*************************************************************
|
||||
Elementor grid style pagination css by ariful
|
||||
**************************************************************/
|
||||
.mep-elementor-event-list-widget .pagination-sec{
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
Vanilla theme css by ariful
|
||||
**************************************************************/
|
||||
.vanilla_theme .mep-default-title{
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
}
|
||||
.vanilla_theme .mep-default-content{
|
||||
width:100%
|
||||
}
|
||||
.vanilla_theme .mep-default-feature-content{
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-map h3, .vanilla_theme .mep-default-sidrbar-events-schedule h3,.vanilla_theme h4.mep-cart-table-title {
|
||||
margin: 00px 0 20px 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.vanilla_theme .mep-default-feature-cart-sec{
|
||||
border: 1px solid #f5f5f5;
|
||||
padding: 20px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.vanilla_theme .mep_everyday_date_secs {
|
||||
background: #fbd03b;
|
||||
color: #17113A;
|
||||
}
|
||||
.vanilla_theme .mep_everyday_date_secs ul li{
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
padding: 5px;
|
||||
}
|
||||
.vanilla_theme h3.ex-sec-title{
|
||||
font-size: 14px;
|
||||
background: #fbd03b;
|
||||
color: #17113A;
|
||||
font-weight:500;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.vanilla_theme table td,
|
||||
.vanilla_theme table td.total-col{
|
||||
font-size: 14px;
|
||||
}
|
||||
.vanilla_theme tr:nth-child(odd) {
|
||||
background-color: #f8f2f2;
|
||||
}
|
||||
.vanilla_theme tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
.vanilla_theme.mep-default-theme div.mep-default-feature-date, .vanilla_theme.mep-default-theme div.mep-default-feature-time, .vanilla_theme.mep-default-theme div.mep-default-feature-location{
|
||||
background: #fbd03b;
|
||||
}
|
||||
.vanilla_theme div.df-dtl p{
|
||||
color: #17113A;
|
||||
}
|
||||
.vanilla_theme div.df-dtl h3 {
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 5px;
|
||||
border-bottom: 1px dashed;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.vanilla_theme .mep-default-col-1{
|
||||
width:70%;
|
||||
float: left;
|
||||
background-color: #fbfbfb;
|
||||
padding: 20px;
|
||||
}
|
||||
.vanilla_theme .mep-default-col-2{
|
||||
width:30%;
|
||||
display:inline-block !important;
|
||||
background-color: #f5f5f5;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.vanilla_theme .mep-default-col-wrapper{
|
||||
background-color: #fbfbfb;
|
||||
display: flex;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-meta p,.vanilla_theme .mep-default-sidrbar-meta p a, .vanilla_theme .mep-default-sidrbar-events-schedule h3 {
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-meta .fa-list-alt{
|
||||
font-size:14px;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-calender-btn{
|
||||
float:left;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-events-schedule{
|
||||
border-bottom:0px
|
||||
}
|
||||
.vanilla_theme ul.mep-social-share{
|
||||
display:inline-block;
|
||||
padding: 0;
|
||||
}
|
||||
.vanilla_theme ul.mep-social-share li{
|
||||
display:inline-block
|
||||
}
|
||||
.vanilla_theme .mep-share-btn-title{
|
||||
display: inline-block;
|
||||
margin-right: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-social .mep-event-meta {
|
||||
text-align: left;
|
||||
}
|
||||
.vanilla_theme .mep-event-meta{
|
||||
padding:0;
|
||||
}
|
||||
.vanilla_theme .mep-default-sidrbar-social{
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
border-top: 1px solid #f5f5f5;
|
||||
margin-top: 20px;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
}
|
||||
.vanilla_theme ul.mep-social-share a{
|
||||
font-size: 14px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 0;
|
||||
}
|
||||
.vanilla_theme .mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart{
|
||||
line-height:inherit;
|
||||
}
|
||||
.vanilla_theme .mep-tem3-title-sec.mep_single_date_btn{
|
||||
text-transform:uppercase;
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
.vanilla_theme .mep-default-col-wrapper{
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
.vanilla_theme .mep-default-col-1 {
|
||||
width: 100%;
|
||||
float: none;
|
||||
}
|
||||
.vanilla_theme .mep-default-col-2 {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
|
@ -92,6 +92,18 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'no' => 'No'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_multi_lang_plugin',
|
||||
'label' => __('Your Multilanguage Plugin', 'mage-eventpress'),
|
||||
'desc' => __('If you are using a multi language plugin, Please select the plugin name from the below list', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'default' => 'none',
|
||||
'options' => array(
|
||||
'none' => 'None',
|
||||
'polylang' => 'Polylang',
|
||||
'wpml' => 'WPML'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_event_label',
|
||||
'label' => __('Event Label', 'mage-eventpress'),
|
||||
|
@ -515,7 +527,13 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
array(
|
||||
'name' => 'mep_confirmation_email_text',
|
||||
'label' => __('Confirmation Email Text', 'mage-eventpress'),
|
||||
'desc' => __('Confirmation Email Text', 'mage-eventpress'),
|
||||
'desc' => __('Confirmation Email Text <b>Usable Dynamic tags:</b><br/> Attendee
|
||||
Name:<b>{name}</b><br/>
|
||||
Event Name: <b>{event}</b><br/>
|
||||
Ticket Type: <b>{ticket_type}</b><br/>
|
||||
Event Date: <b>{event_date}</b><br/>
|
||||
Start Time: <b>{event_time}</b><br/>
|
||||
Full DateTime: <b>{event_datetime}</b>', 'mage-eventpress'),
|
||||
'type' => 'wysiwyg',
|
||||
'default' => '',
|
||||
),
|
||||
|
|
|
@ -81,7 +81,7 @@ function mep_event_enqueue_scripts()
|
|||
wp_enqueue_script('mep-mixitup-min-js', plugin_dir_url(__DIR__) . 'js/mixitup.min.js', array(), 1, true);
|
||||
wp_enqueue_script('mep-countdown-js', plugin_dir_url(__DIR__) . 'js/countdown.jquery.min.js', array(), 1, true);
|
||||
|
||||
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), 1, true);
|
||||
wp_enqueue_script('mp_event_custom_script', plugin_dir_url(__DIR__) . 'js/mp_event_custom_script.js', array(), 1.1, true);
|
||||
|
||||
|
||||
wp_enqueue_script('mep-timeline-min', plugin_dir_url(__DIR__) . 'js/timeline.min.js', array('jquery'), 1, true);
|
||||
|
|
|
@ -282,7 +282,13 @@ function mep_fw_meta_boxs()
|
|||
array(
|
||||
'id' => 'mep_event_cc_email_text',
|
||||
'title' => __('Confirmation Email Text:','mage-eventpress'),
|
||||
'details' => __('','mage-eventpress'),
|
||||
'details' => __('<b>Usable Dynamic tags:</b><br/> Attendee
|
||||
Name:<b>{name}</b><br/>
|
||||
Event Name: <b>{event}</b><br/>
|
||||
Ticket Type: <b>{ticket_type}</b><br/>
|
||||
Event Date: <b>{event_date}</b><br/>
|
||||
Start Time: <b>{event_time}</b><br/>
|
||||
Full DateTime: <b>{event_datetime}</b>','mage-eventpress'),
|
||||
'type' => 'wp_editor',
|
||||
// 'editor_settings'=>array('textarea_name'=>'wp_editor_field', 'editor_height'=>'150px'),
|
||||
'placeholder' => __('wp_editor value','mage-eventpress'),
|
||||
|
|
|
@ -427,7 +427,7 @@ class MP_Event_All_Info_In_One
|
|||
if ($mep_event_ticket_type) :
|
||||
$count = 0;
|
||||
foreach ($mep_event_ticket_type as $field) {
|
||||
$qty_t_type = esc_attr($field['option_qty_t_type']);
|
||||
$qty_t_type = array_key_exists('option_qty_t_type',$field) ? esc_attr($field['option_qty_t_type']) : 'inputbox';
|
||||
$count++;
|
||||
?>
|
||||
<tr>
|
||||
|
@ -557,7 +557,7 @@ class MP_Event_All_Info_In_One
|
|||
if ($mep_events_extra_prices) :
|
||||
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
$qty_type = esc_attr($field['option_qty_type']);
|
||||
$qty_type = array_key_exists('option_qty_type',$field) ? esc_attr($field['option_qty_type']) : 'inputbox';
|
||||
?>
|
||||
<tr>
|
||||
<td><input type="text" class="mp_formControl" name="option_name[]" placeholder="Ex: Cap" value="<?php if ($field['option_name'] != '') {
|
||||
|
@ -599,7 +599,6 @@ class MP_Event_All_Info_In_One
|
|||
// show a blank one
|
||||
endif;
|
||||
?>
|
||||
|
||||
<!-- empty hidden one for jQuery -->
|
||||
<tr class="empty-row screen-reader-text">
|
||||
<td><input type="text" class="mp_formControl" name="option_name[]" placeholder="Ex: Cap" /></td>
|
||||
|
@ -629,11 +628,6 @@ class MP_Event_All_Info_In_One
|
|||
$values = get_post_custom($post_id);
|
||||
?>
|
||||
<div class="sec">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one-d">
|
||||
<thead>
|
||||
|
@ -860,8 +854,6 @@ class MP_Event_All_Info_In_One
|
|||
</table>
|
||||
<?php
|
||||
}
|
||||
// mep_show_end_datetime
|
||||
|
||||
|
||||
|
||||
public function mp_event_enddatetime_status($post_id)
|
||||
|
@ -1092,7 +1084,6 @@ class MP_Event_All_Info_In_One
|
|||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
new MP_Event_All_Info_In_One();
|
||||
|
||||
|
||||
|
@ -1126,7 +1117,6 @@ function mep_events_ticket_type_save($post_id)
|
|||
|
||||
$old = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
|
||||
|
||||
$new = array();
|
||||
$names = $_POST['option_name_t'] ? $_POST['option_name_t'] : array();
|
||||
$ticket_price = $_POST['option_price_t'] ? $_POST['option_price_t'] : array();
|
||||
|
@ -1291,52 +1281,52 @@ function mep_event_meta_save($post_id)
|
|||
|
||||
for ($m = 0; $m < $mcount; $m++) {
|
||||
if ($more_start_date[$m] != '') :
|
||||
$mdate[$m]['event_more_start_date'] = stripslashes(strip_tags($more_start_date[$m]));
|
||||
$mdate[$m]['event_more_start_time'] = stripslashes(strip_tags($more_start_time[$m]));
|
||||
$mdate[$m]['event_more_end_date'] = stripslashes(strip_tags($more_end_date[$m]));
|
||||
$mdate[$m]['event_more_end_time'] = stripslashes(strip_tags($more_end_time[$m]));
|
||||
$mdate[$m]['event_more_start_date'] = stripslashes(sanitize_text_field($more_start_date[$m]));
|
||||
$mdate[$m]['event_more_start_time'] = stripslashes(sanitize_text_field($more_start_time[$m]));
|
||||
$mdate[$m]['event_more_end_date'] = stripslashes(sanitize_text_field($more_end_date[$m]));
|
||||
$mdate[$m]['event_more_end_time'] = stripslashes(sanitize_text_field($more_end_time[$m]));
|
||||
endif;
|
||||
}
|
||||
|
||||
|
||||
$event_rt_status = $_POST['mep_rt_event_status'];
|
||||
$event_rt_atdnce_mode = $_POST['mep_rt_event_attandence_mode'];
|
||||
$event_rt_prv_date = $_POST['mep_rt_event_prvdate'];
|
||||
$event_rt_status = sanitize_text_field($_POST['mep_rt_event_status']);
|
||||
$event_rt_atdnce_mode = sanitize_text_field($_POST['mep_rt_event_attandence_mode']);
|
||||
$event_rt_prv_date = sanitize_text_field($_POST['mep_rt_event_prvdate']);
|
||||
|
||||
$seat = 0;
|
||||
$rsvs = 0;
|
||||
$mep_location_venue = isset($_POST['mep_location_venue']) ? strip_tags($_POST['mep_location_venue']) : "";
|
||||
$mep_street = isset($_POST['mep_street']) ? strip_tags($_POST['mep_street']) : "";
|
||||
$mep_city = isset($_POST['mep_city']) ? strip_tags($_POST['mep_city']) : "";
|
||||
$mep_state = isset($_POST['mep_state']) ? strip_tags($_POST['mep_state']) : "";
|
||||
$mep_postcode = isset($_POST['mep_postcode']) ? strip_tags($_POST['mep_postcode']) : "";
|
||||
$mep_country = isset($_POST['mep_country']) ? strip_tags($_POST['mep_country']) : "";
|
||||
$mep_location_venue = isset($_POST['mep_location_venue']) ? sanitize_text_field($_POST['mep_location_venue']) : "";
|
||||
$mep_street = isset($_POST['mep_street']) ? sanitize_text_field($_POST['mep_street']) : "";
|
||||
$mep_city = isset($_POST['mep_city']) ? sanitize_text_field($_POST['mep_city']) : "";
|
||||
$mep_state = isset($_POST['mep_state']) ? sanitize_text_field($_POST['mep_state']) : "";
|
||||
$mep_postcode = isset($_POST['mep_postcode']) ? sanitize_text_field($_POST['mep_postcode']) : "";
|
||||
$mep_country = isset($_POST['mep_country']) ? sanitize_text_field($_POST['mep_country']) : "";
|
||||
|
||||
$mep_sgm = isset($_POST['mep_sgm']) ? strip_tags($_POST['mep_sgm']) : "";
|
||||
$mep_org_address = isset($_POST['mep_org_address']) ? strip_tags($_POST['mep_org_address']) : "";
|
||||
$_price = isset($_POST['_price']) ? strip_tags($_POST['_price']) : "";
|
||||
$mep_sgm = isset($_POST['mep_sgm']) ? sanitize_text_field($_POST['mep_sgm']) : "";
|
||||
$mep_org_address = isset($_POST['mep_org_address']) ? sanitize_text_field($_POST['mep_org_address']) : "";
|
||||
$_price = isset($_POST['_price']) ? sanitize_text_field($_POST['_price']) : "";
|
||||
|
||||
$event_start_date = strip_tags($_POST['event_start_date']);
|
||||
$event_start_time = strip_tags($_POST['event_start_time']);
|
||||
$event_end_date = strip_tags($_POST['event_end_date']);
|
||||
$event_end_time = strip_tags($_POST['event_end_time']);
|
||||
$event_start_date = sanitize_text_field($_POST['event_start_date']);
|
||||
$event_start_time = sanitize_text_field($_POST['event_start_time']);
|
||||
$event_end_date = sanitize_text_field($_POST['event_end_date']);
|
||||
$event_end_time = sanitize_text_field($_POST['event_end_time']);
|
||||
|
||||
$latitude = isset($_POST['latitude']) ? strip_tags($_POST['latitude']) : "";
|
||||
$longitude = isset($_POST['latitude']) ? strip_tags($_POST['longitude']) : "";
|
||||
$location_name = isset($_POST['location_name']) ? strip_tags($_POST['location_name']) : "";
|
||||
$latitude = isset($_POST['latitude']) ? sanitize_text_field($_POST['latitude']) : "";
|
||||
$longitude = isset($_POST['latitude']) ? sanitize_text_field($_POST['longitude']) : "";
|
||||
$location_name = isset($_POST['location_name']) ? sanitize_text_field($_POST['location_name']) : "";
|
||||
|
||||
$mep_full_name = isset($_POST['mep_full_name']) ? strip_tags($_POST['mep_full_name']) : "";
|
||||
$mep_reg_email = isset($_POST['mep_reg_email']) ? strip_tags($_POST['mep_reg_email']) : "";
|
||||
$mep_reg_phone = isset($_POST['mep_reg_phone']) ? strip_tags($_POST['mep_reg_phone']) : "";
|
||||
$mep_reg_address = isset($_POST['mep_reg_address']) ? strip_tags($_POST['mep_reg_address']) : "";
|
||||
$mep_reg_designation = isset($_POST['mep_reg_designation']) ? strip_tags($_POST['mep_reg_designation']) : "";
|
||||
$mep_reg_website = isset($_POST['mep_reg_website']) ? strip_tags($_POST['mep_reg_website']) : "";
|
||||
$mep_reg_veg = isset($_POST['mep_reg_veg']) ? strip_tags($_POST['mep_reg_veg']) : "";
|
||||
$mep_reg_company = isset($_POST['mep_reg_company']) ? strip_tags($_POST['mep_reg_company']) : "";
|
||||
$mep_reg_gender = isset($_POST['mep_reg_gender']) ? strip_tags($_POST['mep_reg_gender']) : "";
|
||||
$mep_reg_tshirtsize = isset($_POST['mep_reg_tshirtsize']) ? strip_tags($_POST['mep_reg_tshirtsize']) : "";
|
||||
$mep_reg_tshirtsize_list = isset($_POST['mep_reg_tshirtsize_list']) ? strip_tags($_POST['mep_reg_tshirtsize_list']) : "";
|
||||
$mep_event_template = isset($_POST['mep_event_template']) ? strip_tags($_POST['mep_event_template']) : "";
|
||||
$mep_full_name = isset($_POST['mep_full_name']) ? sanitize_text_field($_POST['mep_full_name']) : "";
|
||||
$mep_reg_email = isset($_POST['mep_reg_email']) ? sanitize_text_field($_POST['mep_reg_email']) : "";
|
||||
$mep_reg_phone = isset($_POST['mep_reg_phone']) ? sanitize_text_field($_POST['mep_reg_phone']) : "";
|
||||
$mep_reg_address = isset($_POST['mep_reg_address']) ? sanitize_text_field($_POST['mep_reg_address']) : "";
|
||||
$mep_reg_designation = isset($_POST['mep_reg_designation']) ? sanitize_text_field($_POST['mep_reg_designation']) : "";
|
||||
$mep_reg_website = isset($_POST['mep_reg_website']) ? sanitize_text_field($_POST['mep_reg_website']) : "";
|
||||
$mep_reg_veg = isset($_POST['mep_reg_veg']) ? sanitize_text_field($_POST['mep_reg_veg']) : "";
|
||||
$mep_reg_company = isset($_POST['mep_reg_company']) ? sanitize_text_field($_POST['mep_reg_company']) : "";
|
||||
$mep_reg_gender = isset($_POST['mep_reg_gender']) ? sanitize_text_field($_POST['mep_reg_gender']) : "";
|
||||
$mep_reg_tshirtsize = isset($_POST['mep_reg_tshirtsize']) ? sanitize_text_field($_POST['mep_reg_tshirtsize']) : "";
|
||||
$mep_reg_tshirtsize_list = isset($_POST['mep_reg_tshirtsize_list']) ? sanitize_text_field($_POST['mep_reg_tshirtsize_list']) : "";
|
||||
$mep_event_template = isset($_POST['mep_event_template']) ? sanitize_text_field($_POST['mep_event_template']) : "";
|
||||
|
||||
|
||||
$event_start_datetime = date('Y-m-d H:i:s', strtotime($event_start_date . ' ' . $event_start_time));
|
||||
|
@ -1346,15 +1336,15 @@ function mep_event_meta_save($post_id)
|
|||
|
||||
|
||||
|
||||
$mep_reg_status = isset($_POST['mep_reg_status']) ? strip_tags($_POST['mep_reg_status']) : 'off';
|
||||
$mep_show_end_datetime = isset($_POST['mep_show_end_datetime']) ? strip_tags($_POST['mep_show_end_datetime']) : 'no';
|
||||
$mep_reset_status = isset($_POST['mep_reset_status']) ? strip_tags($_POST['mep_reset_status']) : 'off';
|
||||
$mep_available_seat = isset($_POST['mep_available_seat']) ? strip_tags($_POST['mep_available_seat']) : 'off';
|
||||
$_tax_status = isset($_POST['_tax_status']) ? strip_tags($_POST['_tax_status']) : 'none';
|
||||
$_tax_class = isset($_POST['_tax_class']) ? strip_tags($_POST['_tax_class']) : '';
|
||||
$mep_reg_status = isset($_POST['mep_reg_status']) ? sanitize_text_field($_POST['mep_reg_status']) : 'off';
|
||||
$mep_show_end_datetime = isset($_POST['mep_show_end_datetime']) ? sanitize_text_field($_POST['mep_show_end_datetime']) : 'no';
|
||||
$mep_reset_status = isset($_POST['mep_reset_status']) ? sanitize_text_field($_POST['mep_reset_status']) : 'off';
|
||||
$mep_available_seat = isset($_POST['mep_available_seat']) ? sanitize_text_field($_POST['mep_available_seat']) : 'off';
|
||||
$_tax_status = isset($_POST['_tax_status']) ? sanitize_text_field($_POST['_tax_status']) : 'none';
|
||||
$_tax_class = isset($_POST['_tax_class']) ? sanitize_text_field($_POST['_tax_class']) : '';
|
||||
$mep_member_only_user_role = isset($_POST['mep_member_only_user_role']) ? maybe_unserialize( $_POST['mep_member_only_user_role']) : maybe_unserialize(array('all'));
|
||||
$sku = isset($_POST['mep_event_sku']) ? strip_tags($_POST['mep_event_sku']) : $post_id;
|
||||
$mep_rich_text_status = isset($_POST['mep_rich_text_status']) ? strip_tags($_POST['mep_rich_text_status']) : 'enable';
|
||||
$sku = isset($_POST['mep_event_sku']) ? sanitize_text_field($_POST['mep_event_sku']) : $post_id;
|
||||
$mep_rich_text_status = isset($_POST['mep_rich_text_status']) ? sanitize_text_field($_POST['mep_rich_text_status']) : 'enable';
|
||||
|
||||
if ($mep_reset_status == 'on') {
|
||||
mep_reset_event_booking($post_id);
|
||||
|
|
|
@ -7,6 +7,7 @@ if (!defined('ABSPATH')) {
|
|||
* This File is a very important file, Because Its gettings Data from user selection on event details page, and prepare the data send to cart item and lastly save into order table after checkout
|
||||
*/
|
||||
|
||||
|
||||
function mep_basic_before_cart_add_validation($passed)
|
||||
{
|
||||
|
||||
|
@ -30,6 +31,7 @@ function mep_basic_before_cart_add_validation($passed)
|
|||
add_filter('woocommerce_add_to_cart_validation', 'mep_basic_before_cart_add_validation', 10, 90);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This Function Recieve the date from user selection and add them into the cart session data
|
||||
*/
|
||||
|
|
|
@ -146,6 +146,93 @@ function mep_get_all_tax_list($current_tax=null){
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_get_attendee_info_query($event_id,$order_id){
|
||||
|
||||
$pending_status_filter = array(
|
||||
'key' => 'ea_order_status',
|
||||
'value' => 'pending',
|
||||
'compare' => '='
|
||||
);
|
||||
|
||||
$hold_status_filter = array(
|
||||
'key' => 'ea_order_status',
|
||||
'value' => 'on-hold',
|
||||
'compare' => '='
|
||||
);
|
||||
|
||||
$processing_status_filter = array(
|
||||
'key' => 'ea_order_status',
|
||||
'value' => 'processing',
|
||||
'compare' => '='
|
||||
);
|
||||
$completed_status_filter = array(
|
||||
'key' => 'ea_order_status',
|
||||
'value' => 'completed',
|
||||
'compare' => '='
|
||||
);
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'mep_events_attendees',
|
||||
'posts_per_page' => -1,
|
||||
'meta_query' => array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'relation' => 'AND',
|
||||
array(
|
||||
'key' => 'ea_event_id',
|
||||
'value' => $event_id,
|
||||
'compare' => '='
|
||||
),
|
||||
array(
|
||||
'key' => 'ea_order_id',
|
||||
'value' => $order_id,
|
||||
'compare' => '='
|
||||
)
|
||||
),
|
||||
array(
|
||||
'relation' => 'OR',
|
||||
// $pending_status_filter,
|
||||
// $hold_status_filter,
|
||||
$processing_status_filter,
|
||||
$completed_status_filter
|
||||
)
|
||||
)
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
return $loop;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function mep_email_dynamic_content($email_body, $event_id,$order_id){
|
||||
$event_name = get_the_title($event_id);
|
||||
|
||||
$attendee_q = mep_get_attendee_info_query($event_id,$order_id);
|
||||
foreach($attendee_q->posts as $_attendee_q){
|
||||
$attendee_id = $_attendee_q->ID;
|
||||
}
|
||||
$attendee_name = get_post_meta($attendee_id,'ea_name',true) ? get_post_meta($attendee_id,'ea_name',true) : '';
|
||||
$date_time = get_post_meta($attendee_id,'ea_event_date',true) ? get_mep_datetime(get_post_meta($attendee_id,'ea_event_date',true),'date-time-text') : '';
|
||||
$date = get_post_meta($attendee_id,'ea_event_date',true) ? get_mep_datetime(get_post_meta($attendee_id,'ea_event_date',true),'date-text') : '';
|
||||
$time = get_post_meta($attendee_id,'ea_event_date',true) ? get_mep_datetime(get_post_meta($attendee_id,'ea_event_date',true),'time') : '';
|
||||
$ticket_type = get_post_meta($attendee_id,'ea_ticket_type',true) ? get_post_meta($attendee_id,'ea_ticket_type',true) : '';
|
||||
|
||||
$email_body = str_replace("{name}", $attendee_name, $email_body);
|
||||
$email_body = str_replace("{email}", $email, $email_body);
|
||||
$email_body = str_replace("{event}", $event_name, $email_body);
|
||||
$email_body = str_replace("{event_date}", $date, $email_body);
|
||||
$email_body = str_replace("{event_time}", $time, $email_body);
|
||||
$email_body = str_replace("{event_datetime}", $date_time, $email_body);
|
||||
$email_body = str_replace("{ticket_type}", $ticket_type, $email_body);
|
||||
return $email_body;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Send Confirmation email to customer
|
||||
if (!function_exists('mep_event_confirmation_email_sent')) {
|
||||
function mep_event_confirmation_email_sent($event_id,$sent_email,$order_id){
|
||||
|
@ -187,6 +274,7 @@ function mep_get_all_tax_list($current_tax=null){
|
|||
$headers[] = "From: $form_name <$form_email>";
|
||||
|
||||
if($email_body){
|
||||
$email_body = mep_email_dynamic_content($email_body, $event_id,$order_id);
|
||||
$confirmation_email_text = apply_filters('mep_event_confirmation_text',$email_body,$event_id,$order_id);
|
||||
wp_mail( $sent_email, $email_sub, nl2br($confirmation_email_text), $headers );
|
||||
}
|
||||
|
@ -834,15 +922,15 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
|
||||
if($order->has_status( 'processing' ) ) {
|
||||
|
||||
if(in_array('processing',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
|
||||
change_attandee_order_status($order_id,'publish','trash','processing');
|
||||
change_attandee_order_status($order_id,'publish','publish','processing');
|
||||
change_extra_service_status($order_id,'publish','trash','processing');
|
||||
change_extra_service_status($order_id,'publish','publish','processing');
|
||||
do_action('mep_wc_order_status_change',$order_status,$event_id,$order_id);
|
||||
|
||||
if(in_array('processing',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
|
||||
}
|
||||
if($order->has_status( 'pending' )) {
|
||||
|
@ -859,14 +947,15 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
}
|
||||
if($order->has_status( 'completed' ) ) {
|
||||
|
||||
if(in_array('completed',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
|
||||
change_attandee_order_status($order_id,'publish','trash','completed');
|
||||
change_attandee_order_status($order_id,'publish','publish','completed');
|
||||
change_extra_service_status($order_id,'publish','trash','completed');
|
||||
change_extra_service_status($order_id,'publish','publish','completed');
|
||||
do_action('mep_wc_order_status_change',$order_status,$event_id,$order_id);
|
||||
if(in_array('completed',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
}
|
||||
if($order->has_status( 'cancelled' ) ) {
|
||||
change_attandee_order_status($order_id,'trash','publish','cancelled');
|
||||
|
@ -978,13 +1067,11 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
add_action( 'manage_mep_events_posts_custom_column' , 'mep_custom_event_column', 10, 2 );
|
||||
if (!function_exists('mep_custom_event_column')) {
|
||||
function mep_custom_event_column( $column, $post_id ) {
|
||||
$post_id = mep_get_default_lang_event_id($post_id);
|
||||
switch ( $column ) {
|
||||
|
||||
case 'mep_status' :
|
||||
$values = get_post_custom( $post_id );
|
||||
$recurring = get_post_meta($post_id, 'mep_enable_recurring', true) ? get_post_meta($post_id, 'mep_enable_recurring', true) : 'no';
|
||||
|
||||
|
||||
if($recurring == 'yes'){
|
||||
$event_more_dates = get_post_meta($post_id,'mep_event_more_date',true);
|
||||
$seat_left = 10;
|
||||
|
@ -994,7 +1081,6 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
}else{
|
||||
$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_date = $values[$event_expire_on][0];
|
||||
}
|
||||
echo mep_get_event_status($event_date);
|
||||
|
@ -1004,9 +1090,7 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
case 'mep_event_date' :
|
||||
mep_update_event_upcoming_date($post_id);
|
||||
echo "<span class='mep_event_date'>" . get_mep_datetime(get_post_meta($post_id,'event_upcoming_datetime',true),'date-time-text')."</span>";
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2056,12 +2140,10 @@ if (!function_exists('mep_reset_event_booking')) {
|
|||
add_action( 'manage_mep_events_posts_custom_column' , 'mep_mep_events_column', 10, 2 );
|
||||
if (!function_exists('mep_mep_events_column')) {
|
||||
function mep_mep_events_column( $column, $post_id ) {
|
||||
$post_id = mep_get_default_lang_event_id($post_id);
|
||||
switch ( $column ) {
|
||||
|
||||
case 'mep_event_seat' :
|
||||
$recurring = get_post_meta($post_id, 'mep_enable_recurring', true) ? get_post_meta($post_id, 'mep_enable_recurring', true) : 'no';
|
||||
|
||||
|
||||
if($recurring == 'yes'){
|
||||
$more_date = get_post_meta($post_id,'mep_event_more_date',true) ? get_post_meta($post_id,'mep_event_more_date',true) : array();
|
||||
$event_more_dates = is_array($more_date) && sizeof($more_date) > 0 ? count($more_date)+1 : '';
|
||||
|
@ -2778,10 +2860,6 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
|
|||
$end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
||||
$show_multidate = mep_get_option('mep_date_list_in_event_listing', 'general_setting_sec', 'no');
|
||||
|
||||
$show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes';
|
||||
$end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id);
|
||||
|
||||
|
||||
if(is_array($more_date) && sizeof($more_date) > 0){
|
||||
|
||||
?>
|
||||
|
@ -2814,10 +2892,10 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
|
|||
</span>
|
||||
<span class='mep-more-time'>
|
||||
<i class="fa fa-clock-o"></i>
|
||||
<?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'time'); if($end_date_display_status == 'yes'){ ?> - <?php if ($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']) {
|
||||
<?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'time'); ?> - <?php if ($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']) {
|
||||
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'date-text') . ' - ';
|
||||
}
|
||||
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); } ?>
|
||||
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php
|
||||
|
@ -3301,6 +3379,7 @@ add_action('mep_add_to_cart_shortcode_js','mep_single_page_js_script');
|
|||
add_action('mep_event_admin_booking_js','mep_single_page_js_script');
|
||||
if (!function_exists('mep_single_page_js_script')) {
|
||||
function mep_single_page_js_script($event_id){
|
||||
$event_id = mep_get_default_lang_event_id($event_id);
|
||||
$currency_pos = get_option('woocommerce_currency_pos');
|
||||
$mep_event_faq = get_post_meta($event_id, 'mep_event_faq', true) ? maybe_unserialize(get_post_meta($event_id, 'mep_event_faq', true)) : [];
|
||||
ob_start();
|
||||
|
@ -3376,15 +3455,15 @@ function mep_single_page_js_script($event_id){
|
|||
$event_more_date[0]['event_more_end_time'] = date('H:i', strtotime(get_post_meta($event_id, 'event_end_time', true)));
|
||||
$event_more_dates = get_post_meta($event_id, 'mep_event_more_date', true) ? get_post_meta($event_id, 'mep_event_more_date', true) : array();
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
if ($recurring == 'yes') {
|
||||
if ($recurring == 'yes' && function_exists('get_mep_re_recurring_date')) {
|
||||
$event_multi_date = array_merge($event_more_date, $event_more_dates);
|
||||
} else {
|
||||
$event_multi_date = $event_more_date;
|
||||
}
|
||||
foreach ($event_multi_date as $event_date) {
|
||||
|
||||
$start_date = $recurring == 'yes' ? date('Y-m-d H:i:s', strtotime($event_date['event_more_start_date'] . ' ' . $event_date['event_more_start_time'])) : date('Y-m-d H:i:s', strtotime(mep_get_event_expire_date($event_id)));
|
||||
$event_start_date = $recurring == 'yes' ? date('Y-m-d H:i:s', strtotime($event_date['event_more_start_date'] . ' ' . $event_date['event_more_start_time'])) : get_post_meta($event_id,'event_start_datetime',true);
|
||||
$start_date = $recurring == 'yes' && function_exists('get_mep_re_recurring_date') ? date('Y-m-d H:i:s', strtotime($event_date['event_more_start_date'] . ' ' . $event_date['event_more_start_time'])) : date('Y-m-d H:i:s', strtotime(mep_get_event_expire_date($event_id)));
|
||||
$event_start_date = $recurring == 'yes' && function_exists('get_mep_re_recurring_date') ? date('Y-m-d H:i:s', strtotime($event_date['event_more_start_date'] . ' ' . $event_date['event_more_start_time'])) : get_post_meta($event_id,'event_start_datetime',true);
|
||||
|
||||
if (strtotime(current_time('Y-m-d H:i:s')) < strtotime($start_date)) {
|
||||
foreach ($mep_event_ticket_type as $field) {
|
||||
|
@ -3760,8 +3839,6 @@ function mep_event_list_upcoming_date_li($event_id,$type='grid'){
|
|||
$event_start_datetime = get_post_meta($event_id,'event_start_datetime',true);
|
||||
$event_end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
||||
$event_multidate = get_post_meta($event_id,'mep_event_more_date',true) ? get_post_meta($event_id,'mep_event_more_date',true) : [];
|
||||
$show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes';
|
||||
$end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id);
|
||||
$event_std[] = array(
|
||||
'event_std' => $event_start_datetime,
|
||||
'event_etd' => $event_end_datetime
|
||||
|
@ -3782,7 +3859,6 @@ $start_date = date('Y-m-d',strtotime($_event_std['event_std']));
|
|||
$end_date = date('Y-m-d',strtotime($_event_std['event_etd']));
|
||||
if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
||||
if($type == 'grid'){
|
||||
|
||||
?>
|
||||
<li class="mep_list_event_date">
|
||||
<div class="evl-ico"><i class="fa fa-calendar"></i></div>
|
||||
|
@ -3791,13 +3867,13 @@ if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
|||
<?php echo get_mep_datetime($std, 'date-text'); ?>
|
||||
</h5>
|
||||
<h5><?php echo get_mep_datetime($_event_std['event_std'], 'time');
|
||||
if ($hide_only_end_time_list == 'no' && $end_date_display_status == 'yes') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></h5>
|
||||
if ($hide_only_end_time_list == 'no') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></h5>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}elseif($type == 'minimal'){
|
||||
?>
|
||||
<span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($std, 'date-text').' '; echo get_mep_datetime($_event_std['event_std'], 'time'); if ($hide_only_end_time_list == 'no' && $end_date_display_status == 'yes') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></span>
|
||||
<span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($std, 'date-text').' '; echo get_mep_datetime($_event_std['event_std'], 'time'); if ($hide_only_end_time_list == 'no') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></span>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
@ -4301,3 +4377,108 @@ function mep_disable_add_to_cart_if_product_is_in_cart ( $is_purchasable, $produ
|
|||
}
|
||||
return $is_purchasable;
|
||||
}
|
||||
|
||||
|
||||
if (!class_exists('MPWEM_Helper')) {
|
||||
class MPWEM_Helper {
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public static function all_taxonomy_as_text($event_id, $taxonomy): string {
|
||||
$taxonomy_text = '';
|
||||
$all_taxonomy = get_the_terms($event_id, $taxonomy);
|
||||
if ($all_taxonomy && sizeof($all_taxonomy) > 0) {
|
||||
foreach ($all_taxonomy as $category) {
|
||||
$taxonomy_text = $taxonomy_text . '- ' . $category->name;
|
||||
}
|
||||
}
|
||||
return $taxonomy_text;
|
||||
}
|
||||
public static function get_all_taxonomy($name): array {
|
||||
$taxonomy = array();
|
||||
$categories = get_terms(array(
|
||||
'taxonomy' => $name
|
||||
));
|
||||
foreach ($categories as $category) {
|
||||
$taxonomy[] = $category->name;
|
||||
}
|
||||
return array_unique($taxonomy);
|
||||
}
|
||||
public static function search_short_code_style_class($style_class): string {
|
||||
$extra_class = ($style_class == 'grid') ? 'flexWrap' : '';
|
||||
$extra_class = ($style_class == 'list') ? 'fdColumn' : $extra_class;
|
||||
return ($extra_class . ' ' . $style_class);
|
||||
}
|
||||
public static function get_event_location($event_id): string {
|
||||
$city = self::get_city($event_id);
|
||||
$venue = self::get_venue($event_id);
|
||||
return $venue . ' , ' . $city;
|
||||
}
|
||||
public static function get_venue($event_id) {
|
||||
$location = self::get_post_data($event_id, 'mep_org_address', '');
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
if ($location && is_array($org_arr) && sizeof($org_arr) > 0) {
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$venue = get_term_meta($org_id, 'org_location', true);
|
||||
} else {
|
||||
$venue = self::get_post_data($event_id, 'mep_location_venue', '');
|
||||
}
|
||||
return $venue;
|
||||
}
|
||||
public static function get_all_city(): array {
|
||||
$city_list = array();
|
||||
ob_start();
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
'posts_per_page' => -1
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
foreach ($loop->posts as $post) {
|
||||
$event_id = $post->ID;
|
||||
$city_name = get_post_meta($event_id, 'mep_city', true);
|
||||
if ($city_name) {
|
||||
$city_list[] = $city_name;
|
||||
}
|
||||
}
|
||||
wp_reset_postdata();
|
||||
ob_get_clean();
|
||||
return array_unique($city_list);
|
||||
}
|
||||
|
||||
public static function get_city($event_id) {
|
||||
$location = self::get_post_data($event_id, 'mep_org_address', '');
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
if ($location && is_array($org_arr) && sizeof($org_arr) > 0) {
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$city = get_term_meta($org_id, 'org_city', true);
|
||||
} else {
|
||||
$city = self::get_post_data($event_id, 'mep_city', '');
|
||||
}
|
||||
return $city;
|
||||
}
|
||||
public static function get_post_data($event_id, $key, $default = '') {
|
||||
$meta_data = get_post_meta($event_id, $key, true);
|
||||
return $meta_data ?: $default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function mep_get_default_lang_event_id($event_id){
|
||||
global $sitepress;
|
||||
$multi_lang_plugin = mep_get_option( 'mep_multi_lang_plugin', 'general_setting_sec', 'none' );
|
||||
|
||||
if($multi_lang_plugin == 'polylang'){
|
||||
// Get PolyLang ID
|
||||
$defaultLanguage = function_exists('pll_default_language') ? pll_default_language() : get_locale();
|
||||
$translations = function_exists('pll_get_post_translations') ? pll_get_post_translations($event_id) : [];
|
||||
$event_id = sizeof($translations) > 0 ? $translations[$defaultLanguage] : $event_id;
|
||||
}elseif($multi_lang_plugin == 'wpml'){
|
||||
// WPML
|
||||
$default_language = function_exists('wpml_loaded') ? $sitepress->get_default_language() : get_locale(); // will return 'en'
|
||||
$event_id = apply_filters( 'wpml_object_id', $event_id, 'mep_events', TRUE, $default_language );
|
||||
}else{
|
||||
$event_id = $event_id;
|
||||
}
|
||||
return $event_id;
|
||||
}
|
|
@ -144,7 +144,7 @@ function mep_event_list($atts, $content = null)
|
|||
do_action('mep_event_list_org_names',$org,$unq_id);
|
||||
} ?>
|
||||
|
||||
<div class="mep_event_list_secxx" id='mep_event_list_<?php echo $unq_id; ?>'>
|
||||
<div class="mep_event_list_sec" id='mep_event_list_<?php echo $unq_id; ?>'>
|
||||
<?php
|
||||
/**
|
||||
* The Main Query function mep_event_query is locet in inc/mep_query.php File
|
||||
|
@ -405,16 +405,6 @@ function mep_event_speaker_list_shortcode_section($atts, $content = null)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_shortcode('event-list-onepage', 'mep_event_onepage_list');
|
||||
function mep_event_onepage_list($atts, $content = null)
|
||||
{
|
||||
|
@ -553,3 +543,168 @@ function mep_event_onepage_list($atts, $content = null)
|
|||
$content = ob_get_clean();
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
add_shortcode('event-list-search', 'mep_event_list_search');
|
||||
function mep_event_list_search($attribute, $content = null){
|
||||
$defaults = array(
|
||||
'result-style' => '',
|
||||
'event-style' => 'list',
|
||||
'category-filter' => 'yes',
|
||||
'organizer-filter' => 'yes',
|
||||
'city-filter' => 'yes',
|
||||
'date-filter' => 'yes',
|
||||
);
|
||||
$parameter = shortcode_atts($defaults, $attribute);
|
||||
|
||||
$search_result_style = $parameter['result-style'];
|
||||
$search_result_class = ($search_result_style == 'popup') ? 'search_result_dropdown' : '';
|
||||
|
||||
$category_filter = $parameter['category-filter'] == 'yes' || '';
|
||||
$organizer_filter = $parameter['organizer-filter'] == 'yes' || '';
|
||||
$city_filter = $parameter['city-filter'] == 'yes' || '';
|
||||
$date_filter = $parameter['date-filter'] == 'yes' || '';
|
||||
|
||||
ob_start();
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
'posts_per_page' => -1
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
?>
|
||||
<div class="demo_search_short_code">
|
||||
<div class="search_sort_code_area">
|
||||
<div class="search_sort_code <?php echo $search_result_class; ?>">
|
||||
<div class="sort_code_search_box defaultLayout_xs">
|
||||
<div class="flexEqual mp_event_search_box">
|
||||
<?php
|
||||
$category_lists = MPWEM_Helper::get_all_taxonomy('mep_cat');
|
||||
if ($category_filter && $category_lists && sizeof($category_lists) > 0) {
|
||||
?>
|
||||
<label>
|
||||
<select class="formControl" name="search_with_category">
|
||||
<option selected value=""><?php _e('Select Category', 'mage-eventpress'); ?></option>
|
||||
<?php
|
||||
foreach ($category_lists as $category) {
|
||||
?>
|
||||
<option value="<?php echo $category; ?>"><?php echo $category; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$organizer_lists = MPWEM_Helper::get_all_taxonomy('mep_org');
|
||||
if ($organizer_filter && $organizer_lists && sizeof($organizer_lists) > 0) {
|
||||
?>
|
||||
<label>
|
||||
<select class="formControl" name="search_with_organizer">
|
||||
<option selected value=""><?php _e('Select Organizer', 'mage-eventpress'); ?></option>
|
||||
<?php
|
||||
foreach ($organizer_lists as $organizer) {
|
||||
?>
|
||||
<option value="<?php echo $organizer; ?>"><?php echo $organizer; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$city_lists = MPWEM_Helper::get_all_city();
|
||||
if ($city_filter && $city_lists && sizeof($city_lists) > 0) {
|
||||
?>
|
||||
<label>
|
||||
<select class="formControl" name="search_with_city">
|
||||
<option selected value=""><?php _e('Select City', 'mage-eventpress'); ?></option>
|
||||
<?php
|
||||
foreach ($city_lists as $city) {
|
||||
?>
|
||||
<option value="<?php echo $city; ?>"><?php echo $city; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</label>
|
||||
<?php } ?>
|
||||
<?php if ($date_filter) { ?>
|
||||
<label>
|
||||
<input type="date" class="formControl search_with_start_date" value='' placeholder="<?php _e('Start date', 'mage-eventpress'); ?>"/>
|
||||
</label>
|
||||
<label>
|
||||
<input type="date" class="formControl search_with_end_date" value='' placeholder="<?php _e('End date', 'mage-eventpress'); ?>"/>
|
||||
</label>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="mp_event_search_box">
|
||||
<label>
|
||||
<input name="mp_event_title" placeholder="<?php _e('Type Event Name here ....', 'mage-eventpress'); ?>" class="formControl mp_event_search"/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="all_event_list <?php echo MPWEM_Helper::search_short_code_style_class($parameter['event-style']); ?>">
|
||||
<?php
|
||||
foreach ($loop->posts as $post) {
|
||||
$event_id = $post->ID;
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$time = strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0]);
|
||||
$date = date_i18n('Y-m-d H:i:s', $time);
|
||||
//$date = MPWEM_Date::event_date($event_id);
|
||||
if ($date) {
|
||||
$taxonomy_category = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_cat');
|
||||
$taxonomy_organizer = MPWEM_Helper::all_taxonomy_as_text($event_id, 'mep_org');
|
||||
?>
|
||||
<div
|
||||
class="event_item"
|
||||
data-event-id="<?php echo $event_id; ?>"
|
||||
data-event-title="<?php echo get_the_title($event_id); ?>"
|
||||
data-date-time="<?php echo get_mep_datetime($date, 'date'); ?>"
|
||||
data-city-name="<?php echo get_post_meta($event_id, 'mep_city', true); ?>"
|
||||
data-category="<?php echo $taxonomy_category; ?>"
|
||||
data-organizer="<?php echo $taxonomy_organizer; ?>"
|
||||
>
|
||||
<div class="event_item_img">
|
||||
<?php mep_get_list_thumbnail($event_id); ?>
|
||||
</div>
|
||||
<div class="event_item_details">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>">
|
||||
<h6><?php echo get_the_title($event_id); ?></h6>
|
||||
</a>
|
||||
<div class="alignCenter mt_xs">
|
||||
<span class="fa fa-calendar circleIcon_xs"></span>
|
||||
<span><?php echo get_mep_datetime($date, 'date-time'); ?></span>
|
||||
</div>
|
||||
<div class="alignCenter mt_xs">
|
||||
<span class="fa fa-location-arrow circleIcon_xs"></span>
|
||||
<span><?php echo MPWEM_Helper::get_event_location($event_id); ?></span>
|
||||
</div>
|
||||
<a class="defaultButton_xs deails_view" href="<?php echo get_the_permalink($event_id); ?>" target="_blank">
|
||||
<span><?php _e('Details View', 'mage-eventpress'); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
$day = get_mep_datetime($date, 'day');
|
||||
$month = get_mep_datetime($date, 'month-name');
|
||||
?>
|
||||
<div class="item_date">
|
||||
<h4><?php echo apply_filters('mep_event_list_only_day_number', $day, $event_id); ?></h4>
|
||||
<hr/>
|
||||
<h4><?php echo apply_filters('mep_event_list_only_month_name', $month, $event_id); ?></h4>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
wp_reset_postdata();
|
||||
?>
|
||||
</div>
|
||||
<div class="search_result_empty"><?php _e('No Match Event Found!', 'mage-eventpress') ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
}
|
|
@ -11,6 +11,7 @@ function mep_user_custom_styles()
|
|||
$label_text_color = mep_get_option('mep_title_text_color', 'style_setting_sec', '#ffffff');
|
||||
$cart_btn_bg_color = mep_get_option('mep_cart_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
||||
$cart_btn_txt_color = mep_get_option('mep_cart_btn_text_color', 'style_setting_sec', '#ffffff');
|
||||
|
||||
$calender_btn_bg_color = mep_get_option('mep_calender_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
||||
$calender_btn_txt_color = mep_get_option('mep_calender_btn_text_color', 'style_setting_sec', '#ffffff');
|
||||
$faq_label_bg_color = mep_get_option('mep_faq_title_bg_color', 'style_setting_sec', '#ffbe30');
|
||||
|
@ -53,28 +54,35 @@ function mep_user_custom_styles()
|
|||
.mep_event_list_item:hover {
|
||||
border-color: <?php echo $base_color; ?>;
|
||||
}
|
||||
|
||||
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before {
|
||||
border-color: <?php echo $base_color; ?>;
|
||||
}
|
||||
|
||||
|
||||
/*Cart sec Label Style*/
|
||||
.mep-default-feature-cart-sec h3, .mep-event-theme-1 h3.ex-sec-title, .mep-tem3-mid-sec h3.ex-sec-title, .mep-tem3-title-sec {
|
||||
background: <?php echo $label_bg_color; ?>;
|
||||
color: <?php echo $label_text_color; ?>;
|
||||
}
|
||||
|
||||
/*FAQ Sec Style*/
|
||||
.mep-default-feature-faq-sec h4, .tmep-emplate-3-faq-sec .mep-event-faq-part h4 {
|
||||
background: <?php echo $faq_label_bg_color; ?>;
|
||||
color: <?php echo $faq_label_text_color; ?>;
|
||||
}
|
||||
|
||||
h3.ex-sec-title {
|
||||
background: <?php echo $base_color; ?>;
|
||||
}
|
||||
|
||||
/*Cart Button Style*/
|
||||
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart, .mep-event-theme-1 .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart, .mep-tem3-mid-sec .btn-mep-event-cart {
|
||||
background: <?php echo $cart_btn_bg_color; ?>;
|
||||
color: <?php echo $cart_btn_txt_color; ?> !important;
|
||||
border-color: <?php echo $cart_btn_bg_color; ?>;
|
||||
}
|
||||
|
||||
/*Calender Button Style*/
|
||||
.mep-default-sidrbar-calender-btn a, .mep-event-theme-1 .mep-add-calender, .mep-template-2-hamza .mep-add-calender, .mep-tem3-mid-sec .mep-add-calender, #mep_add_calender_button {
|
||||
background: <?php echo $calender_btn_bg_color; ?>;
|
||||
|
|
|
@ -8,8 +8,9 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
// Get Event Registration Button
|
||||
function mep_get_event_reg_btn($event_id = '',$params=[])
|
||||
{
|
||||
// print_r($params);
|
||||
global $post, $event_meta;
|
||||
$event_id = mep_get_default_lang_event_id($event_id);
|
||||
|
||||
$saved_user_role = get_post_meta($event_id, 'mep_member_only_user_role', true) ? get_post_meta($event_id, 'mep_member_only_user_role', true) : [];
|
||||
$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';
|
||||
|
||||
|
@ -18,8 +19,7 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
$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'));
|
||||
$select_date_label = 'U lala lala';
|
||||
|
||||
// $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);
|
||||
|
@ -162,7 +162,8 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<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 echo $cart_btn_label; ?></button>
|
||||
<?php }else{
|
||||
?>
|
||||
<button disabled class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </button>
|
||||
<!--<button disabled class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </button>-->
|
||||
<button onclick="location.href='<?php echo wc_get_cart_url(); ?>';" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e('Already Added into Cart!', 'mage-eventpress'); ?> </button>
|
||||
<?php
|
||||
} ?>
|
||||
<?php do_action('mep_after_add_cart_btn',$post_id); ?>
|
||||
|
@ -315,7 +316,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
<input type="hidden" name='currency_number_of_decimal' value="<?php echo wc_get_price_decimals(); ?>">
|
||||
<?php do_action('mep_add_term_condition',$post_id); ?>
|
||||
<!--The Add to cart button table start Here fff-->
|
||||
<table class='table table-bordered mep_event_add_cart_table xxx'>
|
||||
<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');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
|
@ -326,7 +327,7 @@ if (!function_exists('mep_get_event_reg_btn_list')) {
|
|||
<span id="usertotal"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td align="right">
|
||||
<td align="right" class='mep-event-cart-btn-sec'>
|
||||
<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){ ?>
|
||||
|
|
|
@ -7,6 +7,7 @@ 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();
|
||||
|
|
|
@ -2,50 +2,51 @@
|
|||
get_header();
|
||||
the_post();
|
||||
global $post, $woocommerce;
|
||||
if ( post_password_required() ) {
|
||||
if (post_password_required()) {
|
||||
echo '<div class="mep-events-wrapper">';
|
||||
echo get_the_password_form(); // WPCS: XSS ok.
|
||||
echo '</div>';
|
||||
}else{
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$book_count = get_post_meta(get_the_id(), 'total_booking', true);
|
||||
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
||||
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
|
||||
$mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]);
|
||||
$mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]);
|
||||
$mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]);
|
||||
$mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]);
|
||||
$mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]);
|
||||
$mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]);
|
||||
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
|
||||
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
|
||||
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
|
||||
$global_template = mep_get_option('mep_global_single_template', 'general_setting_sec', 'default-theme.php');
|
||||
$current_template = $event_meta['mep_event_template'][0];
|
||||
$_current_template = $current_template ? $current_template : $global_template;
|
||||
$currency_pos = get_option('woocommerce_currency_pos');
|
||||
do_action('mep_event_single_page_after_header');
|
||||
} else {
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$book_count = get_post_meta(get_the_id(), 'total_booking', true);
|
||||
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
||||
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
|
||||
$mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]);
|
||||
$mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]);
|
||||
$mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]);
|
||||
$mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]);
|
||||
$mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]);
|
||||
$mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]);
|
||||
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
|
||||
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
|
||||
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
|
||||
$global_template = mep_get_option('mep_global_single_template', 'general_setting_sec', 'default-theme.php');
|
||||
$current_template = $event_meta['mep_event_template'][0];
|
||||
$_current_template = $current_template ? $current_template : $global_template;
|
||||
$currency_pos = get_option('woocommerce_currency_pos');
|
||||
do_action('mep_event_single_page_after_header');
|
||||
?>
|
||||
<div class="mep-events-wrapper">
|
||||
<div class="mep-events-wrapper wrapper">
|
||||
<div class="mep-events-container container">
|
||||
<?php
|
||||
|
||||
if (!class_exists('WC_Bundles')) {
|
||||
do_action('woocommerce_before_single_product');
|
||||
|
||||
}
|
||||
$theme_name = "/themes/$_current_template";
|
||||
|
||||
require_once(mep_template_file_path($theme_name));
|
||||
|
||||
if (comments_open() || get_comments_number()) {
|
||||
comments_template();
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="mep-related-events-sec">
|
||||
</div>
|
||||
<div class="mep-related-events-sec">
|
||||
<?php do_action('after-single-events'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
do_action('mep_event_single_template_end',get_the_id());
|
||||
do_action('mep_event_single_template_end', get_the_id());
|
||||
do_action('mep_event_single_page_before_footer');
|
||||
}
|
||||
get_footer();
|
||||
|
|
|
@ -8,27 +8,24 @@ if (!function_exists('mep_ev_seat')) {
|
|||
function mep_ev_seat()
|
||||
{
|
||||
global $post;
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
|
||||
$event_id = mep_get_default_lang_event_id(get_the_id());
|
||||
$event_meta = get_post_custom($event_id);
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
ob_start();
|
||||
if ($recurring == 'no') {
|
||||
|
||||
$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();
|
||||
$event_date = get_post_meta($post->ID, 'event_start_date', true) ? get_post_meta($post->ID, 'event_start_date', true) : '';
|
||||
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true) ? get_post_meta($event_id, 'mep_event_ticket_type', true) : array();
|
||||
$event_date = get_post_meta($event_id, 'event_start_date', true) ? get_post_meta($event_id, 'event_start_date', true) : '';
|
||||
$mep_available_seat = array_key_exists('mep_available_seat', $event_meta) ? $event_meta['mep_available_seat'][0] : 'on';
|
||||
|
||||
if (is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0) {
|
||||
$total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat(get_the_id(), 'total'), get_the_id());
|
||||
$total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat(get_the_id(), 'resv'), get_the_id());
|
||||
$total_sold = mep_ticket_sold(get_the_id());
|
||||
$total_seat = apply_filters('mep_event_total_seat_counts', mep_event_total_seat($event_id, 'total'), $event_id);
|
||||
$total_resv = apply_filters('mep_event_total_resv_seat_count', mep_event_total_seat($event_id, 'resv'), $event_id);
|
||||
$total_sold = mep_ticket_sold($event_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
// mep_total_available_seat
|
||||
$total_left = apply_filters('mep_total_available_seat', $total_left, get_the_id(),'',$event_date);;
|
||||
$total_left = apply_filters('mep_total_available_seat', $total_left, $event_id,'',$event_date);;
|
||||
require(mep_template_file_path('single/total_seat.php'));
|
||||
}
|
||||
}
|
||||
|
||||
$content = ob_get_clean();
|
||||
echo apply_filters('mage_event_single_title', $content, $post->ID);
|
||||
echo apply_filters('mage_event_single_total_seat', $content, $event_id);
|
||||
}
|
||||
}
|
|
@ -42,3 +42,108 @@ function mp_event_wo_commerce_price_format(price) {
|
|||
});
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
|
||||
(function ($) {
|
||||
"use strict";
|
||||
let mp_event_input_name_list = {
|
||||
mp_event_title: 'data-event-title',
|
||||
search_with_city: 'data-city-name',
|
||||
search_with_category: 'data-category',
|
||||
search_with_organizer: 'data-organizer'
|
||||
};
|
||||
for (let name in mp_event_input_name_list) {
|
||||
$(document).on('change keyup', '[name="' + name + '"] ', function (e) {
|
||||
e.preventDefault();
|
||||
mp_event_search_result($(this));
|
||||
});
|
||||
}
|
||||
$(document).on('change', '.search_with_start_date , .search_with_end_date', function (e) {
|
||||
e.preventDefault();
|
||||
mp_event_search_result($(this));
|
||||
});
|
||||
|
||||
function mp_event_search_result(target) {
|
||||
let parent = target.closest('.search_sort_code_area');
|
||||
if(check_search_value_exit(parent)) {
|
||||
let result = 0;
|
||||
let date_check = mp_event_date_check(parent);
|
||||
parent.find('.all_event_list .event_item').each(function () {
|
||||
let active_event = 1;
|
||||
for (let name in mp_event_input_name_list) {
|
||||
if (mp_event_single_text_check(parent, name) && active_event > 0) {
|
||||
active_event = mp_event_single_text_search(parent, $(this), name);
|
||||
}
|
||||
}
|
||||
if (date_check && active_event > 0) {
|
||||
active_event = mp_event_date_search(parent, $(this));
|
||||
}
|
||||
if (active_event > 1) {
|
||||
result++;
|
||||
$(this).slideDown('fast');
|
||||
} else {
|
||||
$(this).slideUp('fast');
|
||||
}
|
||||
}).promise().done(function () {
|
||||
if (result > 0) {
|
||||
parent.find('.all_event_list').slideDown('fast');
|
||||
parent.find('.search_result_empty').slideUp('fast');
|
||||
} else {
|
||||
parent.find('.all_event_list').slideUp('fast');
|
||||
parent.find('.search_result_empty').slideDown('fast');
|
||||
}
|
||||
});
|
||||
}else{
|
||||
parent.find('.all_event_list').slideDown('fast');
|
||||
parent.find('.all_event_list .event_item').each(function () {
|
||||
$(this).slideDown('fast');
|
||||
});
|
||||
parent.find('.search_result_empty').slideUp('fast');
|
||||
}
|
||||
}
|
||||
|
||||
function date_convert_to_str(date) {
|
||||
date = new Date(date).getTime();
|
||||
if (date && date !== 'NaN') {
|
||||
return date;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
function mp_event_single_text_check(parent, inputName) {
|
||||
let inputText = parent.find('[name="' + inputName + '"]').val();
|
||||
return (inputText && inputText.length > 0) ? 1 : false;
|
||||
}
|
||||
|
||||
function mp_event_single_text_search(parent, item, inputName) {
|
||||
let target = parent.find('[name="' + inputName + '"]');
|
||||
let inputText = target.val();
|
||||
let currentValue = item.attr(mp_event_input_name_list[inputName]);
|
||||
return (currentValue.match(new RegExp(inputText, "i"))) ? 2 : 0;
|
||||
}
|
||||
|
||||
function mp_event_date_check(parent) {
|
||||
let start_date = date_convert_to_str(parent.find('.search_with_start_date').val());
|
||||
let end_date = date_convert_to_str(parent.find('.search_with_end_date').val());
|
||||
return (start_date > 0 && end_date > 0) ? 1 : false;
|
||||
}
|
||||
|
||||
function mp_event_date_search(parent, target) {
|
||||
let start_date = date_convert_to_str(parent.find('.search_with_start_date').val());
|
||||
let end_date = date_convert_to_str(parent.find('.search_with_end_date').val());
|
||||
let event_date = date_convert_to_str(target.attr('data-date-time'));
|
||||
return (event_date > start_date && end_date > event_date) ? 2 : 0;
|
||||
}
|
||||
|
||||
function check_search_value_exit(parent) {
|
||||
let date_result = mp_event_date_check(parent);
|
||||
let active_event = 0;
|
||||
for (let name in mp_event_input_name_list) {
|
||||
if (mp_event_single_text_check(parent, name)) {
|
||||
active_event = 1;
|
||||
}
|
||||
}
|
||||
return (date_result || active_event > 0)?1:false;
|
||||
}
|
||||
}(jQuery));
|
29
readme.txt
29
readme.txt
|
@ -34,7 +34,9 @@ WooCommerce Event Manager Plugin- is one of the best and simple event management
|
|||
➡ Multiple Event Templates (You can select a different template for each event)
|
||||
➡ Works with Any Standards Compliant WordPress Theme.
|
||||
➡ WooCommerce Support, You can Sale product and Event Separately. There is no mixing with Event with the WooCommerce Products.
|
||||
➡ [View Live Demo](https://demo.vaincode.com/mage-event/)
|
||||
➡ [View Live Demo For Business](https://vaincode.com/event-demo/)
|
||||
➡ [View Live Demo For Cooking](https://vaincode.com/event-demo/home-cooking/)
|
||||
➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/)
|
||||
|
||||
### [Pro Version](https://mage-people.com/product/mage-woo-event-booking-manager-pro/) Plugin Features
|
||||
➡ Download PDF tickets for event attendee.
|
||||
|
@ -55,7 +57,9 @@ WooCommerce Event Manager Plugin- is one of the best and simple event management
|
|||
➡ Related Events Addon - You can select related event and display to event details page.
|
||||
|
||||
|
||||
👉 [View Live Demo](https://demo.vaincode.com/mage-event/)
|
||||
➡ [View Live Demo For Business](https://vaincode.com/event-demo/)
|
||||
➡ [View Live Demo For Cooking](https://vaincode.com/event-demo/home-cooking/)
|
||||
➡ [View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/)
|
||||
👉 [Plugin Documentation](https://demo.vaincode.com/mage-event/documentation/)
|
||||
|
||||
👉[Buy WooCommerce Event Manager Pro](https://mage-people.com/product/mage-woo-event-booking-manager-pro/) 👈
|
||||
|
@ -324,7 +328,13 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
|
|||
= Q.Is Woocommerce Events Manager Free? =
|
||||
A. Yes! Woocommerce Events Manager is free.
|
||||
|
||||
You can check the demo of this plugin from here [Live Demo](https://demo.vaincode.com/mage-event/)
|
||||
You can check the demo of this plugin from here:
|
||||
[View Live Demo For Business](https://vaincode.com/event-demo/)
|
||||
[View Live Demo For Cooking](https://vaincode.com/event-demo/home-cooking/)
|
||||
[View Live Demo For Indoor Games](https://vaincode.com/event-demo/home-indoor-games/)
|
||||
|
||||
|
||||
|
||||
|
||||
= Q.Any Documentation? =
|
||||
A. Yes! Here is the [Online Documentation](https://demo.vaincode.com/mage-event/documentation/).
|
||||
|
@ -738,3 +748,16 @@ New Social Icon added
|
|||
Bug Fixed
|
||||
Hook Added
|
||||
15 March 2021*
|
||||
|
||||
= 3.4.9=
|
||||
* Update Release:
|
||||
Elementor Support & Widget
|
||||
Multilingual Support (WPML & Polylang)
|
||||
Style Issue fixed
|
||||
Google Map Issue fixed
|
||||
New List Style added (Spring, Winter)
|
||||
New Theme Added (Vanila)
|
||||
New Features & Settings added
|
||||
Bug Fixed
|
||||
Hook Added
|
||||
20 Sep 2021*
|
|
@ -60,7 +60,6 @@ class MEPEventAddCalendarWidget extends Widget_Base {
|
|||
'tab' => Controls_Manager::TAB_CONTENT,
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share-btn_bg_color',
|
||||
[
|
||||
|
@ -68,10 +67,10 @@ class MEPEventAddCalendarWidget extends Widget_Base {
|
|||
'type' => Controls_Manager::COLOR,
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-calender-btn ul#mep_add_calender_links li a' => 'background-color: {{VALUE}};',
|
||||
'{{WRAPPER}} .mep-elementor-widget-calender-btn #mep_add_calender_button' => 'background-color: {{VALUE}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share-btn_icon_color',
|
||||
[
|
||||
|
@ -79,14 +78,11 @@ class MEPEventAddCalendarWidget extends Widget_Base {
|
|||
'type' => Controls_Manager::COLOR,
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-calender-btn ul#mep_add_calender_links li a' => 'color: {{VALUE}};',
|
||||
'{{WRAPPER}} .mep-elementor-widget-calender-btn #mep_add_calender_button' => 'color: {{VALUE}} !important;',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
$this->end_controls_section();
|
||||
|
||||
}
|
||||
|
||||
protected function render() {
|
||||
|
@ -108,5 +104,4 @@ class MEPEventAddCalendarWidget extends Widget_Base {
|
|||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -343,9 +343,6 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
$this->add_group_control(
|
||||
Group_Control_Typography::get_type(),
|
||||
[
|
||||
|
@ -378,9 +375,6 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_button_text_color',
|
||||
[
|
||||
|
@ -408,7 +402,7 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
$this->add_control(
|
||||
'mep_event_button_bg_color',
|
||||
[
|
||||
'label' => __( 'Cart Button Background Color', 'mage-eventpress' ),
|
||||
'label' => __('Cart Button Background Color', 'mage-eventpress'),
|
||||
'type' => Controls_Manager::COLOR,
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-event-add-to-cart-section-widget .single_add_to_cart_button' => 'background-color: {{VALUE}} !important;border-color:{{VALUE}} !important',
|
||||
|
@ -419,7 +413,7 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
$this->add_responsive_control(
|
||||
'mep_event_btn_padding',
|
||||
[
|
||||
'label' => __( 'Cart Button Padding', 'elementor' ),
|
||||
'label' => __('Cart Button Padding', 'mage-eventpress'),
|
||||
'type' => Controls_Manager::DIMENSIONS,
|
||||
'size_units' => [ 'px', 'em', '%', 'rem' ],
|
||||
'selectors' => [
|
||||
|
@ -428,15 +422,17 @@ class MEPAddToCartSectionWidget extends Widget_Base {
|
|||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->add_responsive_control(
|
||||
'mep_event_btn_padding_border_radius',
|
||||
[
|
||||
'label' => __('Border Radius', 'mage-eventpress'),
|
||||
'type' => Controls_Manager::DIMENSIONS,
|
||||
'size_units' => [ 'px', 'em', '%', 'rem' ],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-event-add-to-cart-section-widget .single_add_to_cart_button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_section_bg_color',
|
||||
|
|
|
@ -97,6 +97,17 @@ class MEPEventDateWidget extends Widget_Base {
|
|||
],
|
||||
]
|
||||
);
|
||||
$this->add_control(
|
||||
'mep_event_date_display_icon',
|
||||
[
|
||||
'label' => __( 'Icon Before', 'text-domain' ),
|
||||
'type' => \Elementor\Controls_Manager::ICONS,
|
||||
'default' => [
|
||||
'value' => 'fas fa-calendar-alt',
|
||||
'library' => 'solid',
|
||||
],
|
||||
]
|
||||
);
|
||||
$this->end_controls_section();
|
||||
|
||||
|
||||
|
@ -125,6 +136,62 @@ class MEPEventDateWidget extends Widget_Base {
|
|||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_date_icon_size',
|
||||
[
|
||||
'label' => __( 'Icon Size', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 20,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-datetime span i' => 'font-size:{{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_date_icon_color',
|
||||
[
|
||||
'label' => __( 'Icon Color', 'mage-eventpress' ),
|
||||
'type' => Controls_Manager::COLOR,
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-datetime span i' => 'color: {{VALUE}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_responsive_control(
|
||||
'mep_event_date_icon_margin',
|
||||
[
|
||||
'label' => __( 'Icon Margin', 'elementor' ),
|
||||
'type' => Controls_Manager::DIMENSIONS,
|
||||
'size_units' => [ 'px', 'em', '%', 'rem' ],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-datetime span i' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->end_controls_section();
|
||||
|
||||
}
|
||||
|
@ -139,11 +206,12 @@ class MEPEventDateWidget extends Widget_Base {
|
|||
$event_datetime = get_post_meta($event_id,$datetype,true) ? get_post_meta($event_id,$datetype,true) : '';
|
||||
$before_text = $settings['mep_ele_date_before_text'];
|
||||
$after_text = $settings['mep_ele_date_after_text'];
|
||||
$mep_location_icon = sizeof($settings['mep_event_date_display_icon']) > 0 ? "<i class='".$settings['mep_event_date_display_icon']['value']."'></i>" : '';
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
if(!empty($event_datetime)){
|
||||
?>
|
||||
<div class="mep-default-datetime mep-elementor-widget-datetime">
|
||||
<span><?php echo $before_text; ?></span><span><?php echo get_mep_datetime($event_datetime,$datetdisplaystyle); ?></span> <span><?php echo $after_text; ?></span>
|
||||
<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>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -626,9 +626,9 @@ class MEPEventListWidget extends Widget_Base {
|
|||
[
|
||||
'label' => __( 'Show Location?', 'mage-eventpress' ),
|
||||
'type' => Controls_Manager::SELECT,
|
||||
'default' => 'block',
|
||||
'default' => 'flex',
|
||||
'options' => [
|
||||
'block' => __( 'Yes', 'mage-eventpress' ),
|
||||
'flex' => __( 'Yes', 'mage-eventpress' ),
|
||||
'none' => __( 'No', 'mage-eventpress' )
|
||||
],
|
||||
'separator' => 'none',
|
||||
|
@ -645,9 +645,9 @@ class MEPEventListWidget extends Widget_Base {
|
|||
[
|
||||
'label' => __( 'Show Date?', 'mage-eventpress' ),
|
||||
'type' => Controls_Manager::SELECT,
|
||||
'default' => 'block',
|
||||
'default' => 'flex',
|
||||
'options' => [
|
||||
'block' => __( 'Yes', 'mage-eventpress' ),
|
||||
'flex' => __( 'Yes', 'mage-eventpress' ),
|
||||
'none' => __( 'No', 'mage-eventpress' )
|
||||
],
|
||||
'separator' => 'none',
|
||||
|
|
|
@ -48,6 +48,17 @@ class MEPEventLocationWidget extends Widget_Base {
|
|||
'options' => mep_elementor_get_events('None'),
|
||||
]
|
||||
);
|
||||
$this->add_control(
|
||||
'mep_location_icon',
|
||||
[
|
||||
'label' => __( 'Icon Before', 'text-domain' ),
|
||||
'type' => \Elementor\Controls_Manager::ICONS,
|
||||
'default' => [
|
||||
'value' => 'fas fa-star',
|
||||
'library' => 'solid',
|
||||
],
|
||||
]
|
||||
);
|
||||
$this->add_control(
|
||||
'mep_ele_location_before_text',
|
||||
[
|
||||
|
@ -109,6 +120,59 @@ class MEPEventLocationWidget extends Widget_Base {
|
|||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_location_icon_size',
|
||||
[
|
||||
'label' => __( 'Icon Size', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 20,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-location span i' => 'font-size:{{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_location_icon_color',
|
||||
[
|
||||
'label' => __( 'Icon Color', 'mage-eventpress' ),
|
||||
'type' => Controls_Manager::COLOR,
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-location span i' => 'color: {{VALUE}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_responsive_control(
|
||||
'mep_event_location_icon_margin',
|
||||
[
|
||||
'label' => __( 'Icon Margin', 'elementor' ),
|
||||
'type' => Controls_Manager::DIMENSIONS,
|
||||
'size_units' => [ 'px', 'em', '%', 'rem' ],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-location span i' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
$this->end_controls_section();
|
||||
|
||||
}
|
||||
|
@ -120,12 +184,16 @@ class MEPEventLocationWidget extends Widget_Base {
|
|||
$mep_event_location_style = $settings['mep_event_location_style'];
|
||||
$before_text = $settings['mep_ele_location_before_text'];
|
||||
$after_text = $settings['mep_ele_location_after_text'];
|
||||
$mep_location_icon = sizeof($settings['mep_location_icon']) > 0 ? "<i class='".$settings['mep_location_icon']['value']."'></i>" : '';
|
||||
$event_id = $user_select_event > 0 ? $user_select_event : $post->ID;
|
||||
|
||||
// print_r();
|
||||
|
||||
if (get_post_type($event_id) == 'mep_events') {
|
||||
if(!empty($mep_event_location_style)){
|
||||
?>
|
||||
<div class="mep-default-location mep-elementor-widget-location">
|
||||
<span><?php 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 $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>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -60,21 +60,7 @@ class MEPEventShareBTNtWidget extends Widget_Base {
|
|||
'tab' => Controls_Manager::TAB_CONTENT,
|
||||
]
|
||||
);
|
||||
$this->add_control(
|
||||
'mep_event_share-btn_style',
|
||||
[
|
||||
'label' => __( 'Title Display?', 'mage-eventpress' ),
|
||||
'type' => Controls_Manager::SELECT,
|
||||
'default' => 'block',
|
||||
'options' => [
|
||||
'block' => __( 'Yes', 'mage-eventpress' ),
|
||||
'none' => __( 'No', 'mage-eventpress' ),
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-share-btn span.mep-share-btn-title' => 'display: {{VALUE}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share-btn_bg_color',
|
||||
[
|
||||
|
@ -96,8 +82,124 @@ class MEPEventShareBTNtWidget extends Widget_Base {
|
|||
],
|
||||
]
|
||||
);
|
||||
$this->add_responsive_control(
|
||||
'mep_event_share_btn_icon_border_radius',
|
||||
[
|
||||
'label' => __( 'Border Radius', 'elementor' ),
|
||||
'type' => Controls_Manager::DIMENSIONS,
|
||||
'size_units' => [ 'px', 'em', '%', 'rem' ],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-default-share-btn.mep-elementor-widget-share-btn ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
$this->add_control(
|
||||
'mep_event_share_btn_icon_space',
|
||||
[
|
||||
'label' => __( 'Icon Space', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 5,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-default-share-btn.mep-elementor-widget-share-btn ul li' => 'margin: 0 {{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share_btn_icon_size',
|
||||
[
|
||||
'label' => __( 'Icon Size', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 25,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-share-btn ul.mep-social-share a' => 'font-size: {{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share_btn_width',
|
||||
[
|
||||
'label' => __( 'Width', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 50,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-share-btn ul.mep-social-share a' => 'width: {{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->add_control(
|
||||
'mep_event_share_btn_height',
|
||||
[
|
||||
'label' => __( 'Height', 'plugin-domain' ),
|
||||
'type' => Controls_Manager::SLIDER,
|
||||
'size_units' => [ 'px', '%' ],
|
||||
'range' => [
|
||||
'px' => [
|
||||
'min' => 0,
|
||||
'max' => 1000,
|
||||
'step' => 1,
|
||||
],
|
||||
'%' => [
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
],
|
||||
],
|
||||
'default' => [
|
||||
'unit' => 'px',
|
||||
'size' => 50,
|
||||
],
|
||||
'selectors' => [
|
||||
'{{WRAPPER}} .mep-elementor-widget-share-btn ul.mep-social-share a' => 'height: {{SIZE}}{{UNIT}};',
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$this->end_controls_section();
|
||||
|
||||
|
@ -111,7 +213,31 @@ class MEPEventShareBTNtWidget extends Widget_Base {
|
|||
if (get_post_type($event_id) == 'mep_events') {
|
||||
?>
|
||||
<div class="mep-default-share-btn mep-elementor-widget-share-btn">
|
||||
<?php do_action('mep_event_social_share',$event_id); ?>
|
||||
<?php //do_action('mep_event_social_share',$event_id); ?>
|
||||
|
||||
|
||||
<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> -->
|
||||
<ul class='mep-social-share'>
|
||||
<?php do_action('mep_before_social_share_list',$event_id); ?>
|
||||
<li> <a data-toggle="tooltip" title="" class="facebook" onclick="window.open('https://www.facebook.com/sharer.php?u=<?php echo get_the_permalink($event_id); ?>','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 echo get_the_permalink($event_id); ?>" data-original-title="Share on Facebook"><i class="fab fa-facebook-f"></i></a></li>
|
||||
<li><a data-toggle="tooltip" title="" class="twitter" onclick="window.open('https://twitter.com/share?url=<?php echo get_the_permalink($event_id); ?>&text=<?php echo get_the_title($event_id); ?>','Twitter share','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://twitter.com/share?url=<?php echo get_the_permalink($event_id); ?>&text=<?php echo get_the_title($event_id); ?>" data-original-title="Twittet it"><i class="fab fa-twitter"></i></a></li>
|
||||
<?php //do_action('mep_after_social_share_list',$event_id); ?>
|
||||
<li>
|
||||
<a href="https://api.whatsapp.com/send?text=<?php echo get_the_title($event_id).' '; ?><?php echo get_the_permalink($event_id); ?>" target="_blank">
|
||||
<i class="fab fa-whatsapp"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mailto:?subject=I wanted you to see this site&body=<?php echo get_the_title($event_id).' '; ?><?php echo get_the_permalink($event_id); ?>" title="Share by Email">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
$day = mep_get_event_upcomming_date($event_id,'day');
|
||||
$month = mep_get_event_upcomming_date($event_id,'month');
|
||||
$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');
|
||||
|
@ -11,15 +11,11 @@ $mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text
|
|||
<a href="<?php echo esc_url(get_the_permalink());?>">
|
||||
<div class="mep_bg_thumb" style="background-image:url(<?php mep_get_list_thumbnail_src($event_id); ?>)"></div>
|
||||
</a>
|
||||
<?php //if ($recurring == 'no') { ?>
|
||||
<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>
|
||||
<?php //}else{
|
||||
//do_action('mep_event_list_only_date_show',$event_id);
|
||||
//}
|
||||
|
||||
<?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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
$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');
|
||||
$month = get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'month-name');
|
||||
|
||||
?>
|
||||
<div class='mep-event-list-loop mep_event_list_item mep_event_minimal_list mix <?php echo $org_class.' '.$cat_class; ?>'>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?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');
|
||||
$month = get_mep_datetime(get_post_meta($event_id,'event_upcoming_datetime',true),'month-name');
|
||||
?>
|
||||
<div class="timeline__item">
|
||||
<div class="timeline__content">
|
||||
|
|
|
@ -0,0 +1,117 @@
|
|||
<?php
|
||||
// Template Name: Vanilla
|
||||
|
||||
// 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');
|
||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
|
||||
?>
|
||||
<div class="mep-default-theme mep_flex vanilla_theme">
|
||||
<div class="mep-default-content">
|
||||
<div class="mep-default-feature-image">
|
||||
<?php do_action('mep_event_thumbnail'); ?>
|
||||
</div>
|
||||
<div class="mep-default-title">
|
||||
<?php do_action('mep_event_title'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-date-location">
|
||||
<?php if ($hide_date_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 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'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_date_only', get_the_id()); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
if ($hide_time_details == 'no') { ?>
|
||||
<div class="mep-default-feature-time">
|
||||
<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'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_time_only', get_the_id()); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?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-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'); ?>
|
||||
</h3>
|
||||
<p>
|
||||
<span><?php do_action('mep_event_location_venue'); ?></span>
|
||||
<?php do_action('mep_event_location_street'); ?>
|
||||
<?php do_action('mep_event_location_city'); ?>
|
||||
<?php do_action('mep_event_location_state'); ?>
|
||||
<?php do_action('mep_event_location_country'); ?>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="mep-default-col-wrapper">
|
||||
<?php if ($hide_location_details == 'no') { ?>
|
||||
<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'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_map', get_the_id()); ?>
|
||||
</div>
|
||||
<?php if ($hide_calendar_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action('mep_event_add_calender', get_the_id()); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="mep-default-col-2">
|
||||
<?php if ($hide_org_by_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($hide_schedule_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-events-schedule">
|
||||
<?php do_action('mep_event_date_default_theme', get_the_id()); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($hide_total_seat_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-price-seat">
|
||||
<div class="df-seat"><?php do_action('mep_event_seat'); ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-cart-sec">
|
||||
<?php do_action('mep_add_to_cart', get_the_id()) ?>
|
||||
</div>
|
||||
<?php if ($hide_share_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-social">
|
||||
<?php do_action('mep_event_social_share'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="mep-default-feature-faq-sec">
|
||||
<?php do_action('mep_event_faq', get_the_id()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.4.8
|
||||
* Version: 3.4.9
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue