readme file and functions name updated

This commit is contained in:
magepeopleteam 2020-03-24 15:16:55 +00:00
parent daaaa38376
commit 7961eaeaed
7 changed files with 39 additions and 34 deletions

View File

@ -404,24 +404,31 @@ ul.mep-more-date-lists li {
background: #ddd; background: #ddd;
} }
.mep_more_date_btn { .mep_more_date_btn {
display: block; display: block;
cursor: pointer; cursor: pointer;
background: #81d742; background: #81d742;
color: #fff; color: #fff;
padding: 5px 20px; padding: 5px 20px;
position: absolute; position: relative;
bottom: -52px; bottom: 0;
left: 32%; left: 0;
text-align: center;
} }
span#hide_event_schdule { span#hide_event_schdule {
position: relative; position: relative;
left: 23%; left: 0;
bottom: -20px; bottom: 0;
display: inline-block; display: block;
width: 60%; width: 100%;
text-align: center; text-align: center;
margin: 0 auto; margin: 0 auto;
} }
.mep-event-list-loop {
position: relative;
}
ul.mep-more-date-lists {
margin: 10px;
}
/******Responsive*******/ /******Responsive*******/
@media only screen and (max-width: 1199px) { @media only screen and (max-width: 1199px) {
/********Default Theme***********/ /********Default Theme***********/

View File

@ -2011,9 +2011,9 @@ function mep_get_all_tax_list($current_tax=null){
if(is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0){ if(is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0){
foreach ( $mep_event_ticket_type as $field ) { foreach ( $mep_event_ticket_type as $field ) {
if($type == 'total'){ if($type == 'total'){
$total_name = (int) $field['option_qty_t']; $total_name = array_key_exists('option_qty_t', $field) ? $field['option_qty_t'] : 0;
}elseif($type == 'resv'){ }elseif($type == 'resv'){
$total_name = (int) $field['option_rsv_t']; $total_name = array_key_exists('option_rsv_t', $field) ? $field['option_rsv_t'] : 0;
} }
$total = $total_name + $total; $total = $total_name + $total;
} }
@ -2362,7 +2362,7 @@ function mep_hide_event_order_data_from_thankyou_and_email($formatted_meta){
} }
add_action('mep_event_list_loop_footer','mep_event_recurring_date_list_in_event_list_loop'); add_action('mep_event_list_loop_end','mep_event_recurring_date_list_in_event_list_loop');
function mep_event_recurring_date_list_in_event_list_loop($event_id){ function mep_event_recurring_date_list_in_event_list_loop($event_id){
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
$more_date = get_post_meta($event_id,'mep_event_more_date',true); $more_date = get_post_meta($event_id,'mep_event_more_date',true);
@ -2379,7 +2379,7 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
if(is_array($more_date) && sizeof($more_date) > 0){ if(is_array($more_date) && sizeof($more_date) > 0){
?> ?>
<ul class='mep-more-date-lists'> <ul class='mep-more-date-lists mep-more-date-lists<?php echo $event_id; ?>'>
<?php <?php
if (strtotime(current_time('Y-m-d H:i')) < strtotime($start_datetime)) { if (strtotime(current_time('Y-m-d H:i')) < strtotime($start_datetime)) {
?> ?>
@ -2392,36 +2392,32 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
foreach ($more_date as $_more_date) { foreach ($more_date as $_more_date) {
if (strtotime(current_time('Y-m-d H:i')) < strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])) { if (strtotime(current_time('Y-m-d H:i')) < strtotime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'])) {
if ($mep_show_upcoming_event == 'yes') {
$cnt = 1;
} else {
$cnt = $cn;
}
if ($cn == $cnt) {
?> ?>
<li><span class='mep-more-date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'date-text'); ?></span> <span class='mep-more-time'><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'time'); ?> - <?php if ($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']) { <li><span class='mep-more-date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'date-text'); ?></span> <span class='mep-more-time'><i class="fa fa-clock-o"></i> <?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'time'); ?> - <?php if ($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']) {
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'date-text') . ' - '; echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'date-text') . ' - ';
} }
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); ?></span></li> echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); ?></span></li>
<?php <?php
$cn++;
}
} }
} }
echo '</ul>'; echo '</ul>';
?> ?>
<span id="show_event_schdule" class='mep_more_date_btn'><?php _e('Show Event Date Lists','mage-eventpress'); ?></span> <span id="show_event_schdule<?php echo $event_id; ?>" class='mep_more_date_btn'><?php _e('Show Event Date Lists','mage-eventpress'); ?></span>
<span id="hide_event_schdule" class='mep_more_date_btn'><?php _e('Hide Event Date Lists','mage-eventpress'); ?></span> <span id="hide_event_schdule<?php echo $event_id; ?>" class='mep_more_date_btn'><?php _e('Hide Event Date Lists','mage-eventpress'); ?></span>
<script> <script>
jQuery('.mep-more-date-lists, #hide_event_schdule').hide(); jQuery('.mep-more-date-lists<?php echo $event_id; ?>, #hide_event_schdule<?php echo $event_id; ?>').hide();
jQuery('#show_event_schdule').click(function(){
jQuery('#show_event_schdule<?php echo $event_id; ?>').click(function(){
jQuery(this).hide() jQuery(this).hide()
jQuery('.mep-more-date-lists, #hide_event_schdule').show(100); jQuery('.mep-more-date-lists<?php echo $event_id; ?>, #hide_event_schdule<?php echo $event_id; ?>').show(100);
}); });
jQuery('#hide_event_schdule').click(function(){ jQuery('#hide_event_schdule<?php echo $event_id; ?>').click(function(){
jQuery(this).hide() jQuery(this).hide()
jQuery('.mep-more-date-lists').hide(100); jQuery('.mep-more-date-lists<?php echo $event_id; ?>').hide(100);
jQuery('#show_event_schdule').show(); jQuery('#show_event_schdule<?php echo $event_id; ?>').show();
}); });
</script> </script>
<?php <?php
@ -2440,7 +2436,7 @@ add_action('wp_head','mep_event_rich_text_data');
function mep_event_rich_text_data(){ function mep_event_rich_text_data(){
global $post; global $post;
$event_id = $post->ID; $event_id = $post->ID;
if(is_single() && $event_id && get_post_type($post_id) == 'mep_events'){ if(is_single() && $event_id && get_post_type($event_id) == 'mep_events'){
$event_name = get_the_title($event_id); $event_name = get_the_title($event_id);
$event_start_date = get_post_meta($post->ID,'event_start_datetime',true) ? get_post_meta($post->ID,'event_start_datetime',true) : ''; $event_start_date = get_post_meta($post->ID,'event_start_datetime',true) ? get_post_meta($post->ID,'event_start_datetime',true) : '';

View File

@ -4,7 +4,7 @@ add_action('mep_add_to_cart','mep_get_event_reg_btn');
// Get Event Registration Button // Get Event Registration Button
function mep_get_event_reg_btn(){ function mep_get_event_reg_btn(){
global $post,$event_meta; global $post,$event_meta;
$total_book = 0;
$post_id = $post->ID; $post_id = $post->ID;
$event_meta = get_post_custom($post_id); $event_meta = get_post_custom($post_id);
$event_expire_on = mep_get_option( 'mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime'); $event_expire_on = mep_get_option( 'mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');

View File

@ -68,6 +68,7 @@ function mep_ev_extra_serv(){
<?php <?php
} }
$content = ob_get_clean(); $content = ob_get_clean();
$event_meta = get_post_custom($pid);
echo apply_filters('mage_event_extra_service_list', $content,$pid,$event_meta); echo apply_filters('mage_event_extra_service_list', $content,$pid,$event_meta);
} }

View File

@ -23,7 +23,7 @@ function mep_display_event_loop_list($event_id,$columnNumber,$style){
ob_start(); ob_start();
?> ?>
<div class='<?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php if ($tt) { echo $org_class; } ?> <?php if ($torg) { echo $cat_class; } ?>'> <div class='mep-event-list-loop <?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php if ($tt) { echo $org_class; } ?> <?php if ($torg) { echo $cat_class; } ?>'>
<?php do_action('mep_event_list_loop_header',$event_id); ?> <?php do_action('mep_event_list_loop_header',$event_id); ?>
<div class="mep_list_thumb"> <div class="mep_list_thumb">
<a href="<?php echo get_the_permalink($event_id); ?>"><?php echo get_the_post_thumbnail($event_id,'full'); ?></a> <a href="<?php echo get_the_permalink($event_id); ?>"><?php echo get_the_post_thumbnail($event_id,'full'); ?></a>
@ -105,6 +105,7 @@ ob_start();
</div> </div>
</div> </div>
<?php do_action('mep_event_list_loop_end',$event_id); ?>
</div> </div>
<?php <?php

View File

@ -394,7 +394,7 @@ Code Improved
11 March 2020* 11 March 2020*
= 3.2.0 = = 3.2.1 =
* Update Release: * Update Release:
Some Bug Fixed Some Bug Fixed
Code Improved Code Improved

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager * Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com * Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople.. * Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 3.2.0 * Version: 3.2.1
* Author: MagePeople Team * Author: MagePeople Team
* Author URI: http://www.mage-people.com/ * Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress * Text Domain: mage-eventpress