Compare commits
No commits in common. "13d306aec905843422ee6bef20f5bbf978380c2c" and "4e28917b9634ac0eaaf509368bdf84c4572f4dfe" have entirely different histories.
13d306aec9
...
4e28917b96
@ -31,17 +31,15 @@
|
|||||||
{% foreach range(0, 5) as $week %}
|
{% foreach range(0, 5) as $week %}
|
||||||
<div class="week">
|
<div class="week">
|
||||||
{% foreach range(0, 6) as $day %}
|
{% foreach range(0, 6) as $day %}
|
||||||
{% php $dayType = in_array($day, [0, 6]) ? 'week-end' : 'week-day' %}
|
|
||||||
|
|
||||||
{% if ( $week * 6 + $day >= $index ) && ( $currentDay < $dayCount ) %}
|
{% if ( $week * 6 + $day >= $index ) && ( $currentDay < $dayCount ) %}
|
||||||
{% php $currentDay++; %}
|
{% php $currentDay++; %}
|
||||||
|
|
||||||
{% slot "day.content", new \DateTime("$year-$month-$currentDay"), date("$year-$month-$currentDay") === date('Y-n-j') %}
|
{% slot "day.content", new \DateTime("$year-$month-$currentDay"), date("$year-$month-$currentDay") === date('Y-n-j') %}
|
||||||
<div class="day-box {{ $today ? 'today' : '' }} {{ $dayType }}">{{ $date->format('d') }}</div>
|
<div class="day-box {{ $today ? 'today' : '' }}">{{ $date->format('d') }}</div>
|
||||||
{% endslot %}
|
{% endslot %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% slot "day.empty", $day, $month, $year %}
|
{% slot "day.empty", $day, $month, $year %}
|
||||||
<div class="day-box {{ $dayType }}"></div>
|
<div class="day-box"></div>
|
||||||
{% endslot %}
|
{% endslot %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endforeach %}
|
{% endforeach %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user