2024-03-05 15:49:30 -06:00
@ php
2024-03-12 16:16:36 -06:00
if ( isset ( $page [ 'menu' ]) && $page [ 'menu' ])
2024-03-05 15:49:30 -06:00
{
$menu = 'true' ;
} else {
$menu = 'false' ;
}
2024-03-12 16:16:36 -06:00
if ( isset ( $page [ 'featured' ]) && $page [ 'featured' ])
2024-03-05 15:49:30 -06:00
{
$featured = 'true' ;
} else {
$featured = 'false' ;
}
2024-03-12 16:16:36 -06:00
if ( isset ( $page [ 'published' ]) && $page [ 'published' ])
2024-03-05 15:49:30 -06:00
{
$published = 'true' ;
} else {
$published = 'false' ;
}
2024-03-12 16:16:36 -06:00
if ( isset ( $page [ 'uuid' ]))
{
$uuid = $page [ 'uuid' ];
} else {
$uuid = 1 ;
}
2024-03-05 15:49:30 -06:00
@ endphp
2024-05-12 22:14:53 -06:00
< div role = " toolbar " aria - label = " page options " aria - orientation = " horizontal " >
2024-05-09 13:28:15 -06:00
< button id = " option-menu-pin " class = " option-inactive post-option-btn " data - active = " { { $menu }} " title = 'Pin to Menu' aria - label = " pin to menu " >
2024-03-25 12:59:24 -06:00
< svg id = " option-menu-pin " class = " icon " >
2024-03-20 15:13:50 -06:00
< use id = " option-menu-pin " xlink : href = " /assets/images/global/sprite.svg#entypo-pin " />
2024-03-05 15:49:30 -06:00
</ svg >
2024-05-09 13:28:15 -06:00
</ button >< button id = " option-feature " class = " option-inactive post-option-btn " data - active = " { { $featured }} " title = 'Feature' aria - label = " feature post toggle " >
2024-03-25 12:59:24 -06:00
< svg id = " option-feature-icon " class = " icon " >
2024-03-05 15:49:30 -06:00
< use id = " option-feature-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-star " />
</ svg >
2024-05-09 13:28:15 -06:00
</ button >< button id = " option-published " class = " option-inactive post-option-btn " data - active = " { { $published }} " title = 'Published' aria - label = " publish post toggle " >
2024-03-25 12:59:24 -06:00
< svg id = " option-published-icon " class = " icon " >
2024-03-05 15:49:30 -06:00
< use id = " option-published-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-globe " />
</ svg >
2024-06-26 17:10:24 -06:00
</ button >< a href = " /theme/view/page/ { { $uuid }} " target = " _blank " >< button id = " option-preview " class = " option-inactive post-option-btn " data - active = " false " title = 'preview page' aria - label = " preview post " >
2024-03-25 12:59:24 -06:00
< svg id = " option-preview-icon " class = " icon " >
2024-03-05 15:49:30 -06:00
< use id = " option-preview-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-eye " />
</ svg >
</ button >
</ a >
2024-05-12 22:14:53 -06:00
</ div >