forked from projects/fipamo
ro
2395278893
plugged in the dash index template which required grabbing markdown pages and converting them to data the system can use and then pagination that is used to sort content into pages start page now switches from login screen to index based on session, but that might be changes so it's a bit more clean to work with middleware
47 lines
718 B
PHP
47 lines
718 B
PHP
@php
|
|
|
|
if($page['menu'] == 'true')
|
|
{
|
|
$menu = 'true';
|
|
}else{
|
|
$menu = 'false';
|
|
}
|
|
|
|
if($page['published'] == 'true')
|
|
{
|
|
$published = 'true';
|
|
}else{
|
|
$published = 'false';
|
|
}
|
|
|
|
if($page['featured'] == 'true')
|
|
{
|
|
$featured = 'true';
|
|
}else{
|
|
$featured = 'false';
|
|
}
|
|
|
|
@endphp
|
|
|
|
<aside>
|
|
<strong>
|
|
{{ $page['updated'] }}
|
|
</strong>
|
|
<hr/>
|
|
<strong>
|
|
{{ $page['title'] }}
|
|
</strong>
|
|
<hr/>
|
|
<button data-active="{{ $menu }}">
|
|
<i class="ti ti-navigation"></i>
|
|
</button>
|
|
<button data-active="{{ $published }}">
|
|
<i class="ti ti-world"></i>
|
|
</button>
|
|
|
|
<button data-active="{{ $featured }}">
|
|
<i class="ti ti-star"></i>
|
|
</button>
|
|
|
|
</aside>
|