/** * Create link/button to user page * * @author Anika Henke <*****@*****.**> */ 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; }
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']; }
/** * Create link/button to user page * * @author Anika Henke <*****@*****.**> */ 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>"; }
/** * Create link/button to user page * * @author Anika Henke <*****@*****.**> */ 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}>"; } }
/** * Create link/button to user page * * @author Anika Henke <*****@*****.**> */ 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}>"; } }
/** * Hierarchical breadcrumbs * * This code was suggested as replacement for the usual breadcrumbs. * It only makes sense with a deep site structure. * * @author Andreas Gohr <*****@*****.**> * @author Nigel McNie <*****@*****.**> * @author Sean Coates <*****@*****.**> * @author <*****@*****.**> * @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; }
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>
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
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; }
//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 />
</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>
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>'; } }
</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" />');
<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>'; ?>
/** * 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; }
?> </div> <div class="clearer"></div> </div><!-- /.content --> <p class="back"> <?php $imgNS = getNS($IMG); $authNS = auth_quickaclcheck("{$imgNS}:*"); if ($authNS >= AUTH_UPLOAD && function_exists('media_managerURL')) { $mmURL = media_managerURL(array('ns' => $imgNS, 'image' => $IMG)); echo '<a href="' . $mmURL . '">' . $lang['img_manager'] . '</a><br />'; } ?> ← <?php echo $lang['img_backto']; ?> <?php tpl_pagelink($ID); ?> </p> <?php } ?> </div> <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]--> </body> </html>
if (tpl_getConf("vector_copyright_default")) { echo "<li id=\"footer-info-copyright\">\n <div class=\"dokuwiki\">"; //dokuwiki CSS class needed cause we have to show DokuWiki content tpl_license(false); echo "</div>\n </li>\n"; //show custom notice. } else { if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("vector_copyright_location"))) >= AUTH_READ) { //current user got access? echo "<li id=\"footer-info-copyright\">\n "; //get the rendered content of the defined wiki article to use as custom notice $interim = tpl_include_page(tpl_getConf("vector_copyright_location"), false); if ($interim === "" || $interim === false) { //show creation/edit link if the defined page got no content echo "[ "; tpl_pagelink(tpl_getConf("vector_copyright_location"), hsc($lang["vector_fillplaceholder"] . " (" . tpl_getConf("vector_copyright_location") . ")")); echo " ]<br />"; } else { //show the rendered page content echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>"; } echo "\n </li>\n"; } } } ?> </ul> <ul id="footer-places" class="noprint"> <li><?php //show buttons, see vector/user/buttons.php to configure them if (!empty($_vector_btns) && is_array($_vector_btns)) {