Skip to content

Commit

Permalink
Show comments below event details (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackcoder87 authored Jan 28, 2024
1 parent 8375b8a commit 39f6391
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion application/modules/events/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'events',
'version' => '1.22.1',
'version' => '1.22.2',
'icon_small' => 'fa-solid fa-ticket',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down Expand Up @@ -202,6 +202,11 @@ public function getUpdate($installedVersion)
// no break
case "1.21.2":
$this->db()->query("UPDATE `[prefix]_modules` SET `icon_small` = 'fa-solid fa-ticket' WHERE `key` = 'events';");
// no break
case "1.22.0":
// no break
case "1.22.1":
// no break
}
}
}
8 changes: 5 additions & 3 deletions application/modules/events/views/show/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</h1>

<div class="row">
<div class="col-lg-6">
<div class="col-lg-12">
<div class="event-head">
<?php if ($this->escape($event->getImage()) != ''): ?>
<img src="<?=$this->getBaseUrl().$this->escape($event->getImage()) ?>" class="headPic" alt="<?=$this->getTrans('headpic') ?>">
Expand Down Expand Up @@ -219,8 +219,10 @@
<?=$this->alwaysPurify($event->getText()) ?>
</div>
</div>

<div class="col-lg-6">
</div>
<br />
<div class="row">
<div class="col-lg-12">
<div class="form-horizontal">
<?php if ($this->getUser() && (($eventEntrants != '' && $eventEntrants->getUserId() == $this->getUser()->getId()) || $event->getUserId() == $this->getUser()->getId())): ?>
<div class="form-group eventCommentSubmit">
Expand Down

0 comments on commit 39f6391

Please sign in to comment.