Пример #1
0
">

            <?php 
// Page icons (print, email, share link, etc.)
require_once 'tpl_page_icons.php';
tpl_flush();
/* flush the output buffer */
// Page-Header DokuWiki page
tpl_includeFile('pageheader.html');
// Page-Header DokuWiki page
if ($ACT == 'show') {
    tpl_include_page('pageheader', 1, 1, bootstrap3_conf('useACL'));
}
// render the content into buffer for later use
ob_start();
tpl_content(false);
$content = bootstrap3_content(ob_get_clean());
$toc = bootstrap3_toc(true);
// Include Page Tools
require_once 'tpl_page_tools.php';
if ($toc) {
    echo '<div class="dw-page-row row">';
}
echo '<div class="dw-content' . ($toc ? ' dw-content-with-toc col-sm-9' . (bootstrap3_conf('tocPosition') == 'left' ? ' col-md-push-3' : '') : '') . '">';
echo $content;
echo '</div>';
// Include the TOC layout
if ($toc) {
    echo '<div class="dw-toc hidden-print col-sm-3' . (bootstrap3_conf('tocPosition') == 'left' ? ' col-sm-pull-9' : '') . '">' . $toc . '</div></div>';
}
tpl_flush();
    <?php 
}
?>
    <!-- ********** CONTENT ********** -->
    <div id="dokuwiki__content">
        <div class="pad">
            <?php 
tpl_flush();
?>
            <?php 
tpl_includeFile('pageheader.html');
?>
            <article class="page">
                <!-- wikipage start -->
                <?php 
tpl_content();
?>
                <!-- wikipage stop -->
                <!--<div class="clearer"></div>-->
            </article><!-- /.page -->
            <?php 
tpl_flush();
?>
            <?php 
tpl_includeFile('pagefooter.html');
?>
        </div><!-- /.pad -->
    </div><!-- /#dokuwiki__content -->
    <!--<div class="clearer"></div>-->
    <hr class="a11y" />
    <!-- PAGE ACTIONS -->
Пример #3
0
        <div class="dokuwiki">

            <!-- The content: Show, Edit, .... -->
            <?php 
tpl_flush();
?>
            <?php 
tpl_includeFile('pageheader.html');
?>
            <!-- wikipage start $prependTOC=false -->

            <!-- Add a p around the content to enable the reader view in Mozilla -->
            <!-- https://github.com/mozilla/readability -->
            <!-- But Firefox close the P because they must contain only inline element ???-->
            <?php 
tpl_content($prependTOC = false);
?>

            <!-- wikipage stop -->
            <?php 
tpl_includeFile('pagefooter.html');
?>

            <?php 
tpl_pageinfo();
?>
            <?php 
tpl_flush();
?>

    tpl_searchform();
    ?>
          </div>
        <?php 
}
?>
        <?php 
tpl_sidebar('left');
?>
      </div>
      <div id="page">
        <?php 
html_msgarea();
?>
        <?php 
$notoc ? tpl_content(false) : tpl_content();
?>
      </div>
      <div id="right_sidebar">
        <?php 
if (tpl_getConf('search') == 'right') {
    ?>
          <div class="sidebar_box search_sidebar">
            <?php 
    tpl_searchform();
    ?>
          </div>
        <?php 
}
?>
        <?php 
}
//decide which type of pagecontent we have to show
switch ($monobook_action) {
    //"image details"
    case "detail":
        include DOKU_TPLINC . "inc_detail.php";
        break;
        //"cite this article"
    //"cite this article"
    case "cite":
        include DOKU_TPLINC . "inc_cite.php";
        break;
        //show "normal" content
    //show "normal" content
    default:
        tpl_content(tpl_getConf("monobook_toc_position") === "article" ? true : false);
        break;
}
?>
          <!-- end rendered wiki content -->

          <br />
          <?php 
//show breadcrumps if enabled and positioned on bottom
if ($conf["breadcrumbs"] == true && $ACT !== "media" && (empty($conf["useacl"]) || $loginname !== "" || !tpl_getConf("monobook_closedwiki")) && tpl_getConf("monobook_breadcrumbs_position") === "bottom") {
    echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
    tpl_breadcrumbs();
    echo "\n          </p></div>\n";
}
//show hierarchical breadcrumps if enabled and positioned on bottom
if ($conf["youarehere"] == true && $ACT !== "media" && (empty($conf["useacl"]) || $loginname !== "" || !tpl_getConf("monobook_closedwiki")) && tpl_getConf("monobook_youarehere_position") === "bottom") {
Пример #6
0
    <?php }?>

    <?php if($conf['youarehere']){?>
    <div class="breadcrumbs">
      <?php tpl_youarehere() ?>
    </div>
    <?php }?>

  </div>
  <?php tpl_flush()?>

  <?php /*old includehook*/ @include(dirname(__FILE__).'/pageheader.html')?>

  <div class="page">
    <!-- wikipage start -->
    <?php tpl_content()?>
    <!-- wikipage stop -->
  </div>

  <div class="clearer"></div>

  <?php tpl_flush()?>

  <div class="stylefoot">

    <div class="meta">
      <div class="user">
        <?php tpl_userinfo()?>
      </div>
      <div class="doc">
        <?php tpl_pageinfo()?>
