forked from projects/fipamo
ro
36d04c8f68
service classes are beginning to swell as there functionality is being fleshed out, so a new organizational structure was needed to make sure class sizes don't become too large and to increase site managability and legibilty as more features get added and the code base grows. data is for retrieving, managing site information, assets interact with external files and upkeep is for maintenance. some additional tweaks were also made to the options menu template to prep it for it's transition to a toolbar component
54 lines
1.8 KiB
PHP
54 lines
1.8 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
|
|
|
|
<div role="toolbar" aria-label="page options" aria-orientation="horizontal">
|
|
<button id="option-menu-pin" class="option-inactive post-option-btn" data-active="{{ $menu }}" title='Pin to Menu' aria-label="pin to menu">
|
|
<svg id="option-menu-pin" class="icon">
|
|
<use id="option-menu-pin" xlink:href="/assets/images/global/sprite.svg#entypo-pin"/>
|
|
</svg>
|
|
</button><button id="option-feature" class="option-inactive post-option-btn" data-active="{{ $featured }}" title='Feature' aria-label="feature post toggle">
|
|
<svg id="option-feature-icon" class="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' aria-label="publish post toggle">
|
|
<svg id="option-published-icon" class="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' aria-label="preview post">
|
|
<svg id="option-preview-icon" class="icon">
|
|
<use id="option-preview-icon" xlink:href="/assets/images/global/sprite.svg#entypo-eye"/>
|
|
</svg>
|
|
</button>
|
|
</a>
|
|
</div>
|