new structure
This commit is contained in:
parent
da7e18f852
commit
d0b97fa27f
12 changed files with 206 additions and 100 deletions
|
@ -4,6 +4,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
$conf['logo'] = 'logo.png';
|
||||
|
||||
$conf['discussionPage'] = 'discussion:@ID@';
|
||||
$conf['userPage'] = 'user:@USER@:';
|
||||
$conf['hideTools'] = 0;
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
$meta['logo'] = array('string');
|
||||
|
||||
$meta['discussionPage'] = array('string');
|
||||
$meta['userPage'] = array('string');
|
||||
$meta['hideTools'] = array('onoff');
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
.nav-usertools {
|
||||
ul{
|
||||
float: right;
|
||||
padding: 0; margin: .2rem 0 0 0;
|
||||
li{
|
||||
display: inline-block;
|
||||
float: right;
|
||||
|
|
BIN
images/logo.png
BIN
images/logo.png
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB |
|
@ -5,20 +5,24 @@
|
|||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
|
||||
*/
|
||||
|
||||
$lang['direct_prefix'] = 'Direkt';
|
||||
$lang['direct_content_main'] = 'Hauptinhalt dieser Seite';
|
||||
$lang['direct_menu_main'] = 'Hauptmenü';
|
||||
$lang['direct_prefix'] = 'Direkt';
|
||||
$lang['direct_content_main'] = 'Hauptinhalt dieser Seite';
|
||||
$lang['direct_menu_main'] = 'Hauptmenü';
|
||||
|
||||
$lang['nav-area-head'] = 'Navigationsmenüs und Suche';
|
||||
$lang['head_magic_matcher'] = 'MagicMatcher';
|
||||
$lang['adjunct_start_logo_text'] = 'Logo: ';
|
||||
$lang['adjunct_linked_logo_text'] = '. Link zur Startseite';
|
||||
|
||||
$lang['nav-area-head'] = 'Navigationsmenüs und Suche';
|
||||
$lang['head_magic_matcher'] = 'MagicMatcher';
|
||||
$lang['head_quick_search'] = 'wikiübergreifende Schnellsuche';
|
||||
$lang['head_menu_main'] = 'Hauptmenü';
|
||||
|
||||
$lang['discussion'] = 'Diskussion';
|
||||
$lang['back_to_article'] = 'Zurück zum Artikel';
|
||||
$lang['userpage'] = 'Benutzer-Seite';
|
||||
$lang['__existing__'] = 'The color for links to existing pages';
|
||||
$lang['__missing__'] = 'The color for links to non-existing pages';
|
||||
$lang['__site_width__'] = 'The width of the full site (can be any length unit: %, px, em, ...)';
|
||||
$lang['__sidebar_width__'] = 'The width of the sidebar, if any (can be any length unit: %, px, em, ...)';
|
||||
$lang['discussion'] = 'Diskussion';
|
||||
$lang['back_to_article'] = 'Zurück zum Artikel';
|
||||
$lang['userpage'] = 'Benutzer-Seite';
|
||||
$lang['__existing__'] = 'The color for links to existing pages';
|
||||
$lang['__missing__'] = 'The color for links to non-existing pages';
|
||||
$lang['__site_width__'] = 'The width of the full site (can be any length unit: %, px, em, ...)';
|
||||
$lang['__sidebar_width__'] = 'The width of the sidebar, if any (can be any length unit: %, px, em, ...)';
|
||||
|
||||
//Setup VIM: ex: et ts=2 :
|
||||
|
|
|
@ -4,17 +4,22 @@
|
|||
*
|
||||
*/
|
||||
|
||||
$lang['direct_prefix'] = 'jump to';
|
||||
$lang['direct_content_main'] = 'main content';
|
||||
$lang['direct_menu_main'] = 'main menu';
|
||||
$lang['direct_prefix'] = 'jump to';
|
||||
$lang['direct_content_main'] = 'main content';
|
||||
$lang['direct_menu_main'] = 'main menu';
|
||||
|
||||
$lang['nav-area-head'] = 'menus and quick search';
|
||||
$lang['head_magic_matcher'] = 'MagicMatcher';
|
||||
$lang['adjunct_start_logo_text'] = 'Logo: ';
|
||||
$lang['adjunct_linked_logo_text'] = '. homepage link';
|
||||
|
||||
$lang['discussion'] = 'Discussion';
|
||||
$lang['back_to_article'] = 'Back to article';
|
||||
$lang['userpage'] = 'User page';
|
||||
$lang['__existing__'] = 'The color for links to existing pages';
|
||||
$lang['__missing__'] = 'The color for links to non-existing pages';
|
||||
$lang['__site_width__'] = 'The width of the full site (can be any length unit: %, px, em, ...)';
|
||||
$lang['__sidebar_width__'] = 'The width of the sidebar, if any (can be any length unit: %, px, em, ...)';
|
||||
$lang['nav-area-head'] = 'menus and quick search';
|
||||
$lang['head_magic_matcher'] = 'MagicMatcher';
|
||||
$lang['head_quick_search'] = 'quick search';
|
||||
$lang['head_menu_main'] = 'main menu';
|
||||
|
||||
$lang['discussion'] = 'Discussion';
|
||||
$lang['back_to_article'] = 'Back to article';
|
||||
$lang['userpage'] = 'User page';
|
||||
$lang['__existing__'] = 'The color for links to existing pages';
|
||||
$lang['__missing__'] = 'The color for links to non-existing pages';
|
||||
$lang['__site_width__'] = 'The width of the full site (can be any length unit: %, px, em, ...)';
|
||||
$lang['__sidebar_width__'] = 'The width of the sidebar, if any (can be any length unit: %, px, em, ...)';
|
||||
|
|
198
main.php
198
main.php
|
@ -79,10 +79,13 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
|
|||
?>
|
||||
<?php tpl_includeFile('meta.html') ?>
|
||||
</head>
|
||||
<?php /* #dokuwiki__top used as anchor for "back to top" button/link links */ ?>
|
||||
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>">
|
||||
<?php
|
||||
|
||||
|
||||
/* #dokuwiki__top used as anchor for "back to top" button/link links */
|
||||
?>
|
||||
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?>">
|
||||
|
||||
<div id="dokuwiki__site">
|
||||
<?php
|
||||
|
||||
|
@ -105,24 +108,6 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
|
|||
html_msgarea();
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Headline Menu AREA */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
?>
|
||||
|
||||
<div class="nav-area-head">
|
||||
<h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
|
||||
</div><!-- .nav-area-head -->
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* MagicMatcher */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/nav-magicmatcher.php');
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Include Hook: header.html */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
|
@ -133,72 +118,139 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="headings main-sidebar">
|
||||
|
||||
<?php if (tpl_getConf('logo') && file_exists(mediaFN(tpl_getConf('logo')))){
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Logo */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' in der template config accordingly: */
|
||||
include('tpl/main-sidebar-logo.php');
|
||||
} ?>
|
||||
<?php if ($conf['tagline']): ?>
|
||||
<p class="claim"><?php echo $conf['tagline'] ?></p>
|
||||
<?php endif ?>
|
||||
</div><!-- .headings -->
|
||||
</div><!-- .col -->
|
||||
</div><!-- .row -->
|
||||
</div><!-- .container -->
|
||||
</div><!-- .header -->
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Headline Menu AREA */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
?>
|
||||
<div class="sr-only nav-area-head">
|
||||
<h5 class="sr-only" role="heading" aria-level="1"><?php echo tpl_getLang('nav-area-head') ?></h5>
|
||||
</div><!-- .nav-area-head -->
|
||||
|
||||
<?php if ($showSidebar): ?>
|
||||
<div class="tools">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
<div class="sidebarheader main-sidebar">
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Include Hook: sidebarheader.html */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
tpl_includeFile('sidebarheader.html') ?>
|
||||
</div><!-- .sidebarheader -->
|
||||
|
||||
<div class="search main-sidebar">
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Searchform */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/main-sidebar-search.php');
|
||||
?>
|
||||
</div><!-- .search -->
|
||||
|
||||
<div id="dokuwiki__aside" class="menu main-sidebar">
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* main menu */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/nav-main.php');
|
||||
?>
|
||||
</div><!-- .search -->
|
||||
|
||||
<div class="site-tools main-sidebar">
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Sitetools */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/nav-sitetools.php');
|
||||
?>
|
||||
</div><!-- .site-tools -->
|
||||
|
||||
|
||||
<div class="sidebarfooter main-sidebar">
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Include Hook: sidebarfooter.html */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
tpl_includeFile('sidebarfooter.html')
|
||||
?>
|
||||
</div><!-- .sidebarheader -->
|
||||
|
||||
</div><!-- .col -->
|
||||
</div><!-- .row -->
|
||||
</div><!-- .container -->
|
||||
</div><!-- .tools -->
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<div class="top-header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* MagicMatcher */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/nav-magicmatcher.php');
|
||||
|
||||
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* User Tools */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
include('tpl/nav-usertools.php'); ?>
|
||||
</div><!-- .col -->
|
||||
</div><!-- .row -->
|
||||
</div><!-- .container -->
|
||||
|
||||
<div class="headings">
|
||||
<h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
|
||||
<?php /* how to insert logo instead (if no CSS image replacement technique is used):
|
||||
upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
|
||||
tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
|
||||
<?php if ($conf['tagline']): ?>
|
||||
<p class="claim"><?php echo $conf['tagline'] ?></p>
|
||||
<?php endif ?>
|
||||
include('tpl/nav-usertools.php');
|
||||
|
||||
|
||||
<div class="clearer"></div>
|
||||
</div>
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
/* Include Hook: header.html */
|
||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||
tpl_includeFile('header.html');
|
||||
?>
|
||||
|
||||
<div class="tools">
|
||||
|
||||
<!-- SITE TOOLS -->
|
||||
<div id="dokuwiki__sitetools">
|
||||
<h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
|
||||
<?php tpl_searchform() ?>
|
||||
<ul>
|
||||
<?php tpl_toolsevent('sitetools', array(
|
||||
'recent' => tpl_action('recent', 1, 'li', 1),
|
||||
'media' => tpl_action('media', 1, 'li', 1),
|
||||
'index' => tpl_action('index', 1, 'li', 1),
|
||||
)); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="clearer"></div>
|
||||
|
||||
<!-- BREADCRUMBS -->
|
||||
<?php if($conf['breadcrumbs']){ ?>
|
||||
<div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
|
||||
<?php } ?>
|
||||
<?php if($conf['youarehere']){ ?>
|
||||
<div class="breadcrumbs"><?php tpl_youarehere() ?></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="clearer"></div>
|
||||
<hr class="a11y" />
|
||||
</div></div><!-- /header -->
|
||||
</div><!-- .col -->
|
||||
</div><!-- .row -->
|
||||
</div><!-- .container -->
|
||||
</div><!-- /top-header -->
|
||||
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<!-- ********** ASIDE ********** -->
|
||||
<?php if ($showSidebar): ?>
|
||||
<div id="dokuwiki__aside"><div class="pad aside include group">
|
||||
<?php tpl_includeFile('sidebarheader.html') ?>
|
||||
<?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
|
||||
<?php tpl_includeFile('sidebarfooter.html') ?>
|
||||
<div class="clearer"></div>
|
||||
</div></div><!-- /aside -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- ********** CONTENT ********** -->
|
||||
<div id="dokuwiki__content"><div class="pad">
|
||||
|
|
13
tpl/main-sidebar-logo.php
Normal file
13
tpl/main-sidebar-logo.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
if (!defined('DOKU_INC')) die();
|
||||
|
||||
echo '<div class="logo">';
|
||||
|
||||
/* homepage logo should not link to itself (BITV accessibility requirement) */
|
||||
if (strcmp(wl(), $_SERVER['REQUEST_URI']) === 0 ){
|
||||
echo '<img src="'.ml(tpl_getConf('logo')).'" alt="'.tpl_getLang('adjunct_start_logo_text').$conf['title'].'" />';
|
||||
} else{
|
||||
tpl_link( wl(),'<img src="'.ml(tpl_getConf('logo')).'" alt="'.$conf['title'].tpl_getLang('adjunct_linked_logo_text').'" />','accesskey="h" title="[H]"' );
|
||||
|
||||
}
|
||||
echo "</div><!-- .logo -->";
|
5
tpl/main-sidebar-search.php
Normal file
5
tpl/main-sidebar-search.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
if (!defined('DOKU_INC')) die();
|
||||
echo '<h6 class="sr-only" role="heading" aria-level="2">'.tpl_getLang('head_quick_search').'</h6>';
|
||||
|
||||
tpl_searchform();
|
|
@ -10,9 +10,9 @@
|
|||
<p>
|
||||
<span class="sr-out"><?php echo tpl_getLang('direct_prefix'); ?>: </span>
|
||||
<span class="skip">
|
||||
<a href="#content"><?php echo tpl_getLang('direct_content_main'); ?></a><span class="sr-out"> /</span>
|
||||
<a href="#dokuwiki__usertools"><?php echo $lang['user_tools']; ?></a><span class="sr-out"> /</span>
|
||||
<a href="#nav-main"><?php echo tpl_getLang('direct_menu_main'); ?></a>
|
||||
<a rel="nofollow" href="#content"><?php echo tpl_getLang('direct_content_main'); ?></a><span class="sr-out"> /</span>
|
||||
<a rel="nofollow" href="#dokuwiki__usertools"><?php echo $lang['user_tools']; ?></a><span class="sr-out"> /</span>
|
||||
<a rel="nofollow" href="#nav-main"><?php echo tpl_getLang('direct_menu_main'); ?></a>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
|
|
7
tpl/nav-main.php
Normal file
7
tpl/nav-main.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
if (!defined('DOKU_INC')) die();
|
||||
?>
|
||||
<nav class="nav-main">
|
||||
<h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['site_tools']; ?></h6>
|
||||
<?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
|
||||
</nav>
|
15
tpl/nav-sitetools.php
Normal file
15
tpl/nav-sitetools.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
if (!defined('DOKU_INC')) die();
|
||||
?>
|
||||
<nav id="dokuwiki__sitetools" class="nav-usertools">
|
||||
<h6 class="sr-only" role="heading" aria-level="2"><?php echo $lang['site_tools']; ?></h6>
|
||||
<ul>
|
||||
<?php
|
||||
tpl_toolsevent('sitetools', array(
|
||||
'recent' => tpl_action('recent', 1, 'li', 1),
|
||||
'media' => tpl_action('media', 1, 'li', 1),
|
||||
'index' => tpl_action('index', 1, 'li', 1),
|
||||
));
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
Loading…
Add table
Add a link
Reference in a new issue