diff --git a/css/style.css b/css/style.css index a9be7c2..383dfe8 100644 --- a/css/style.css +++ b/css/style.css @@ -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***********/ diff --git a/inc/mep_functions.php b/inc/mep_functions.php index d8997f5..81790af 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -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){ ?> -