本文整理汇总了PHP中tpl_pagelink函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_pagelink函数的具体用法?PHP tpl_pagelink怎么用?PHP tpl_pagelink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_pagelink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _tpl_userpage
/**
* Create link/button to user page
*
* @author Anika Henke <anika@selfthinker.org>
*/
function _tpl_userpage($userPage, $title, $link = 0, $wrapper = 0, $return = 0)
{
if (empty($_SERVER['REMOTE_USER'])) {
return;
}
global $conf;
$output = '';
$userPage = str_replace('@USER@', $_SERVER['REMOTE_USER'], $userPage);
if ($wrapper) {
$output .= "<{$wrapper}>";
}
if ($link) {
ob_start();
tpl_pagelink($userPage, $title);
$output .= ob_get_contents();
ob_end_clean();
} else {
$output .= html_btn('userpage', $userPage, '', array(), 'get', 0, $title);
}
if ($wrapper) {
$output .= "</{$wrapper}>";
}
if ($return) {
return $output;
}
echo $output;
}
示例2: dokui_navigation_link
function dokui_navigation_link()
{
global $dokui;
if ($dokui['navigation']['page'] == null) {
$page = dokui_navigation_page();
$link = tpl_pagelink($page);
$dokui['navigation']['link'] = $link;
}
return $dokui['navigation']['link'];
}
示例3: _tpl_userpage
/**
* Create link/button to user page
*
* @author Anika Henke <anika@selfthinker.org>
*/
function _tpl_userpage($userPage,$title,$link=0,$wrapper=0) {
if (!$_SERVER['REMOTE_USER']) return;
global $conf;
$userPage = str_replace('@USER@',$_SERVER['REMOTE_USER'],$userPage);
if ($wrapper) echo "<$wrapper>";
if ($link)
tpl_pagelink($userPage,$title);
else
echo html_btn('userpage',$userPage,'',array(),'get',0,$title);
if ($wrapper) echo "</$wrapper>";
}
示例4: _tpl_userpage
/**
* Create link/button to user page
*
* @author Anika Henke <anika@selfthinker.org>
*/
function _tpl_userpage($userPage, $title, $link = 0, $wrapper = 0)
{
if (empty($_SERVER['REMOTE_USER'])) {
return;
}
global $conf;
$userPage = str_replace('@USER@', $_SERVER['REMOTE_USER'], $userPage);
if ($wrapper) {
echo "<{$wrapper}>";
}
if ($link) {
tpl_pagelink($userPage, $title);
} else {
echo html_btn('userpage', $userPage, '', array(), 'get', 0, $title);
}
if ($wrapper) {
echo "</{$wrapper}>";
}
}
示例5: _tpl_userpage
/**
* Create link/button to user page
*
* @author Anika Henke <anika@selfthinker.org>
*/
function _tpl_userpage($userNS = 'user', $link = 0, $wrapper = false)
{
if (!$_SERVER['REMOTE_USER']) {
return;
}
global $conf;
$userPage = $userNS . ':' . $_SERVER['REMOTE_USER'] . ':' . $conf['start'];
if ($wrapper) {
echo "<{$wrapper}>";
}
if ($link) {
tpl_pagelink($userPage, tpl_getLang('userpage'));
} else {
echo html_btn('userpage', $userPage, '', array(), 0, 0, tpl_getLang('userpage'));
}
if ($wrapper) {
echo "</{$wrapper}>";
}
}
示例6: tpl_youarehere
/**
* Hierarchical breadcrumbs
*
* This code was suggested as replacement for the usual breadcrumbs.
* It only makes sense with a deep site structure.
*
* @author Andreas Gohr <andi@splitbrain.org>
* @author Nigel McNie <oracle.shinoda@gmail.com>
* @author Sean Coates <sean@caedmon.net>
* @author <fredrik@averpil.com>
* @todo May behave strangely in RTL languages
* @param string $sep Separator between entries
* @return bool
*/
function tpl_youarehere($sep = ' » ')
{
global $conf;
global $ID;
global $lang;
// check if enabled
if (!$conf['youarehere']) {
return false;
}
$parts = explode(':', $ID);
$count = count($parts);
echo '<span class="bchead">' . $lang['youarehere'] . ': </span>';
// always print the startpage
tpl_pagelink(':' . $conf['start']);
// print intermediate namespace links
$part = '';
for ($i = 0; $i < $count - 1; $i++) {
$part .= $parts[$i] . ':';
$page = $part;
if ($page == $conf['start']) {
continue;
}
// Skip startpage
// output
echo $sep;
tpl_pagelink($page);
}
// print current page, skipping start page, skipping for namespace index
resolve_pageid('', $page, $exists);
if (isset($page) && $page == $part . $parts[$i]) {
return true;
}
$page = $part . $parts[$i];
if ($page == $conf['start']) {
return true;
}
echo $sep;
tpl_pagelink($page);
return true;
}
示例7: getSongID
images/cornerwhite.png" alt="" id="cornerwhite" />
<div id="content">
<div class="scrollarea">
<?php
if (checkNS('songs')) {
$songid = getSongID();
echo '<ul id="nav"><li>';
tpl_pagelink(':songs:' . $songid, getTitle());
echo '</li><li>';
tpl_pagelink(':songs:' . $songid . ':lyrics', 'Lyrics');
echo '</li><li>';
tpl_pagelink(':songs:' . $songid . ':tab', 'Tab');
echo '</li><li>';
tpl_pagelink(':songs:' . $songid . ':archive', 'Archive');
echo '</li></ul>';
}
?>
<div class="xt"> </div>
<div class="content">
<!-- wikipage start -->
<?php
tpl_content();
?>
<!-- wikipage stop -->
</div>
<div class="xb"> </div>
示例8: tpl_pagelink
echo '<style type="text/css">';
echo '<!--';
echo '.secedit {display:none;}';
echo '-->';
echo '</style>';
}
}
?>
</head>
<body>
<div id="pagewidth" >
<div id="header" >
<div id="headerLinks" class="horizontalNavigation">
<ul >
<li ><?php
tpl_pagelink($myDefaultPageAbout);
?>
</li>
<li ><?php
tpl_actionlink('index');
?>
</li>
<li ><?php
tpl_actionlink('login');
?>
</li>
<li ><?php
tpl_actionlink('subscription');
?>
</li>
<li ><?php
示例9: bootstrap_tpl_youarehere
function bootstrap_tpl_youarehere()
{
global $lang;
global $ID;
global $conf;
// check if enabled
if (!$conf['youarehere']) {
return false;
}
$parts = explode(':', $ID);
$count = count($parts);
print '<ul class="breadcrumb">' . $lang['youarehere'] . ': ';
// always print the start page
echo '<li class="home">';
tpl_pagelink(':' . $conf['start']);
echo '</li> ';
// print intermediate namespace links
$part = '';
for ($i = 0; $i < $count - 1; $i++) {
$part .= $parts[$i] . ':';
$page = $part;
if ($page == $conf['start']) {
continue;
}
// skip startpage
echo '<li>';
tpl_pagelink($page);
echo '</li> ';
}
// print current page, skipping start page, skipping for namespace index
resolve_pageid('', $page, $exists);
if (isset($page) && $page == $part . $parts[$i]) {
return true;
}
$page = $part . $parts[$i];
if ($page == $conf['start']) {
return true;
}
echo '<li>';
tpl_pagelink($page);
echo '</li> ';
print '</ul>';
return true;
}
示例10: tpl_getConf
//load language specific copyright notice
$copyright_location = tpl_getConf("monobook_copyright_location") . "_" . $transplugin_langcur;
}
} else {
//default copyright notice, no translation
$copyright_location = tpl_getConf("monobook_copyright_location");
}
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID($copyright_location)) >= AUTH_READ) {
//current user got access?
echo "<li id=\"copyright\">\n ";
//get the rendered content of the defined wiki article to use as custom notice
$interim = tpl_include_page($copyright_location, false);
if ($interim === "" || $interim === false) {
//show creation/edit link if the defined page got no content
echo "[ ";
tpl_pagelink($copyright_location, hsc($lang["monobook_fillplaceholder"] . " (" . hsc($copyright_location) . ")"));
echo " ]<br />";
} else {
//show the rendered page content
echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>";
}
echo "\n </li>\n";
}
}
}
?>
<li id="usermod">
<?php
tpl_userinfo();
?>
<br />
示例11: tpl_license
</div><?php
//copyright notice
if (tpl_getConf("prsnl10_copyright")) {
echo "\n <div id=\"licenseinfo\">\n ";
if (tpl_getConf("prsnl10_copyright_default")) {
tpl_license(false);
} else {
if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("prsnl10_copyright_location")))) {
//current user got access?
//get the rendered content of the defined wiki article to use as custom notice
$interim = tpl_include_page(tpl_getConf("prsnl10_copyright_location"), false);
if ($interim === "" || $interim === false) {
//show creation/edit link if the defined page got no content
echo "[ ";
tpl_pagelink(tpl_getConf("prsnl10_copyright_location"), hsc($lang["prsnl10_fillplaceholder"] . " (" . tpl_getConf("prsnl10_copyright_location") . ")"));
echo " ]<br />";
} else {
//show the rendered page content
echo $interim;
}
}
}
echo "\n </div>";
}
?>
</div>
</div>
<!-- end main content area -->
<div class="clearer"></div>
示例12: writeMBPortlet
function writeMBPortlet($arr, $name, $subname, $prefix, $istabs = "")
{
if ($arr) {
echo '<div id="' . $name . '" class="portlet">';
echo ' <h5>' . $subname . '</h5>';
if (!$istabs) {
echo ' <div class="pBody">';
}
$ULFlag = 1;
foreach ($arr as $key => $action) {
#TJG 07/28/2006 Initial rel nofollow support
$rel = "";
if ($action['rel']) {
$rel = ' rel="nofollow"';
}
//Etienne (start)
if ($action['wiki_page']) {
if ($ULFlag == 0) {
echo ' </ul>' . "\n";
$ULFlag = 1;
}
if (function_exists('dwp_display_wiki_page')) {
dwp_display_wiki_page($action['wiki_page']);
}
} else {
if ($ULFlag == 1) {
echo ' <ul>' . "\n";
$ULFlag = 0;
}
echo '<li id="' . $prefix . '-' . $key . '"';
if ($action['class']) {
echo ' class="' . $action['class'] . '"';
}
echo '>';
if ($action['wiki']) {
if ($action['text']) {
tpl_pagelink($action['wiki'], $action['text']);
} else {
tpl_pagelink($action['wiki']);
}
} else {
if ($action['href']) {
if ($action['accesskey']) {
echo '<a href="' . $action['href'] . '" accesskey="' . $action['accesskey'] . '" title="[ALT+' . strtoupper($action['accesskey']) . ']"' . $rel . '>';
} else {
echo '<a href="' . $action['href'] . '"' . $rel . '>';
}
echo $action['text'];
echo '</a>';
} else {
if ($action['externurl']) {
echo '<a href="' . $action['externurl'] . '" class="urlextern" title="' . $action['externurl'] . '" rel="nofollow"' . $rel . '>' . $action['text'] . '</a>';
} else {
if ($action['html']) {
echo $action['html'];
} else {
echo "<font color=\"#cccccc\">" . $action['text'] . '</font>';
}
}
}
}
echo '</li>' . "\n";
}
}
if ($ULFlag == 0) {
echo ' </ul>' . "\n";
$ULFlag = 1;
}
if (!$istabs) {
echo ' </div>';
}
echo '</div>';
}
}
示例13: tpl_pagelink
</ul>
</div>
<div id="about">
<h1>About</h1>
<ul>
<li><?php
tpl_pagelink(':about', 'About me');
?>
</li>
<li><?php
tpl_actionlink('index', '', '', 'Site map');
?>
</li>
<li><?php
tpl_pagelink(':disclaimer', 'Disclaimer');
?>
</li>
</ul>
<aside>
pesartain.com is the personal site of Pieter E Sartain. All content is Copyright 2002 - 2011.
</aside>
</div>
</footer>
<ul>
<li><?php
tpl_actionlink('edit', '', '', '<img src="' . $DOKU_TPL . 'images/icons/icon_edit.png" title="Edit" alt="Edit" />');
示例14: tpl_pagelink
<div id="oaTmplPageFooter" class="horizontalNavigation" >
<ul>
<li> <?php
tpl_pagelink($myDefaultPageCopyRight);
?>
</li>
<li> <?php
tpl_pagelink($myDefaultPageAbout);
?>
</li>
<li> <?php
tpl_pagelink($myDefaultPageContact);
?>
</li>
<li> <?php
tpl_pagelink($myDefaultPagePrivacyPolice);
?>
</li>
<li> <?php
tpl_actionlink('index');
?>
</li>
<li> <?php
$url = parse_url(DOKU_URL);
$server = $url['host'];
if (!empty($url['port'])) {
$server .= ':' . $url['port'];
}
$server .= $url['path'];
echo '<a href="' . DOKU_URL . '" title="Visit ' . DOKU_URL . '" >' . $server . ' </a>';
?>
示例15: _mixture_youarehere
/**
* PRINT HIERARCHICAL BREADCRUMBS, adapted from core (template.php) to use a CSS separator solution and respect existing/non-existing page link colors
*
* This code was suggested as replacement for the usual breadcrumbs.
* It only makes sense with a deep site structure.
*
* @return bool
*/
function _mixture_youarehere()
{
global $conf, $ID, $lang;
// check if enabled
if (!$conf['youarehere']) {
return false;
}
$parts = explode(':', $ID);
$count = count($parts);
print '<ul class="breadcrumbs no-style no-margin"><li><span class="md-display-none" title="' . rtrim($lang['youarehere'], ':') . '">' . _mixture_glyph("youarehere") . '</span><span class="display-none md-display-initial">' . $lang['youarehere'] . '</span></li>';
// always print the startpage
echo '<li class="home">';
tpl_pagelink(':' . $conf['start']);
echo '</li>';
// print intermediate namespace links
$part = '';
for ($i = 0; $i < $count - 1; $i++) {
$part .= $parts[$i] . ':';
$page = $part;
//if($page == $conf['start']) continue; // Skip startpage
$class = _mixture_breadcrumbsClass($page);
//dbg($page."=".$class);
// output
echo "<li{$class}>";
tpl_pagelink($page);
echo "</li>";
}
// print current page, skipping start page, skipping for namespace index
resolve_pageid('', $page, $exists);
if (isset($page) && $page == $part . $parts[$i]) {
echo "</ul>";
return true;
}
$page = $part . $parts[$i];
if ($page == $conf['start']) {
echo "</ul>";
return true;
}
$class = _mixture_breadcrumbsClass($page);
echo "<li{$class}>";
tpl_pagelink($page);
echo "</li>";
echo "</ul>";
return true;
}