added tpl_classes() to main container

This commit is contained in:
Anika Henke 2013-08-11 22:19:55 +01:00
parent 4d505d4188
commit cac0893bbb
3 changed files with 6 additions and 7 deletions

View file

@ -30,7 +30,7 @@ header('X-UA-Compatible: IE=edge,chrome=1');
<body> <body>
<!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
<div id="dokuwiki__detail" class="dokuwiki"> <div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>">
<?php html_msgarea() ?> <?php html_msgarea() ?>
<?php if($ERROR){ print $ERROR; }else{ ?> <?php if($ERROR){ print $ERROR; }else{ ?>

View file

@ -32,11 +32,10 @@ $showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
<!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
<?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
<?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode, <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?> should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
<?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
<div id="dokuwiki__site"><div id="dokuwiki__top" echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'hasSidebar' : '' ?>">
<?php html_msgarea() /* occasional error and info messages on top of the page */ ?> <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
<?php tpl_includeFile('header.html') ?> <?php tpl_includeFile('header.html') ?>

View file

@ -28,7 +28,7 @@ header('X-UA-Compatible: IE=edge,chrome=1');
<body> <body>
<!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
<div id="media__manager" class="dokuwiki"> <div id="media__manager" class="<?php echo tpl_classes(); ?>">
<?php html_msgarea() ?> <?php html_msgarea() ?>
<div id="mediamgr__aside"><div class="pad"> <div id="mediamgr__aside"><div class="pad">
<h1><?php echo hsc($lang['mediaselect'])?></h1> <h1><?php echo hsc($lang['mediaselect'])?></h1>