本文整理汇总了PHP中tpl_content函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_content函数的具体用法?PHP tpl_content怎么用?PHP tpl_content使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_content函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tpl_flush
">
<?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();
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php
示例2: 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 -->
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:31,代码来源:tpl_layout_classic.old.php
示例3: tpl_flush
<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();
?>
开发者ID:alanthonyc,项目名称:dokuwiki-template-bootie,代码行数:29,代码来源:main.php
示例4: tpl_searchform
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
开发者ID:silentulo,项目名称:dokuwiki-template-kunlaborejo,代码行数:31,代码来源:main.php
示例5: switch
}
//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") {
开发者ID:RJWoodhead,项目名称:dokuwiki-template-monobook,代码行数:31,代码来源:main.php
示例6: if
<?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()?>
开发者ID:neutrinog,项目名称:Door43,代码行数:31,代码来源:main.php
示例7: plugin_load
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";
开发者ID:houshuang,项目名称:folders2web,代码行数:31,代码来源:main.php
示例8: handle_action
/**
* 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();
}
开发者ID:sawachan,项目名称:dokuwiki_fastwiki,代码行数:32,代码来源:action.php
示例9: tpl_sidebar_content
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;
}
开发者ID:lorea,项目名称:Hydra-dev,代码行数:32,代码来源:tplfn_sidebar.php
示例10: get_header
/**
* 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();
开发者ID:andrewcroce,项目名称:TPL,代码行数:30,代码来源:single-default.php
示例11: tpl_flush
?>
<!-- == 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'>
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:main.php
注:本文中的tpl_content函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论