本文整理汇总了PHP中tpl_pagetitle函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_pagetitle函数的具体用法?PHP tpl_pagetitle怎么用?PHP tpl_pagetitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_pagetitle函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getDuoshuoScript
public function getDuoshuoScript()
{
$short_name = $this->getConf('shortname');
$wiki_id = getID();
$wiki_title = tpl_pagetitle($wiki_id, true);
$host = $_SERVER['HTTPS'] ? "https" : "http";
$host = $host . "://" . $_SERVER['SERVER_NAME'];
$wiki_url = $host . wl($wiki_id);
$doc = '
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="" data-title="' . $wiki_title . '" data-url="' . $wiki_url . '"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"' . $short_name . '"};
(function() {
var ds = document.createElement("script");
ds.type = "text/javascript";ds.async = true;
ds.src = (document.location.protocol == "https:" ? "https:" : "http:") + "//static.duoshuo.com/embed.js";
ds.charset = "UTF-8";
(document.getElementsByTagName("head")[0]
|| document.getElementsByTagName("body")[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->';
return $doc;
}
开发者ID:xudianyang,项目名称:wiki.phpboy.net,代码行数:27,代码来源:syntax.php
示例2: document_start
public function document_start()
{
global $conf;
global $ID;
global $updateVersion;
$this->base = DOKU_BASE . 'lib/plugins/impressjs/tpl/';
$this->tpl = $this->getConf('template');
// prepare seed for js and css
$tseed = $updateVersion;
$depends = getConfigFiles('main');
foreach ($depends as $f) {
$tseed .= @filemtime($f);
}
$tseed = md5($tseed);
$this->doc .= '<!DOCTYPE html>
<html lang="' . $conf['lang'] . '">
<head>
<meta name="viewport" content="width=1024" />
<meta charset="utf-8" />
<title>' . tpl_pagetitle($ID, true) . '</title>
<meta name="generator" content="impress.js" />
<meta name="version" content="impress.js ab44798b081997319f4207dabbb052736acfc512" />
<link rel="stylesheet" href="' . DOKU_BASE . 'lib/exe/css.php?t=none&tseed=' . $tseed . '" type="text/css" media="screen" />
<link href="' . $this->base . $this->tpl . '/impress.css" rel="stylesheet" />
<link href="' . $this->base . $this->tpl . '/impress-extra.css" rel="stylesheet" />
</head>
<body>
<div id="impress">';
}
开发者ID:AlexanderS,项目名称:dokuwiki-plugin-impressjs,代码行数:31,代码来源:renderer.php
示例3: test_pageFunctionTitle
function test_pageFunctionTitle()
{
global $ID, $ACT;
$ID = 'foo:bar';
$ACT = 'revisions';
$this->assertEquals('foo:bar - Old revisions', tpl_pagetitle(null, true));
}
开发者ID:richmahn,项目名称:Door43,代码行数:7,代码来源:template_include_page.test.php
示例4: handle_act_render
/**
* Handler for the TPL_ACT_RENDER event
*/
function handle_act_render(&$event, $params)
{
global $ID;
// Action not 'show'? Quit
if ($event->data != 'show') {
return;
}
// Trackbacks disabled? Quit
if (!$this->getConf('enable_trackback')) {
return;
}
// Get linkback metadata
$file = metaFN($ID, '.linkbacks');
$data = array('send' => false, 'receive' => false, 'display' => false, 'sentpings' => array(), 'receivedpings' => array(), 'number' => 0);
if (@file_exists($file)) {
$data = unserialize(io_readFile($file, false));
}
// Does not accept linkbacks? Quit
if (!$data['receive']) {
return;
}
// if trackbacks are enabled, insert RDF definition of trackback into output
if ($this->getConf('enable_trackback')) {
echo '<!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"' . NL . 'xmlns:dc="http://purl.org/dc/elements/1.1/"' . NL . 'xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' . NL . '<rdf:Description' . NL . 'rdf:about="' . wl($ID, '', true) . '"' . NL . 'dc:identifier="' . wl($ID, '', true) . '"' . NL . 'dc:title="' . tpl_pagetitle($ID, true) . '"' . NL . 'trackback:ping="' . DOKU_URL . 'lib/plugins/linkback/exe/trackback.php/' . $ID . '" />' . NL . '</rdf:RDF>-->';
}
}
开发者ID:omusico,项目名称:isle-web-framework,代码行数:29,代码来源:receive.php
示例5: document_start
/**
* Initialize the rendering
*/
function document_start() {
global $ID;
global $conf;
global $lang;
// call the parent
parent::document_start();
// store the content type headers in metadata
$headers = array(
'Content-Type' => 'text/html; charset=utf-8'
);
$theme = isset($_GET['theme'])?$_GET['theme']:$this->getConf('theme');
p_set_metadata($ID,array('format' => array('revealjs' => $headers) ));
$this->base = DOKU_BASE.'lib/plugins/revealjs/';
$this->doc = '
<!DOCTYPE html>
<html lang="'.$conf['lang'].'" dir="'.$lang['direction'].'">
<head>
<meta charset="utf-8">
<title>'.tpl_pagetitle($ID, true).'</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="'.$this->base.'css/reveal.css">
<link rel="stylesheet" href="'.$this->base.'css/theme/'.$theme.'.css" id="theme">
<link rel="stylesheet" href="'.$this->base.'doku-substitutes.css">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="'.$this->base.'lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( \'link\' );
link.rel = \'stylesheet\';
link.type = \'text/css\';
link.href = window.location.search.match( /print-pdf/gi ) ? \''.$this->base.'css/print/pdf.css\' : \''.$this->base.'css/print/paper.css\';
document.getElementsByTagName( \'head\' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src='.$this->base.'"lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
';
}
开发者ID:rusidea,项目名称:analitika,代码行数:63,代码来源:renderer.php
示例6: test_pageFunctionTitle
function test_pageFunctionTitle()
{
$this->markTestSkipped('Skipped because it is failing');
global $ID, $ACT;
$ID = 'foo:bar';
$ACT = 'revisions';
$this->assertEquals('foo:bar - Old revisions', tpl_pagetitle(null, true));
}
开发者ID:kbuildsyourdotcom,项目名称:Door43,代码行数:8,代码来源:template_include_page.test.php
示例7: tpl_action_url
function tpl_action_url($url)
{
$page_url = urlencode(selfURL());
$page_title = urlencode(tpl_pagetitle(null, true));
$url = str_replace("%PAGEURL%", $page_url, $url);
$url = str_replace("%PAGETITLE%", $page_title, $url);
return $url;
}
开发者ID:philipp02,项目名称:volleyball-rueppurr-dokuwiki,代码行数:8,代码来源:tpl_functions.php
示例8: dokui_navigation_page
function dokui_navigation_page()
{
global $dokui;
if ($dokui['navigation']['page'] == null) {
$page = explode(':', tpl_pagetitle(NULL, true));
array_pop($page);
$page = count($page) > 0 ? implode(':', $page) . ':navigation' : 'navigation';
$dokui['navigation']['page'] = $page;
}
return $dokui['navigation']['page'];
}
开发者ID:projectesIF,项目名称:Ateneu,代码行数:11,代码来源:tpl_functions.php
示例9: handle_act_render
/**
* Handler for the TPL_ACT_RENDER event
*/
function handle_act_render(&$event, $params)
{
if (!$this->run) {
return;
}
// Action not 'show'? Quit
if ($event->data != 'show') {
return;
}
global $ID;
// insert RDF definition of trackback into output
echo '<!--<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"' . NL . 'xmlns:dc="http://purl.org/dc/elements/1.1/"' . NL . 'xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">' . NL . '<rdf:Description' . NL . 'rdf:about="' . wl($ID, '', true) . '"' . NL . 'dc:identifier="' . wl($ID, '', true) . '"' . NL . 'dc:title="' . tpl_pagetitle($ID, true) . '"' . NL . 'trackback:ping="' . DOKU_URL . 'lib/plugins/blogtng/exe/trackback.php/' . $ID . '" />' . NL . '</rdf:RDF>-->';
}
开发者ID:stretchyboy,项目名称:plugin-blogtng,代码行数:16,代码来源:linkback.php
示例10: tpl_menu2
/**
* Displays the menu2
*
*/
function tpl_menu2()
{
global $conf, $ID, $REV, $INFO, $lang;
$currID = false;
if ($conf['tpl_mmClean']['menu2Permanent']) {
$path = "";
} else {
if (false != strpos($ID, ":")) {
$path = substr($ID, 0, strpos($ID, ":"));
} else {
$path = $ID;
}
$path .= ":";
}
print "<h1>";
print tpl_pagetitle();
print "</h1>";
print p_wiki_xhtml($path . "menu2", '', false);
if ($INFO['perm'] > AUTH_READ) {
print '<ul><li><a href="?id=' . $path . 'menu2&do=edit" class="wikilink1" title="Edit"><b>Edit</b></a></li></ul>';
}
}
开发者ID:reidab,项目名称:osbp_dokuwiki_theme,代码行数:26,代码来源:tpl_functions.php
示例11: bootstrap3_conf
/**
* Simple wrapper for tpl_getConf
*
* @author Giuseppe Di Terlizzi <[email protected]>
*
* @param string $key
* @param mixed $default value
* @return mixed
*/
function bootstrap3_conf($key, $default = false)
{
global $ACT, $INFO, $ID, $conf;
$value = tpl_getConf($key, $default);
switch ($key) {
case 'showTools':
case 'showSearchForm':
case 'showPageTools':
return $value !== 'never' && ($value == 'always' || !empty($_SERVER['REMOTE_USER']));
case 'showIndividualTool':
case 'hideInThemeSwitcher':
case 'tableStyle':
return explode(',', $value);
case 'showAdminMenu':
return $value && $INFO['isadmin'];
case 'hideLoginLink':
return !$value || !empty($_SERVER['REMOTE_USER']);
case 'browserTitle':
if (bootstrap3_conf('browserTitleShowNS')) {
$ns_parts = explode(':', $ID);
$ns_pages = array();
$ns_titles = array();
$ns_separator = sprintf(' %s ', bootstrap3_conf('browserTitleCharSepNS'));
if (useHeading('navigation')) {
foreach ($ns_parts as $ns_part) {
$ns_page .= "{$ns_part}:";
$ns_pages[] = $ns_page;
}
$ns_pages = array_unique($ns_pages);
foreach ($ns_pages as $ns_page) {
resolve_pageid(getNS($ns_page), $ns_page, $exists);
$ns_page_title_heading = hsc(p_get_first_heading($ns_page));
$ns_page_title_page = noNSorNS($ns_page);
$ns_page_title = $ns_page_title_heading ? $ns_page_title_heading : $ns_page_title_page;
$ns_titles[] = $ns_page_title;
}
$ns_titles[] = tpl_pagetitle($ID, true);
$ns_titles = array_unique($ns_titles);
} else {
$ns_titles = $ns_parts;
}
if (bootstrap3_conf('browserTitleOrderNS') == 'normal') {
$ns_titles = array_reverse($ns_titles);
}
$browser_title = implode($ns_separator, $ns_titles);
} else {
$browser_title = tpl_pagetitle($ID, true);
}
return str_replace(array('@WIKI@', '@TITLE@'), array(strip_tags($conf['title']), $browser_title), $value);
case 'showSidebar':
return page_findnearest($conf['sidebar']) && $ACT == 'show';
case 'showRightSidebar':
return page_findnearest(tpl_getConf('rightSidebar')) && $ACT == 'show';
case 'landingPages':
return sprintf('/%s/', $value);
}
//$type = bootstrap3_metadata($key);
//if ($type[0] == 'regex') {
// return sprintf('/%s/', $value);
//}
return $value;
}
开发者ID:vierbergenlars,项目名称:dokuwiki-template-bootstrap3,代码行数:71,代码来源:tpl_functions.php
示例12: s5_init
/**
* Print the header of the page
*
* Gets called when the very first H1 header is discovered. It includes
* all the S5 CSS and JavaScript magic
*/
function s5_init($title)
{
global $conf;
global $lang;
global $INFO;
global $ID;
//throw away any previous content
$this->doc = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . $conf['lang'] . '"
lang="' . $conf['lang'] . '" dir="' . $lang['direction'] . '">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>' . hsc($title) . '</title>
<!-- metadata -->
<meta name="generator" content="S5" />
<meta name="version" content="S5 1.1" />
<!-- configuration parameters -->
<meta name="defaultView" content="slideshow" />
<meta name="controlVis" content="hidden" />
<!-- style sheet links -->
<link rel="stylesheet" href="' . DOKU_BASE . 'lib/styles/all.css" type="text/css" media="screen" />
<link rel="stylesheet" href="' . DOKU_BASE . 'lib/styles/screen.css" type="text/css" media="screen" />
<link rel="stylesheet" href="' . $this->base . $this->tpl . '/slides.css" type="text/css" media="projection" id="slideProj" />
<link rel="stylesheet" href="' . $this->base . 'default/outline.css" type="text/css" media="screen" id="outlineStyle" />
<link rel="stylesheet" href="' . $this->base . 'default/print.css" type="text/css" media="print" id="slidePrint" />
<link rel="stylesheet" href="' . $this->base . 'default/opera.css" type="text/css" media="projection" id="operaFix" />
<!-- S5 JS -->
<script src="' . $this->base . 'default/slides.js" type="text/javascript"></script>
</head>
<body>
<div class="layout">
<div id="controls"><!-- DO NOT EDIT --></div>
<div id="currentSlide"><!-- DO NOT EDIT --></div>
<div id="header"></div>
<div id="footer">
<h1>' . tpl_pagetitle($ID, true) . '</h1>
<h2>' . hsc($conf['title']) . ' • ' . strftime($conf['dformat'], $INFO['lastmod']) . '</h2>
</div>
</div>
<div class="presentation">
';
}
开发者ID:xudianyang,项目名称:wiki.phpboy.net,代码行数:52,代码来源:renderer.php
示例13: define
<?php
define("DOKU_INC", realpath(dirname(__FILE__) . '/../../../../') . '/');
require_once DOKU_INC . 'inc/init.php';
require_once DOKU_INC . 'inc/template.php';
if (isset($_REQUEST['dw_id']) && $_REQUEST['dw_id']) {
$page = urldecode($_REQUEST['dw_id']);
$page = ltrim($page, ':');
} else {
echo $_REQUEST['dw_id'] . "\n";
exit;
}
$t = trim(tpl_pagetitle($page, 1));
echo "{$t}\n";
开发者ID:neutrinog,项目名称:Door43,代码行数:14,代码来源:useheading.php
示例14: tpl_actionlink
?>
</li>
<li ><?php
tpl_actionlink('admin');
?>
</li>
<li ><?php
tpl_actionlink('profile');
?>
</li>
</ul>
</div>
<div class="headerPagename">
[[<?php
tpl_link(wl($ID, 'do=backlink'), tpl_pagetitle($ID, true));
?>
]]
</div>
<div class="headerLogo">
<?php
tpl_link(wl(), $conf['title'], 'name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]"');
?>
</div>
<div class="clearfix"> </div>
</div>
<div id="wrapper" class="clearfix" >
开发者ID:BackupTheBerlios,项目名称:openaqua-svn,代码行数:31,代码来源:main.php
示例15: tpl_getConf
* @author Giuseppe Di Terlizzi <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
$showTools = tpl_getConf('showTools') != 'never' && (tpl_getConf('showTools') == 'always' || !empty($_SERVER['REMOTE_USER']));
$individualTools = tpl_getConf('individualTools');
$showUserHomeLink = tpl_getConf('showUserHomeLink');
$showLoginOnFooter = tpl_getConf('showLoginOnFooter');
$showLoginLink = !tpl_getConf('hideLoginLink') || !empty($_SERVER['REMOTE_USER']);
$showSidebar = page_findnearest($conf['sidebar']) && $ACT == 'show';
$sidebarPosition = tpl_getConf('sidebarPosition');
$showRightSidebar = page_findnearest(tpl_getConf('rightSidebar')) && $ACT == 'show';
$rightSidebar = tpl_getConf('rightSidebar');
$showCookieLawBanner = tpl_getConf('showCookieLawBanner');
$cookieLawBannerPage = tpl_getConf('cookieLawBannerPage');
$cookieLawPolicyPage = tpl_getConf('cookieLawPolicyPage');
$browserTitle = str_replace(array('@WIKI@', '@TITLE@'), array(strip_tags($conf['title']), tpl_pagetitle(null, true)), tpl_getConf('browserTitle'));
$showThemeSwitcher = tpl_getConf('showThemeSwitcher');
$fixedTopNavbar = tpl_getConf('fixedTopNavbar');
$inverseNavbar = tpl_getConf('inverseNavbar');
$bootstrapTheme = tpl_getConf('bootstrapTheme');
$customTheme = tpl_getConf('customTheme');
$bootswatchTheme = tpl_getConf('bootswatchTheme');
$pageOnPanel = tpl_getConf('pageOnPanel');
$fluidContainer = tpl_getConf('fluidContainer');
$showPageInfo = tpl_getConf('showPageInfo');
$showBadges = tpl_getConf('showBadges');
$semantic = tpl_getConf('semantic');
$schemaOrgType = tpl_getConf('schemaOrgType');
$leftSidebarGrid = tpl_getConf('leftSidebarGrid');
$rightSidebarGrid = tpl_getConf('rightSidebarGrid');
$contentGrid = _tpl_get_container_grid();
开发者ID:HavocKKS,项目名称:dokuwiki-template-bootstrap3,代码行数:31,代码来源:tpl_global.php
示例16: _coComment
/**
* Adds a javascript to interact with coComments
*/
function _coComment()
{
global $ID;
global $conf;
global $INFO;
$user = $_SERVER['REMOTE_USER'];
?>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var blogTool = "DokuWiki";
var blogURL = "<?php
echo DOKU_URL;
?>
";
var blogTitle = "<?php
echo $conf['title'];
?>
";
var postURL = "<?php
echo wl($ID, '', true);
?>
";
var postTitle = "<?php
echo tpl_pagetitle($ID, true);
?>
";
<?php
if ($user) {
?>
var commentAuthor = "<?php
echo $INFO['userinfo']['name'];
?>
";
<?php
} else {
?>
var commentAuthorFieldName = "name";
<?php
}
?>
var commentAuthorLoggedIn = <?php
echo $user ? 'true' : 'false';
?>
;
var commentFormID = "discussion__comment_form";
var commentTextFieldName = "text";
var commentButtonName = "submit";
var cocomment_force = false;
//--><!]]></script>
<script type="text/javascript" src="http://www.cocomment.com/js/cocomment.js">
</script>
<?php
}
开发者ID:nickharambee,项目名称:plugin-discussion,代码行数:55,代码来源:action.php
示例17: bootstrap3_page_browser_title
function bootstrap3_page_browser_title()
{
global $conf, $ACT, $ID;
if (bootstrap3_conf('browserTitleShowNS') && $ACT == 'show') {
$ns_parts = explode(':', $ID);
$ns_pages = array();
$ns_titles = array();
$ns_separator = sprintf(' %s ', bootstrap3_conf('browserTitleCharSepNS'));
if (useHeading('navigation')) {
if (count($ns_parts) > 1) {
foreach ($ns_parts as $ns_part) {
$ns_page .= "{$ns_part}:";
$ns_pages[] = $ns_page;
}
$ns_pages = array_unique($ns_pages);
foreach ($ns_pages as $ns_page) {
resolve_pageid(getNS($ns_page), $ns_page, $exists);
$ns_page_title_heading = hsc(p_get_first_heading($ns_page));
$ns_page_title_page = noNSorNS($ns_page);
$ns_page_title = $exists ? $ns_page_title_heading : $ns_page_title_page;
if ($ns_page_title !== $conf['start']) {
$ns_titles[] = $ns_page_title;
}
}
}
resolve_pageid(getNS($ID), $ID, $exists);
if ($exists) {
$ns_titles[] = tpl_pagetitle($ID, true);
}
$ns_titles = array_filter(array_unique($ns_titles));
} else {
$ns_titles = $ns_parts;
}
if (bootstrap3_conf('browserTitleOrderNS') == 'normal') {
$ns_titles = array_reverse($ns_titles);
}
$browser_title = implode($ns_separator, $ns_titles);
} else {
$browser_title = tpl_pagetitle($ID, true);
}
return str_replace(array('@WIKI@', '@TITLE@'), array(strip_tags($conf['title']), $browser_title), bootstrap3_conf('browserTitle'));
}
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:42,代码来源:tpl_functions.php
示例18: tpl_youarehere_bootstrap
/**
* Hierarchical breadcrumbs
*
*
* @return bool
*/
function tpl_youarehere_bootstrap()
{
global $conf;
global $ID;
global $lang;
// check if enabled
if (!$conf['youarehere']) {
return false;
}
$parts = explode(':', $ID);
$count = count($parts);
// print intermediate namespace links
$part = '';
print '<ol class="breadcrumb">' . PHP_EOL;
// always print the startpage
echo '<li>';
echo $lang['youarehere'] . ' ';
$page = $conf['start'];
tpl_link(wl($page), tpl_pagetitle($page, true), 'title="' . $page . '"');
echo '</li>' . PHP_EOL;
for ($i = 0; $i < $count - 1; $i++) {
$part .= $parts[$i] . ':';
$page = $part;
if ($page == $conf['start']) {
continue;
}
// Skip startpage
// output
if ($i == $count) {
print '<li class="active">';
} else {
print '<li>';
}
// html_wikilink because the page has the form pagename: and not pagename:pagename
print html_wikilink($page);
echo '</li>' . PHP_EOL;
}
// print current page, skipping start page, skipping for namespace index
resolve_pageid('', $page, $exists);
// skipping start page
if (isset($page) && $page == $part . $parts[$i]) {
echo '</ol>' . PHP_EOL;
return true;
}
// skipping for namespace index
$page = $part . $parts[$i];
if ($page == $conf['start']) {
echo '</ol>' . PHP_EOL;
return true;
}
// print current page
print '<li>';
tpl_link(wl($page), tpl_pagetitle($page, true), 'title="' . $page . '"');
print '</li>' . PHP_EOL;
// close the breadcrumb
echo '</ol>' . PHP_EOL;
return true;
}
开发者ID:alanthonyc,项目名称:dokuwiki-template-bootie,代码行数:64,代码来源:tpl_template_NicoBoot.php
示例19: dirname
* @author Martin Gabelmann <[email protected]>
*/
// must be run from within DokuWiki
if (!defined('DOKU_INC')) {
die;
}
// include custom template functions stolen from arctic template
require_once dirname(__FILE__) . '/tpl_functions.php';
// load translation plugin (if present)
$translation = plugin_load('helper', 'translation');
echo '
<!DOCTYPE html>
<html lang="', $conf['lang'], '" dir="', $lang['direction'], '">
<head>
<meta charset="utf-8" />
<title>', tpl_getConf("title_prefix"), preg_replace('/^' . $conf['lang'] . ':/', '', tpl_pagetitle(null, true)), '</title>', '<meta name="viewport" content="width=device-width, initial-scale=1.0">';
tpl_metaheaders();
echo tpl_favicon(array('favicon', 'mobile')), '
</head>
<body>
<div class="dokuwiki">
<div id="wrapper">';
html_msgarea();
// print the upper navigation with translation and login buttons
echo '<div id="metanavigation">';
tpl_link(wl(), 'HOME', 'name="dokuwiki__top" id="dokuwiki__top"');
tpl_link('https://www.kit.edu/impressum.php', tpl_getLang('imprint'));
tpl_link('https://www.kit.edu/', 'KIT');
if ($translation) {
echo $translation->showTranslations();
if (null != tpl_getConf("institute_" . $conf['lang'])) {
开发者ID:particleKIT,项目名称:dokuKIT,代码行数:31,代码来源:main.php
示例20: header
/**
* DokuWiki Default Template 2012
*
* @link http://dokuwiki.org/template
* @author Anika Henke <[email protected]>
* @author Clarence Lee <[email protected]>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
if (!defined('DOKU_INC')) {
die;
}
/* must be run from within DokuWiki */
header('X-UA-Compatible: IE=edge,chrome=1');
$hasSidebar = page_findnearest($conf['sidebar']);
$showSidebar = $hasSidebar && $ACT == 'show';
$TITLE = tpl_pagetitle(null, true);
$SEARCH = array("method" => "get", "action" => "/start", "placeholder" => "Search", "name" => "id", "hidden" => array(array("name" => "do", "value" => "search")));
if (empty($_SERVER['REMOTE_USER'])) {
$LINKS = array(array("href" => "?do=login", "text" => "Login"), array("href" => "?do=register", "text" => "Register"));
} else {
$name = hsc($INFO['userinfo']['name']) . ' (' . hsc($_SERVER['REMOTE_USER']) . ')';
$LINKS = array(array("href" => "?do=edit", "text" => "Edit this page"), array("href" => "?do=admin", "text" => "Admin"), array("href" => "?do=logout", "text" => "Logout"), array("href" => "?do=profile", "text" => $name));
}
ob_start();
tpl_metaheaders();
$HEAD_WIKI = ob_get_clean();
$CSS = array("/styles/wiki.css");
include __DIR__ . "/../../../shared/templates/header.inc";
?>
<section id="breadcrumbs">
开发者ID:learningendless,项目名称:web-wiki,代码行数:31,代码来源:main.php
注:本文中的tpl_pagetitle函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论