SPR-908: QS - header with magicmatcher
This commit is contained in:
parent
b2e6ef84e9
commit
31abc4ae3d
2 changed files with 50 additions and 11 deletions
|
@ -150,4 +150,35 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* + + + + + with magic matcher + + + + + */
|
||||
&.has-magicmatcher {
|
||||
.logo {
|
||||
@media @screen_min-md {
|
||||
padding-top: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.main-title.desktop-only {
|
||||
@media @screen_min-md {
|
||||
vertical-align: bottom;
|
||||
padding-top: @height-context-bar;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
p.title {
|
||||
@media @screen_min-md {
|
||||
margin-right: 16rem;
|
||||
}
|
||||
}
|
||||
|
||||
p.claim {
|
||||
@media @screen_max-md {
|
||||
display: block;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
30
main.php
30
main.php
|
@ -82,9 +82,26 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
|
|||
/* Include Hook: header.html */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
tpl_includeFile('header.html');
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* User Tools and MagicMatcher Bar */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
|
||||
/** @var \helper_plugin_magicmatcher_context $mm */
|
||||
$mm = plugin_load('helper', 'magicmatcher_context');
|
||||
$headerClass = ""; /* for additionial class in #dokuwiki__header */
|
||||
$navClass = ""; /* for additionial class in #dokuwiki__usertools (header.html) */
|
||||
|
||||
if($mm){
|
||||
$matcher = $mm->getIssueContextBar();
|
||||
if($matcher !== ""){
|
||||
$headerClass = "has-magicmatcher";
|
||||
$navClass = "has-bar";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="dokuwiki__header" class="header no-print">
|
||||
<div id="dokuwiki__header" class="header <?php echo $headerClass; ?> no-print">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
@ -110,6 +127,7 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
|
|||
</div><!-- .headings -->
|
||||
</div><!-- .col -->
|
||||
|
||||
|
||||
<div class="col-xs-12">
|
||||
<div class="main-title desktop-only">
|
||||
<?php if ($conf['title']):
|
||||
|
@ -196,16 +214,6 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
|
|||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* User Tools and MagicMatcher Bar */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/** @var \helper_plugin_magicmatcher_context $mm */
|
||||
$mm = plugin_load('helper', 'magicmatcher_context');
|
||||
$navClass = "";
|
||||
if($mm){
|
||||
$matcher = $mm->getIssueContextBar();
|
||||
if($matcher !== ""){
|
||||
$navClass = "has-bar";
|
||||
}
|
||||
}
|
||||
|
||||
include('tpl/nav-usertools-buttons.php');
|
||||
if($mm && $matcher !== ""){
|
||||
include('tpl/nav-magicmatcher.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue