[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/tpl/default/ -> main.php (source)

   1  <?php
   2  /**
   3   * DokuWiki Default Template
   4   *
   5   * This is the template you need to change for the overall look
   6   * of DokuWiki.
   7   *
   8   * You should leave the doctype at the very top - It should
   9   * always be the very first line of a document.
  10   *
  11   * @link   http://dokuwiki.org/templates
  12   * @author Andreas Gohr <andi@splitbrain.org>
  13   */
  14  
  15  // must be run from within DokuWiki
  16  if (!defined('DOKU_INC')) die();
  17  
  18  ?>
  19  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  20   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  21  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"
  22   lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>">
  23  <head>
  24    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  25    <title>
  26      <?php tpl_pagetitle()?>
  27      [<?php echo strip_tags($conf['title'])?>]
  28    </title>
  29  
  30    <?php tpl_metaheaders()?>
  31    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
  32  
  33    <?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
  34  </head>
  35  
  36  <body>
  37  <?php /*old includehook*/ @include(dirname(__FILE__).'/topheader.html')?>
  38  <div class="dokuwiki">
  39    <?php html_msgarea()?>
  40  
  41    <div class="stylehead">
  42  
  43      <div class="header">
  44        <div class="pagename">
  45          [[<?php tpl_link(wl($ID,'do=backlink'),tpl_pagetitle($ID,true),'title="'.$lang['btn_backlink'].'"')?>]]
  46        </div>
  47        <div class="logo">
  48          <?php tpl_link(wl(),$conf['title'],'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[H]"')?>
  49        </div>
  50  
  51        <div class="clearer"></div>
  52      </div>
  53  
  54      <?php /*old includehook*/ @include(dirname(__FILE__).'/header.html')?>
  55  
  56      <div class="bar" id="bar__top">
  57        <div class="bar-left" id="bar__topleft">
  58          <?php tpl_button('edit')?>
  59          <?php tpl_button('history')?>
  60        </div>
  61  
  62        <div class="bar-right" id="bar__topright">
  63          <?php tpl_button('recent')?>
  64          <?php tpl_searchform()?>&nbsp;
  65        </div>
  66  
  67        <div class="clearer"></div>
  68      </div>
  69  
  70      <?php if($conf['breadcrumbs']){?>
  71      <div class="breadcrumbs">
  72        <?php tpl_breadcrumbs()?>
  73        <?php //tpl_youarehere() //(some people prefer this)?>
  74      </div>
  75      <?php }?>
  76  
  77      <?php if($conf['youarehere']){?>
  78      <div class="breadcrumbs">
  79        <?php tpl_youarehere() ?>
  80      </div>
  81      <?php }?>
  82  
  83    </div>
  84    <?php tpl_flush()?>
  85  
  86    <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>
  87  
  88    <div class="page">
  89      <!-- wikipage start -->
  90      <?php tpl_content()?>
  91      <!-- wikipage stop -->
  92    </div>
  93  
  94    <div class="clearer"></div>
  95  
  96    <?php tpl_flush()?>
  97  
  98    <div class="stylefoot">
  99  
 100      <div class="meta">
 101        <div class="user">
 102          <?php tpl_userinfo()?>
 103        </div>
 104        <div class="doc">
 105          <?php tpl_pageinfo()?>
 106        </div>
 107      </div>
 108  
 109     <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>
 110  
 111      <div class="bar" id="bar__bottom">
 112        <div class="bar-left" id="bar__bottomleft">
 113          <?php tpl_button('edit')?>
 114          <?php tpl_button('history')?>
 115          <?php tpl_button('revert')?>
 116        </div>
 117        <div class="bar-right" id="bar__bottomright">
 118          <?php tpl_button('subscribe')?>
 119          <?php tpl_button('media')?>
 120          <?php tpl_button('admin')?>
 121          <?php tpl_button('profile')?>
 122          <?php tpl_button('login')?>
 123          <?php tpl_button('index')?>
 124          <?php tpl_button('top')?>&nbsp;
 125        </div>
 126        <div class="clearer"></div>
 127      </div>
 128  
 129    </div>
 130  
 131    <?php tpl_license(false);?>
 132  
 133  </div>
 134  <?php /*old includehook*/ @include(dirname(__FILE__).'/footer.html')?>
 135  
 136  <div class="no"><?php /* provide DokuWiki housekeeping, required in all templates */ tpl_indexerWebBug()?></div>
 137  </body>
 138  </html>


Generated: Wed May 23 03:00:10 2012 Cross-referenced by PHPXref 0.7
WikiForumIRCBugsGitXRefTranslate