forked from projects/fipamo
ro
4f7bbcdf86
editing page works but making new pages was still wonky, so that was fixed and now page creation works fine made some minor tweaks to prettier config for css formatting
53 lines
1.7 KiB
PHP
53 lines
1.7 KiB
PHP
|
|
@php
|
|
|
|
if(isset($page['menu']) && $page['menu'])
|
|
{
|
|
$menu = 'true';
|
|
}else{
|
|
$menu = 'false';
|
|
}
|
|
|
|
if(isset($page['featured']) && $page['featured'])
|
|
{
|
|
$featured = 'true';
|
|
}else{
|
|
$featured = 'false';
|
|
}
|
|
|
|
if(isset($page['published']) && $page['published'])
|
|
{
|
|
$published = 'true';
|
|
}else{
|
|
$published = 'false';
|
|
}
|
|
|
|
if(isset($page['uuid']))
|
|
{
|
|
$uuid = $page['uuid'];
|
|
}else{
|
|
$uuid = 1;
|
|
}
|
|
|
|
@endphp
|
|
|
|
<br>
|
|
<button id="option-menu-pin" class="option-inactive post-option-btn" data-active="{{ $menu }}" title='Pin to Menu'>
|
|
<svg id="option-page-icon" role="icon">
|
|
<use id="option-page-icon" xlink:href="/assets/images/global/sprite.svg#entypo-add-to-list"/>
|
|
</svg>
|
|
</button><button id="option-feature" class="option-inactive post-option-btn" data-active="{{ $featured }}" title='Feature'>
|
|
<svg id="option-feature-icon" role="icon">
|
|
<use id="option-feature-icon" xlink:href="/assets/images/global/sprite.svg#entypo-star"/>
|
|
</svg>
|
|
</button><button id="option-published" class="option-inactive post-option-btn" data-active="{{ $published }}" title='Published'>
|
|
<svg id="option-published-icon" role="icon">
|
|
<use id="option-published-icon" xlink:href="/assets/images/global/sprite.svg#entypo-globe"/>
|
|
</svg>
|
|
</button><a href="/dashboard/page/preview/{{ $uuid }}" target="_blank"><button id="option-preview" class="option-inactive post-option-btn" data-active="false" title='preview page'>
|
|
<svg id="option-preview-icon" role="icon">
|
|
<use id="option-preview-icon" xlink:href="/assets/images/global/sprite.svg#entypo-eye"/>
|
|
</svg>
|
|
</button>
|
|
</a>
|