From 786b5896d88fff0c0043133aee9110a099f3cbb0 Mon Sep 17 00:00:00 2001 From: Pasquale Pizzuti Date: Wed, 17 Apr 2024 18:36:27 +0200 Subject: [PATCH 1/3] first change --- Calendar/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Calendar/Calendar.php b/Calendar/Calendar.php index 6b8ab9b..c8a15fb 100644 --- a/Calendar/Calendar.php +++ b/Calendar/Calendar.php @@ -345,7 +345,7 @@ function menu_main_front() { 'url' => plugin_page( 'calendar_user_page' ), 'title' => plugin_lang_get( 'menu_main_front' ), 'access_level' => plugin_config_get( 'calendar_view_threshold' ), - 'icon' => 'fa-random' + 'icon' => 'fa-calendar' ), ); } From 8975a066cade5b87e84eabb9543e30c194b2d15e Mon Sep 17 00:00:00 2001 From: Pasquale Pizzuti Date: Wed, 17 Apr 2024 20:09:14 +0200 Subject: [PATCH 2/3] changes --- Calendar/Calendar.php | 2 +- Calendar/core/classes/ViewIssue.class.php | 3 ++- Calendar/core/classes/ViewWeekCalendar.class.php | 3 +-- Calendar/core/classes/WeekCalendar.class.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Calendar/Calendar.php b/Calendar/Calendar.php index c8a15fb..1f5e59a 100644 --- a/Calendar/Calendar.php +++ b/Calendar/Calendar.php @@ -328,7 +328,7 @@ function hooks() { return array( 'EVENT_LAYOUT_RESOURCES' => 'resources', 'EVENT_MENU_MAIN_FRONT' => 'menu_main_front', - 'EVENT_VIEW_BUG_DETAILS' => 'html_print_calendar', + 'EVENT_VIEW_BUG_EXTRA' => 'html_print_calendar', 'EVENT_FILTER_COLUMNS' => 'column_add_in_view_all_bug_page', 'EVENT_DISPLAY_TEXT' => 'column_title_formating', ); diff --git a/Calendar/core/classes/ViewIssue.class.php b/Calendar/core/classes/ViewIssue.class.php index f48ca5d..b8c3f08 100644 --- a/Calendar/core/classes/ViewIssue.class.php +++ b/Calendar/core/classes/ViewIssue.class.php @@ -22,7 +22,8 @@ public function __construct( $p_days_events, $p_bug_id ) { } protected function print_spacer_top() { - echo ''; + echo '
'; + echo '
'; } protected function print_headline() { diff --git a/Calendar/core/classes/ViewWeekCalendar.class.php b/Calendar/core/classes/ViewWeekCalendar.class.php index 990fde7..4c342a7 100644 --- a/Calendar/core/classes/ViewWeekCalendar.class.php +++ b/Calendar/core/classes/ViewWeekCalendar.class.php @@ -25,8 +25,7 @@ public function __construct( $p_week, $p_user, $p_is_full_time, $p_days_events, } protected function print_spacer_top() { - echo '
'; - echo '
'; + echo ''; } protected function print_headline() { diff --git a/Calendar/core/classes/WeekCalendar.class.php b/Calendar/core/classes/WeekCalendar.class.php index 72cdcaa..d6b0c63 100644 --- a/Calendar/core/classes/WeekCalendar.class.php +++ b/Calendar/core/classes/WeekCalendar.class.php @@ -68,8 +68,8 @@ public final function print_html() { global $g_calendar_show_menu_bottom; echo '
'; - echo ''; $this->print_spacer_top(); + echo ''; echo '
'; From 811d1b71fe5cbdc5860512483bde5e7096e90232 Mon Sep 17 00:00:00 2001 From: Pasquale Pizzuti Date: Thu, 18 Apr 2024 16:50:27 +0200 Subject: [PATCH 3/3] removed calendar from front --- Calendar/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Calendar/Calendar.php b/Calendar/Calendar.php index 1f5e59a..a0d1b72 100644 --- a/Calendar/Calendar.php +++ b/Calendar/Calendar.php @@ -327,7 +327,7 @@ function errors() { function hooks() { return array( 'EVENT_LAYOUT_RESOURCES' => 'resources', - 'EVENT_MENU_MAIN_FRONT' => 'menu_main_front', + 'EVENT_MENU_MAIN' => 'menu_main_front', 'EVENT_VIEW_BUG_EXTRA' => 'html_print_calendar', 'EVENT_FILTER_COLUMNS' => 'column_add_in_view_all_bug_page', 'EVENT_DISPLAY_TEXT' => 'column_title_formating',