本文整理汇总了PHP中tpl_include_page函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_include_page函数的具体用法?PHP tpl_include_page怎么用?PHP tpl_include_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_include_page函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: testExistingSidebars
function testExistingSidebars()
{
global $ID;
saveWikiText('sidebar', 'topsidebar-test', '');
$ID = 'foo:bar:baz:test';
$sidebar = tpl_include_page('sidebar', false, true);
$this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0);
$ID = 'foo';
$sidebar = tpl_include_page('sidebar', false, true);
$this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0);
saveWikiText('foo:bar:sidebar', 'bottomsidebar-test', '');
$ID = 'foo:bar:baz:test';
$sidebar = tpl_include_page('sidebar', false, true);
$this->assertTrue(strpos($sidebar, 'bottomsidebar-test') > 0);
$ID = 'foo:bar:test';
$sidebar = tpl_include_page('sidebar', false, true);
$this->assertTrue(strpos($sidebar, 'bottomsidebar-test') > 0);
$ID = 'foo';
$sidebar = tpl_include_page('sidebar', false, true);
$this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0);
}
开发者ID:rsnitsch,项目名称:dokuwiki,代码行数:21,代码来源:template_include_page.test.php
示例2: tpl_include_page
/**
* DokuWiki Bootstrap3 Template: Cookie Law Banner
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if ($showCookieLawBanner && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) {
?>
<div id="cookieNotice" class="navbar <?php
echo $inverseNavbar ? 'navbar-inverse' : 'navbar-default';
?>
navbar-fixed-bottom">
<div class="container">
<?php
tpl_include_page($cookieLawBannerPage);
?>
<div class="navbar-right">
<button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button>
<?php
tpl_link(wl($cookieLawPolicyPage), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"');
?>
</div>
</div>
</div>
<script type="text/javascript">
jQuery('#cookieDismiss').click(function(){
jQuery('#cookieNotice').hide();
DokuCookie.setValue('cookieNoticeAccepted', true);
});
jQuery(document).ready(function(){
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_cookielaw.php
示例3: tpl_flush
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();
// Page-Footer hook
tpl_includeFile('pagefooter.html');
// Page-Footer DokuWiki page
if ($ACT == 'show') {
tpl_include_page('pagefooter', 1, 1, bootstrap3_conf('useACL'));
}
?>
</div>
</div>
</article>
<?php
bootstrap3_sidebar_include('right');
?>
</main>
<div class="small text-right">
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php
示例4: tpl_action
tpl_action('media', 1, 'li');
}
tpl_action('index', 1, 'li');
?>
</ul>
</div>
</div>
<!-- TOPBAR - @tpl_mtb_schotland_2016-template@ -->
<div class="topbar">
<?php
if (tpl_getConf("tpl_mtb_schotland_2016:htmltopbar")) {
tpl_includeFile('topbar.php');
} else {
tpl_include_page(tpl_getConf("tpl_mtb_schotland_2016:pagetopbar"), 1, 1);
}
?>
</div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs'] || $conf['youarehere']) {
?>
<div class="breadcrumbs">
<?php
if ($conf['youarehere']) {
?>
<div class="youarehere"><?php
tpl_youarehere();
?>
开发者ID:RobBosman,项目名称:private.tpl_mtb_schotland_2016,代码行数:31,代码来源:tpl_header.php
示例5: tpl_includeFile
<!-- ********** ASIDE ********** -->
<aside id="<?php
echo $sidebar_id;
?>
" class="dw__sidebar <?php
echo $sidebar_class;
?>
hidden-print">
<div class="content">
<div class="toogle hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php
echo $sidebar_id;
?>
.collapse">
<i class="glyphicon glyphicon-th-list"></i> <?php
echo $lang['sidebar'];
?>
</div>
<div class="collapse in">
<?php
tpl_includeFile($sidebar_header);
?>
<?php
bootstrap_sidebar(tpl_include_page($sidebar_page, 0, 1));
?>
<?php
tpl_includeFile($sidebar_footer);
?>
</div>
</div>
</aside>
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:30,代码来源:tpl_sidebar.php
示例6: bootstrap3_toc
$toc = bootstrap3_toc(tpl_toc(true), true);
$content = '<div class="dw-content">' . $content . '</div>';
// Include Page Tools
require_once 'tpl_page_tools.php';
// Include the TOC layout
if ($toc) {
require_once 'tpl_toc.php';
} else {
echo $content;
}
tpl_flush();
// Page-Footer hook
tpl_includeFile('pagefooter.html');
// Page-Footer DokuWiki page
if ($ACT == 'show') {
tpl_include_page('pagefooter', 1, 1);
}
?>
</div>
</div>
</article>
<?php
bootstrap3_sidebar_include('right');
?>
</main>
<footer id="dokuwiki__footer" class="small">
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php
示例7: dirname
<?php
$ssbar = dirname(__FILE__) . '/sidebar.html';
if (file_exists($ssbar)) {
@(include $ssbar);
} else {
$ssbar = dirname(__FILE__) . '/sidebar.php';
if (file_exists($ssbar)) {
@(include $ssbar);
}
}
?>
<div id="personal_ssb">
<?php
global $INFO;
$pageid = "sidebar:" . $INFO['client'];
tpl_include_page($pageid);
?>
</div>
</div> <!-- end left_sidebar-->
<div class="page">
<div class="right_page <?php
echo $current_class;
?>
" id="right_page">
<!-- wikipage start -->
<?php
tpl_content();
?>
<!-- wikipage stop -->
开发者ID:omusico,项目名称:isle-web-framework,代码行数:31,代码来源:main.php
示例8: tpl_includeFile
<!-- ********** ASIDE ********** -->
<aside id="<?php
echo $sidebar_id;
?>
" class="dw__sidebar <?php
echo $sidebar_class;
?>
hidden-print small">
<div class="dw-sidebar-content">
<div class="dw-sidebar-title hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php
echo $sidebar_id;
?>
.dw-sidebar-body">
<i class="fa fa-fw fa-th-list"></i> <?php
echo $lang['sidebar'];
?>
</div>
<div class="dw-sidebar-body collapse in">
<?php
tpl_includeFile($sidebar_header);
?>
<?php
bootstrap3_sidebar(tpl_include_page($sidebar_page, 0, 1, bootstrap3_conf('useACL')));
?>
<?php
tpl_includeFile($sidebar_footer);
?>
</div>
</div>
</aside>
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:30,代码来源:tpl_sidebar.php
示例9: array
if (!$print) {
return $html;
}
echo $html;
return $html;
}
//Sidebar with replace CONSTANTS
$search = array("_USERNAME_", "_CLIENTNAME_", "_PAGEID_");
$replace = array($INFO["userinfo"]["name"], $_SERVER['REMOTE_USER'], $ID);
if ($_SERVER['REMOTE_USER'] && page_exists('user:' . $_SERVER['REMOTE_USER'] . ':sidebar')) {
$sidebar = template_tpl_include_page('user:' . $_SERVER['REMOTE_USER'] . ':sidebar', 0, 0, template_getLastModOfGivenPageId('user:' . $_SERVER['REMOTE_USER'] . ':sidebar'));
} else {
if ($_SERVER['REMOTE_USER'] && page_exists('user:sidebar')) {
$sidebar = template_tpl_include_page('user:sidebar', 0, 0, template_getLastModOfGivenPageId('user:sidebar'));
} else {
$sidebar = tpl_include_page('sidebar', 0, 0, '');
}
}
$sidebar = str_ireplace($search, $replace, $sidebar);
$hasSidebar = $sidebar ? true : false;
$showSidebar = $hasSidebar && $ACT == 'show';
?>
<!DOCTYPE html>
<html lang="<?php
echo $conf['lang'];
?>
" dir="<?php
echo $lang['direction'];
?>
" class="no-js">
<head>
开发者ID:araname,项目名称:template-lisps,代码行数:31,代码来源:main.php
示例10: wl
$_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-recentchanges\"><a href=\"" . wl("", array("do" => "recent")) . "\" rel=\"nofollow\">" . hsc($lang["btn_recent"]) . "</a></li>\n";
//language comes from DokuWiki core
}
$_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-upload\"><a href=\"" . DOKU_BASE . "lib/exe/mediamanager.php?ns=" . getNS(getID()) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolbxdef_upload"]) . "</a></li>\n";
if (actionOK("index")) {
//check if action is disabled
$_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-special\"><a href=\"" . wl("", array("do" => "index")) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolbxdef_siteindex"]) . "</a></li>\n";
}
$_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-permanent\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev)) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolboxdef_permanent"]) . "</a></li>\n" . " <li id=\"t-cite\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev, "vecdo" => "cite")) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolboxdef_cite"]) . "</a></li>\n" . " </ul>";
} else {
//we have to use a custom toolbox
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("vector_toolbox_location"))) >= AUTH_READ) {
//current user got access?
//get the rendered content of the defined wiki article to use as
//custom toolbox
$interim = tpl_include_page(tpl_getConf("vector_toolbox_location"), false);
if ($interim === "" || $interim === false) {
//add creation/edit link if the defined page got no content
$_vector_boxes["p-tb"]["xhtml"] = "<li>[ " . html_wikilink(tpl_getConf("vector_toolbox_location"), hsc($lang["vector_fillplaceholder"] . " (" . tpl_getConf("vector_toolbox_location") . ")"), null) . " ]<br /></li>";
} else {
//add the rendered page content
$_vector_boxes["p-tb"]["xhtml"] = $interim;
}
} else {
//we are not allowed to show the content of the defined wiki
//article to use as custom sitenotice.
//$_vector_boxes["p-tb"]["xhtml"] = hsc($lang["vector_accessdenied"])." (".tpl_getConf("vector_toolbox_location").")";
}
}
}
} else {
开发者ID:houshuang,项目名称:folders2web,代码行数:31,代码来源:boxes.php
示例11: tpl_pagelink
<p>Who am I? I answer to Piete or Pieter and I try to be more than just my job title.</p>
<p>Browse my <?php
tpl_pagelink(':blog');
?>
, read <?php
tpl_pagelink(':about', 'about me');
?>
, or listen to my <?php
tpl_pagelink(':music');
?>
.</p>
</section>
<nav id="tags">
<?php
tpl_include_page("sidebar");
?>
</nav>
<?php
/*
<?php if (tpl_getConf('lookingforme')) { ?>
<nav id="calendar">
<?php tpl_include_page("calendar_sidebar") ?>
</nav>
<?php } ?>
*/
?>
</section>
开发者ID:pietersartain,项目名称:dokuwiki-template-lookingforme,代码行数:30,代码来源:main.php
示例12: dirname
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) {
die;
}
/* must be run from within DokuWiki */
@(require_once dirname(__FILE__) . '/tpl_functions.php');
/* include hook for template functions */
header('X-UA-Compatible: IE=edge,chrome=1');
_mixture_init();
$showTools = !tpl_getConf('hideTools') || tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']);
$showSidebar = page_findnearest($conf['sidebar']) && $ACT == 'show';
// Retrieve number of last changes to show
$showLastChanges = intval(end(explode(',', tpl_getConf('lastchanges'))));
// Get topbar links from current Namespace or any parent (if corresponding namespacedFiles setting is on) or from wiki root
$topbar = tpl_include_page('topbar', false, strpos(tpl_getConf('namespacedFiles'), 'topbar_links') !== false ? true : false);
//$contribs = tpl_include_page('contribs', false, true);
//dbg($contribs);
// Get Web Fonts names from style.ini file to load them with WebFont.load
global $styleIni;
$webFonts = array();
$webFonts['main'] = $styleIni['replacements']['__font_main__'];
$webFonts['headings'] = $styleIni['replacements']['__font_headings__'];
$webFonts['condensed'] = $styleIni['replacements']['__font_condensed__'];
$webFonts['mono'] = $styleIni['replacements']['__font_mono__'];
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php
echo $conf['lang'];
?>
"
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:31,代码来源:main.php
示例13: explode
</a>
</div>
</div>
</div>
<div id="tm-offcanvas" class="uk-offcanvas">
<div class="uk-offcanvas-bar uk-offcanvas-bar-show">
<ul class="uk-nav uk-nav-offcanvas">
<?php
$nav = explode(':', tpl_pagetitle(NULL, true));
array_pop($nav);
$nav = count($nav) > 0 ? implode(':', $nav) . ':navigation' : 'navigation';
echo strip_tags(tpl_include_page($nav, 0, 0), '<li><a>');
if ($nav) {
echo '';
}
?>
</ul>
</div>
</div>
<div class="uk-tooltip"></div>
<form action="#">
<input class="fixjs" type="hidden" name="title" value="<?php
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:main.php
示例14: tpl_getConf
if (empty($transplugin_langs) || empty($transplugin_langcur) || !is_array($transplugin_langs) || !in_array($transplugin_langcur, $transplugin_langs)) {
//current page is no translation or something is wrong, load default copyright notice
$copyright_location = tpl_getConf("monobook_copyright_location");
} else {
//load language specific copyright notice
$copyright_location = tpl_getConf("monobook_copyright_location") . "_" . $transplugin_langcur;
}
} else {
//default copyright notice, no translation
$copyright_location = tpl_getConf("monobook_copyright_location");
}
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID($copyright_location)) >= AUTH_READ) {
//current user got access?
echo "<li id=\"copyright\">\n ";
//get the rendered content of the defined wiki article to use as custom notice
$interim = tpl_include_page($copyright_location, false);
if ($interim === "" || $interim === false) {
//show creation/edit link if the defined page got no content
echo "[ ";
tpl_pagelink($copyright_location, hsc($lang["monobook_fillplaceholder"] . " (" . hsc($copyright_location) . ")"));
echo " ]<br />";
} else {
//show the rendered page content
echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>";
}
echo "\n </li>\n";
}
}
}
?>
<li id="usermod">
开发者ID:RJWoodhead,项目名称:dokuwiki-template-monobook,代码行数:31,代码来源:main.php
示例15: tpl_license
<?php
//copyright notice
if (tpl_getConf("vector_copyright")) {
//show dokuwiki's default notice?
if (tpl_getConf("vector_copyright_default")) {
echo "<li id=\"footer-info-copyright\">\n <div class=\"dokuwiki\">";
//dokuwiki CSS class needed cause we have to show DokuWiki content
tpl_license(false);
echo "</div>\n </li>\n";
//show custom notice.
} else {
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("vector_copyright_location"))) >= AUTH_READ) {
//current user got access?
echo "<li id=\"footer-info-copyright\">\n ";
//get the rendered content of the defined wiki article to use as custom notice
$interim = tpl_include_page(tpl_getConf("vector_copyright_location"), false);
if ($interim === "" || $interim === false) {
//show creation/edit link if the defined page got no content
echo "[ ";
tpl_pagelink(tpl_getConf("vector_copyright_location"), hsc($lang["vector_fillplaceholder"] . " (" . tpl_getConf("vector_copyright_location") . ")"));
echo " ]<br />";
} else {
//show the rendered page content
echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>";
}
echo "\n </li>\n";
}
}
}
?>
</ul>
开发者ID:houshuang,项目名称:folders2web,代码行数:31,代码来源:main.php
示例16: resolve_pageid
* DokuWiki Bootstrap3 Template: Footer page
*
* @link http://dokuwiki.org/template:bootstrap3
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
die;
}
$footer_page = 'footer';
resolve_pageid('', $footer_page, $footer_page_exists);
if ($footer_page_exists) {
?>
<div id="dw__footer" class="navbar <?php
echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default';
?>
navbar-fixed-bottom">
<div class="container<?php
echo $fluidContainer ? '-fluid' : '';
?>
">
<div class="navbar-text">
<?php
tpl_include_page($footer_page, 1, 1);
?>
</div>
</div>
</div>
<?php
}
开发者ID:vierbergenlars,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_footer.php
示例17: tpl_action
tpl_action('login', 1, 'li');
?>
</ul>
</div>
<?php
}
?>
</div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs'] || $conf['youarehere']) {
?>
<div class="breadcrumbs">
<div class="trace">
<?php
tpl_include_page('nav', 1, 1);
?>
</div>
</div>
<?php
}
?>
<?php
html_msgarea();
?>
<hr class="a11y" />
</div></div><!-- /header -->
开发者ID:xing393939,项目名称:dokuwiki,代码行数:30,代码来源:tpl_header.php
示例18: bootstrap3_conf
if (!defined('DOKU_INC')) {
die;
}
if (bootstrap3_conf('showCookieLawBanner') && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) {
$cookie_policy_page_id = bootstrap3_conf('cookieLawPolicyPage');
$cookie_banner_page_id = bootstrap3_conf('cookieLawBannerPage');
resolve_pageid('', $cookie_policy_page_id, $cookie_policy_page_exists);
?>
<div id="cookieNotice" class="navbar <?php
echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default';
?>
navbar-fixed-bottom">
<div class="container">
<div class="navbar-text navbar-left">
<?php
$cookie_banner_page = tpl_include_page($cookie_banner_page_id, 0);
$cookie_banner_page = preg_replace('/<p>\\n(.*?)\\n<\\/p>/', '<i class="fa fa-info-circle text-primary"></i> $1', $cookie_banner_page);
echo $cookie_banner_page;
?>
</div>
<div class="navbar-right">
<button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button>
<?php
if ($cookie_policy_page_exists) {
tpl_link(wl($cookie_policy_page_id), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"');
}
?>
</div>
</div>
</div>
<?php
开发者ID:qswks,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_cookielaw.php
示例19: bootstrap3_dropdown_page
/**
* Return a drop-down page
*
* @author Giuseppe Di Terlizzi <[email protected]>
*
* @param string $page name
* @return string
*/
function bootstrap3_dropdown_page($page)
{
$page = page_findnearest($page);
if (!$page) {
return;
}
$output = bootstrap3_nav(tpl_include_page($page, 0, 1), 'pills', true);
$dropdown = '<ul class="nav navbar-nav dw__dropdown_page">' . '<li class="dropdown dropdown-large">' . '<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="">' . p_get_first_heading($page) . ' <span class="caret"></span></a>' . '<ul class="dropdown-menu dropdown-menu-large" role="menu">' . '<li><div class="container">' . $output . '</div></li></ul></li></ul>';
return $dropdown;
}
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:18,代码来源:tpl_functions.php
示例20: tpl_license
}
}
}
?>
</div><?php
//copyright notice
if (tpl_getConf("prsnl10_copyright")) {
echo "\n <div id=\"licenseinfo\">\n ";
if (tpl_getConf("prsnl10_copyright_default")) {
tpl_license(false);
} else {
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("prsnl10_copyright_location")))) {
//current user got access?
//get the rendered content of the defined wiki article to use as custom notice
$interim = tpl_include_page(tpl_getConf("prsnl10_copyright_location"), false);
if ($interim === "" || $interim === false) {
//show creation/edit link if the defined page got no content
echo "[ ";
tpl_pagelink(tpl_getConf("prsnl10_copyright_location"), hsc($lang["prsnl10_fillplaceholder"] . " (" . tpl_getConf("prsnl10_copyright_location") . ")"));
echo " ]<br />";
} else {
//show the rendered page content
echo $interim;
}
}
}
echo "\n </div>";
}
?>
开发者ID:robotamer,项目名称:dokuwiki-template-prsnl10,代码行数:30,代码来源:main.php
注:本文中的tpl_include_page函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论