Skip to content

Commit

Permalink
calendar-update-fullcalendar-6.1.10 (#893)
Browse files Browse the repository at this point in the history
* Update FullCalendar to version 6.1.10
* Add button for the new "multiMonthYear" view for the calendar page view (wouldn't fit in a box)
  • Loading branch information
blackcoder87 authored Jan 2, 2024
1 parent 6ee9b4a commit cff8dbe
Show file tree
Hide file tree
Showing 187 changed files with 2,536 additions and 20,619 deletions.
5 changes: 2 additions & 3 deletions application/modules/calendar/boxes/views/calendar.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<link href="<?=$this->getBoxUrl('static/css/calendar.css') ?>" rel="stylesheet">
<link href="<?=$this->getBoxUrl('static/js/fullcalendar_5_11_3/lib/main.min.css') ?>" rel="stylesheet">

<div class="calendar">
<div id='calendarbox<?=$this->get('uniqid') ?>'></div>
</div>

<script src="<?=$this->getBoxUrl('static/js/fullcalendar_5_11_3/lib/main.min.js') ?>"></script>
<script src="<?=$this->getBoxUrl('static/js/fullcalendar_5_11_3/lib/locales-all.min.js') ?>"></script>
<script src="<?=$this->getBoxUrl('static/js/fullcalendar-6.1.10/dist/index.global.min.js') ?>"></script>
<script src="<?=$this->getBoxUrl('static/js/fullcalendar-6.1.10/packages/core/locales-all.global.min.js') ?>"></script>
<script>
if (typeof languagecalendar === 'undefined') {
var languagecalendar = '<?=substr($this->getTranslator()->getLocale(), 0, 2) ?>';
Expand Down
12 changes: 10 additions & 2 deletions application/modules/calendar/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'calendar',
'version' => '1.9.2',
'version' => '1.10.0',
'icon_small' => 'fa-solid fa-calendar',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down Expand Up @@ -237,8 +237,8 @@ public function getUpdate($installedVersion)
removeDir(APPLICATION_PATH.'/modules/calendar/static/js/fullcalendar/');
// no break
case "1.7.0":
// no break
removeDir(APPLICATION_PATH.'/modules/calendar/static/js/fullcalendar_5_11_0/');
// no break
case "1.8.0":
// Add the uid column. This property defines the persistent, globally unique identifier for the calendar component.
$this->db()->query('ALTER TABLE `[prefix]_calendar` ADD COLUMN `uid` VARCHAR(36) NOT NULL AFTER `id`;');
Expand All @@ -248,6 +248,14 @@ public function getUpdate($installedVersion)

$this->db()->query("UPDATE `[prefix]_modules` SET `icon_small` = 'fa-solid fa-calendar' WHERE `key` = 'calendar';");
// no break
case "1.9.0":
// no break
case "1.9.1":
// no break
case "1.9.2":
// Remove old version of fullcalendar as this version comes with version 6.1.10.
removeDir(APPLICATION_PATH.'/modules/calendar/static/js/fullcalendar_5_11_3/');
// no break
}
}
}

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit cff8dbe

Please sign in to comment.