1<?php global $conf, $lang, $ACT, $INFO, $ID, $DOKU_BASE ?>
2
3<div id="pageheader">
4	<!-- Messages -->
5	<div id="msgarea">
6	    <?php html_msgarea() ?>
7	</div>
8
9	<div style="display:flex;align-items:center">
10		<!-- Breadcrumbs -->
11		<div class="breadcrumbs">
12			<?php if (tpl_getConf("dokuwikibreadcrumbs_enable")) { ?>
13				<?php if($conf['youarehere']): ?>
14					<div class="youarehere"><?php tpl_youarehere() ?></div>
15				<?php endif ?>
16				<?php if($conf['breadcrumbs']): ?>
17					<div class="trace"><?php tpl_breadcrumbs() ?></div>
18				<?php endif ?>
19			<?php } else { ?>
20				<?php if ($ACT == "show" || $ACT == "search") { ?>
21				<span class="home"><a href="<?php echo tpl_getConf('startpage'); ?>"><?php echo tpl_getlang("breadcrumbs_docs"); ?></a></span>
22				<?php } else { ?>
23				<span class="admin"><a href="<?php echo wl($ID,array('do'=>'admin'),true,'&'); ?>"><?php echo tpl_getlang("breadcrumbs_admin"); ?></a></span>
24				<?php } ?>
25				»  <bdi><?php tpl_pagetitle(); ?></bdi>
26			<?php } ?>
27		</div>
28
29		<!-- Edit this page -->
30		<?php if ($ACT == "show" && (isset($INFO["editable"]) && $INFO["editable"])) { ?>
31			<a style="margin-left:auto" href="<?php echo wl($ID,array('do'=>'edit'),true,'&'); ?>">
32				<i class="fas fa-pencil-alt"></i>
33				<span> <?php echo tpl_getlang("pageheader_editthispage"); ?></span>
34			</a>
35		<?php } ?>
36	</div>
37
38	<?php tpl_includeFile('pageheader.html') ?>
39
40	<hr>
41</div>
42