diff --git a/css/style.css b/css/style.css index a24dd42..7d6345d 100644 --- a/css/style.css +++ b/css/style.css @@ -485,7 +485,36 @@ h3.mep_list_date i, .mep-list-footer ul li i{ z-index: 999999; } +.mep-day-details-section { + border: 1px solid #ddd; + padding: 0 10px 10px 10px; + margin: 20px 0; +} +.mep-day-details-section h4 { + padding: 0; + margin: 0; + background: #ddd; + margin-left: -10px; + margin-right: -10px; + padding-left: 10px; +} + +.mep-day-title { + margin-top: 10px; + margin-bottom: -20px; + font-weight: bold; + font-size: 15px; +} + +.mep-day-details { + border-bottom: 1px solid #ddd; +} + +.mep-day-details p { + font-size: 14px; + margin-top: 15px; +} .mep-list-footer { border-top: 0px solid #ddd; padding-top: 10px; diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index 63d84d9..3018f13 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -102,7 +102,18 @@ class MAGE_Events_Setting_Controls { 'desc' => __( 'Enter The text which you want to show as price label, Its only displayed if Show Event price value is YES above. ', 'mage-eventpress' ), 'type' => 'text', 'default' => 'Price Starts from:' - ), + ), + array( + 'name' => 'mep_event_time_format', + 'label' => __( 'Event Time Format', 'mage-eventpress' ), + 'desc' => __( 'Please select what format time you want to display in event fronntend.', 'mage-eventpress' ), + 'type' => 'select', + 'default' => '12', + 'options' => array( + '12' => '12 Hour', + '24' => '24 Hour' + ) + ) ), 'email_setting_sec' => array( diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index 11aed56..848d882 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -26,6 +26,11 @@ function mep_event_meta_box_add(){ add_meta_box( 'mep-event-available-set-on-off', __('Show Available Seat Count?','mage-eventpress'), 'mep_event_available_seat_cb', 'mep_events', 'side', 'low' ); + + add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' ); + + + } function mep_event_change_reg_status_cb($post){ @@ -433,6 +438,133 @@ function mep_event_faq_save($post_id) { + + + + + + + + + +function mep_event_day_details_cb() { + global $post; + $mep_event_day = get_post_meta($post->ID, 'mep_event_day', true); + wp_nonce_field( 'mep_event_day_nonce', 'mep_event_day_nonce' ); + ?> + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+ + + +
+ +
+

+ + ID, 'mep_events_extra_prices', true); diff --git a/inc/mep_shortcode.php b/inc/mep_shortcode.php index b725290..d93468c 100644 --- a/inc/mep_shortcode.php +++ b/inc/mep_shortcode.php @@ -128,9 +128,6 @@ foreach ($terms as $_terms) {
- - -
Time:
-
-
+
-
@@ -505,7 +502,7 @@ if($style=='list'){
Time:
-
-
+
-
diff --git a/templates/template-prts/event_date.php b/templates/template-prts/event_date.php index 9d0efcd..9b64514 100644 --- a/templates/template-prts/event_date.php +++ b/templates/template-prts/event_date.php @@ -5,7 +5,7 @@ add_action('mep_event_date','mep_ev_datetime'); function mep_ev_datetime(){ global $event_meta; ?> -

-

+

-

-

+

ID, 'mep_event_day', true); + +if ( $mep_event_day ){ + echo '
'; + echo '

Event Days

'; + foreach ( $mep_event_day as $field ) { + + ?> +
+ +
+
+

+
+ '; +} + } \ No newline at end of file diff --git a/templates/template-prts/total_seat.php b/templates/template-prts/total_seat.php index 2746bce..cd0ce9a 100644 --- a/templates/template-prts/total_seat.php +++ b/templates/template-prts/total_seat.php @@ -34,12 +34,12 @@ $leftt = $leftt+$llft; ?> -
( Left)
+
( )
-
( Left)
+
( )