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


PHP tpl_userinfo函数代码示例

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


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

示例1: tpl_userinfo

        </div><!-- /.headings -->
        <nav class="tools">
            <!-- USER TOOLS -->
            <?php 
if ($conf['useacl'] && $showTools) {
    ?>
                <div id="dokuwiki__usertools">
                    <h3 class="a11y"><?php 
    echo $lang['user_tools'];
    ?>
</h3>
                    <ul>
                        <?php 
    if (!empty($_SERVER['REMOTE_USER'])) {
        echo '<li class="user">';
        tpl_userinfo();
        /* 'Logged in as ...' */
        echo '</li>';
    }
    ?>
                        <?php 
    /* the optional second parameter of tpl_action() switches between a link and a button,
       e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */
    ?>
                        <?php 
    tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1), 'userpage' => _tpl_action('userpage', 1, 'li', 1), 'profile' => tpl_action('profile', 1, 'li', 1), 'register' => tpl_action('register', 1, 'li', 1), 'login' => tpl_action('login', 1, 'li', 1)));
    ?>
                    </ul>
                </div><!-- /   "dokuwiki__usertools -->
            <?php 
}
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:31,代码来源:tpl_layout_classic.old.php

示例2: tpl_actionlink

               <!-- end content -->
            </div> <!-- id="maincolContent" -->
            
            <div id="contentfooterNavigation" class="horizontalNavigation"> 
                  <?php 
if ($conf['useacl'] && $_SERVER['REMOTE_USER']) {
    echo '<ul >' . '<li >';
    tpl_actionlink('edit');
    echo '</li >' . '<li >';
    tpl_actionlink('history');
    echo '</li >' . '<li >';
    tpl_actionlink('recent');
    echo '</li >' . '</ul>';
} else {
    echo '<ul>' . '<li>';
    echo tpl_pageinfo() . '</li >' . '<li>' . tpl_userinfo() . '</li >' . '</ul>';
}
?>
            </div>
         </div>
         <!--right column-->
         <?php 
writeMBPortlet($monobook['personal'], 'rightcol', '', 'rightcol');
?>
         
      </div>

      
      
      <!--++++++++++++++++++Footer++++++++++++++-->
      <div class="clearer"> </div>
开发者ID:BackupTheBerlios,项目名称:openaqua-svn,代码行数:31,代码来源:main.php

示例3: if

        ?></h1>
        <?php if ($conf['tagline']): ?>
            <p class="claim"><?php echo $conf['tagline']; ?></p>
        <?php endif ?>
    </div>

    <div class="tools group">
        <!-- USER TOOLS -->
        <?php if ($conf['useacl']): ?>
            <div id="dokuwiki__usertools">
                <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3>
                <ul>
                    <?php
                        if ($_SERVER['REMOTE_USER']) {
                            echo '<li class="user">';
                            tpl_userinfo(); /* 'Logged in as ...' */
                            echo '</li>';
                        }
                        tpl_action('admin', 1, 'li');
                        tpl_action('profile', 1, 'li');
                        tpl_action('register', 1, 'li');
                        tpl_action('login', 1, 'li');
                    ?>
                </ul>
            </div>
        <?php endif ?>

        <!-- SITE TOOLS -->
        <div id="dokuwiki__sitetools">
            <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3>
            <?php tpl_searchform(); ?>
开发者ID:neutrinog,项目名称:Door43,代码行数:31,代码来源:tpl_header.php

示例4: tpl_content

  <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()?>
      </div>
    </div>

   <?php /*old includehook*/ @include(dirname(__FILE__).'/pagefooter.html')?>

    <div class="bar" id="bar__bottom">
      <div class="bar-left" id="bar__bottomleft">
        <?php tpl_button('edit')?>
        <?php tpl_button('history')?>
        <?php tpl_button('revert')?>
      </div>
      <div class="bar-right" id="bar__bottomright">
开发者ID:neutrinog,项目名称:Door43,代码行数:30,代码来源:main.php

示例5: if

										</div><!-- /inner -->
									</div><!-- /block -->
									<?php endif ?>
									<?php if ($conf['useacl'] && $showTools): ?>
									<div class="block block-user odd first last fusion-bold-links marina-rounded-corners marina-title-green grid16-16" id="block-user-2">
										<div class="inner">
											<div class="corner-top"><div class="corner-top-right corner"></div><div class="corner-top-left corner"></div></div>
											<div class="inner-wrapper">
												<div id="dokuwiki__usertools" class="inner-inner" style="border: medium none; position: relative;">
													<div class="block-icon pngfix"></div>
													<!-- USER TOOLS -->
													<h2 class="title block-title a11y"><?php echo tpl_getLang('user_tools') ?></h2>
													<ul class="menu">
														<?php if ($_SERVER['REMOTE_USER']): ?>
														<li class="user">
															<?php tpl_userinfo(); ?>
														</li>
														<?php endif ?>
														<?php
															 tpl_action('admin',    1, 'li');
															_tpl_action('userpage', 1, 'li');
															 tpl_action('profile',  1, 'li');
															_tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
															 tpl_action('login',    1, 'li');
														?>
													</ul>
												</div><!-- /inner-inner -->
											</div><!-- /inner-wrapper -->
											<div class="corner-bottom"><div class="corner-bottom-right corner"></div><div class="corner-bottom-left corner"></div></div>
										</div><!-- /inner -->
									</div><!-- /block -->
开发者ID:neverpanic,项目名称:dokuwiki-template-acquia-marina,代码行数:31,代码来源:main.php


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