forked from vufind-org/vufind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d0d5e6
commit 98d246f
Showing
8 changed files
with
278 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
themes/finna2/templates/organisationinfo/elements/location/open-status.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php if ($orgInfo['openNow']): ?> | ||
<span class="location-is-open info-element"><?=$this->transEsc('organisation_info_is_open')?></span> | ||
<?php else: ?> | ||
<span class="location-is-closed info-element"><?=$this->transEsc('organisation_info_is_closed')?></span> | ||
<?php endif; ?> |
17 changes: 17 additions & 0 deletions
17
themes/finna2/templates/organisationinfo/elements/location/schedule-week-navi.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- START of: finna - organisationinfo/elements/location/schedule-week-navi.phtml --> | ||
<?php if ('museum' !== $orgInfo['type'] && $firstDate = $orgInfo['openTimes']['schedules'][0]['date'] ?? null): ?> | ||
<div class="js-week-navi" data-date="<?=date('Y-m-d', $firstDate)?>"> | ||
<button type="button" class="btn-link js-week-navi-btn prev-week" data-dir="-1" aria-label="<?= $this->transEscAttr('organisation_info_previous_week')?>"<?=$orgInfo['openTimes']['currentWeek'] ? ' disabled' : ''?>> | ||
<?=$this->icon('week-prev') ?> | ||
</button> | ||
<span class="week-text"> | ||
<?=$this->transEsc('organisation_info_schedule_week')?> | ||
<span class="num"><?=$this->escapeHtml(date('W', $firstDate))?></span> | ||
</span> | ||
<button type="button" class="btn-link js-week-navi-btn next-week" data-dir="+1" aria-label="<?= $this->transEscAttr('organisation_info_next_week')?>"> | ||
<?=$this->icon('week-next') ?> | ||
</button> | ||
<span class="js-loader hidden"><?=$this->icon('spinner') ?></span> | ||
</div> | ||
<?php endif; ?> | ||
<!-- START of: finna - organisationinfo/elements/location/schedule-week-navi.phtml --> |
Oops, something went wrong.