本文整理汇总了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
}
示例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>
示例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(); ?>
示例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">
示例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 -->