readme file and functions name updated
This commit is contained in:
parent
daaaa38376
commit
7961eaeaed
|
@ -404,24 +404,31 @@ ul.mep-more-date-lists li {
|
|||
background: #ddd;
|
||||
}
|
||||
.mep_more_date_btn {
|
||||
display: block;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
background: #81d742;
|
||||
color: #fff;
|
||||
padding: 5px 20px;
|
||||
position: absolute;
|
||||
bottom: -52px;
|
||||
left: 32%;
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
}
|
||||
span#hide_event_schdule {
|
||||
position: relative;
|
||||
left: 23%;
|
||||
bottom: -20px;
|
||||
display: inline-block;
|
||||
width: 60%;
|
||||
position: relative;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.mep-event-list-loop {
|
||||
position: relative;
|
||||
}
|
||||
ul.mep-more-date-lists {
|
||||
margin: 10px;
|
||||
}
|
||||
/******Responsive*******/
|
||||
@media only screen and (max-width: 1199px) {
|
||||
/********Default Theme***********/
|
||||
|
|
|
@ -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){
|
||||
foreach ( $mep_event_ticket_type as $field ) {
|
||||
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'){
|
||||
$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;
|
||||
}
|
||||
|
@ -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){
|
||||
$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);
|
||||
|
@ -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){
|
||||
|
||||
?>
|
||||
<ul class='mep-more-date-lists'>
|
||||
<ul class='mep-more-date-lists mep-more-date-lists<?php echo $event_id; ?>'>
|
||||
<?php
|
||||
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) {
|
||||
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']) {
|
||||
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>
|
||||
<?php
|
||||
$cn++;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
echo '</ul>';
|
||||
?>
|
||||
<span id="show_event_schdule" 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="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<?php echo $event_id; ?>" class='mep_more_date_btn'><?php _e('Hide Event Date Lists','mage-eventpress'); ?></span>
|
||||
<script>
|
||||
jQuery('.mep-more-date-lists, #hide_event_schdule').hide();
|
||||
jQuery('#show_event_schdule').click(function(){
|
||||
jQuery('.mep-more-date-lists<?php echo $event_id; ?>, #hide_event_schdule<?php echo $event_id; ?>').hide();
|
||||
|
||||
jQuery('#show_event_schdule<?php echo $event_id; ?>').click(function(){
|
||||
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('.mep-more-date-lists').hide(100);
|
||||
jQuery('#show_event_schdule').show();
|
||||
jQuery('.mep-more-date-lists<?php echo $event_id; ?>').hide(100);
|
||||
jQuery('#show_event_schdule<?php echo $event_id; ?>').show();
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
@ -2440,7 +2436,7 @@ add_action('wp_head','mep_event_rich_text_data');
|
|||
function mep_event_rich_text_data(){
|
||||
global $post;
|
||||
$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_start_date = get_post_meta($post->ID,'event_start_datetime',true) ? get_post_meta($post->ID,'event_start_datetime',true) : '';
|
||||
|
|
|
@ -4,7 +4,7 @@ add_action('mep_add_to_cart','mep_get_event_reg_btn');
|
|||
// Get Event Registration Button
|
||||
function mep_get_event_reg_btn(){
|
||||
global $post,$event_meta;
|
||||
|
||||
$total_book = 0;
|
||||
$post_id = $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');
|
||||
|
|
|
@ -68,6 +68,7 @@ function mep_ev_extra_serv(){
|
|||
<?php
|
||||
}
|
||||
$content = ob_get_clean();
|
||||
$event_meta = get_post_custom($pid);
|
||||
echo apply_filters('mage_event_extra_service_list', $content,$pid,$event_meta);
|
||||
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ function mep_display_event_loop_list($event_id,$columnNumber,$style){
|
|||
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); ?>
|
||||
<div class="mep_list_thumb">
|
||||
<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>
|
||||
<?php do_action('mep_event_list_loop_end',$event_id); ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -394,7 +394,7 @@ Code Improved
|
|||
11 March 2020*
|
||||
|
||||
|
||||
= 3.2.0 =
|
||||
= 3.2.1 =
|
||||
* Update Release:
|
||||
Some Bug Fixed
|
||||
Code Improved
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.2.0
|
||||
* Version: 3.2.1
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue