• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tpl_breadcrumbs函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;
}
开发者ID:RockyRoad29,项目名称:dokuwiki-template-arctic,代码行数:101,代码来源:tpl_functions.php


示例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 
}
?>
开发者ID:numahell,项目名称:dokuwiki_template_blue_grey,代码行数:31,代码来源:main.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');
?>
开发者ID:silentulo,项目名称:dokuwiki-template-kunlaborejo,代码行数:31,代码来源:main.php


示例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;
 }
开发者ID:highpictv,项目名称:wiki,代码行数:101,代码来源:action.php


示例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 
}
?>
开发者ID:ipari,项目名称:dokuwiki-template-white,代码行数:31,代码来源:main.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()?>&#160;
      </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')?>
开发者ID:neutrinog,项目名称:Door43,代码行数:30,代码来源:main.php


示例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 -->
开发者ID:neutrinog,项目名称:Door43,代码行数:30,代码来源:tpl_header.php


示例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>
开发者ID:projectesIF,项目名称:Ateneu,代码行数:30,代码来源:tpl_header.php


示例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);
?>
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php


示例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">
开发者ID:neverpanic,项目名称:dokuwiki-template-acquia-marina,代码行数:31,代码来源:main.php


示例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;
}
开发者ID:silentulo,项目名称:dokuwiki-template-kunlaborejo,代码行数:101,代码来源:tpl_functions.php



注:本文中的tpl_breadcrumbs函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tpl_button函数代码示例发布时间:2022-05-23
下一篇:
PHP tpl_block_strip函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap