function update
This commit is contained in:
parent
e5a7904071
commit
894dbcb566
|
@ -2778,6 +2778,10 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
|
||||||
$end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
$end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
||||||
$show_multidate = mep_get_option('mep_date_list_in_event_listing', 'general_setting_sec', 'no');
|
$show_multidate = mep_get_option('mep_date_list_in_event_listing', 'general_setting_sec', 'no');
|
||||||
|
|
||||||
|
$show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes';
|
||||||
|
$end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id);
|
||||||
|
|
||||||
|
|
||||||
if(is_array($more_date) && sizeof($more_date) > 0){
|
if(is_array($more_date) && sizeof($more_date) > 0){
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -2810,10 +2814,10 @@ function mep_event_recurring_date_list_in_event_list_loop($event_id){
|
||||||
</span>
|
</span>
|
||||||
<span class='mep-more-time'>
|
<span class='mep-more-time'>
|
||||||
<i class="fa fa-clock-o"></i>
|
<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']) {
|
<?php echo get_mep_datetime($_more_date['event_more_start_date'] . ' ' . $_more_date['event_more_start_time'], 'time'); if($end_date_display_status == 'yes'){ ?> - <?php if ($_more_date['event_more_start_date'] != $_more_date['event_more_end_date']) {
|
||||||
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'); ?>
|
echo get_mep_datetime($_more_date['event_more_end_date'] . ' ' . $_more_date['event_more_end_time'], 'time'); } ?>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
@ -3756,6 +3760,8 @@ function mep_event_list_upcoming_date_li($event_id,$type='grid'){
|
||||||
$event_start_datetime = get_post_meta($event_id,'event_start_datetime',true);
|
$event_start_datetime = get_post_meta($event_id,'event_start_datetime',true);
|
||||||
$event_end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
$event_end_datetime = get_post_meta($event_id,'event_end_datetime',true);
|
||||||
$event_multidate = get_post_meta($event_id,'mep_event_more_date',true) ? get_post_meta($event_id,'mep_event_more_date',true) : [];
|
$event_multidate = get_post_meta($event_id,'mep_event_more_date',true) ? get_post_meta($event_id,'mep_event_more_date',true) : [];
|
||||||
|
$show_end_date = get_post_meta($event_id, 'mep_show_end_datetime', true) ? get_post_meta($event_id, 'mep_show_end_datetime', true) : 'yes';
|
||||||
|
$end_date_display_status = apply_filters('mep_event_datetime_status',$show_end_date,$event_id);
|
||||||
$event_std[] = array(
|
$event_std[] = array(
|
||||||
'event_std' => $event_start_datetime,
|
'event_std' => $event_start_datetime,
|
||||||
'event_etd' => $event_end_datetime
|
'event_etd' => $event_end_datetime
|
||||||
|
@ -3776,6 +3782,7 @@ $start_date = date('Y-m-d',strtotime($_event_std['event_std']));
|
||||||
$end_date = date('Y-m-d',strtotime($_event_std['event_etd']));
|
$end_date = date('Y-m-d',strtotime($_event_std['event_etd']));
|
||||||
if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
||||||
if($type == 'grid'){
|
if($type == 'grid'){
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<li class="mep_list_event_date">
|
<li class="mep_list_event_date">
|
||||||
<div class="evl-ico"><i class="fa fa-calendar"></i></div>
|
<div class="evl-ico"><i class="fa fa-calendar"></i></div>
|
||||||
|
@ -3784,13 +3791,13 @@ if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
||||||
<?php echo get_mep_datetime($std, 'date-text'); ?>
|
<?php echo get_mep_datetime($std, 'date-text'); ?>
|
||||||
</h5>
|
</h5>
|
||||||
<h5><?php echo get_mep_datetime($_event_std['event_std'], 'time');
|
<h5><?php echo get_mep_datetime($_event_std['event_std'], 'time');
|
||||||
if ($hide_only_end_time_list == 'no') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></h5>
|
if ($hide_only_end_time_list == 'no' && $end_date_display_status == 'yes') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></h5>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}elseif($type == 'minimal'){
|
}elseif($type == 'minimal'){
|
||||||
?>
|
?>
|
||||||
<span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($std, 'date-text').' '; echo get_mep_datetime($_event_std['event_std'], 'time'); if ($hide_only_end_time_list == 'no') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></span>
|
<span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo get_mep_datetime($std, 'date-text').' '; echo get_mep_datetime($_event_std['event_std'], 'time'); if ($hide_only_end_time_list == 'no' && $end_date_display_status == 'yes') { ?> - <?php if($start_date == $end_date){ echo get_mep_datetime($_event_std['event_etd'], 'time'); }else{ echo get_mep_datetime($_event_std['event_etd'], 'date-time-text'); } } ?></span>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ function mep_user_custom_styles()
|
||||||
$label_text_color = mep_get_option('mep_title_text_color', 'style_setting_sec', '#ffffff');
|
$label_text_color = mep_get_option('mep_title_text_color', 'style_setting_sec', '#ffffff');
|
||||||
$cart_btn_bg_color = mep_get_option('mep_cart_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
$cart_btn_bg_color = mep_get_option('mep_cart_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
||||||
$cart_btn_txt_color = mep_get_option('mep_cart_btn_text_color', 'style_setting_sec', '#ffffff');
|
$cart_btn_txt_color = mep_get_option('mep_cart_btn_text_color', 'style_setting_sec', '#ffffff');
|
||||||
|
|
||||||
$calender_btn_bg_color = mep_get_option('mep_calender_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
$calender_btn_bg_color = mep_get_option('mep_calender_btn_bg_color', 'style_setting_sec', '#ffbe30');
|
||||||
$calender_btn_txt_color = mep_get_option('mep_calender_btn_text_color', 'style_setting_sec', '#ffffff');
|
$calender_btn_txt_color = mep_get_option('mep_calender_btn_text_color', 'style_setting_sec', '#ffffff');
|
||||||
$faq_label_bg_color = mep_get_option('mep_faq_title_bg_color', 'style_setting_sec', '#ffbe30');
|
$faq_label_bg_color = mep_get_option('mep_faq_title_bg_color', 'style_setting_sec', '#ffbe30');
|
||||||
|
@ -54,35 +53,28 @@ function mep_user_custom_styles()
|
||||||
.mep_event_list_item:hover {
|
.mep_event_list_item:hover {
|
||||||
border-color: <?php echo $base_color; ?>;
|
border-color: <?php echo $base_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before {
|
.mep_event_list_item .mep-list-header:before, .mep_event_grid_item .mep-list-header:before {
|
||||||
border-color: <?php echo $base_color; ?>;
|
border-color: <?php echo $base_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*Cart sec Label Style*/
|
/*Cart sec Label Style*/
|
||||||
.mep-default-feature-cart-sec h3, .mep-event-theme-1 h3.ex-sec-title, .mep-tem3-mid-sec h3.ex-sec-title, .mep-tem3-title-sec {
|
.mep-default-feature-cart-sec h3, .mep-event-theme-1 h3.ex-sec-title, .mep-tem3-mid-sec h3.ex-sec-title, .mep-tem3-title-sec {
|
||||||
background: <?php echo $label_bg_color; ?>;
|
background: <?php echo $label_bg_color; ?>;
|
||||||
color: <?php echo $label_text_color; ?>;
|
color: <?php echo $label_text_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*FAQ Sec Style*/
|
/*FAQ Sec Style*/
|
||||||
.mep-default-feature-faq-sec h4, .tmep-emplate-3-faq-sec .mep-event-faq-part h4 {
|
.mep-default-feature-faq-sec h4, .tmep-emplate-3-faq-sec .mep-event-faq-part h4 {
|
||||||
background: <?php echo $faq_label_bg_color; ?>;
|
background: <?php echo $faq_label_bg_color; ?>;
|
||||||
color: <?php echo $faq_label_text_color; ?>;
|
color: <?php echo $faq_label_text_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3.ex-sec-title {
|
h3.ex-sec-title {
|
||||||
background: <?php echo $base_color; ?>;
|
background: <?php echo $base_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Cart Button Style*/
|
/*Cart Button Style*/
|
||||||
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart, .mep-event-theme-1 .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart, .mep-tem3-mid-sec .btn-mep-event-cart {
|
.mep-default-feature-cart-sec button.single_add_to_cart_button.button.alt.btn-mep-event-cart, .mep-event-theme-1 .btn-mep-event-cart, .mep-template-2-hamza .btn-mep-event-cart, .mep-tem3-mid-sec .btn-mep-event-cart {
|
||||||
background: <?php echo $cart_btn_bg_color; ?>;
|
background: <?php echo $cart_btn_bg_color; ?>;
|
||||||
color: <?php echo $cart_btn_txt_color; ?> !important;
|
color: <?php echo $cart_btn_txt_color; ?> !important;
|
||||||
border-color: <?php echo $cart_btn_bg_color; ?>;
|
border-color: <?php echo $cart_btn_bg_color; ?>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Calender Button Style*/
|
/*Calender Button Style*/
|
||||||
.mep-default-sidrbar-calender-btn a, .mep-event-theme-1 .mep-add-calender, .mep-template-2-hamza .mep-add-calender, .mep-tem3-mid-sec .mep-add-calender, #mep_add_calender_button {
|
.mep-default-sidrbar-calender-btn a, .mep-event-theme-1 .mep-add-calender, .mep-template-2-hamza .mep-add-calender, .mep-tem3-mid-sec .mep-add-calender, #mep_add_calender_button {
|
||||||
background: <?php echo $calender_btn_bg_color; ?>;
|
background: <?php echo $calender_btn_bg_color; ?>;
|
||||||
|
|
Loading…
Reference in New Issue