Пример #7
0
    case "mediamanager":
        include DOKU_TPLINC . "inc_mediamanager.php";
        break;
        //"cite this article"
    //"cite this article"
    case "cite":
        include DOKU_TPLINC . "inc_cite.php";
        break;
        //show "normal" content
    //show "normal" content
    default:
        if ($vector_context == "discuss") {
            $disqus =& plugin_load('syntax', 'disqus');
            echo $disqus->_disqus();
        } else {
            tpl_content(tpl_getConf("vector_toc_position") === "article" ? true : false);
        }
        break;
}
?>
    <!-- end rendered wiki content -->
    <div class="clearer"></div>
  </div>
  <!-- end div id bodyContent -->

  <?php 
//show breadcrumps if enabled and position = bottom
if ($conf["breadcrumbs"] == true && tpl_getConf("vector_breadcrumbs_position") === "bottom") {
    echo "\n  <div class=\"catlinks noprint\"><p>\n    ";
    tpl_breadcrumbs();
    echo "\n  </p></div>\n";
Пример #8
0
 /**
  * Handle the "partial" action, using the blank template to deliver nothing but the inner page content.
  *
  * @param {Doku_Event} $event - The DokuWiki event object.
  * @param {mixed} $param  - The fifth argument to register_hook().
  */
 public function handle_action(Doku_Event &$event, $param)
 {
     if (!$this->m_inPartial) {
         return;
     }
     global $ACT, $INPUT, $ID;
     // Compare permissions between the current page and the passed-in id.
     $compareid = $INPUT->str('fastwiki_compareid');
     if ($compareid && auth_quickaclcheck($ID) != auth_quickaclcheck($compareid)) {
         echo 'PERMISSION_CHANGE';
     } else {
         if (!$this->m_no_content) {
             if ($ACT == 'show') {
                 tpl_toc();
             }
             // Section save. This won't work, unless I return new "range" inputs for all sections.
             //			$secedit = $ACT == 'show' && $INPUT->str('target') == 'section' && ($INPUT->str('prefix') || $INPUT->str('suffix'));
             //			if ($secedit)
             //				$this->render_text($INPUT->str('wikitext')); //+++ render_text isn't outputting anything.
             //			else
             tpl_content(false);
         }
     }
     // Output error messages.
     html_msgarea();
 }
Пример #9
0
function tpl_sidebar_content()
{
    global $ID, $REV, $ACT, $conf;
    // save globals
    $saveID = $ID;
    $saveREV = $REV;
    $saveACT = $ACT;
    // discover file to be displayed in navigation sidebar
    $fileSidebar = '';
    if (tpl_getConf('page')) {
        $fileSidebar = getSidebarFN(getNS($ID), tpl_getConf('page'));
    }
    // determine what to display
    if ($fileSidebar) {
        $ID = $fileSidebar;
        $REV = '';
        $ACT = 'show';
        #    print p_wiki_xhtml($fileSidebar,'',false);
        tpl_content();
    } else {
        #    global $IDX;
        #    html_index($IDX);
        #    $ID = getNS($ID);
        $REV = '';
        $ACT = 'index';
        tpl_content();
    }
    // restore globals
    $ID = $saveID;
    $REV = $saveREV;
    $ACT = $saveACT;
}
Пример #10
0
/**
 * The default template for single posts
 * 
 **/
get_header();
?>

	<?php 
if (have_posts()) {
    ?>
		
		<?php 
    while (have_posts()) {
        the_post();
        ?>

			<?php 
        tpl_content(new ACFPost($post));
        ?>

		<?php 
    }
    ?>

	<?php 
}
?>

<?php 
get_footer();
Пример #11
0
?>
	<!-- == CONTENT == -->
	<div id="dokuwiki__content" class="<?php 
echo $showSidebar ? 'span10' : 'span12';
?>
">
		<?php 
tpl_flush();
?>
		<?php 
tpl_includeFile('pageheader.php');
?>

		<div class="page">
			<?php 
tpl_content($tocInsidePage ? true : false);
/* the main content */
?>
		</div><!-- page -->

		<?php 
tpl_flush();
?>
		<?php 
tpl_includeFile('pagefooter.php');
?>
	</div>
	</div><!-- row -->

	<!-- == FOOTER ==  -->
	<div class='row'>