praiadeseselle/wire/modules/AdminTheme/AdminThemeUikit/_content-head.php

33 lines
689 B
PHP
Raw Normal View History

2022-11-05 18:32:48 +01:00
<?php namespace ProcessWire;
/**
* Primary content head (#main > #content > #pw-content-head)
*
*/
if(!defined("PROCESSWIRE")) die();
/** @var string $layout */
/** @var AdminThemeUikit $adminTheme */
/** @var string $headline */
/** @var Page $page */
?>
<header id='pw-content-head'>
<?php if($layout != 'sidenav' && $layout != 'modal') echo $adminTheme->renderBreadcrumbs(); ?>
<div id='pw-content-head-buttons' class='uk-float-right uk-visible@s'>
<?php echo $adminTheme->renderAddNewButton(); ?>
</div>
<?php
if($headline !== '' && !$adminTheme->isModal) {
echo "<h1 id='pw-content-title' class='uk-margin-remove-top'>$headline</h1>";
}
?>
</header>