本文整理汇总了PHP中tpl_breadcrumbs函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_breadcrumbs函数的具体用法?PHP tpl_breadcrumbs怎么用?PHP tpl_breadcrumbs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_breadcrumbs函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tpl_sidebar_dispatch
//.........这里部分代码省略.........
case 'toc':
if (tpl_getConf('closedwiki') && !isset($_SERVER['REMOTE_USER'])) {
return;
}
if (auth_quickaclcheck($svID) >= AUTH_READ) {
$toc = tpl_toc(true);
// replace ids to keep XHTML compliance
if (!empty($toc)) {
$toc = preg_replace('/id="(.*?)"/', 'id="sb__' . $pos . '__\\1"', $toc);
print '<div class="toc_sidebar sidebar_box">' . DOKU_LF;
print $toc;
print '</div>' . DOKU_LF;
}
}
break;
case 'toolbox':
if (tpl_getConf('hideactions') && !isset($_SERVER['REMOTE_USER'])) {
return;
}
if (tpl_getConf('closedwiki') && !isset($_SERVER['REMOTE_USER'])) {
print '<div class="toolbox_sidebar sidebar_box">' . DOKU_LF;
print ' <div class="level1">' . DOKU_LF;
print ' <ul>' . DOKU_LF;
print ' <li><div class="li">';
tpl_actionlink('login');
print ' </div></li>' . DOKU_LF;
print ' </ul>' . DOKU_LF;
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
} else {
$actions = array('admin', 'revert', 'edit', 'history', 'recent', 'backlink', 'subscription', 'index', 'login', 'profile', 'top');
print '<div class="toolbox_sidebar sidebar_box">' . DOKU_LF;
print ' <div class="level1">' . DOKU_LF;
print ' <ul>' . DOKU_LF;
foreach ($actions as $action) {
if (!actionOK($action)) {
continue;
}
// start output buffering
if ($action == 'edit') {
// check if new page button plugin is available
if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) {
$npb = $npd->html_new_page_button(true);
if ($npb) {
print ' <li><div class="li">';
print $npb;
print '</div></li>' . DOKU_LF;
}
}
}
ob_start();
print ' <li><div class="li">';
if (tpl_actionlink($action)) {
print '</div></li>' . DOKU_LF;
ob_end_flush();
} else {
ob_end_clean();
}
}
print ' </ul>' . DOKU_LF;
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
}
break;
case 'trace':
if (tpl_getConf('closedwiki') && !isset($_SERVER['REMOTE_USER'])) {
return;
}
print '<div class="trace_sidebar sidebar_box">' . DOKU_LF;
print ' <h1>' . $lang['breadcrumb'] . '</h1>' . DOKU_LF;
print ' <div class="breadcrumbs">' . DOKU_LF;
$conf['youarehere'] != 1 ? tpl_breadcrumbs() : tpl_youarehere();
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'extra':
if (tpl_getConf('closedwiki') && !isset($_SERVER['REMOTE_USER'])) {
return;
}
print '<div class="extra_sidebar sidebar_box">' . DOKU_LF;
@(include dirname(__FILE__) . '/' . $pos . '_sidebar.html');
print '</div>' . DOKU_LF;
break;
default:
if (tpl_getConf('closedwiki') && !isset($_SERVER['REMOTE_USER'])) {
return;
}
// check for user defined sidebars
if (@file_exists(DOKU_TPLINC . 'sidebars/' . $sb . '/sidebar.php')) {
print '<div class="' . $sb . '_sidebar sidebar_box">' . DOKU_LF;
@(require_once DOKU_TPLINC . 'sidebars/' . $sb . '/sidebar.php');
print '</div>' . DOKU_LF;
}
break;
}
// restore ID, REV and TOC
$ID = $svID;
$REV = $svREV;
$TOC = $svTOC;
}
示例2: tpl_include_page
<div class="clearer"></div>
<!-- ********** tabs ********** -->
<div id="dokuwiki__tabs">
<?php
tpl_include_page(tpl_getConf('sidebarID'));
?>
</div><!-- /tabs -->
<div class="clearer"></div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs']) {
?>
<div class="breadcrumbs"><?php
tpl_breadcrumbs();
?>
</div>
<?php
}
?>
<?php
if ($conf['youarehere']) {
?>
<div class="breadcrumbs"><?php
tpl_youarehere();
?>
</div>
<?php
}
?>
示例3: dirname
<ul>
<?php
@(include dirname(__FILE__) . '/menu.php');
?>
</ul>
</div>
</div>
<?php
if (tpl_getConf('trace')) {
?>
<div id="breadcrumbs">
<div class="site">
<?php
$conf['youarehere'] != 1 ? tpl_breadcrumbs() : tpl_youarehere();
?>
</div>
</div>
<?php
}
?>
<?php
/*old includehook*/
@(include dirname(__FILE__) . '/header.html');
?>
<?php
/*old includehook*/
@(include dirname(__FILE__) . '/pageheader.html');
?>
示例4: _sidebar_dispatch
//.........这里部分代码省略.........
$user_ns = $this->getConf('user_ns');
if (isset($INFO['userinfo']['name'])) {
$user = $_SERVER['REMOTE_USER'];
$user_sb = $user_ns . ':' . $user . ':' . $pname;
if (@page_exists($user_sb)) {
$subst = array('pattern' => array('/@USER@/'), 'replace' => array($user));
print '<div class="user_sidebar sidebar_box">' . DOKU_LF;
print $this->p_sidebar_xhtml($user_sb, $pos, $subst) . DOKU_LF;
print '</div>';
}
// check for namespace sidebars in user namespace too
if (preg_match('/' . $user_ns . ':' . $user . ':.*/', $svID)) {
$ns_sb = $this->_getNsSb($svID);
if ($ns_sb && $ns_sb != $user_sb && auth_quickaclcheck($ns_sb) >= AUTH_READ) {
print '<div class="namespace_sidebar sidebar_box">' . DOKU_LF;
print $this->p_sidebar_xhtml($ns_sb, $pos) . DOKU_LF;
print '</div>' . DOKU_LF;
}
}
}
break;
case 'group':
$group_ns = $this->getConf('group_ns');
if (isset($INFO['userinfo']['grps'])) {
foreach ($INFO['userinfo']['grps'] as $grp) {
$group_sb = $group_ns . ':' . $grp . ':' . $pname;
if (@page_exists($group_sb) && auth_quickaclcheck(cleanID($group_sb)) >= AUTH_READ) {
$subst = array('pattern' => array('/@GROUP@/'), 'replace' => array($grp));
print '<div class="group_sidebar sidebar_box">' . DOKU_LF;
print $this->p_sidebar_xhtml($group_sb, $pos, $subst) . DOKU_LF;
print '</div>' . DOKU_LF;
}
}
} else {
$group_sb = $group_ns . ':all:' . $pname;
if (@page_exists($group_sb) && auth_quickaclcheck(cleanID($group_sb)) >= AUTH_READ) {
print '<div class="group_sidebar sidebar_box">' . DOKU_LF;
print $this->p_sidebar_xhtml($group_sb, $pos, $subst) . DOKU_LF;
print '</div>' . DOKU_LF;
}
}
break;
case 'toolbox':
$actions = array('admin', 'edit', 'history', 'recent', 'backlink', 'subscribe', 'subscribens', 'index', 'login', 'profile');
print '<div class="toolbox_sidebar sidebar_box">' . DOKU_LF;
print ' <ul>' . DOKU_LF;
foreach ($actions as $action) {
if (!actionOK($action)) {
continue;
}
// start output buffering
if ($action == 'edit') {
// check if new page button plugin is available
if (!plugin_isdisabled('npd') && ($npd =& plugin_load('helper', 'npd'))) {
$npb = $npd->html_new_page_button(true);
if ($npb) {
print ' <li class="level1"><div class="li">';
print $npb;
print '</div></li>' . DOKU_LF;
}
}
}
ob_start();
print ' <li><div class="li">';
if (tpl_actionlink($action)) {
print '</div></li>' . DOKU_LF;
ob_end_flush();
} else {
ob_end_clean();
}
}
print ' </ul>' . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'trace':
print '<div class="trace_sidebar sidebar_box">' . DOKU_LF;
print ' <h1>' . $lang['breadcrumb'] . '</h1>' . DOKU_LF;
print ' <div class="breadcrumbs">' . DOKU_LF;
$conf['youarehere'] != 1 ? tpl_breadcrumbs() : tpl_youarehere();
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'extra':
print '<div class="extra_sidebar sidebar_box">' . DOKU_LF;
@(include dirname(__FILE__) . '/sidebar.html');
print '</div>' . DOKU_LF;
break;
default:
// check for user defined sidebars
if (@file_exists(DOKU_PLUGIN . 'sidebarng/sidebars/' . $sb . '/sidebar.php')) {
print '<div class="' . $sb . '_sidebar sidebar_box">' . DOKU_LF;
@(require_once DOKU_PLUGIN . 'sidebarng/sidebars/' . $sb . '/sidebar.php');
print '</div>' . DOKU_LF;
}
break;
}
// restore ID and REV
$ID = $svID;
$REV = $svREV;
}
示例5: tpl_flush
<div class="wrapper group">
<!-- ********** CONTENT ********** -->
<div id="dokuwiki__content"><div class="group">
<?php
tpl_flush();
?>
<?php
tpl_includeFile('pageheader.html');
?>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs']) {
?>
<div class="breadcrumbs"><?php
tpl_breadcrumbs($ret = '›');
?>
</div>
<?php
}
?>
<?php
if ($conf['youarehere']) {
?>
<div class="breadcrumbs"><?php
tpl_youarehere();
?>
</div>
<?php
}
?>
示例6: tpl_button
<div class="bar-left" id="bar__topleft">
<?php tpl_button('edit')?>
<?php tpl_button('history')?>
</div>
<div class="bar-right" id="bar__topright">
<?php tpl_button('recent')?>
<?php tpl_searchform()?> 
</div>
<div class="clearer"></div>
</div>
<?php if($conf['breadcrumbs']){?>
<div class="breadcrumbs">
<?php tpl_breadcrumbs()?>
<?php //tpl_youarehere() //(some people prefer this)?>
</div>
<?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')?>
示例7: tpl_actiondropdown
<div class="mobileTools">
<?php tpl_actiondropdown($lang['tools']); ?>
</div>
<ul>
<?php
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
tpl_action('index', 1, 'li');
?>
</ul>
</div>
</div>
<!-- BREADCRUMBS -->
<?php if($conf['breadcrumbs'] || $conf['youarehere']): ?>
<div class="breadcrumbs">
<?php if($conf['youarehere']): ?>
<div class="youarehere"><?php tpl_youarehere() ?></div>
<?php endif ?>
<?php if($conf['breadcrumbs']): ?>
<div class="trace"><?php tpl_breadcrumbs() ?></div>
<?php endif ?>
</div>
<?php endif ?>
<?php html_msgarea() ?>
<hr class="a11y" />
</div></div><!-- /header -->
示例8: html_msgarea
<div id="dokuwiki__header">
<?php
html_msgarea();
?>
<?php
tpl_includeFile('header.html');
?>
<!-- BREADCRUMBS -->
<?php
if ($conf['youarehere']) {
?>
<ul class="breadcrumb"><li><?php
tpl_youarehere('<span class="divider">/</span></li><li>');
?>
</li></ul>
<?php
}
?>
<?php
if ($conf['breadcrumbs']) {
?>
<ul class="breadcrumb"><li><?php
tpl_breadcrumbs('<span class="divider">/</span></li><li>');
?>
</li></ul>
<?php
}
?>
</div>
示例9: tpl_youarehere
if ($conf['youarehere']) {
?>
<div class="dw__youarehere">
<?php
tpl_youarehere(' ');
?>
</div>
<?php
}
?>
<?php
if ($conf['breadcrumbs']) {
?>
<div class="dw__breadcrumbs hidden-print">
<?php
tpl_breadcrumbs(' ');
?>
</div>
<?php
}
?>
<hr/>
</div>
<?php
}
?>
<p class="pageId text-right">
<span class="label label-primary"><?php
echo hsc($ID);
?>
示例10: if
</div><!-- /sidebar-first -->
<!-- main group: width = grid_width - sidebar_first_width -->
<div class="main-group row nested grid16-12" id="main-group">
<div class="main-group-inner inner clearfix" id="main-group-inner">
<div class="main-content row nested" id="main-content">
<div class="main-content-inner inner clearfix" id="main-content-inner">
<!-- content group: width = grid_width - (sidebar_first_width + sidebar_last_width) -->
<div style="width:100%" class="content-group row nested " id="content-group">
<div class="content-group-inner inner clearfix" id="content-group-inner">
<div class="breadcrumbs block" id="breadcrumbs">
<div class="breadcrumbs-inner inner clearfix" id="breadcrumbs-inner">
<!-- BREADCRUMBS -->
<?php if ($conf['breadcrumbs']): ?>
<div class="breadcrumb">
<?php tpl_breadcrumbs('»'); ?>
</div>
<?php endif ?>
<?php if ($conf['youarehere']): ?>
<div class="breadcrumb">
<?php tpl_youarehere(' » '); ?>
</div>
<?php endif ?>
</div>
</div><!-- /breadcrumbs-inner -->
</div>
<div class="content-region row nested" id="content-region">
<div class="content-region-inner inner clearfix" id="content-region-inner">
<a id="dokuwiki__content" name="dokuwiki__content"></a>
<div class="content-inner block" id="content-inner">
<div class="content-inner-inner inner clearfix" id="content-inner-inner">
示例11: tpl_sidebar_dispatch
//.........这里部分代码省略.........
break;
case 'user':
$user_ns = tpl_getConf('user_sidebar_namespace');
if (isset($INFO['userinfo']['name'])) {
$user = $_SERVER['REMOTE_USER'];
$user_sb = _getTransSb($user_ns . ':' . $user . ':' . $pname);
if (@file_exists(wikiFN($user_sb))) {
$subst = array('pattern' => array('/@USER@/'), 'replace' => array($user));
print '<div class="user_sidebar sidebar_box">' . DOKU_LF;
print p_sidebar_xhtml($user_sb, $pos, $subst) . DOKU_LF;
print '</div>';
}
// check for namespace sidebars in user namespace too
if (preg_match('/' . $user_ns . ':' . $user . ':.*/', $svID)) {
$ns_sb = _getNsSb($svID);
if ($ns_sb && $ns_sb != $user_sb && auth_quickaclcheck($ns_sb) >= AUTH_READ) {
print '<div class="namespace_sidebar sidebar_box">' . DOKU_LF;
print p_sidebar_xhtml($ns_sb, $pos) . DOKU_LF;
print '</div>' . DOKU_LF;
}
}
}
break;
case 'group':
$group_ns = tpl_getConf('group_sidebar_namespace');
if (isset($INFO['userinfo']['name'], $INFO['userinfo']['grps'])) {
foreach ($INFO['userinfo']['grps'] as $grp) {
$group_sb = $group_ns . ':' . $grp . ':' . $pname;
$group_sb = _getTransSb($group_sb);
if ($group_sb && auth_quickaclcheck(cleanID($group_sb)) >= AUTH_READ) {
$subst = array('pattern' => array('/@GROUP@/'), 'replace' => array($grp));
print '<div class="group_sidebar sidebar_box">' . DOKU_LF;
print p_sidebar_xhtml($group_sb, $pos, $subst) . DOKU_LF;
print '</div>' . DOKU_LF;
}
}
}
break;
case 'index':
print '<div class="index_sidebar sidebar_box">' . DOKU_LF;
print ' ' . p_index_xhtml($svID, $pos) . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'toc':
if (auth_quickaclcheck($svID) >= AUTH_READ) {
$toc = tpl_toc(true);
// replace ids to keep XHTML compliance
if (!empty($toc)) {
$toc = preg_replace('/id="(.*?)"/', 'id="sb__' . $pos . '__\\1"', $toc);
print '<div class="toc_sidebar sidebar_box">' . DOKU_LF;
print $toc;
print '</div>' . DOKU_LF;
}
}
break;
case 'toolbox':
$act_content = explode(',', tpl_getConf('toolbox_content'));
$act_order = explode(',', tpl_getConf('toolbox_order'));
print '<div class="toolbox_sidebar sidebar_box">' . DOKU_LF;
print '<h1>' . $lang['kunlaborejo_toolbox'] . '</h1>' . DOKU_LF;
print ' <div class="level1">' . DOKU_LF;
print ' <ul>' . DOKU_LF;
tpl_dispatch_ordered_content($act_order, $act_content, "tpl_dispatch_toolbox_item");
print ' </ul>' . DOKU_LF;
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'trace':
print '<div class="trace_sidebar sidebar_box">' . DOKU_LF;
print ' <h1>' . $lang['breadcrumb'] . '</h1>' . DOKU_LF;
print ' <div class="breadcrumbs">' . DOKU_LF;
$conf['youarehere'] != 1 ? tpl_breadcrumbs() : tpl_youarehere();
print ' </div>' . DOKU_LF;
print '</div>' . DOKU_LF;
break;
case 'translation':
print '<div class="translation_sidebar sidebar_box">' . DOKU_LF;
print ' <h1>' . $lang['kunlaborejo_translations'] . '</h1>' . DOKU_LF;
$translation =& plugin_load('syntax', 'translation');
echo $translation->_showTranslations();
print '</div>' . DOKU_LF;
break;
case 'extra':
print '<div class="extra_sidebar sidebar_box">' . DOKU_LF;
@(include dirname(__FILE__) . '/' . $pos . '_sidebar.html');
print '</div>' . DOKU_LF;
break;
default:
// check for user defined sidebars
if (@file_exists(DOKU_TPLINC . 'sidebars/' . $sb . '/sidebar.php')) {
print '<div class="' . $sb . '_sidebar sidebar_box">' . DOKU_LF;
@(require_once DOKU_TPLINC . 'sidebars/' . $sb . '/sidebar.php');
print '</div>' . DOKU_LF;
}
break;
}
// restore ID and REV
$ID = $svID;
$REV = $svREV;
}