footer: css + html

This commit is contained in:
Silke Pisulla 2017-01-02 14:53:36 +01:00
commit 1ac428716a
2 changed files with 153 additions and 125 deletions

View file

@ -10,18 +10,18 @@
@media screen { @media screen {
#dokuwiki__footer { #dokuwiki__footer {
* { .main-footer {
font-size: (@font-size-default - .1);
}
.pad {
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
} }
.doc {} p {
font-size: @font-size-default;
}
.license {} bdi {
font-weight: bold;
}
} }
} }
@ -31,11 +31,13 @@
@media @screen_min-md { @media @screen_min-md {
#dokuwiki__footer { #dokuwiki__footer {
margin: 0 @margin-big;
.pad { .col-xs-12 {
float: right; float: right;
width: 73%; width: 73%;
}
.main-footer {
padding: @margin-default 0; padding: @margin-default 0;
} }
} }
@ -47,9 +49,9 @@
@media @screen_max-md { @media @screen_max-md {
#dokuwiki__footer { #dokuwiki__footer {
.pad {
width: 100%; .main-footer {
padding: @margin-default @margin-big; padding: @margin-default (@margin-big - .5);
} }
} }
} }

View file

@ -86,7 +86,7 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
?> ?>
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; ?>"> <body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
<div id="dokuwiki__site"> <div id="dokuwiki__site">
<?php <?php
@ -150,6 +150,7 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
</div><!-- .nav-area-head --> </div><!-- .nav-area-head -->
<?php if ($showSidebar): ?> <?php if ($showSidebar): ?>
<div class="tools"> <div class="tools">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@ -162,12 +163,13 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Include Hook: sidebarheader.html */ /* Include Hook: sidebarheader.html */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
tpl_includeFile('sidebarheader.html') ?> tpl_includeFile('sidebarheader.html')
?>
</div><!-- .sidebarheader --> </div><!-- .sidebarheader -->
<div class="search main-sidebar"> <div class="search main-sidebar">
<?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){ <?php
if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
if (tpl_getConf('logo_spacer') && file_exists(mediaFN(tpl_getConf('logo_spacer')))){ if (tpl_getConf('logo_spacer') && file_exists(mediaFN(tpl_getConf('logo_spacer')))){
echo '<img width="5" height="5" src="'.ml(tpl_getConf('logo_spacer')).'" alt="" />'; echo '<img width="5" height="5" src="'.ml(tpl_getConf('logo_spacer')).'" alt="" />';
} else{ } else{
@ -179,8 +181,8 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* search form */ /* search form */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/main-sidebar-search.php'); ?> include('tpl/main-sidebar-search.php');
?>
</div><!-- .search --> </div><!-- .search -->
<div id="dokuwiki__aside" class="menu main-sidebar"> <div id="dokuwiki__aside" class="menu main-sidebar">
@ -192,7 +194,6 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/nav-main.php'); include('tpl/nav-main.php');
?> ?>
</div><!-- .menu --> </div><!-- .menu -->
<div class="site-tools main-sidebar"> <div class="site-tools main-sidebar">
@ -202,8 +203,8 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* site tools */ /* site tools */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/nav-sitetools.php'); ?> include('tpl/nav-sitetools.php');
?>
</div><!-- .site-tools --> </div><!-- .site-tools -->
@ -214,8 +215,8 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* Include Hook: sidebarfooter.html */ /* Include Hook: sidebarfooter.html */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
tpl_includeFile('sidebarfooter.html') ?> tpl_includeFile('sidebarfooter.html')
?>
</div><!-- .sidebarheader --> </div><!-- .sidebarheader -->
</div><!-- .col --> </div><!-- .col -->
@ -261,6 +262,7 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
</div><!-- .container --> </div><!-- .container -->
</div><!-- /top-header --> </div><!-- /top-header -->
<div class="content"> <div class="content">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
@ -274,8 +276,10 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
tpl_includeFile('pageheader.html') tpl_includeFile('pageheader.html')
?> ?>
<div class="breadcrumbs"> <div class="breadcrumbs">
<h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6> <h6 class="sr-only" role="heading" aria-level="2"><?php echo tpl_getLang('head_menu_status') ?></h6>
<?php <?php
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
@ -288,16 +292,20 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* breadcrumb */ /* breadcrumb */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/nav-breadcrumb.php'); ?> include('tpl/nav-breadcrumb.php');
?>
<h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6> <h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['page_tools'] ?></h6>
<?php <?php
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* page tools */ /* page tools */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/nav-page-tools.php'); ?> include('tpl/nav-page-tools.php');
?>
</div> </div>
<div id="dokuwiki__content" class="page main-content"> <div id="dokuwiki__content" class="page main-content">
@ -308,7 +316,8 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* wikipage start / main content */ /* wikipage start / main content */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ /* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
tpl_content(false); /* the main content */ ?> tpl_content(false); /* the main content */
?>
</div><!-- .main-content --> </div><!-- .main-content -->
@ -317,30 +326,47 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
</div><!-- .container --> </div><!-- .container -->
<?php tpl_flush() ?> <?php tpl_flush() ?>
<?php tpl_includeFile('pagefooter.html') ?> <?php tpl_includeFile('pagefooter.html') ?>
</div></div><!-- /content --> </div><!-- /content -->
<div class="clearer"></div> <div class="clearer"></div>
</div><!-- /wrapper --> </div><!-- /wrapper -->
<!-- ********** FOOTER ********** -->
<div id="dokuwiki__footer"><div class="pad">
<div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> <!-- ********** FOOTER ********** -->
<?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
</div></div><!-- /footer --> <div id="dokuwiki__footer">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="main-footer">
<p>
<?php
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* 'Last modified' etc */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
tpl_pageinfo()
?>
</p>
</div>
</div>
</div>
</div>
</div><!-- /footer -->
<?php tpl_includeFile('footer.html') ?> <?php tpl_includeFile('footer.html') ?>
</div><!-- .dokuwiki__site --> </div><!-- .dokuwiki__site -->
<div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
</body> </body>
</html> </html>