|
1 | 1 | <?php |
2 | | -/** |
3 | | - * This view can be deleted when https://github.com/humhub/calendar/issues/371 is resolved |
4 | | - * When deleted, delete also the events-map/widgets/wallEntry.php view |
5 | | - */ |
6 | 2 |
|
7 | | - |
8 | | -use humhub\modules\calendar\helpers\CalendarUtils; |
9 | 3 | use humhub\modules\calendar\helpers\RecurrenceHelper; |
10 | 4 | use humhub\modules\calendar\models\CalendarEntry; |
11 | 5 | use humhub\modules\calendar\models\CalendarEntryParticipant; |
|
21 | 15 | /* @var $collapse boolean */ |
22 | 16 | /* @var $this View */ |
23 | 17 |
|
24 | | -$color = $this->theme->variable('text-color-secondary'); |
| 18 | +$color = 'var(--text-color-secondary)'; |
25 | 19 | ?> |
26 | 20 |
|
27 | | -<div class="d-flex event calendar-wall-entry" style="margin-top:20px;" data-action-component="calendar.CalendarEntry" |
| 21 | +<div class="event calendar-wall-entry mt-3" data-action-component="calendar.CalendarEntry" |
28 | 22 | data-calendar-entry="<?= $calendarEntry->id ?>"> |
29 | | - <div class="event-info-section clearfix" style="margin-bottom:10px"> |
| 23 | + <div class="event-info-section clearfix mb-2"> |
30 | 24 | <?= Icon::get('file-text')->color($color)->left()->size(Icon::SIZE_LG)->style('margin-top:2px;')->fixedWith() ?> |
31 | 25 |
|
32 | 26 | <div class="event-info-section-content"> |
|
68 | 62 | ?> |
69 | 63 |
|
70 | 64 |
|
| 65 | + |
71 | 66 | <?= ($calendarEntry->closed) ? '</s>' : '' ?> |
72 | 67 | <?php if (!$calendarEntry->closed && $calendarEntry->isAllDay()) : ?> |
73 | 68 | <small>(<?= Yii::t('CalendarModule.base', 'All Day') ?>)</small> |
|
105 | 100 | <?= Icon::get('info-circle')->color($color)->left()->size(Icon::SIZE_LG)->style('margin-top:2px;')->fixedWith() ?> |
106 | 101 | <div class="event-info-section-content"> |
107 | 102 | <h1> |
108 | | - <?= Yii::t('CalendarModule.views_entry_view', 'Additional information') ?> |
| 103 | + <?= Yii::t('CalendarModule.views', 'Additional information') ?> |
109 | 104 | </h1> |
110 | 105 | <div data-ui-markdown data-ui-show-more> |
111 | 106 | <?= RichText::output($calendarEntry->participant_info) ?> |
|
143 | 138 | <?php if ($calendarEntry->participation->canRespond(Yii::$app->user->identity)): ?> |
144 | 139 | <div class="event-participation-buttons clearfix"> |
145 | 140 | <?php if ($calendarEntry->participation->isInvited() && !$calendarEntry->isPast()) : ?> |
146 | | - <div class="text-warning"><?= Icon::get('warning') . Yii::t('CalendarModule.views_entry_view', 'You are invited, please select your role:') ?></div> |
| 141 | + <div class="text-warning"><?= Icon::get('warning') . Yii::t('CalendarModule.views', 'You are invited, please select your role:') ?></div> |
147 | 142 | <?php endif ?> |
148 | 143 |
|
149 | 144 | <?php if ($calendarEntry->participation->maxParticipantCheck() || $calendarEntry->participation->isParticipant(Yii::$app->user->identity, false)) : ?> |
150 | | - <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_ACCEPTED, Yii::t('CalendarModule.views_entry_view', "Attend")) ?> |
| 145 | + <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_ACCEPTED, Yii::t('CalendarModule.views', "Attend")) ?> |
151 | 146 | <?php endif ?> |
152 | 147 |
|
153 | 148 | <?php if ($calendarEntry->participation->maxParticipantCheck() || $calendarEntry->participation->isParticipant(Yii::$app->user->identity, true)) : ?> |
154 | | - <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_MAYBE, Yii::t('CalendarModule.views_entry_view', "Maybe")) ?> |
| 149 | + <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_MAYBE, Yii::t('CalendarModule.views', "Maybe")) ?> |
155 | 150 | <?php endif ?> |
156 | 151 |
|
157 | | - <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_DECLINED, Yii::t('CalendarModule.views_entry_view', "Decline")) ?> |
| 152 | + <?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_DECLINED, Yii::t('CalendarModule.views', "Decline")) ?> |
158 | 153 | </div> |
159 | 154 | <?php endif; ?> |
160 | 155 | </div> |
0 commit comments