file, style & function updated
This commit is contained in:
parent
54f6dabaa6
commit
443cf36306
|
@ -488,4 +488,15 @@ div#mp_event_all_info_in_tab .handle-actions.hide-if-no-js {
|
|||
display: none;
|
||||
}
|
||||
div.sell_expire_date {display: -webkit-flex;display: flex;}
|
||||
div.sell_expire_date > * {-webkit-flex: 1;flex: 1;font-size: 10px !important;}
|
||||
div.sell_expire_date > * {-webkit-flex: 1;flex: 1;font-size: 10px !important;}
|
||||
|
||||
table.wp-list-table.widefat.striped.posts.mep-licensing-table thead th, table.wp-list-table.widefat.striped.posts.mep-licensing-table tbody td {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
a#mep_settings_licensing-tab {
|
||||
display: none;
|
||||
}
|
|
@ -1838,9 +1838,9 @@ div > .ppof-metabox {
|
|||
.ppof-metabox .form-wrapper.full-width,
|
||||
.form-table,
|
||||
.field-repeatable-wrapper .field-list{margin: 0;}
|
||||
.form-table th,
|
||||
.form-table td,
|
||||
#postbox-container-2 p.description{padding: 5px;line-height: 1;}
|
||||
|
||||
|
||||
.ppof-metabox .form-table th, .ppof-metabox .form-table td, .ppof-metabox #postbox-container-2 p.description{padding: 5px;line-height: 1;}
|
||||
/* .form-table pre{display: none;} */
|
||||
.ppof-button,
|
||||
#create_seat_plan,
|
||||
|
|
346
css/style.css
346
css/style.css
|
@ -1036,4 +1036,348 @@ div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px sol
|
|||
div.four_column{width:100%;margin: 0 0 15px 0;}
|
||||
div.column_style{min-width: calc(100% - 14px) !important;}
|
||||
}
|
||||
.mep-default-sidrbar-meta i{margin: 0 7px 0 0;}
|
||||
.mep-default-sidrbar-meta i{margin: 0 7px 0 0;}
|
||||
|
||||
/****************************************
|
||||
CSS by Ariful
|
||||
****************************************/
|
||||
.mep-multidate-ribbon{
|
||||
line-height: 30px;
|
||||
}
|
||||
.mep_list_thumb img{
|
||||
border-radius: 0;
|
||||
}
|
||||
.mep_list_thumb{
|
||||
overflow: hidden;
|
||||
}
|
||||
.mep-multidate-ribbon{
|
||||
transform: rotate(45deg);
|
||||
margin-top: 15px;
|
||||
margin-right: -50px;
|
||||
word-break: break-word;
|
||||
width: 173px;
|
||||
line-height: 15px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.mep-multidate-ribbon span{
|
||||
width: 100px;
|
||||
}
|
||||
.mep-eventtype-ribbon{
|
||||
line-height: 30px;
|
||||
}
|
||||
.mep-ev-start-date{
|
||||
font-size: 15px;
|
||||
}
|
||||
.mep-list-footer ul li i{
|
||||
color: #ff5959;
|
||||
background: transparent !important;
|
||||
font-size: 15px
|
||||
}
|
||||
ul.mp_event_more_date_list li:hover, ul.mp_event_more_date_list li:hover i{
|
||||
color: #fff;
|
||||
}
|
||||
ul.mp_event_more_date_list li{
|
||||
border-bottom-color: #d3d3d3 ;
|
||||
}
|
||||
.mep_list_event_details p {
|
||||
white-space: inherit;
|
||||
font-weight: 400;
|
||||
}
|
||||
h3.mep_list_date{
|
||||
font-style: normal;
|
||||
}
|
||||
.mep-event-excerpt{
|
||||
margin-top: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.mep-list-header{
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.mep-list-footer ul li h5, .mep-list-footer ul li h6{
|
||||
font-weight: 400;
|
||||
}
|
||||
.evl-cc {
|
||||
margin-left: 0;
|
||||
}
|
||||
.mep-ev-start-date{
|
||||
border-radius: 0;
|
||||
}
|
||||
.mep-month{
|
||||
background: #c32020;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.mep_more_date_btn{
|
||||
margin-top: 20px;
|
||||
width: max-content;
|
||||
border: 1px solid #ff5959;
|
||||
background: transparent !important;
|
||||
color: #ff5959;
|
||||
font-weight: 400;
|
||||
border-radius: 20px;
|
||||
line-height: 35px;
|
||||
margin-left: 5px;
|
||||
padding: 0 15px;
|
||||
overflow: hidden;
|
||||
-webkit-transform: perspective(1px) translateZ(0);
|
||||
transform: perspective(1px) translateZ(0);
|
||||
position: relative;
|
||||
-webkit-transition-property: color;
|
||||
transition-property: color;
|
||||
-webkit-transition-duration: 0.3s;
|
||||
transition-duration: 0.3s;
|
||||
}
|
||||
.mep_more_date_btn:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: #ff5959;
|
||||
-webkit-transform: scaleX(0);
|
||||
transform: scaleX(0);
|
||||
-webkit-transform-origin: 0 50%;
|
||||
transform-origin: 0 50%;
|
||||
-webkit-transition-property: transform;
|
||||
transition-property: transform;
|
||||
-webkit-transition-duration: 0.3s;
|
||||
transition-duration: 0.3s;
|
||||
-webkit-transition-timing-function: ease-out;
|
||||
transition-timing-function: ease-out;
|
||||
border-radius: 20px;
|
||||
border: 2px solid #ff5959;
|
||||
}
|
||||
.mep_more_date_btn:hover, .mep_more_date_btn:focus, .mep_more_date_btn:active {
|
||||
color: #ffffff;
|
||||
}
|
||||
.mep_more_date_btn:hover:before, .mep_more_date_btn:focus:before, .mep_more_date_btn:active:before {
|
||||
-webkit-transform: scaleX(1);
|
||||
transform: scaleX(1);
|
||||
}
|
||||
.mep_list_thumb{
|
||||
overflow: hidden;
|
||||
}
|
||||
.mep_bg_thumb{
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
height: 250px;
|
||||
position: relative;
|
||||
-webkit-transition: all 0.5s ease-in-out;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
.mep_bg_thumb:hover{
|
||||
transform: scale(1.1);
|
||||
-webkit-transition: all 0.5s ease-in-out;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
.mep-list-footer ul li{
|
||||
-webkit-align-items: baseline;
|
||||
align-items: baseline;
|
||||
}
|
||||
div.df-dtl h3 {
|
||||
color: #444;
|
||||
font-weight: 600;
|
||||
}
|
||||
div.df-dtl p {
|
||||
font-weight: 400;
|
||||
color: #878787;
|
||||
}
|
||||
|
||||
#mep_everyday_datepicker {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: .375rem .75rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid #ced4da !important;
|
||||
border-radius: .25rem;
|
||||
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
||||
}
|
||||
.mep_re_datelist_label {
|
||||
width: auto !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mep_everyday_date_secs ul li{
|
||||
min-width: auto !important;
|
||||
}
|
||||
.mep_everyday_date_secs {
|
||||
background: #ff5959 !important;
|
||||
}
|
||||
h3.ex-sec-title{
|
||||
color: #ffffff;
|
||||
}
|
||||
.tkt-pric,.tkt-qty{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.user-info-sec h5 label span{
|
||||
line-height: 30px;
|
||||
}
|
||||
.user-info-sec h5 label input{
|
||||
float: left;
|
||||
}
|
||||
.mep-user-info-sec input,#mep-event-review-form--title{
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: .375rem .75rem;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
color: #495057;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 1px solid #ced4da !important;
|
||||
border-radius: .25rem;
|
||||
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
||||
}
|
||||
.user-info-sec h5{
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.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: #ff5959 !important;
|
||||
border: 1px solid #ff5959 !important;
|
||||
line-height: 35px !important;
|
||||
font-weight: 500;
|
||||
height: 35px;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.mep-event-review-list-wrapper{
|
||||
padding: 0;
|
||||
margin: 20px;
|
||||
}
|
||||
.mep-event-review-list-wrapper #give-review-btn{
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
border-radius: 50px;
|
||||
line-height: 35px;
|
||||
height: 35px;
|
||||
padding: 0 15px 0 15px;
|
||||
cursor: pointer;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
.mep-event-review-form .label {
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.mep-event-review-form input[type="submit"], .mep-event-review-form button[type="submit"]{
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
border-radius: 50px;
|
||||
line-height: 35px;
|
||||
height: 35px;
|
||||
padding: 0 15px 0 15px;
|
||||
cursor: pointer;
|
||||
background: #ff5959;
|
||||
}
|
||||
div.three_column{
|
||||
-webkit-justify-content: inherit;
|
||||
justify-content: inherit;
|
||||
}
|
||||
.mep-events-wrapper strong {
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
}
|
||||
.woocommerce-Price-amount{
|
||||
font-weight: 600;
|
||||
}
|
||||
#mep_add_calender_button.mep-add-calender {
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
font-size: 15px;
|
||||
width: max-content !important;
|
||||
padding: 0 15px 0 15px !important;
|
||||
margin: auto;
|
||||
border-radius: 50px !important;
|
||||
}
|
||||
.mep_single_date_btn{
|
||||
height: 35px;
|
||||
line-height: 35px !important;
|
||||
font-size: 15px;
|
||||
width: max-content;
|
||||
padding: 0 15px 0 15px !important;
|
||||
margin: auto !important;
|
||||
border-radius: 50px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mep-social-share li:last-child{
|
||||
margin-right: 0;
|
||||
}
|
||||
#mep_add_calender_links li{
|
||||
line-height: 35px;
|
||||
height: 35px;
|
||||
padding: 0;
|
||||
}
|
||||
#mep_add_calender_links li a{
|
||||
padding: 0 !important;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.mep-default-sidrbar-meta .fa-list-alt{
|
||||
background: transparent;
|
||||
color: #ff5959;
|
||||
font-size: 18px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
.mep-default-sidrbar-meta p, .mep-default-sidrbar-meta p a,.mep-default-sidrbar-events-schedule h3{
|
||||
font-weight: 600;
|
||||
color: #444444;
|
||||
font-size: 16px;
|
||||
}
|
||||
.mep-default-sidrbar-meta p a{
|
||||
color: #ff5959;
|
||||
}
|
||||
|
||||
.mep-default-feature-image .mep-event-thumbnail img{
|
||||
border-radius: 0;
|
||||
}
|
||||
span.mep_waitlist_label.mep-tem3-title-sec{
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.mep_event_minimal_list .mep_more_date_btn,
|
||||
.mep_event_native_list .mep_more_date_btn{
|
||||
width: max-content;
|
||||
padding: 0 15px 0 15px !important;
|
||||
}
|
||||
h3.mep_list_date{
|
||||
line-height: 25px;
|
||||
}
|
||||
h3.mep_list_date i{
|
||||
color: #ff5959;
|
||||
}
|
||||
.mep_event_native_list .mep_list_thumb img,
|
||||
.owl-carousel .owl-item .mep_event_native_list .mep_list_thumb img{
|
||||
border-radius: inherit;
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
.timeline .mep_more_date_btn{
|
||||
margin-top: 0;
|
||||
}
|
||||
.mep_event_list .owl-item .mep_more_date_btn{
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.mep-default-theme.spring_field .mep-default-sidrbar-calender-btn{
|
||||
margin: auto;
|
||||
display: inline-block;
|
||||
}
|
||||
div.mep-default-feature-content p{
|
||||
margin-top: 0px !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
.mep-event-meta{
|
||||
font-size: 16px;
|
||||
}
|
|
@ -936,3 +936,32 @@ function mep_get_option($option, $section, $default = '')
|
|||
|
||||
return $default;
|
||||
}
|
||||
|
||||
|
||||
|
||||
add_action('wsa_form_bottom_mep_settings_licensing','mep_licensing_page',5);
|
||||
function mep_licensing_page($form){
|
||||
?>
|
||||
<div class='mep-licensing-page'>
|
||||
<h3>Woocommerce Event Manager Licensing</h3>
|
||||
<p>Thanks you for using our Woocommerce Event Manager plugin. This plugin is free and no license is required. We have some Additional addon to enhace feature of this plugin functionality. If you have any addon you need to enter a valid license for that plugin below. </p>
|
||||
|
||||
<div class="mep_licensae_info"></div>
|
||||
<table class='wp-list-table widefat striped posts mep-licensing-table'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Plugin Name</th>
|
||||
<th width=10%>Order No</th>
|
||||
<th width=15%>Expire on</th>
|
||||
<th width=30%>License Key</th>
|
||||
<th width=10%>Status</th>
|
||||
<th width=10%>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php do_action('mep_license_page_addon_list'); ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
}
|
|
@ -530,7 +530,7 @@ class MAGE_Setting_API {
|
|||
settings_fields( $form['id'] );
|
||||
do_settings_sections( $form['id'] );
|
||||
do_action( 'wsa_form_bottom_' . $form['id'], $form );
|
||||
if ( isset( $this->settings_fields[ $form['id'] ] ) ):
|
||||
if ( isset( $this->settings_fields[ $form['id'] ] ) ):
|
||||
?>
|
||||
<div style="padding-left: 10px">
|
||||
<?php submit_button(); ?>
|
||||
|
|
|
@ -48,7 +48,7 @@ function mep_cpt()
|
|||
'has_archive' => true,
|
||||
'labels' => $labels,
|
||||
'menu_icon' => $event_icon,
|
||||
'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
|
||||
'supports' => apply_filters('mep_events_post_type_support',array('title', 'editor', 'thumbnail', 'excerpt')),
|
||||
'rewrite' => array('slug' => $event_slug),
|
||||
'show_in_rest' => true
|
||||
|
||||
|
|
|
@ -53,15 +53,7 @@ class MP_Event_All_Info_In_One
|
|||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_rich_text', $post_id); ?>
|
||||
<?php do_action('mp_event_all_in_tab_menu'); ?>
|
||||
<?php
|
||||
if (class_exists('MP_ESP_Admin')) {
|
||||
?>
|
||||
<li data-target-tabs="#mp_esp_seat_plan_setting">
|
||||
<span class="dashicons dashicons-admin-settings"></span> <?php _e('Seat Plan Settings', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<?php do_action('mep_admin_event_details_end_of_tab_name', $post_id); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -117,13 +109,6 @@ class MP_Event_All_Info_In_One
|
|||
<?php } ?>
|
||||
<?php do_action('mp_event_all_in_tab_item', $post_id); ?>
|
||||
<?php
|
||||
if (class_exists('MP_ESP_Admin')) {
|
||||
?>
|
||||
<div class="mp_tab_item" data-tab-item="#mp_esp_seat_plan_setting">
|
||||
<?php do_action('mp_event_all_in_tab_item_seat_plan', $post_id); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
do_action('mep_admin_event_details_end_of_tab_details', $post_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -425,6 +410,7 @@ class MP_Event_All_Info_In_One
|
|||
<tr>
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Type Name', 'mage-eventpress'); ?>"><?php _e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Price', 'mage-eventpress'); ?>"><?php _e('Price', 'mage-eventpress'); ?></th>
|
||||
<?php do_action('mep_pricing_table_head_after_price_col'); ?>
|
||||
<th style="min-width: 80px;" title="<?php _e('Available Qty', 'mage-eventpress'); ?>"><?php _e('Available', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Default Qty', 'mage-eventpress'); ?>"><?php _e('Default', 'mage-eventpress'); ?></th>
|
||||
<?php echo $rsvqty = '<th style="min-width: 80px;" title="' . esc_html__("Reserve Qty", "mage-eventpress") . '">' . esc_html__("Reserve", "mage-eventpress") . '</th>';
|
||||
|
@ -454,7 +440,7 @@ class MP_Event_All_Info_In_One
|
|||
<input type="number" size="4" pattern="[0-9]*" step="0.001" class="mp_formControl" name="option_price_t[]" placeholder="Ex: 10"
|
||||
value="<?php if (array_key_exists('option_price_t', $field) && $field['option_price_t'] != '') {echo esc_attr($field['option_price_t']);} else {echo '';} ?>" />
|
||||
</td>
|
||||
|
||||
<?php do_action('mep_pricing_table_data_after_price_col',$field,$post_id); ?>
|
||||
<td>
|
||||
<input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" name="option_qty_t[]" placeholder="Ex: 500"
|
||||
value="<?php if (isset($field['option_qty_t'])) {echo $field['option_qty_t'];} else {echo 0;} ?>" />
|
||||
|
@ -513,6 +499,7 @@ class MP_Event_All_Info_In_One
|
|||
<tr class="empty-row-t screen-reader-text">
|
||||
<td><input type="text" class="mp_formControl" name="option_name_t[]" placeholder="Ex: Adult" /></td>
|
||||
<td><input type="number" size="4" pattern="[0-9]*" class="mp_formControl" step="0.001" name="option_price_t[]" placeholder="Ex: 10" value="" /></td>
|
||||
<?php do_action('mep_pricing_table_empty_after_price_col'); ?>
|
||||
<td><input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" name="option_qty_t[]" placeholder="Ex: 15" value="" /></td>
|
||||
<td><input type="number" size="2" pattern="[0-9]*" class="mp_formControl" name="option_default_qty_t[]" placeholder="Ex: 1" value="" /></td>
|
||||
<?php echo $option_rsv_t = '<td><input type="number" class="mp_formControl" name="option_rsv_t[]" placeholder="Ex: 5" value=""/></td>' ?>
|
||||
|
|
|
@ -40,6 +40,15 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
|
|||
// print_r($ticket_type_arr);
|
||||
// die();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Now Store the datas into Cart Session
|
||||
*/
|
||||
|
@ -64,8 +73,8 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
|
|||
do_action('mep_event_cart_data_reg');
|
||||
}
|
||||
$cart_item_data['event_id'] = $product_id;
|
||||
|
||||
return $cart_item_data;
|
||||
|
||||
return apply_filters('mep_event_cart_item_data',$cart_item_data,$product_id,$total_price,$user,$ticket_type_arr,$event_extra);
|
||||
}
|
||||
add_filter('woocommerce_add_cart_item_data', 'mep_add_custom_fields_text_to_cart_item', 90, 3);
|
||||
|
||||
|
@ -125,7 +134,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if($hide_date_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'].' '.$start_time,'date-time-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'].' '.$start_time,'date-time-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -143,7 +152,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if($hide_date_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-time-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-time-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +170,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if($hide_date_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -186,14 +195,14 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
|
||||
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($cart_item['event_cart_display_date'],'date-time-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(" Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($cart_item['event_cart_display_date'],'date-time-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
if($hide_location_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Location", 'mage-eventpress'); ?>: <?php echo $cart_item['event_cart_location']; ?></li>
|
||||
<li><?php echo $event_label; _e(" Location", 'mage-eventpress'); ?>: <?php echo $cart_item['event_cart_location']; ?></li>
|
||||
<?php
|
||||
}
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
|
||||
|
|
|
@ -3,7 +3,7 @@ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
|||
|
||||
appsero_init_tracker_mage_eventpress();
|
||||
|
||||
|
||||
define('MEP_STORE_URL', 'https://mage-people.com/');
|
||||
|
||||
// Language Load
|
||||
add_action( 'init', 'mep_language_load');
|
||||
|
@ -457,33 +457,31 @@ if (!function_exists('mep_attendee_extra_service_create')) {
|
|||
$order_status = $order->get_status();
|
||||
if(is_array($_event_extra_service) && sizeof($_event_extra_service) > 0){
|
||||
|
||||
foreach($_event_extra_service as $extra_serive){
|
||||
if($extra_serive['service_name']){
|
||||
$uname = 'Extra Service for '.get_the_title($event_id).' Order #'.$order_id;
|
||||
$new_post = array(
|
||||
'post_title' => $uname,
|
||||
'post_content' => '',
|
||||
'post_category' => array(),
|
||||
'tags_input' => array(),
|
||||
'post_status' => 'publish',
|
||||
'post_type' => 'mep_extra_service'
|
||||
);
|
||||
foreach($_event_extra_service as $extra_serive){
|
||||
if($extra_serive['service_name']){
|
||||
$uname = 'Extra Service for '.get_the_title($event_id).' Order #'.$order_id;
|
||||
$new_post = array(
|
||||
'post_title' => $uname,
|
||||
'post_content' => '',
|
||||
'post_category' => array(),
|
||||
'tags_input' => array(),
|
||||
'post_status' => 'publish',
|
||||
'post_type' => 'mep_extra_service'
|
||||
);
|
||||
|
||||
$pid = wp_insert_post($new_post);
|
||||
$pid = wp_insert_post($new_post);
|
||||
|
||||
update_post_meta( $pid, 'ea_extra_service_name', $extra_serive['service_name'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_qty', $extra_serive['service_qty'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_unit_price', $extra_serive['service_price'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_total_price', $extra_serive['service_qty'] * $extra_serive['service_price'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_event', $event_id );
|
||||
update_post_meta( $pid, 'ea_extra_service_order', $order_id );
|
||||
update_post_meta( $pid, 'ea_extra_service_order_status', $order_status );
|
||||
update_post_meta( $pid, 'ea_extra_service_event_date', $extra_serive['event_date'] );
|
||||
}
|
||||
update_post_meta( $pid, 'ea_extra_service_name', $extra_serive['service_name'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_qty', $extra_serive['service_qty'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_unit_price', $extra_serive['service_price'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_total_price', $extra_serive['service_qty'] * $extra_serive['service_price'] );
|
||||
update_post_meta( $pid, 'ea_extra_service_event', $event_id );
|
||||
update_post_meta( $pid, 'ea_extra_service_order', $order_id );
|
||||
update_post_meta( $pid, 'ea_extra_service_order_status', $order_status );
|
||||
update_post_meta( $pid, 'ea_extra_service_event_date', $extra_serive['event_date'] );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -591,7 +589,7 @@ function mep_check_attendee_exist_before_create($order_id,$event_id){
|
|||
|
||||
if($check_before_create < count($user_info_arr)){
|
||||
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}else{
|
||||
|
@ -1004,10 +1002,10 @@ 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>";
|
||||
|
||||
echo "<span class='mep_event_date'>" . get_mep_datetime(get_post_meta($post_id,'event_start_datetime',true),'date-time-text')."</span>";
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1970,51 +1968,43 @@ if (!function_exists('mep_wc_price')) {
|
|||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_get_event_total_seat')) {
|
||||
if (!function_exists('mep_get_event_total_seat')) {
|
||||
function mep_get_event_total_seat($event_id,$m=null,$t=null){
|
||||
|
||||
$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);
|
||||
$event_date = date('Y-m-d H:i',strtotime(mep_get_event_upcoming_date($event_id)));
|
||||
ob_start();
|
||||
if($t=='multi'){
|
||||
$total = (int) $total_seat * (int) $m;
|
||||
$sold = $total - ($total_sold + $total_resv);
|
||||
$available = $total - $sold;;
|
||||
$total = (int) $total_seat * (int) $m;
|
||||
$sold = $total - ($total_sold + $total_resv);
|
||||
$available = $total - $sold;
|
||||
?>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;">
|
||||
<?php
|
||||
$seat_count_var = $total.' - '.$available.' = '.$sold;
|
||||
echo apply_filters('mep_event_seat_status_text',$seat_count_var,$total,$available,$sold);
|
||||
?>
|
||||
|
||||
$seat_count_var = apply_filters( 'mep_event_total_seat_counts',$total,$event_id).' - '.apply_filters( 'mep_event_total_seat_sold',$available,$event_id,$event_date).' = '.apply_filters( 'mep_event_total_seat_left',$sold,$event_id,'',$event_date);
|
||||
echo apply_filters('mep_event_seat_status_text',$seat_count_var,$total,$available,$sold);
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;">
|
||||
|
||||
<?php
|
||||
$sold = ($total_seat - $total_left);
|
||||
$seat_count_var = $total_seat.' - '.($total_seat - $total_left).' = '.$total_left;
|
||||
|
||||
echo apply_filters('mep_event_seat_status_text',$seat_count_var,$total_seat,$sold,$total_left);
|
||||
|
||||
?>
|
||||
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;">
|
||||
<?php
|
||||
$sold = ($total_seat - $total_left);
|
||||
$seat_count_var = apply_filters( 'mep_event_total_seat_counts',$total_seat,$event_id).' - '.apply_filters( 'mep_event_total_seat_sold',($total_seat - $total_left),$event_id,$event_date).' = '.apply_filters( 'mep_event_total_seat_left',$total_left,$event_id,'',$event_date);
|
||||
echo apply_filters('mep_event_seat_status_text',$seat_count_var,$total_seat,$sold,$total_left);
|
||||
?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
|
||||
return ob_get_clean();
|
||||
|
||||
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_reset_event_booking')) {
|
||||
if (!function_exists('mep_reset_event_booking')) {
|
||||
function mep_reset_event_booking($event_id){
|
||||
add_filter( 'wpseo_public_post_statuses', 'mepfix_sitemap_exclude_post_type', 5 );
|
||||
$mep_event_ticket_type = get_post_meta($event_id, 'mep_event_ticket_type', true);
|
||||
|
@ -2073,7 +2063,9 @@ if (!function_exists('mep_reset_event_booking')) {
|
|||
|
||||
|
||||
if($recurring == 'yes'){
|
||||
$event_more_dates = is_array($more_date) && sizeof($more_date) > 0 ?count($more_date)+1 : '';
|
||||
$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 : '';
|
||||
|
||||
echo mep_get_event_total_seat($post_id,$event_more_dates,'multi');
|
||||
}else{
|
||||
echo mep_get_event_total_seat($post_id);
|
||||
|
@ -2103,9 +2095,6 @@ if (!function_exists('mep_get_term_as_class')) {
|
|||
if (!function_exists('mep_ticket_type_sold')) {
|
||||
function mep_ticket_type_sold($event_id,$type='',$date=''){
|
||||
|
||||
|
||||
// echo $date;
|
||||
|
||||
$type_filter = !empty($type) ? array(
|
||||
'key' => 'ea_ticket_type',
|
||||
'value' => $type,
|
||||
|
@ -2141,23 +2130,22 @@ if (!function_exists('mep_ticket_type_sold')) {
|
|||
'compare' => '='
|
||||
),
|
||||
$type_filter,
|
||||
$date_filter
|
||||
apply_filters('mep_sold_meta_query_and_attribute', $date_filter)
|
||||
),array(
|
||||
'relation' => 'OR',
|
||||
$processing_status_filter,
|
||||
$completed_status_filter
|
||||
apply_filters('mep_sold_meta_query_or_attribute', $completed_status_filter)
|
||||
)
|
||||
)
|
||||
);
|
||||
$loop = new WP_Query($args);
|
||||
|
||||
|
||||
|
||||
// echo $loop->post_count;
|
||||
return $loop->post_count;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_extra_service_sold')) {
|
||||
function mep_extra_service_sold($event_id,$type,$date){
|
||||
//echo $date;
|
||||
|
@ -2202,12 +2190,9 @@ if (!function_exists('mep_extra_service_sold')) {
|
|||
$loop = new WP_Query($args);
|
||||
$count = 0;
|
||||
foreach($loop->posts as $sold_service){
|
||||
$pid = $sold_service->ID;
|
||||
$pid = $sold_service->ID;
|
||||
$count = $count + get_post_meta($pid,'ea_extra_service_qty',true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
return $count;
|
||||
}
|
||||
}
|
||||
|
@ -2219,8 +2204,7 @@ if (!function_exists('mep_ticket_sold')) {
|
|||
$get_ticket_type_list = metadata_exists( 'post', $event_id, 'mep_event_ticket_type' ) ? get_post_meta($event_id,'mep_event_ticket_type',true) : array();
|
||||
|
||||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
|
||||
|
||||
|
||||
$sold = 0;
|
||||
if(is_array($get_ticket_type_list) && sizeof($get_ticket_type_list) > 0){
|
||||
foreach($get_ticket_type_list as $ticket_type){
|
||||
|
@ -2394,17 +2378,6 @@ if (!function_exists('mep_on_post_publish')) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action('save_post','mep_wc_link_product_on_save',99,1);
|
||||
if (!function_exists('mep_wc_link_product_on_save')) {
|
||||
function mep_wc_link_product_on_save($post_id){
|
||||
|
@ -2460,8 +2433,7 @@ if (!function_exists('mep_on_post_publish')) {
|
|||
// re-hook this function
|
||||
add_action('save_post', 'mep_wc_link_product_on_save');
|
||||
// Update the post into the database
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2475,17 +2447,27 @@ if (!function_exists('mep_on_post_publish')) {
|
|||
$taxonomy = 'product_visibility';
|
||||
$q_vars = &$query->query_vars;
|
||||
if ( $pagenow == 'edit.php' && isset($q_vars['post_type']) && $q_vars['post_type'] == 'product') {
|
||||
$tax_query = array([
|
||||
$tax_query = array(
|
||||
[
|
||||
'taxonomy' => 'product_visibility',
|
||||
'field' => 'slug',
|
||||
'terms' => 'exclude-from-catalog',
|
||||
'operator' => 'NOT IN',
|
||||
]);
|
||||
$query->set( 'tax_query', $tax_query );
|
||||
],
|
||||
[
|
||||
'taxonomy' => 'product_cat',
|
||||
'field' => 'slug',
|
||||
'terms' => 'uncategorized ',
|
||||
'operator' => 'NOT IN',
|
||||
]
|
||||
|
||||
);
|
||||
$query->set( 'tax_query', $tax_query );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
add_action('wp','mep_hide_hidden_product_from_single');
|
||||
if (!function_exists('mep_hide_hidden_product_from_single')) {
|
||||
|
@ -2871,6 +2853,10 @@ function mep_custom_css_settings_reg($default_sec){
|
|||
array(
|
||||
'id' => 'mep_settings_custom_css',
|
||||
'title' => __( 'Custom CSS', 'mage-eventpress' )
|
||||
),
|
||||
array(
|
||||
'id' => 'mep_settings_licensing',
|
||||
'title' => __( 'License', 'mage-eventpress' )
|
||||
)
|
||||
);
|
||||
return array_merge($default_sec,$sections);
|
||||
|
@ -2911,9 +2897,9 @@ function mep_apply_custom_css(){
|
|||
|
||||
function mep_get_ticket_type_price_by_name($name,$event_id){
|
||||
$ticket_type_arr = get_post_meta($event_id,'mep_event_ticket_type',true) ? get_post_meta($event_id,'mep_event_ticket_type',true) : [];
|
||||
$p = '';
|
||||
foreach($ticket_type_arr as $price){
|
||||
$TicketName = str_replace("'", "", $price['option_name_t']);
|
||||
|
||||
if($TicketName === $name){
|
||||
$p = $price['option_price_t'];
|
||||
}
|
||||
|
@ -3062,7 +3048,7 @@ return $form_id;
|
|||
|
||||
|
||||
function mep_get_reg_label($event_id,$name=''){
|
||||
|
||||
// echo $name;
|
||||
if($name == 'Name'){
|
||||
return get_post_meta($event_id,'mep_name_label',true) ? get_post_meta($event_id,'mep_name_label',true) : __('Name', 'mage-eventpress');
|
||||
}elseif($name == 'Email'){
|
||||
|
@ -3082,6 +3068,7 @@ function mep_get_reg_label($event_id,$name=''){
|
|||
}elseif($name == 'Website'){
|
||||
return get_post_meta($event_id,'mep_website_label',true) ? get_post_meta($event_id,'mep_website_label',true) : __('Website', 'mage-eventpress');
|
||||
}elseif($name == 'Vegetarian'){
|
||||
|
||||
return get_post_meta($event_id,'mep_veg_label',true) ? get_post_meta($event_id,'mep_veg_label',true) : __('Vegetarian', 'mage-eventpress');
|
||||
}else{
|
||||
return null;
|
||||
|
@ -3098,7 +3085,7 @@ $custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
|||
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
|
||||
$time_status = get_post_meta($event_id, 'mep_disable_ticket_time', true) ? get_post_meta($event_id, 'mep_disable_ticket_time', true) : 'no';
|
||||
|
||||
|
||||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||
|
||||
|
||||
foreach ($user_info as $userinf) {
|
||||
|
@ -3123,7 +3110,7 @@ $custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
|||
echo $userinf['user_designation']; ?></li> <?php } ?>
|
||||
<?php if ($userinf['user_website']) { ?> <li><?php echo mep_get_reg_label($event_id,'Website').": ";
|
||||
echo $userinf['user_website']; ?></li> <?php } ?>
|
||||
<?php if ($userinf['user_vegetarian']) { ?> <li><?php echo mep_get_reg_label($event_id,'Vegeratian').": ";
|
||||
<?php if ($userinf['user_vegetarian']) { ?> <li><?php echo mep_get_reg_label($event_id,'Vegetarian').": ";
|
||||
echo $userinf['user_vegetarian']; ?></li> <?php } ?>
|
||||
<?php if(sizeof($custom_forms_id) > 0){
|
||||
foreach($custom_forms_id as $key => $value){
|
||||
|
@ -3135,9 +3122,9 @@ $custom_forms_id = mep_get_user_custom_field_ids($event_id);
|
|||
<?php if ($userinf['user_ticket_type']) { ?> <li><?php _e('Ticket Type', 'mage-eventpress'); echo ": ".$userinf['user_ticket_type']; ?></li> <?php } ?>
|
||||
|
||||
<?php if($recurring == 'everyday' && $time_status == 'no'){ ?>
|
||||
<li><?php _e('Event Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(' Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-text'); ?></li>
|
||||
<?php }else{ ?>
|
||||
<li><?php _e('Event Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-time-text'); ?></li>
|
||||
<li><?php echo $event_label; _e(' Date', 'mage-eventpress'); echo ": "; ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-time-text'); ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
|
@ -3426,20 +3413,15 @@ if (!function_exists('mep_get_events_custom_meta_for_api')) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_elementor_get_tax_term( $tax ) {
|
||||
$terms = get_terms( array(
|
||||
'taxonomy' => $tax,
|
||||
'hide_empty' => false,
|
||||
) );
|
||||
|
||||
$list = array( '0' => __( 'Show All', '' ) );
|
||||
|
||||
) );
|
||||
$list = array( '0' => __( 'Show All', '' ) );
|
||||
foreach ( $terms as $_term ) {
|
||||
$list[ $_term->term_id ] = $_term->name;
|
||||
}
|
||||
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
|
@ -3895,4 +3877,233 @@ function mep_enable_big_selects_for_queries() {
|
|||
global $wpdb;
|
||||
$wpdb->query( 'SET SQL_BIG_SELECTS=1' );
|
||||
}
|
||||
add_action( 'init', 'mep_enable_big_selects_for_queries' );
|
||||
add_action( 'init', 'mep_enable_big_selects_for_queries' );
|
||||
|
||||
function mep_get_event_upcoming_date($event_id){
|
||||
$upcoming_date = get_post_meta($event_id,'event_start_datetime',true) ? get_post_meta($event_id,'event_start_datetime',true) : '';
|
||||
return apply_filters('mep_event_upcoming_date',$upcoming_date,$event_id);
|
||||
}
|
||||
|
||||
|
||||
add_action('mep_event_single_page_after_header','mep_update_event_upcoming_date');
|
||||
function mep_update_event_upcoming_date($event_id){
|
||||
$current_upcoming_date = get_post_meta($event_id,'event_upcoming_datetime',true) ? get_post_meta($event_id,'event_upcoming_datetime',true) : 0;
|
||||
$event_upcoming_date = mep_get_event_upcoming_date($event_id);
|
||||
|
||||
if($current_upcoming_date == 0 || $current_upcoming_date != $event_upcoming_date){
|
||||
update_post_meta($event_id, 'event_upcoming_datetime', $event_upcoming_date);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function mep_license_error_code($license_data,$item_name='this Plugin'){
|
||||
|
||||
switch ($license_data->error) {
|
||||
case 'expired':
|
||||
$message = sprintf(
|
||||
__('Your license key expired on %s.'),
|
||||
date_i18n(get_option('date_format'), strtotime($license_data->expires, current_time('timestamp')))
|
||||
);
|
||||
break;
|
||||
|
||||
case 'revoked':
|
||||
$message = __('Your license key has been disabled.');
|
||||
break;
|
||||
|
||||
case 'missing':
|
||||
$message = __('Invalid license.');
|
||||
break;
|
||||
|
||||
case 'invalid':
|
||||
case 'site_inactive':
|
||||
$message = __('Your license is not active for this URL.');
|
||||
break;
|
||||
|
||||
case 'item_name_mismatch':
|
||||
|
||||
$message = sprintf(__('This appears to be an invalid license key for %s.'), $item_name);
|
||||
break;
|
||||
|
||||
case 'no_activations_left':
|
||||
$message = __('Your license key has reached its activation limit.');
|
||||
break;
|
||||
default:
|
||||
|
||||
$message = __('An error occurred, please try again.');
|
||||
break;
|
||||
}
|
||||
return $message;
|
||||
}
|
||||
|
||||
|
||||
add_action('wp_ajax_mep_wl_ajax_license_activate', 'mep_wl_ajax_license_activate');
|
||||
add_action('wp_ajax_nopriv_mep_wl_ajax_license_activate', 'mep_wl_ajax_license_activate');
|
||||
function mep_wl_ajax_license_activate(){
|
||||
|
||||
$nonce = sanitize_text_field($_REQUEST['nonce']);
|
||||
$license = sanitize_text_field($_REQUEST['key']);
|
||||
$key_option_name = sanitize_text_field($_REQUEST['key_option_name']);
|
||||
$status_option_name = sanitize_text_field($_REQUEST['status_option_name']);
|
||||
$expire_option_name = sanitize_text_field($_REQUEST['expire_option_name']);
|
||||
$order_id_option_name = sanitize_text_field($_REQUEST['order_id_option_name']);
|
||||
$item_name = sanitize_text_field($_REQUEST['item_name']);
|
||||
$item_id = sanitize_text_field($_REQUEST['item_id']);
|
||||
$user_type = isset($_REQUEST['user_type']) ? sanitize_text_field($_REQUEST['user_type']) : 'new';
|
||||
|
||||
|
||||
$plugin_user_status_type = $key_option_name.'_type';
|
||||
|
||||
|
||||
// data to send in our API request
|
||||
$api_params = array(
|
||||
'edd_action' => 'activate_license',
|
||||
'license' => $license,
|
||||
'item_id' => $item_id,
|
||||
'url' => home_url()
|
||||
);
|
||||
|
||||
// Call the custom API.
|
||||
$response = wp_remote_post(MEP_STORE_URL, array('timeout' => 15, 'sslverify' => false, 'body' => $api_params));
|
||||
$license_data = json_decode(wp_remote_retrieve_body($response));
|
||||
|
||||
if (is_wp_error($response) || 200 !== wp_remote_retrieve_response_code($response)) {
|
||||
$message = (is_wp_error($response) && !empty($response->get_error_message())) ? $response->get_error_message() : __('An error occurred, please try again.');
|
||||
}else{
|
||||
|
||||
if (false === $license_data->success) {
|
||||
$message = mep_license_error_code($license_data, $item_name);
|
||||
}else{
|
||||
$payment_id = $license_data->payment_id;
|
||||
$expire = $license_data->expires;
|
||||
$message = __("Success, License Key is valid for the plugin $item_name. Your Order id is $payment_id. Validity of this licenses is $expire.","mage-eventpress");
|
||||
}
|
||||
}
|
||||
if($license_data->success){
|
||||
echo $message;
|
||||
update_option($key_option_name, $license);
|
||||
update_option($expire_option_name, $license_data->expires);
|
||||
update_option($order_id_option_name, $license_data->payment_id);
|
||||
update_option($plugin_user_status_type, $user_type);
|
||||
}else{
|
||||
update_option($key_option_name, '');
|
||||
update_option($expire_option_name, '');
|
||||
update_option($order_id_option_name, '');
|
||||
}
|
||||
update_option($status_option_name, $license_data->license);
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
add_action('wp_ajax_mep_wl_ajax_license_deactivate', 'mep_wl_ajax_license_deactivate');
|
||||
add_action('wp_ajax_nopriv_mep_wl_ajax_license_deactivate', 'mep_wl_ajax_license_deactivate');
|
||||
function mep_wl_ajax_license_deactivate(){
|
||||
$key_option_name = sanitize_text_field($_REQUEST['key_option_name']);
|
||||
$status_option_name = sanitize_text_field($_REQUEST['status_option_name']);
|
||||
$expire_option_name = sanitize_text_field($_REQUEST['expire_option_name']);
|
||||
$order_id_option_name = sanitize_text_field($_REQUEST['order_id_option_name']);
|
||||
$item_name = sanitize_text_field($_REQUEST['item_name']);
|
||||
$item_id = sanitize_text_field($_REQUEST['item_id']);
|
||||
|
||||
update_option($key_option_name, '');
|
||||
update_option($expire_option_name, '');
|
||||
update_option($order_id_option_name, '');
|
||||
update_option($status_option_name, 'invalid');
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
function checkmydate($date) {
|
||||
$tempDate = explode('-', $date);
|
||||
// checkdate(month, day, year)
|
||||
return checkdate($tempDate[1], $tempDate[2], $tempDate[0]);
|
||||
}
|
||||
|
||||
function mep_license_expire_date($date){
|
||||
if(empty($date) || $date == 'lifetime'){
|
||||
echo $date;
|
||||
}else{
|
||||
if (strtotime(current_time('Y-m-d H:i')) < strtotime(date('Y-m-d H:i',strtotime($date)))) {
|
||||
echo get_mep_datetime($date,'date-time-text');
|
||||
}else{
|
||||
_e('Expired','mage-eventpress');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function mep_section_existis($meta_name,$event_id){
|
||||
$services = get_post_meta($event_id,$meta_name,true) ? maybe_unserialize(get_post_meta($event_id,$meta_name,true)) : [];
|
||||
if(!empty($services)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function mep_location_existis($meta_name,$event_id){
|
||||
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true) ? get_post_meta($event_id, 'mep_org_address', true) : '';
|
||||
$org_arr = get_the_terms($event_id, 'mep_org') ? get_the_terms($event_id, 'mep_org') : '';
|
||||
$org_id = !empty($org_arr) ? $org_arr[0]->term_id : '';
|
||||
|
||||
if($meta_name == 'mep_location_venue' && !empty($location_sts)){
|
||||
$meta_name = 'org_location';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
if($meta_name == 'mep_street' && !empty($location_sts)){
|
||||
$meta_name = 'org_street';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
if($meta_name == 'mep_city' && !empty($location_sts)){
|
||||
$meta_name = 'org_city';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
if($meta_name == 'mep_state' && !empty($location_sts)){
|
||||
$meta_name = 'org_state';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
if($meta_name == 'mep_postcode' && !empty($location_sts)){
|
||||
$meta_name = 'org_postcode';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
if($meta_name == 'mep_country' && !empty($location_sts)){
|
||||
$meta_name = 'org_country';
|
||||
}else{
|
||||
$meta_name = $meta_name;
|
||||
}
|
||||
|
||||
$services = !empty($location_sts) ? get_term_meta($org_id, $meta_name, true) : get_post_meta($event_id, $meta_name, true);
|
||||
|
||||
if(!empty($services)){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function mep_get_list_thumbnail_src($event_id){
|
||||
|
||||
$thumbnail_id = get_post_meta($event_id,'mep_list_thumbnail',true) ? get_post_meta($event_id,'mep_list_thumbnail',true) : 0;
|
||||
|
||||
if($thumbnail_id > 0){
|
||||
// echo $thumbnail_id;
|
||||
$thumbnail = wp_get_attachment_image_src($thumbnail_id,'full');
|
||||
echo $thumbnail[0];
|
||||
}else{
|
||||
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $event_id ), 'full');
|
||||
echo $thumbnail[0];
|
||||
}
|
||||
}
|
|
@ -190,10 +190,7 @@ function mep_event_list($atts, $content = null)
|
|||
<script>
|
||||
jQuery(document).ready(function() {
|
||||
var containerEl = document.querySelector('#mep_event_list_<?php echo $unq_id; ?>');
|
||||
var mixer = mixitup(containerEl);
|
||||
|
||||
|
||||
|
||||
var mixer = mixitup(containerEl);
|
||||
<?php if ($pagination == 'carousal') { ?>
|
||||
jQuery('#mep-carousel<?php echo $cid; ?>').owlCarousel({
|
||||
autoplay: <?php echo mep_get_option('mep_autoplay_carousal', 'carousel_setting_sec', 'true'); ?>,
|
||||
|
@ -207,20 +204,16 @@ function mep_event_list($atts, $content = null)
|
|||
responsive: {
|
||||
0: {
|
||||
items: 1,
|
||||
|
||||
},
|
||||
600: {
|
||||
items: 2,
|
||||
|
||||
},
|
||||
1000: {
|
||||
items: <?php echo $column; ?>,
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php do_action('mep_event_shortcode_js_script', $params); ?>
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -3,7 +3,7 @@ if (!defined('ABSPATH')) {
|
|||
die;
|
||||
} // Cannot access pages directly.
|
||||
|
||||
function mep_check_attendee_exists($event_id, $order_id, $name = null, $email = null, $phone = null, $address = null, $gender = null, $company = null, $desg = null, $website = null, $veg = null, $tshirt = null, $type)
|
||||
function mep_check_attendee_exists($event_id, $order_id, $name = null, $email = null, $phone = null, $address = null, $gender = null, $company = null, $desg = null, $website = null, $veg = null, $tshirt = null, $type=null)
|
||||
{
|
||||
|
||||
$args = array(
|
||||
|
@ -100,6 +100,22 @@ function mep_get_all_order_data_and_create_attendee()
|
|||
}
|
||||
|
||||
|
||||
// Event Upcoming Date Upgrade
|
||||
if (get_option('mep_event_upcoming_date_add_03') != 'completed') {
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
'posts_per_page' => -1
|
||||
);
|
||||
$qr = new WP_Query($args);
|
||||
foreach ($qr->posts as $result) {
|
||||
$post_id = $result->ID;
|
||||
$upcoming_date = mep_get_event_upcoming_date($post_id);
|
||||
update_post_meta($post_id, 'event_upcoming_datetime', $upcoming_date);
|
||||
}
|
||||
update_option('mep_event_upcoming_date_add_03', 'completed');
|
||||
}
|
||||
|
||||
|
||||
if (get_option('mep_event_default_date_update_2020') != 'completed') {
|
||||
$args = array(
|
||||
'post_type' => 'mep_events',
|
||||
|
|
|
@ -136,7 +136,9 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<!--The Add to cart button table start Here-->
|
||||
<table class='table table-bordered mep_event_add_cart_table'>
|
||||
<tr>
|
||||
<td align="left" class='total-col'><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:', 'mage-eventpress');
|
||||
<td align="left" class='total-col'>
|
||||
<?php do_action('mep_before_price_calculation',$post_id); ?>
|
||||
<?php echo mep_get_option('mep_quantity_text', 'label_setting_sec') ? mep_get_option('mep_quantity_text', 'label_setting_sec') : _e('Quantity:', 'mage-eventpress');
|
||||
if ($mep_event_ticket_type) { ?>
|
||||
<input id="quantity_5a7abbd1bff73" class="input-text qty text extra-qty-box" step="1" min="1" max="<?php echo $leftt; ?>" name="quantity" value="1" title="Qty" size="4" pattern="[0-9]*" inputmode="numeric" type="hidden">
|
||||
<span id="ttyttl"></span>
|
||||
|
@ -144,11 +146,14 @@ if (!function_exists('mep_get_event_reg_btn')) {
|
|||
<span class='the-total'> <?php echo mep_get_option('mep_total_text', 'label_setting_sec') ? mep_get_option('mep_total_text', 'label_setting_sec') : _e('Total', 'mage-eventpress'); ?>
|
||||
<span id="usertotal"></span>
|
||||
</span>
|
||||
<?php do_action('mep_after_price_calculation',$post_id); ?>
|
||||
</td>
|
||||
<td align="right">
|
||||
<?php do_action('mep_before_add_cart_btn',$post_id); ?>
|
||||
<input type="hidden" name="mep_event_location_cart" value="<?php trim(mep_ev_location_ticket($post_id, $event_meta)); ?>">
|
||||
<input type="hidden" name="mep_event_date_cart" value="<?php do_action('mep_event_date'); ?>">
|
||||
<button type="submit" name="add-to-cart" value="<?php echo $cart_product_id; ?>" class="single_add_to_cart_button button alt btn-mep-event-cart"><?php _e(mep_get_label($post_id, 'mep_cart_btn_text', 'Register This Event'), 'mage-eventpress'); ?> </button>
|
||||
<?php do_action('mep_after_add_cart_btn',$post_id); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,326 +1,364 @@
|
|||
<?php
|
||||
<?php
|
||||
if (!defined('ABSPATH')) {
|
||||
die;
|
||||
} // Cannot access pages directly.
|
||||
|
||||
add_action('mep_event_location','mep_ev_location');
|
||||
add_action('mep_event_location_ticket','mep_ev_location_ticket');
|
||||
add_action('mep_event_location', 'mep_ev_location_ticket');
|
||||
add_action('mep_event_location_ticket', 'mep_ev_location_ticket', 10, 2);
|
||||
|
||||
if (!function_exists('mep_ev_location_cart')) {
|
||||
function mep_ev_location_cart($event_id,$event_meta){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true) ? get_post_meta($event_id,'mep_org_address',true) : '';
|
||||
ob_start();
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo get_term_meta( $org_id, 'org_location', true ); ?>,<?php if(get_term_meta( $org_id, 'org_street', true )){ ?><?php echo get_term_meta( $org_id, 'org_street', true ); ?>,
|
||||
<?php } if(get_term_meta( $org_id, 'org_city', true )){ ?> <?php echo get_term_meta( $org_id, 'org_city', true ); ?>,
|
||||
<?php } if(get_term_meta( $org_id, 'org_state', true )){ echo get_term_meta( $org_id, 'org_state', true ); ?>,
|
||||
<?php } if(get_term_meta( $org_id, 'org_postcode', true )){ ?>
|
||||
<?php echo get_term_meta( $org_id, 'org_postcode', true ); ?>,
|
||||
<?php } if(get_term_meta( $org_id, 'org_country', true )){ ?>
|
||||
<?php echo get_term_meta( $org_id, 'org_country', true ); ?> <?php }
|
||||
}else{
|
||||
echo $event_meta['mep_location_venue'][0]; ?>,
|
||||
<?php if($event_meta['mep_street'][0]){ ?><?php echo $event_meta['mep_street'][0]; ?>,
|
||||
<?php } if($event_meta['mep_city'][0]){ ?> <?php echo $event_meta['mep_city'][0]; ?>,
|
||||
<?php } if($event_meta['mep_state'][0]){ ?> <?php echo $event_meta['mep_state'][0]; ?>,
|
||||
<?php } if($event_meta['mep_postcode'][0]){ ?> <?php echo $event_meta['mep_postcode'][0]; ?>,
|
||||
<?php } if($event_meta['mep_country'][0]){ ?> <?php echo $event_meta['mep_country'][0]; ?> <?php }
|
||||
}
|
||||
|
||||
|
||||
$content = ob_get_clean();
|
||||
echo apply_filters('mage_event_location_in_cart', $content,$event_id,$event_meta);
|
||||
}
|
||||
function mep_ev_location_cart($event_id, $event_meta)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true) ? get_post_meta($event_id, 'mep_org_address', true) : '';
|
||||
ob_start();
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$location = get_term_meta($org_id, 'org_location', true) ? get_term_meta($org_id, 'org_location', true) : '';
|
||||
$street = get_term_meta($org_id, 'org_street', true) ? get_term_meta($org_id, 'org_street', true) : '';
|
||||
$city = get_term_meta($org_id, 'org_city', true) ? get_term_meta($org_id, 'org_city', true) : '';
|
||||
$state = get_term_meta($org_id, 'org_state', true) ? get_term_meta($org_id, 'org_state', true) : '';
|
||||
$zip = get_term_meta($org_id, 'org_postcode', true) ? get_term_meta($org_id, 'org_postcode', true) : '';
|
||||
$country = get_term_meta($org_id, 'org_country', true) ? get_term_meta($org_id, 'org_country', true) : '';
|
||||
} else {
|
||||
$location = get_post_meta($event_id, 'mep_location_venue', true) ? get_post_meta($event_id, 'mep_location_venue', true) : '';
|
||||
$street = get_post_meta($event_id, 'mep_street', true) ? get_post_meta($event_id, 'mep_street', true) : '';
|
||||
$city = get_post_meta($event_id, 'mep_city', true) ? get_post_meta($event_id, 'mep_city', true) : '';
|
||||
$state = get_post_meta($event_id, 'mep_state', true) ? get_post_meta($event_id, 'mep_state', true) : '';
|
||||
$zip = get_post_meta($event_id, 'mep_postcode', true) ? get_post_meta($event_id, 'mep_postcode', true) : '';
|
||||
$country = get_post_meta($event_id, 'mep_country', true) ? get_post_meta($event_id, 'mep_country', true) : '';
|
||||
}
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
|
||||
$content = ob_get_clean();
|
||||
|
||||
$address_arr = array(
|
||||
'location' => $location,
|
||||
'street' => $street,
|
||||
'state' => $state,
|
||||
'zip' => $zip,
|
||||
'city' => $city,
|
||||
'country' => $country
|
||||
);
|
||||
|
||||
|
||||
echo apply_filters('mage_event_location_in_cart', $content, $event_id, $event_meta, $address_arr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_ev_location_ticket')) {
|
||||
function mep_ev_location_ticket($event_id,$event_meta){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true) ? get_post_meta($event_id,'mep_org_address',true) : '';
|
||||
ob_start();
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
?>
|
||||
<?php echo get_term_meta( $org_id, 'org_location', true ); ?>,
|
||||
<?php if(get_term_meta( $org_id, 'org_street', true )){ ?><?php echo get_term_meta( $org_id, 'org_street', true ); ?>,
|
||||
<?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_city', true )){ ?> <?php echo get_term_meta( $org_id, 'org_city', true ); ?>,
|
||||
<?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_state', true )){ ?> <?php echo get_term_meta( $org_id, 'org_state', true ); ?>,
|
||||
<?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_postcode', true )){ ?>
|
||||
<?php echo get_term_meta( $org_id, 'org_postcode', true ); ?>, <?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_country', true )){ ?> <?php echo get_term_meta( $org_id, 'org_country', true ); ?> <?php }
|
||||
}else{
|
||||
?>
|
||||
<?php echo $event_meta['mep_location_venue'][0]; ?>,
|
||||
<?php if($event_meta['mep_street'][0]){ ?><?php echo $event_meta['mep_street'][0]; ?>, <?php } ?>
|
||||
<?php if($event_meta['mep_city'][0]){ ?> <?php echo $event_meta['mep_city'][0]; ?>, <?php } ?>
|
||||
<?php if($event_meta['mep_state'][0]){ ?> <?php echo $event_meta['mep_state'][0]; ?>, <?php } ?>
|
||||
<?php if($event_meta['mep_postcode'][0]){ ?> <?php echo $event_meta['mep_postcode'][0]; ?>, <?php } ?>
|
||||
<?php if($event_meta['mep_country'][0]){ ?> <?php echo $event_meta['mep_country'][0]; ?> <?php }
|
||||
|
||||
}
|
||||
$content = ob_get_clean();
|
||||
echo apply_filters('mage_event_location_in_ticket', $content,$event_id,$event_meta);
|
||||
}
|
||||
function mep_ev_location_ticket($event_id, $event_meta='')
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true) ? get_post_meta($event_id, 'mep_org_address', true) : '';
|
||||
ob_start();
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$location = get_term_meta($org_id, 'org_location', true) ? get_term_meta($org_id, 'org_location', true) : '';
|
||||
$street = get_term_meta($org_id, 'org_street', true) ? get_term_meta($org_id, 'org_street', true) : '';
|
||||
$city = get_term_meta($org_id, 'org_city', true) ? get_term_meta($org_id, 'org_city', true) : '';
|
||||
$state = get_term_meta($org_id, 'org_state', true) ? get_term_meta($org_id, 'org_state', true) : '';
|
||||
$zip = get_term_meta($org_id, 'org_postcode', true) ? get_term_meta($org_id, 'org_postcode', true) : '';
|
||||
$country = get_term_meta($org_id, 'org_country', true) ? get_term_meta($org_id, 'org_country', true) : '';
|
||||
} else {
|
||||
$location = get_post_meta($event_id, 'mep_location_venue', true) ? get_post_meta($event_id, 'mep_location_venue', true) : '';
|
||||
$street = get_post_meta($event_id, 'mep_street', true) ? get_post_meta($event_id, 'mep_street', true) : '';
|
||||
$city = get_post_meta($event_id, 'mep_city', true) ? get_post_meta($event_id, 'mep_city', true) : '';
|
||||
$state = get_post_meta($event_id, 'mep_state', true) ? get_post_meta($event_id, 'mep_state', true) : '';
|
||||
$zip = get_post_meta($event_id, 'mep_postcode', true) ? get_post_meta($event_id, 'mep_postcode', true) : '';
|
||||
$country = get_post_meta($event_id, 'mep_country', true) ? get_post_meta($event_id, 'mep_country', true) : '';
|
||||
}
|
||||
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
$content = ob_get_clean();
|
||||
$address_arr = array(
|
||||
'location' => $location,
|
||||
'street' => $street,
|
||||
'state' => $state,
|
||||
'zip' => $zip,
|
||||
'city' => $city,
|
||||
'country' => $country
|
||||
);
|
||||
echo apply_filters('mage_event_location_in_ticket', $content, $event_id, $event_meta, $address_arr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('mep_ev_location')) {
|
||||
function mep_ev_location(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true) ? get_post_meta($post->ID,'mep_org_address',true) : '';
|
||||
ob_start();
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
?>
|
||||
<p><?php echo get_term_meta( $org_id, 'org_location', true ); ?>,</p>
|
||||
<?php if(get_term_meta( $org_id, 'org_street', true )){ ?><p>
|
||||
<?php echo get_term_meta( $org_id, 'org_street', true ); ?>,</p> <?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_city', true )){ ?> <p><?php echo get_term_meta( $org_id, 'org_city', true ); ?>,
|
||||
</p> <?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_state', true )){ ?> <p><?php echo get_term_meta( $org_id, 'org_state', true ); ?>,
|
||||
</p> <?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_postcode', true )){ ?> <p>
|
||||
<?php echo get_term_meta( $org_id, 'org_postcode', true ); ?>,</p> <?php } ?>
|
||||
<?php if(get_term_meta( $org_id, 'org_country', true )){ ?> <p>
|
||||
<?php echo get_term_meta( $org_id, 'org_country', true ); ?></p> <?php }
|
||||
}else{
|
||||
?>
|
||||
<p><?php echo $event_meta['mep_location_venue'][0]; ?>,</p>
|
||||
<?php if($event_meta['mep_street'][0]){ ?><p><?php echo $event_meta['mep_street'][0]; ?>,</p> <?php } ?>
|
||||
<?php if($event_meta['mep_city'][0]){ ?> <p><?php echo $event_meta['mep_city'][0]; ?>,</p> <?php } ?>
|
||||
<?php if($event_meta['mep_state'][0]){ ?> <p><?php echo $event_meta['mep_state'][0]; ?>,</p> <?php } ?>
|
||||
<?php if($event_meta['mep_postcode'][0]){ ?> <p><?php echo $event_meta['mep_postcode'][0]; ?>,</p> <?php } ?>
|
||||
<?php if($event_meta['mep_country'][0]){ ?> <p><?php echo $event_meta['mep_country'][0]; ?></p> <?php }
|
||||
|
||||
}
|
||||
$content = ob_get_clean();
|
||||
echo apply_filters('mage_event_location_content', $content,$post->ID,$event_meta);
|
||||
}
|
||||
function mep_ev_location()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$event_id = $post->ID;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true) ? get_post_meta($post->ID, 'mep_org_address', true) : '';
|
||||
ob_start();
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$location = get_term_meta($org_id, 'org_location', true) ? '<p>' . get_term_meta($org_id, 'org_location', true) . '</p>' : '';
|
||||
$street = get_term_meta($org_id, 'org_street', true) ? '<p>' . get_term_meta($org_id, 'org_street', true) . '</p>' : '';
|
||||
$city = get_term_meta($org_id, 'org_city', true) ? '<p>' . get_term_meta($org_id, 'org_city', true) . '</p>' : '';
|
||||
$state = get_term_meta($org_id, 'org_state', true) ? '<p>' . get_term_meta($org_id, 'org_state', true) . '</p>' : '';
|
||||
$zip = get_term_meta($org_id, 'org_postcode', true) ? '<p>' . get_term_meta($org_id, 'org_postcode', true) . '</p>' : '';
|
||||
$country = get_term_meta($org_id, 'org_country', true) ? '<p>' . get_term_meta($org_id, 'org_country', true) . '</p>' : '';
|
||||
} else {
|
||||
$location = get_post_meta($event_id, 'mep_location_venue', true) ? '<p>' . get_post_meta($event_id, 'mep_location_venue', true) . '</p>' : '';
|
||||
$street = get_post_meta($event_id, 'mep_street', true) ? '<p>' . get_post_meta($event_id, 'mep_street', true) . '</p>' : '';
|
||||
$city = get_post_meta($event_id, 'mep_city', true) ? '<p>' . get_post_meta($event_id, 'mep_city', true) . '</p>' : '';
|
||||
$state = get_post_meta($event_id, 'mep_state', true) ? '<p>' . get_post_meta($event_id, 'mep_state', true) . '</p>' : '';
|
||||
$zip = get_post_meta($event_id, 'mep_postcode', true) ? '<p>' . get_post_meta($event_id, 'mep_postcode', true) . '</p>' : '';
|
||||
$country = get_post_meta($event_id, 'mep_country', true) ? '<p>' . get_post_meta($event_id, 'mep_country', true) . '</p>' : '';
|
||||
}
|
||||
|
||||
|
||||
$location_arr = [$location, $street, $city, $state, $zip, $country];
|
||||
echo implode(',', array_filter($location_arr));
|
||||
$content = ob_get_clean();
|
||||
$address_arr = array(
|
||||
'location' => $location,
|
||||
'street' => $street,
|
||||
'state' => $state,
|
||||
'zip' => $zip,
|
||||
'city' => $city,
|
||||
'country' => $country
|
||||
);
|
||||
echo apply_filters('mage_event_location_content', $content, $post->ID, $event_meta, $address_arr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
add_action('mep_event_location_venue','mep_ev_venue');
|
||||
add_action('mep_event_location_venue', 'mep_ev_venue');
|
||||
if (!function_exists('mep_ev_venue')) {
|
||||
function mep_ev_venue($event_id=''){
|
||||
global $post,$event_meta;
|
||||
if($event_id){
|
||||
$event = $event_id;
|
||||
}else{
|
||||
$event = $post->ID;
|
||||
}
|
||||
$location_sts = get_post_meta($event,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo get_term_meta( $org_id, 'org_location', true );
|
||||
}else{
|
||||
echo get_post_meta($event,'mep_location_venue',true);
|
||||
|
||||
}
|
||||
}
|
||||
function mep_ev_venue($event_id = '')
|
||||
{
|
||||
global $post, $event_meta;
|
||||
if ($event_id) {
|
||||
$event = $event_id;
|
||||
} else {
|
||||
$event = $post->ID;
|
||||
}
|
||||
$location_sts = get_post_meta($event, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo get_term_meta($org_id, 'org_location', true);
|
||||
} else {
|
||||
echo get_post_meta($event, 'mep_location_venue', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Event Location Get Functions
|
||||
*/
|
||||
if (!function_exists('mep_get_event_location')) {
|
||||
function mep_get_event_location($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_location', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_location_venue',true);
|
||||
function mep_get_event_location($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_location', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_location_venue', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_location_street')) {
|
||||
function mep_get_event_location_street($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_street', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_street',true);
|
||||
function mep_get_event_location_street($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_street', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_street', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_location_city')) {
|
||||
function mep_get_event_location_city($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_city', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_city',true);
|
||||
function mep_get_event_location_city($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_city', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_city', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_location_state')) {
|
||||
function mep_get_event_location_state($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_state', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_state',true);
|
||||
function mep_get_event_location_state($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_state', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_state', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function mep_get_location_name_for_list($event_id){
|
||||
|
||||
function mep_get_location_name_for_list($event_id)
|
||||
{
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_location_postcode')) {
|
||||
function mep_get_event_location_postcode($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_postcode', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_postcode',true);
|
||||
function mep_get_event_location_postcode($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_postcode', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_postcode', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('mep_get_event_location_country')) {
|
||||
function mep_get_event_location_country($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta( $org_id, 'org_country', true );
|
||||
}else{
|
||||
return get_post_meta($event_id,'mep_country',true);
|
||||
function mep_get_event_location_country($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($event_id, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
return get_term_meta($org_id, 'org_country', true);
|
||||
} else {
|
||||
return get_post_meta($event_id, 'mep_country', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action('mep_event_location_street','mep_ev_street');
|
||||
add_action('mep_event_location_street', 'mep_ev_street');
|
||||
if (!function_exists('mep_ev_street')) {
|
||||
function mep_ev_street(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_street', true )."</span>";
|
||||
}else{
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_street'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
function mep_ev_street()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_street', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_street'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
add_action('mep_event_location_city','mep_ev_city');
|
||||
add_action('mep_event_location_city', 'mep_ev_city');
|
||||
if (!function_exists('mep_ev_city')) {
|
||||
function mep_ev_city(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_city', true )."</span>";
|
||||
}else{
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_city'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
function mep_ev_city()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_city', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_city'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
add_action('mep_event_location_state','mep_ev_state');
|
||||
add_action('mep_event_location_state', 'mep_ev_state');
|
||||
if (!function_exists('mep_ev_state')) {
|
||||
function mep_ev_state(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_state', true )."</span>";
|
||||
}else{
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_state'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
function mep_ev_state()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_state', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_state'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
add_action('mep_event_location_postcode','mep_ev_postcode');
|
||||
add_action('mep_event_location_postcode', 'mep_ev_postcode');
|
||||
if (!function_exists('mep_ev_postcode')) {
|
||||
function mep_ev_postcode(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_postcode', true )."</span>";
|
||||
}else{
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_postcode'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
function mep_ev_postcode()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_postcode', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_postcode'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
add_action('mep_event_location_country','mep_ev_country');
|
||||
add_action('mep_event_location_country', 'mep_ev_country');
|
||||
if (!function_exists('mep_ev_country')) {
|
||||
function mep_ev_country(){
|
||||
global $post,$event_meta;
|
||||
$location_sts = get_post_meta($post->ID,'mep_org_address',true);
|
||||
if($location_sts){
|
||||
$org_arr = get_the_terms( $post->ID, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>".get_term_meta( $org_id, 'org_country', true )."</span>";
|
||||
}else{
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_country'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
function mep_ev_country()
|
||||
{
|
||||
global $post, $event_meta;
|
||||
$location_sts = get_post_meta($post->ID, 'mep_org_address', true);
|
||||
if ($location_sts) {
|
||||
$org_arr = get_the_terms($post->ID, 'mep_org');
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
echo "<span>" . get_term_meta($org_id, 'org_country', true) . "</span>";
|
||||
} else {
|
||||
?>
|
||||
<span><?php echo $event_meta['mep_country'][0]; ?></span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
add_action('mep_event_address_list_sidebar','mep_event_address_list_sidebar_html');
|
||||
add_action('mep_event_address_list_sidebar', 'mep_event_address_list_sidebar_html');
|
||||
if (!function_exists('mep_event_address_list_sidebar_html')) {
|
||||
function mep_event_address_list_sidebar_html($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' ) ? get_the_terms( $event_id, 'mep_org' ) : '';
|
||||
$org_id = !empty($org_arr) ? $org_arr[0]->term_id : '';
|
||||
function mep_event_address_list_sidebar_html($event_id)
|
||||
{
|
||||
$location_sts = get_post_meta($event_id, 'mep_org_address', true);
|
||||
$org_arr = get_the_terms($event_id, 'mep_org') ? get_the_terms($event_id, 'mep_org') : '';
|
||||
$org_id = !empty($org_arr) ? $org_arr[0]->term_id : '';
|
||||
$venue = !empty($location_sts) ? get_term_meta($org_id, 'org_location', true) : get_post_meta($event_id, 'mep_location_venue', true);
|
||||
$street = !empty($location_sts) ? get_term_meta($org_id, 'org_street', true) : get_post_meta($event_id, 'mep_street', true);
|
||||
$city = !empty($location_sts) ? get_term_meta($org_id, 'org_city', true) : get_post_meta($event_id, 'mep_city', true);
|
||||
$state = !empty($location_sts) ? get_term_meta($org_id, 'org_state', true) : get_post_meta($event_id, 'mep_state', true);
|
||||
$country = !empty($location_sts) ? get_term_meta($org_id, 'org_country', true) : get_post_meta($event_id, 'mep_country', true);
|
||||
|
||||
$venue = !empty($location_sts) ? get_term_meta( $org_id, 'org_location', true ) : get_post_meta($event_id,'mep_location_venue',true);
|
||||
$street = !empty($location_sts) ? get_term_meta( $org_id, 'org_street', true ) : get_post_meta($event_id,'mep_street',true);
|
||||
$city = !empty($location_sts) ? get_term_meta( $org_id, 'org_city', true ) : get_post_meta($event_id,'mep_city',true);
|
||||
$state = !empty($location_sts) ? get_term_meta( $org_id, 'org_state', true ) : get_post_meta($event_id,'mep_state',true);
|
||||
$country = !empty($location_sts) ? get_term_meta( $org_id, 'org_country', true ) : get_post_meta($event_id,'mep_country',true);
|
||||
ob_start();
|
||||
require(mep_template_file_path('single/location_list.php'));
|
||||
echo ob_get_clean();
|
||||
ob_start();
|
||||
require(mep_template_file_path('single/location_list.php'));
|
||||
echo ob_get_clean();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,8 +8,6 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
function mep_event_ticket_type_loop_list_html($post_id)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
ob_start();
|
||||
|
@ -25,12 +23,12 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
require($ticket_type_file_path);
|
||||
|
||||
}else{
|
||||
|
||||
|
||||
foreach ($mep_event_ticket_type as $field) {
|
||||
|
||||
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),$event_expire_date,$post_id);
|
||||
$current_time = apply_filters('mep_ticket_current_time',current_time('Y-m-d H:i'),$event_expire_date,$post_id);
|
||||
$ticket_type_name = array_key_exists('option_name_t',$field) ? mep_remove_apostopie($field['option_name_t']) : '';
|
||||
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : '';
|
||||
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : 'input';
|
||||
$ticket_type_qty = array_key_exists('option_qty_t',$field) ? $field['option_qty_t'] : 0;
|
||||
$ticket_type_price = array_key_exists('option_price_t',$field) ? $field['option_price_t'] : 0;
|
||||
$qty_t_type = $ticket_type;
|
||||
|
|
|
@ -32,11 +32,13 @@ do_action('mep_event_single_page_after_header');
|
|||
|
||||
do_action('woocommerce_before_single_product');
|
||||
|
||||
$theme_name = "/themes/$_current_template";
|
||||
$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">
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="https://mage-people.com/product/mage-woo-event-booking-manager-pro/" target="_blank" class="buttonOutline allCenter_radius_transition customButton">Bu Event Manager Pro Today</a>
|
||||
<a href="https://mage-people.com/product/mage-woo-event-booking-manager-pro/" target="_blank" class="buttonOutline allCenter_radius_transition customButton">Buy Event Manager Pro Today</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col_6 sd_12">
|
||||
|
@ -128,8 +128,19 @@
|
|||
<h1 class="textCenter">Addons</h1>
|
||||
<div class="justifyBetween">
|
||||
<?php
|
||||
$json = file_get_contents('http://vaincode.com/update/addon-list.json');
|
||||
$obj = json_decode($json, true);
|
||||
|
||||
|
||||
$url = 'https://vaincode.com/update/addon-list.json';
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
$obj = json_decode($data, true);
|
||||
|
||||
// print_r($data);
|
||||
|
||||
if(is_array($obj) && sizeof($obj) > 0){
|
||||
echo '<div class="addon_list_sec"><ul class="mep_addon_list">';
|
||||
foreach ($obj as $list) {
|
||||
|
|
|
@ -4,7 +4,7 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin,
|
|||
Requires at least: 5.3
|
||||
Stable tag: trunk
|
||||
Version: 2.1.3
|
||||
Tested up to: 5.7
|
||||
Tested up to: 5.8
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 5.0
|
||||
Requires PHP: 7.0
|
||||
|
|
|
@ -8,15 +8,17 @@ $mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text
|
|||
<div class='mep-event-list-loop <?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php echo $org_class.' '.$cat_class; ?>' style="width:calc(<?php echo $width; ?>% - 14px);">
|
||||
<?php do_action('mep_event_list_loop_header', $event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||
<?php if ($recurring == 'no') { ?>
|
||||
<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 //}else{
|
||||
//do_action('mep_event_list_only_date_show',$event_id);
|
||||
//}
|
||||
|
||||
if (is_array($event_multidate) && sizeof($event_multidate) > 0 && $recurring == 'no') { ?>
|
||||
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
|
||||
|
@ -81,7 +83,7 @@ $mep_hide_event_hover_btn_text = mep_get_option('mep_hide_event_hover_btn_text
|
|||
if ($hide_location_list == 'no') { ?>
|
||||
|
||||
<li class="mep_list_location_name">
|
||||
<div class="evl-ico"><i class="fa fa-location-arrow"></i></div>
|
||||
<div class="evl-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class="evl-cc">
|
||||
<h5>
|
||||
<?php echo mep_get_option('mep_location_text', 'label_setting_sec') ? mep_get_option('mep_location_text', 'label_setting_sec') : _e('Location:', 'mage-eventpress'); ?>
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
<?php $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; ?>
|
||||
<?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');
|
||||
|
||||
?>
|
||||
<div class='mep-event-list-loop mep_event_list_item mep_event_minimal_list mix <?php echo $org_class.' '.$cat_class; ?>'>
|
||||
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"></a>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo mep_get_event_upcomming_date($event_id,'day'); //get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
|
||||
<div class="mep-month"><?php echo mep_get_event_upcomming_date($event_id,'month'); //get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
|
||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number',$day,$event_id); ?></div>
|
||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name',$month,$event_id); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep_list_event_details">
|
||||
|
@ -18,7 +23,7 @@
|
|||
<?php if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'> <?php do_action('mep_event_list_date_li',$event_id,'minimal'); ?> <span class='mep_minimal_list_location'><i class='fa fa-map-marker'></i> <?php mep_get_event_city($event_id); ?></span></h3>
|
||||
<h3 class='mep_list_date'> <?php do_action('mep_event_list_date_li',$event_id,'minimal'); ?> <span class='mep_minimal_list_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span></h3>
|
||||
|
||||
</a>
|
||||
<?php do_action('mep_event_list_loop_footer',$event_id); ?>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
<?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');
|
||||
?>
|
||||
<div class="timeline__item">
|
||||
<div class="timeline__content">
|
||||
<div class='mep_event_timeline_list'>
|
||||
|
@ -5,8 +9,8 @@
|
|||
<div class="mep_list_thumb">
|
||||
<a href="<?php echo get_the_permalink($event_id); ?>"><?php mep_get_list_thumbnail($event_id); ?></a>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
|
||||
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
|
||||
<div class="mep-day"><?php echo apply_filters('mep_event_list_only_day_number',$day,$event_id); ?></div>
|
||||
<div class="mep-month"><?php echo apply_filters('mep_event_list_only_month_name',$month,$event_id); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep_list_event_details">
|
||||
|
@ -16,7 +20,7 @@
|
|||
<?php if ($available_seat == 0) {
|
||||
do_action('mep_show_waitlist_label');
|
||||
} ?>
|
||||
<h3 class='mep_list_date'> <span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'time'); ?> - <?php if($start_datetime == $end_datetime){ echo get_mep_datetime($event_meta['event_end_datetime'][0],'time'); }else{ echo get_mep_datetime($event_meta['event_end_datetime'][0],'date-time-text'); } ?></span> <span class='mep_minimal_list_location'><i class='fa fa-map-marker'></i> <?php mep_get_event_city($event_id); ?></span></h3></a>
|
||||
<h3 class='mep_list_date'> <span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'time'); ?> - <?php if($start_datetime == $end_datetime){ echo get_mep_datetime($event_meta['event_end_datetime'][0],'time'); }else{ echo get_mep_datetime($event_meta['event_end_datetime'][0],'date-time-text'); } ?></span> <span class='mep_minimal_list_location'><i class="fas fa-map-marker-alt"></i> <?php mep_get_event_city($event_id); ?></span></h3></a>
|
||||
<?php do_action('mep_event_list_loop_footer',$event_id); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,20 +7,28 @@
|
|||
</tr>
|
||||
<?php
|
||||
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
$total_extra_service = (int) $field['option_qty'];
|
||||
$qty_type = $field['option_qty_type'];
|
||||
$total_sold = (int) mep_extra_service_sold($post_id, $field['option_name'], $event_date);
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
|
||||
$service_name = array_key_exists('option_name',$field) ? $field['option_name'] : '';
|
||||
$service_qty = array_key_exists('option_qty',$field) ? $field['option_qty'] : 0;
|
||||
$service_price = array_key_exists('option_price',$field) ? $field['option_price'] : 0;
|
||||
$service_qty_type = array_key_exists('option_qty_type',$field) ? $field['option_qty_type'] : 'input';
|
||||
|
||||
|
||||
|
||||
$total_extra_service = (int) $service_qty;
|
||||
$qty_type = $service_qty_type;
|
||||
$total_sold = (int) mep_extra_service_sold($post_id, $service_name, $event_date);
|
||||
$ext_left = ($total_extra_service - $total_sold);
|
||||
|
||||
$tic_price=mep_get_price_including_tax($post_id, $field['option_price']);
|
||||
$actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id, $field['option_price'])));
|
||||
$tic_price=mep_get_price_including_tax($post_id, $service_price);
|
||||
$actual_price=strip_tags(wc_price(mep_get_price_including_tax($post_id, $service_price)));
|
||||
$data_price=str_replace(get_woocommerce_currency_symbol(), '', $actual_price);
|
||||
$data_price=str_replace(wc_get_price_thousand_separator(), '', $data_price);
|
||||
$data_price=str_replace(wc_get_price_decimal_separator(), '.', $data_price);
|
||||
?>
|
||||
<tr>
|
||||
<td align="Left"><?php echo $field['option_name']; ?>
|
||||
<td align="Left"><?php echo $service_name; ?>
|
||||
<div class="xtra-item-left"><?php echo $ext_left; ?>
|
||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : _e('Left:', 'mage-eventpress'); ?>
|
||||
</div>
|
||||
|
@ -33,7 +41,7 @@
|
|||
<select name="event_extra_service_qty[]" id="eventpxtp_<?php //echo $count;
|
||||
?>" class='extra-qty-box'>
|
||||
<?php for ($i = 0; $i <= $ext_left; $i++) { ?>
|
||||
<option value="<?php echo $i; ?>"><?php echo $i; ?> <?php echo $field['option_name']; ?></option>
|
||||
<option value="<?php echo $i; ?>"><?php echo $i; ?> <?php echo $service_name; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } else { ?>
|
||||
|
@ -48,11 +56,11 @@
|
|||
echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : _e('Not Available', 'mage-eventpress');
|
||||
} ?>
|
||||
</td>
|
||||
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $field['option_price']));
|
||||
<td class="mage_text_center"><?php echo wc_price(mep_get_price_including_tax($post_id, $service_price));
|
||||
if ($ext_left > 0) { ?>
|
||||
<p style="display: none;" class="price_jq"><?php echo $tic_price > 0 ? $tic_price : 0; ?></p>
|
||||
<input type="hidden" name='event_extra_service_name[]' value='<?php echo $field['option_name']; ?>'>
|
||||
<input type="hidden" name='event_extra_service_price[]' value='<?php echo $field['option_price']; ?>'>
|
||||
<input type="hidden" name='event_extra_service_name[]' value='<?php echo $service_name; ?>'>
|
||||
<input type="hidden" name='event_extra_service_price[]' value='<?php echo $service_price; ?>'>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
|
||||
<tr>
|
||||
<tr>
|
||||
<?php do_action('mep_ticket_type_list_row_start',$field, $post_id); ?>
|
||||
<td align="Left"><?php echo $field['option_name_t']; ?>
|
||||
<?php if ($mep_available_seat == 'on') { ?><div class="xtra-item-left"><?php echo max($total_ticket_left, 0); ?>
|
||||
|
||||
|
@ -56,9 +55,10 @@
|
|||
|
||||
<?php } ?>
|
||||
</td>
|
||||
<?php do_action('mep_ticket_type_list_row_end',$field, $post_id); ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class='user-innnf'>
|
||||
<td colspan="<?php echo apply_filters('mep_hidden_row_colspan_no',3); ?>" class='user-innnf'>
|
||||
<input type="hidden" name='mep_event_start_date[]' value="<?php echo $start_date; ?>">
|
||||
<input type="hidden" name='option_name[]' value='<?php echo mep_remove_apostopie($field['option_name_t']); ?>'>
|
||||
<input type="hidden" name='option_price[]' value='<?php echo $ticket_price; ?>'>
|
||||
|
|
|
@ -48,7 +48,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php }
|
||||
if ($hide_location_details == 'no') { ?>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
|
@ -88,7 +88,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php } ?>
|
||||
<?php if ($hide_org_by_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
|
|
|
@ -56,12 +56,12 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php }?>
|
||||
<?php if ($hide_location_details == 'no') { ?>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:', 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location_venue'); ?>, <?php do_action('mep_event_location_city'); ?></p>
|
||||
<p><?php do_action('mep_event_location',get_the_id()); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
@ -55,17 +55,17 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php } ?>
|
||||
<?php if ($hide_org_by_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
<?php }
|
||||
if ($hide_address_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-address">
|
||||
<ul>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_venue'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_street'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_city'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_state'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_country'); ?>
|
||||
<?php if(mep_location_existis('mep_location_venue',get_the_id())){ ?> <li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_venue'); ?></li><?php } ?>
|
||||
<?php if(mep_location_existis('mep_street',get_the_id())){ ?><li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_street'); ?></li><?php } ?>
|
||||
<?php if(mep_location_existis('mep_city',get_the_id())){ ?><li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_city'); ?></li><?php } ?>
|
||||
<?php if(mep_location_existis('mep_state',get_the_id())){ ?><li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_state'); ?></li><?php } ?>
|
||||
<?php if(mep_location_existis('mep_country',get_the_id())){ ?><li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_country'); ?><?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -37,13 +37,12 @@ $event_label = mep_get_option('mep_event_label', 'general_setting_sec', '
|
|||
<?php }?>
|
||||
<?php if ($hide_location_details == 'no') { ?>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class="df-ico"><i class="fas fa-map-marker-alt"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e("$event_label Location:", 'mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location_venue'); ?>
|
||||
, <?php do_action('mep_event_location_city'); ?> </p>
|
||||
<p><?php do_action('mep_event_location',get_the_id()); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
@ -57,7 +56,7 @@ $event_label = mep_get_option('mep_event_label', 'general_setting_sec', '
|
|||
|
||||
<?php if ($hide_org_by_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
|
|
@ -41,7 +41,7 @@ $speaker_status = mep_get_option('mep_enable_speaker_list', 'general
|
|||
<?php } ?>
|
||||
<?php if ($hide_org_by_details == 'no') { ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<?php } if($speaker_status == 'yes'){ ?>
|
||||
<div class="mep-default-sidebar-speaker-list">
|
||||
|
|
Loading…
Reference in New Issue