本文整理汇总了PHP中tpl_action函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_action函数的具体用法?PHP tpl_action怎么用?PHP tpl_action使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_action函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _tpl_output_page_tools
function _tpl_output_page_tools($showTools = true, $element = 'li')
{
global $lang;
$textonly = true;
$spandivider = '';
$elementbegin = "<{$element}>";
$elementend = "</{$element}>";
if ($showTools) {
echo '<ul class="nav navbar-nav">';
//echo '<li>'.$lang['page_tools'].$spandivider;
$content = tpl_action('edit', $textonly, '', true);
if ($content != '') {
echo $elementbegin . $content . $spandivider . $elementend;
}
echo $elementbegin;
//Notice the use of _tpl_action instead of tpl_action. This doesn't
//actully return the string and instead automatically prints it
//out.
_tpl_action('discussion', $textonly, '', true);
echo $spandivider;
echo $elementend;
$content = tpl_action('revisions', $textonly, '', true);
if ($content != '') {
echo $elementbegin . $content . $spandivider . $elementend;
}
$content = tpl_action('backlink', $textonly, '', true);
if ($content != '') {
echo $elementbegin . $content . $spandivider . $elementend;
}
$content = tpl_action('subscribe', $textonly, '', true);
if ($content != '') {
echo $elementbegin . $content . $spandivider . $elementend;
}
$content = tpl_action('revert', $textonly, '', true);
if ($content != '') {
echo $elementbegin . $content . $spandivider . $elementend;
}
echo $elementbegin;
$content = tpl_action('top', $textonly, '', true);
echo $content;
echo $elementend;
echo '</ul>';
}
}
开发者ID:cpolzer,项目名称:dokutwitterbootstrap,代码行数:44,代码来源:tpl_functions.php
示例2: tpl_action
?>
</div>
<?php
}
?>
</aside><!-- /aside -->
<?php
}
?>
</section><!-- /wrapper -->
<!-- ********** FOOTER ********** -->
<footer id="dokuwiki__footer" class="hidden-print">
<ul class="doc breadcrumb pull-right">
<li><?php
tpl_action('top', 1, '');
?>
</li>
<li><?php
tpl_pageinfo();
?>
</li>
</ul>
<?php
tpl_license('button');
?>
</footer><!-- /footer -->
<?php
tpl_includeFile('footer.html');
?>
开发者ID:n1trux,项目名称:cw-bootstrap,代码行数:31,代码来源:main.php
示例3: plugin_load
<?php
if (tpl_getConf('tpl_mtb_schotland_2016:showTranslation')) {
$translation =& plugin_load('helper', 'translation');
if ($translation) {
echo $translation->showTranslations();
}
}
?>
<ul>
<?php
if ($isLoggedIn) {
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
}
tpl_action('index', 1, 'li');
?>
</ul>
</div>
</div>
<!-- TOPBAR - @tpl_mtb_schotland_2016-template@ -->
<div class="topbar">
<?php
if (tpl_getConf("tpl_mtb_schotland_2016:htmltopbar")) {
tpl_includeFile('topbar.php');
} else {
tpl_include_page(tpl_getConf("tpl_mtb_schotland_2016:pagetopbar"), 1, 1);
}
?>
开发者ID:RobBosman,项目名称:private.tpl_mtb_schotland_2016,代码行数:31,代码来源:tpl_header.php
示例4: bootstrap3_pageinfo
?>
<span class="docInfo">
<?php
bootstrap3_pageinfo();
?>
</span>
<?php
}
?>
<?php
if (bootstrap3_conf('showLoginOnFooter')) {
?>
<span class="loginLink hidden-print">
<?php
echo tpl_action('login', 1, 0, 1, '<i class="fa fa-sign-in"></i> ');
?>
</span>
<?php
}
?>
</div>
<?php
if ($conf['license']) {
?>
<div id="dw__license" class="text-center small" <?php
bootstrap3_conf('semantic') ? 'itemprop="license"' : '';
?>
>
开发者ID:huksley,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php
示例5: tpl_pageinfo
?>
</div></div><!-- /content -->
<div class="clearer"></div>
<hr class="a11y" />
</div><!-- /wrapper -->
<!-- ********** FOOTER ********** -->
<div id="dokuwiki__footer"><div class="pad">
<div class="doc"><?php
tpl_pageinfo();
?>
</div>
<?php
tpl_action('top', 1);
?>
<div class="clearer"></div>
</div></div><!-- /footer -->
<div class="license_footer">
<?php
tpl_license('button');
?>
</div>
<?php
@(include dirname(__FILE__) . '/footer.html');
?>
</div></div><!-- /site -->
<div class="no"><?php
开发者ID:narsis59,项目名称:dokuwiki_template_ach,代码行数:31,代码来源:main.php
示例6: getNS
$NS = getNS($ID);
//echo "<br><br><br>";
$helper = plugin_load('helper', 'ateneuplus');
$menuleft = $helper->get_menu($ID, 'm1-menu-left');
// $titol = $helper->getTitolCurs($ID);
print '<div id="m1-menu-left"><ul>';
print $menuleft;
print '</ul></div>';
//echo "<br><br>";
?>
<!-- ********** Mobile-Right ********** -->
<div id="m1-menu-right">
<ul>
<?php
_tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1), 'profile' => tpl_action('profile', 1, 'li', 1), 'register' => tpl_action('register', 1, 'li', 1), 'login' => tpl_action('login', 1, 'li', 1)));
?>
<?php
_tpl_toolsevent('pagetools', array('edit' => tpl_action('edit', 1, 'li', 1), 'revisions' => tpl_action('revisions', 1, 'li', 1), 'revert' => tpl_action('revert', 1, 'li', 1)));
?>
<?php
_tpl_toolsevent('sitetools', array('recent' => tpl_action('recent', 1, 'li', 1), 'media' => tpl_action('media', 1, 'li', 1), 'index' => tpl_action('index', 1, 'li', 1)));
?>
</ul>
</div>
开发者ID:projectesIF,项目名称:Ateneu,代码行数:30,代码来源:m1-mobilemenu.php
示例7: nl2br
print nl2br(hsc(tpl_img_getTag('simple.title')));
?>
</h2>
<?php
tpl_img_meta();
?>
<?php
//Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));
?>
</div>
<div class="clearer"></div>
</div><!-- /.content -->
<p class="back">
<?php
tpl_action('mediaManager', 1);
?>
<br />
<?php
tpl_action('img_backto', 1, 0, 0, '<span class="genericon genericon-leftarrow"></span>');
?>
</p>
<?php
}
?>
</div>
</body>
</html>
开发者ID:posquit0,项目名称:dokuwiki_template_writr,代码行数:30,代码来源:detail.php
示例8: tpl_action
}
}
?>
</dl>
<?php
}
?>
<?php
//Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));
?>
</div>
</div><!-- /.content -->
<p class="back">
<?php
tpl_action('mediaManager', 1);
?>
<br />
← <?php
tpl_action('img_backto', 1);
?>
</p>
<?php
}
?>
</div>
<!--[if lte IE 8 ]></div><![endif]-->
</body>
</html>
开发者ID:atomparticle,项目名称:dokuwiki_template_starter,代码行数:30,代码来源:detail.php
示例9: _tpl_userinfo
/**
* Define how the user related content is shown.
* When not logged in, login / register is shown
* When logged in the user's name is printed with a dropdown of user related options
*
* @author Paul in 't Hout <[email protected]>
**/
function _tpl_userinfo($element = 'li')
{
global $INFO;
if (isset($_SERVER['REMOTE_USER'])) {
echo '<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">' . hsc($INFO['userinfo']['name']) . '<b class="caret"></b></a>';
echo '<ul class="dropdown-menu">';
tpl_action('admin', 1, $element);
tpl_action('profile', 1, $element);
tpl_action('login', 1, $element);
echo '</ul>';
echo '</li>';
} else {
tpl_action('login', 1, $element, 0, '', '', 'Login / Register');
}
}
开发者ID:ofsole,项目名称:dokuwiki,代码行数:22,代码来源:tpl_functions.php
示例10: tpl_action
?>
</span></a>
</li>
<?php
tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
tpl_action('backlink', 1, 'li', 0, '<span>', '</span>');
?>
<li><br><hr></li>
<?php
tpl_action('admin', 1, 'li', 0, '<span>', '</span>');
tpl_action('profile', 1, 'li', 0, '<span>', '</span>');
tpl_action('recent', 1, 'li', 0, '<span>', '</span>');
tpl_action('media', 1, 'li', 0, '<span>', '</span>');
tpl_action('index', 1, 'li', 0, '<span>', '</span>');
?>
</ul>
</div>
</div>
</div><!-- /wrapper -->
<?php
include 'tpl_footer.php';
?>
</div>
<div class="watermark">
<?php
if (isset($_SERVER['REMOTE_USER'])) {
echo 'gedruckt von ' . hsc($INFO['userinfo']['name']);
} else {
开发者ID:araname,项目名称:template-lisps,代码行数:31,代码来源:main.php
示例11: tpl_searchform
echo $lang['site_tools'];
?>
</h3>
<?php
tpl_searchform();
?>
<div class="mobileTools">
<?php
tpl_actiondropdown($lang['tools']);
?>
</div>
<ul>
<?php
tpl_action('recent', true, 'li');
tpl_action('media', true, 'li');
tpl_action('index', true, 'li');
?>
</ul>
</div>
</div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs'] || $conf['youarehere']) {
?>
<div class="breadcrumbs">
<?php
if ($conf['youarehere']) {
?>
<div class="youarehere"><?php
开发者ID:RnBConsulting,项目名称:dokuwiki,代码行数:31,代码来源:tpl_header.php
示例12: tpl_pageinfo
?>
<span class="docInfo">
<?php
tpl_pageinfo();
?>
</span>
<?php
}
?>
<?php
if ($showLoginOnFooter && !$_SERVER['REMOTE_USER']) {
?>
<span class="loginLink hidden-print">
<?php
echo tpl_action('login', 1, 0, 1, '<i class="glyphicon glyphicon-log-in"></i> ');
?>
</span>
<?php
}
?>
</div>
<?php
if ($showBadges) {
?>
<div class="text-center hidden-print">
<p id="dw__license">
<?php
tpl_license('');
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:main.php
示例13: tpl_searchform
<h3 class="a11y"><?php
echo $lang['site_tools'];
?>
</h3>
<?php
tpl_searchform();
?>
<div class="mobileTools">
<?php
tpl_actiondropdown($lang['tools']);
?>
</div>
<ul>
<?php
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
// traiem l'opció 'Mapa del lloc' perquè és redundant al que ja tenim a sidebar
// tpl_action('index', 1, 'li');
/*
// AFEGIT Jordi 04/03/2014
$exporta=str_replace('wikiform/wikiform', 'wikiform/wikiexport', $_SERVER["REQUEST_URI"])
//FI AFEGIT
*
*/
?>
<!-- <li><a href="<?php
echo $exporta;
?>
" target= "_new">Exporta</a></li> -->
</ul>
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:tpl_header.php
示例14: _tpl_action_item
/**
* Include action link with font-icon
*
* @author Giuseppe Di Terlizzi <[email protected]>
*
* @param string $action
* @param string $icon class
* @param boolean $linkonly
* @return string
*/
function _tpl_action_item($action, $icon, $linkonly = false)
{
global $ACT;
if ($action == 'discussion') {
if (tpl_getConf('showDiscussion')) {
ob_start();
_tpl_action('discussion', 1, 'li', $icon);
$out = ob_get_clean();
$out = str_replace(array('<bdi>', '</bdi>'), '', $out);
return preg_replace('/(<a (.*?)>)/m', '$1<i class="' . $icon . '"></i> ', $out);
}
return '';
}
if ($link = tpl_action($action, 1, 0, 1, '<i class="' . $icon . '"></i> ')) {
if ($linkonly) {
return $link;
}
return '<li' . ($ACT == $action ? ' class="active"' : '') . '>' . $link . '</li>';
}
return '';
}
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_functions.php
示例15: tpl_action
<!-- PAGE ACTIONS -->
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php
echo $lang['page_tools'];
?>
</h3>
<div class="tools">
<ul>
<?php
tpl_action('edit', 1, 'li', 0, '<span>', '</span>');
tpl_action('revert', 1, 'li', 0, '<span>', '</span>');
tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
tpl_action('backlink', 1, 'li', 0, '<span>', '</span>');
tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
tpl_action('top', 1, 'li', 0, '<span>', '</span>');
?>
</ul>
</div>
</div>
</div><!-- /wrapper -->
<?php
include 'tpl_footer.php';
?>
</div></div><!-- /site -->
<div class="no"><?php
tpl_indexerWebBug();
?>
</div>
开发者ID:ngharaibeh,项目名称:Methodikos,代码行数:30,代码来源:main.php
示例16: str_replace
?>
</div></div><!-- /content -->
<hr class="a11y" />
<!-- PAGE ACTIONS -->
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php
echo $lang['page_tools'];
?>
</h3>
<div class="tools">
<ul>
<?php
$exporta = str_replace('wikiform/wikiform', 'wikiform/wikiexport', $_SERVER["REQUEST_URI"]);
$data = array('view' => 'main', 'items' => array('edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>'), 'export' => '<li><a href="' . $exporta . '" class="action" accesskey="t" rel="nofollow" title="Visualitza pàgina a wikiexport (pestanya a part)" target="_new"><span>Exporta</span></a></li>'));
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if ($evt->advise_before()) {
foreach ($evt->data['items'] as $k => $html) {
echo $html;
}
}
$evt->advise_after();
unset($data);
unset($evt);
?>
</ul>
</div>
</div>
</div><!-- /wrapper -->
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:main.php
示例17: tpl_userinfo
tpl_userinfo();
echo '</div>';
}
?>
</div><!-- /dokuwiki__usertools -->
<?php
}
?>
</div><!-- /dokuwiki__tools -->
<div id="sidebar_bg">
</div>
<div id="to_top">
<?php
tpl_action('top');
?>
</div>
</div><!-- /sidebar_wrapper -->
<div class="wrapper group">
<!-- ********** CONTENT ********** -->
<div id="dokuwiki__content"><div class="group">
<?php
tpl_flush();
?>
<?php
tpl_includeFile('pageheader.html');
?>
<!-- BREADCRUMBS -->
开发者ID:ipari,项目名称:dokuwiki-template-white,代码行数:31,代码来源:main.php
示例18: tpl_toolsevent
?>
</ul>
</div>
<?php
if ($conf['useacl']) {
?>
<!-- USER TOOLS -->
<div class="user-tools">
<h3><?php
echo $lang['user_tools'];
?>
</h3>
<ul>
<?php
tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1, '<span></span> '), 'profile' => tpl_action('profile', 1, 'li', 1, '<span></span> '), 'register' => tpl_action('register', 1, 'li', 1, '<span></span> '), 'login' => tpl_action('login', 1, 'li', 1, '<span></span> ')));
?>
</ul>
</div>
<?php
if (!empty($_SERVER['REMOTE_USER'])) {
echo '<p class="user">';
tpl_userinfo();
echo '</p>';
}
?>
<?php
}
?>
</div>
开发者ID:fxleblanc,项目名称:Wiki,代码行数:31,代码来源:main.php
示例19: tpl_searchform
<div id="dokuwiki__sitetools">
<h3 class="a11y"><?php
echo $lang['site_tools'];
?>
</h3>
<?php
tpl_searchform();
?>
<div class="mobileTools">
<?php
tpl_actiondropdown($lang['tools']);
?>
</div>
<ul>
<?php
tpl_toolsevent('sitetools', array(tpl_action('recent', true, 'li', true), tpl_action('media', true, 'li', true), tpl_action('index', true, 'li', true)));
?>
</ul>
</div>
</div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs'] || $conf['youarehere']) {
?>
<div class="breadcrumbs">
<?php
if ($conf['youarehere']) {
?>
<div class="youarehere"><?php
开发者ID:kevinlovesing,项目名称:dokuwiki,代码行数:31,代码来源:tpl_header.php
示例20: tpl_flush
tpl_flush();
?>
</div></div><!-- /content -->
<hr class="a11y" />
<!-- PAGE ACTIONS -->
<div id="dokuwiki__pagetools">
<h3 class="a11y"><?php
echo $lang['page_tools'];
?>
</h3>
<div class="tools">
<ul>
<?php
$data = array('view' => 'main', 'items' => array('edit' => tpl_action('edit', true, 'li', true, '<span>', '</span>'), 'revert' => tpl_action('revert', true, 'li', true, '<span>', '</span>'), 'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'), 'backlink' => tpl_action('backlink', true, 'li', true, '<span>', '</span>'), 'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'), 'top' => tpl_action('top', true, 'li', true, '<span>', '</span>')));
// the page tools can be amended through a custom plugin hook
$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
if ($evt->advise_before()) {
foreach ($evt->data['items'] as $k => $html) {
echo $html;
}
}
$evt->advise_after();
unset($data);
unset($evt);
?>
</ul>
</div>
</div>
</div><!-- /wrapper -->
开发者ID:kevinlovesing,项目名称:dokuwiki,代码行数:31,代码来源:main.php
注:本文中的tpl_action函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论