-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathc-footer__credits.blade.php
More file actions
45 lines (37 loc) · 1.04 KB
/
Copy pathc-footer__credits.blade.php
File metadata and controls
45 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
if(!isset($text)) {
$footer = config('folio.footer');
$text = null;
if ($footer && array_key_exists('credits_text', $footer)) {
$text = $footer['credits_text'];
}
}
?>
<footer class="[ c-footer ] [ u-text-align--center u-font-size--a u-opacity--half ]">
<div class="[ grid ]">
<div class="[ c-footer__item ] [ grid__item one-whole ]">
<p>
@if($text)
@php
$text = str_replace(
[
'{year}',
'{footer-text}',
],
[
Item::formatDate(Date::now(), 'Y'),
trans('folio.footer-text'),
],
$text);
@endphp
{!! $text !!}
@else
Designed and built with
<i class="[ fa fa-heart ]"></i>
by
{!! Html::link('https://nono.ma', 'Nono.MA', ['target' => '_blank']) !!}.
@endif
</p>
</div>
</div>
</footer>