当前位置: 首页>>代码示例>>PHP>>正文


PHP tpl_youarehere函数代码示例

本文整理汇总了PHP中tpl_youarehere函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_youarehere函数的具体用法?PHP tpl_youarehere怎么用?PHP tpl_youarehere使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了tpl_youarehere函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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_breadcrumbs

            <!-- 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 
}
?>

            <div class="clearer"></div>
            <hr class="a11y" />
        </div></div><!-- /header -->


        <div class="wrapper">


            <!-- ********** CONTENT ********** -->
开发者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_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

示例6: tpl_searchform

        <?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')?>

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

  <div class="clearer"></div>
开发者ID:neutrinog,项目名称:Door43,代码行数:31,代码来源:main.php

示例7: html_msgarea

</head>

<body>

<div id="info">
<?php 
html_msgarea();
?>
</div>

<div class="dokuwiki">

<nav>
	<span class="breadcrumbs"><?php 
tpl_youarehere(' &raquo; ');
?>
</span>

	<ul id="categories">
		<li>[<?php 
tpl_pagelink(':blog');
?>
]</li>
		<li>[<?php 
tpl_pagelink(':music');
?>
]</li>
		<li>[<?php 
tpl_pagelink(':rl', 'real life');
?>
开发者ID:pietersartain,项目名称:dokuwiki-template-lookingforme,代码行数:30,代码来源:main.php

示例8: html_msgarea

?>
<!-- == HEADER == -->
<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 
}
?>
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:tpl_header.php

示例9: array

    $LINKS = array(array("href" => "?do=login", "text" => "Login"), array("href" => "?do=register", "text" => "Register"));
} else {
    $name = hsc($INFO['userinfo']['name']) . ' (' . hsc($_SERVER['REMOTE_USER']) . ')';
    $LINKS = array(array("href" => "?do=edit", "text" => "Edit this page"), array("href" => "?do=admin", "text" => "Admin"), array("href" => "?do=logout", "text" => "Logout"), array("href" => "?do=profile", "text" => $name));
}
ob_start();
tpl_metaheaders();
$HEAD_WIKI = ob_get_clean();
$CSS = array("/styles/wiki.css");
include __DIR__ . "/../../../shared/templates/header.inc";
?>

<section id="breadcrumbs">
<nav>
<?php 
tpl_youarehere(' › ');
?>
</nav>
</section>
<section class="mainscreen">
    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
    <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php 
echo tpl_classes();
?>
 <?php 
echo $showSidebar ? 'showSidebar' : '';
?>
 <?php 
echo $hasSidebar ? 'hasSidebar' : '';
?>
">
开发者ID:learningendless,项目名称:web-wiki,代码行数:31,代码来源:main.php

示例10: tpl_includeFile

?>
      <?php 
tpl_includeFile('social.html');
?>

      <?php 
if ($conf['youarehere'] || $conf['breadcrumbs']) {
    ?>
      <div id="dw__breadcrumbs">
        <hr/>
        <?php 
    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 
    }
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php

示例11: if

								<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">
																<div class="content-content" id="content-content">
																	<!-- wikipage start -->
																	<?php print($dokuwiki_content); // the main content without TOC (rendered and buffered in the sidebar, where the toc gets printed) ?>
																	<!-- wikipage stop -->
																</div><!-- /content-content -->
开发者ID:neverpanic,项目名称:dokuwiki-template-acquia-marina,代码行数:31,代码来源:main.php

示例12: 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

示例13: tpl_youarehere

}
?>
 <!-- /search -->

            </div> <!-- /nav-main -->
            
                        
            <?php 
if ($ACT == 'show' && $ID != $conf['start']) {
    ?>
                <div class="nav-breadcrumb">
               		<hr class="onlyAural"/>
    		        <?php 
    if ($conf['youarehere']) {
        echo '<p>';
        tpl_youarehere(' / ');
        echo '</p>';
    } elseif ($conf['breadcrumbs']) {
        echo '<p>';
        tpl_breadcrumbs();
        echo '</p>';
    }
    ?>
                </div> <!-- /nav-breadcrumb -->
            <?php 
}
?>

        </div> <!-- /header -->

		<hr class="onlyAural"/>
开发者ID:haschek,项目名称:DokuWiki-Template-MiniDokuLicious,代码行数:31,代码来源:main.php


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