2024-03-05 22:49:30 +01:00
@ php
2024-03-12 23:16:36 +01:00
if ( isset ( $page [ 'menu' ]) && $page [ 'menu' ])
2024-03-05 22:49:30 +01:00
{
$menu = 'true' ;
} else {
$menu = 'false' ;
}
2024-03-12 23:16:36 +01:00
if ( isset ( $page [ 'featured' ]) && $page [ 'featured' ])
2024-03-05 22:49:30 +01:00
{
$featured = 'true' ;
} else {
$featured = 'false' ;
}
2024-03-12 23:16:36 +01:00
if ( isset ( $page [ 'published' ]) && $page [ 'published' ])
2024-03-05 22:49:30 +01:00
{
$published = 'true' ;
} else {
$published = 'false' ;
}
2024-03-12 23:16:36 +01:00
if ( isset ( $page [ 'uuid' ]))
{
$uuid = $page [ 'uuid' ];
} else {
$uuid = 1 ;
}
2024-03-05 22:49:30 +01:00
@ endphp
2024-05-13 06:14:53 +02:00
< div role = " toolbar " aria - label = " page options " aria - orientation = " horizontal " >
2024-05-09 21:28:15 +02: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 19:59:24 +01:00
< svg id = " option-menu-pin " class = " icon " >
2024-03-20 22:13:50 +01:00
< use id = " option-menu-pin " xlink : href = " /assets/images/global/sprite.svg#entypo-pin " />
2024-03-05 22:49:30 +01:00
</ svg >
2024-05-09 21:28:15 +02: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 19:59:24 +01:00
< svg id = " option-feature-icon " class = " icon " >
2024-03-05 22:49:30 +01:00
< use id = " option-feature-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-star " />
</ svg >
2024-05-09 21:28:15 +02: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 19:59:24 +01:00
< svg id = " option-published-icon " class = " icon " >
2024-03-05 22:49:30 +01:00
< use id = " option-published-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-globe " />
</ svg >
2024-06-27 01:10:24 +02: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 19:59:24 +01:00
< svg id = " option-preview-icon " class = " icon " >
2024-03-05 22:49:30 +01:00
< use id = " option-preview-icon " xlink : href = " /assets/images/global/sprite.svg#entypo-eye " />
</ svg >
</ button >
</ a >
2024-05-13 06:14:53 +02:00
</ div >