diff --git a/inc/admin_setting_panel.php b/inc/admin_setting_panel.php index b29d66e..0625411 100644 --- a/inc/admin_setting_panel.php +++ b/inc/admin_setting_panel.php @@ -26,9 +26,11 @@ class MAGE_Events_Setting_Controls { //initialize settings $this->settings_api->admin_init(); } - + function admin_menu() { - add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') ); + //add_options_page( 'Event Settings', 'Event Settings', 'delete_posts', 'mep_event_settings_page', array($this, 'plugin_page') ); + + add_submenu_page('edit.php?post_type=mep_events', __('Event Settings','mage-eventpress'), __('Event Settings','mage-eventpress'), 'manage_options', 'mep_event_settings_page', array($this, 'plugin_page')); } function get_settings_sections() { @@ -82,6 +84,25 @@ class MAGE_Events_Setting_Controls { 'default' => 'no', 'options' => event_template_name() ), + + array( + 'name' => 'mep_event_price_show', + 'label' => __( 'Show Event Price in List?', 'mep' ), + 'desc' => __( 'Please select if you want to show event price in the list Yes/No', 'mep' ), + 'type' => 'select', + 'default' => 'yes', + 'options' => array( + 'yes' => 'Yes', + 'no' => 'No' + ) + ), + array( + 'name' => 'event-price-label', + 'label' => __( 'Event Price Label', 'mep' ), + 'desc' => __( 'Enter The text which you want to show as price label, Its only displayed if Show Event price value is YES above. ', 'mep' ), + 'type' => 'text', + 'default' => 'Price Starts from:' + ), ), 'email_setting_sec' => array( diff --git a/inc/mep_cpt.php b/inc/mep_cpt.php index b1eed6b..30ceee1 100644 --- a/inc/mep_cpt.php +++ b/inc/mep_cpt.php @@ -41,7 +41,7 @@ function mep_cpt() { 'public' => true, 'labels' => $labels, 'menu_icon' => 'dashicons-calendar-alt', - 'supports' => array('title','editor','thumbnail'), + 'supports' => array('title','editor','thumbnail','excerpt'), 'rewrite' => array('slug' => 'events') ); diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index ae624df..67faebf 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -46,7 +46,7 @@ function mep_event_available_seat_cb($post){ $values = get_post_custom( $post->ID ); ?>
-