本文整理汇总了PHP中tpl_getConf函数的典型用法代码示例。如果您正苦于以下问题:PHP tpl_getConf函数的具体用法?PHP tpl_getConf怎么用?PHP tpl_getConf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tpl_getConf函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tpl_translation
function tpl_translation($conf)
{
if (file_exists(dirname(__FILE__) . '/lang/' . $conf . '/settings.php')) {
return $conf;
}
return tpl_getConf('btl_language');
}
开发者ID:hannesdorn,项目名称:newday,代码行数:7,代码来源:tpl_functions.php
示例2: tpl_sidebar_content
function tpl_sidebar_content()
{
global $ID, $REV, $ACT, $conf;
// save globals
$saveID = $ID;
$saveREV = $REV;
$saveACT = $ACT;
// discover file to be displayed in navigation sidebar
$fileSidebar = '';
if (tpl_getConf('page')) {
$fileSidebar = getSidebarFN(getNS($ID), tpl_getConf('page'));
}
// determine what to display
if ($fileSidebar) {
$ID = $fileSidebar;
$REV = '';
$ACT = 'show';
# print p_wiki_xhtml($fileSidebar,'',false);
tpl_content();
} else {
# global $IDX;
# html_index($IDX);
# $ID = getNS($ID);
$REV = '';
$ACT = 'index';
tpl_content();
}
// restore globals
$ID = $saveID;
$REV = $saveREV;
$ACT = $saveACT;
}
开发者ID:lorea,项目名称:Hydra-dev,代码行数:32,代码来源:tplfn_sidebar.php
示例3: _tpl_action
/**
* Wrapper around custom template actions
*
* @author Anika Henke <[email protected]>
*/
function _tpl_action($type, $link = 0, $wrapper = 0)
{
switch ($type) {
case 'userpage':
if (tpl_getConf('userPage')) {
_tpl_userpage(tpl_getConf('userPage'), tpl_getLang('userpage'), $link, $wrapper);
}
break;
}
}
开发者ID:ofsole,项目名称:dokuwiki,代码行数:15,代码来源:tpl_functions.php
示例4: tpl_navigation
/**
* Prints the navigation
*
* @author Michael Klier <[email protected]>
*/
function tpl_navigation()
{
global $ID;
global $conf;
$navpage = tpl_getConf('navigation_page');
print '<div class="navigation">' . DOKU_LF;
if (!page_exists($navpage)) {
if (@file_exists(DOKU_TPLINC . 'lang/' . $conf['lang'] . '/nonavigation.txt')) {
$out = p_render('xhtml', p_get_instructions(io_readFile(DOKU_TPLINC . 'lang/' . $conf['lang'] . '/nonavigation.txt')), $info);
} else {
$out = p_render('xhtml', p_get_instructions(io_readFile(DOKU_TPLINC . 'lang/en/nonavigation.txt')), $info);
}
$link = '<a href="' . wl($navpage) . '" class="wikilink2">' . $navpage . '</a>' . DOKU_LF;
print str_replace('LINK', $link, $out);
} else {
print p_wiki_xhtml($navpage);
}
print '</div>';
}
开发者ID:adri,项目名称:Dokuwiki-OS-X-Template,代码行数:24,代码来源:tpl_functions.php
示例5: tpl_sidebar
function tpl_sidebar()
{
global $ID, $REV, $conf;
// save globals
$saveID = $ID;
$saveREV = $REV;
// discover file to be displayed in navigation sidebar
$fileSidebar = '';
$sidebar_name = tpl_getConf('btl_sidebar_name');
if (isset($sidebar_name)) {
$fileSidebar = getSidebarFN(getNS($ID), $sidebar_name);
}
// determine what to display
if ($fileSidebar) {
$ID = $fileSidebar;
$REV = '';
$sidebar = p_wiki_xhtml($ID, $REV, false);
$lines = explode("\n", $sidebar);
$open_ul = 0;
for ($i = 0; $i < count($lines); $i++) {
if (trim($lines[$i]) == '<ul>') {
$open_ul = $open_ul + 1;
if ($open_ul == 1) {
$lines[$i] = '<ul class="primary">' . "\n";
}
} else {
if (strpos($lines[$i], '</ul>') != false) {
$open_ul = $open_ul - 1;
}
}
}
print implode($lines);
} else {
global $IDX;
html_index($IDX);
}
// restore globals
$ID = $saveID;
$REV = $saveREV;
}
开发者ID:philipp02,项目名称:volleyball-rueppurr-dokuwiki,代码行数:40,代码来源:tplfn_sidebar.php
示例6: tpl_sidebar_content
function tpl_sidebar_content()
{
global $ID, $REV, $conf;
// save globals
$saveID = $ID;
$saveREV = $REV;
// discover file to be displayed in navigation sidebar
$fileSidebar = '';
if (tpl_getConf('page')) {
$fileSidebar = getSidebarFN(getNS($ID), tpl_getConf('page'));
}
// determine what to display
if ($fileSidebar) {
$ID = $fileSidebar;
$REV = '';
print p_wiki_xhtml($ID, $REV, false);
} else {
global $IDX;
html_index($IDX);
}
// restore globals
$ID = $saveID;
$REV = $saveREV;
}
开发者ID:pietersartain,项目名称:dokuwiki-template-pq,代码行数:24,代码来源:tplfn_sidebar.php
示例7:
<?php
if (strpos(tpl_getConf('elements'), 'header_landing_area') !== false) {
include 'tpl_site_header_landing.php';
}
?>
<!-- ********** HEADER ********** -->
<header id="dokuwiki__top">
<?php
include 'tpl_site_header_topbar.php';
?>
<?php
include 'tpl_site_header_nav.php';
?>
</header><!-- /#dokuwiki__header -->
<div id="mixture__content" class="pad">
<?php
html_msgarea();
?>
<!--<div class="clearer"></div>-->
<nav class="tools">
<!-- USER TOOLS -->
<?php
if ($conf['useacl'] && $showTools) {
?>
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:31,代码来源:tpl_layout_mixture.php
示例8: tpl_getConf
//RSS recent changes button
$_vector_btns["rss"]["img"] = DOKU_TPL . "static/img/button-rss.png";
$_vector_btns["rss"]["href"] = DOKU_BASE . "feed.php";
$_vector_btns["rss"]["width"] = 80;
$_vector_btns["rss"]["height"] = 15;
$_vector_btns["rss"]["title"] = $lang["vector_recentchanges"];
$_vector_btns["rss"]["nofollow"] = true;
//donation button
if (tpl_getConf("vector_donate")) {
$_vector_btns["donate"]["img"] = DOKU_TPL . "static/img/button-donate.gif";
$_vector_btns["donate"]["href"] = DOKU_BASE . "feed.php";
if (tpl_getConf("vector_donate_default")) {
$_vector_btns["donate"]["href"] = "http://andreas-haerter.com/donate/vector/paypal";
//default url
} else {
$_vector_btns["donate"]["href"] = tpl_getConf("vector_donate_url");
//custom url
}
$_vector_btns["donate"]["width"] = 80;
$_vector_btns["donate"]["height"] = 15;
$_vector_btns["donate"]["title"] = $lang["vector_donate"];
$_vector_btns["donate"]["nofollow"] = true;
}
//"vector for DokuWiki" button
//Note: You are NOT allowed to remove this button. Please respect this!
$_vector_btns["vecfdw"]["img"] = DOKU_TPL . "static/img/button-vector.png";
$_vector_btns["vecfdw"]["href"] = "http://andreas-haerter.com/projects/dokuwiki-template-vector";
$_vector_btns["vecfdw"]["width"] = 80;
$_vector_btns["vecfdw"]["height"] = 15;
$_vector_btns["vecfdw"]["title"] = $lang["vector_mdtemplatefordw"];
$_vector_btns["vecfdw"]["nofollow"] = false;
开发者ID:houshuang,项目名称:folders2web,代码行数:31,代码来源:buttons.php
示例9: tpl_action
tpl_action('recent', 1, 'li');
tpl_action('media', 1, 'li');
tpl_action('index', 1, 'li');
?>
</ul>
</div>
</div>
<!-- TOPBAR - @20cones-template@ -->
<div class="topbar">
<?php
if (tpl_getConf("20cones_htmltopbar")) {
tpl_includeFile('topbar.html');
} else {
tpl_include_page(tpl_getConf("20cones_pagetopbar"), 1, 1);
}
?>
</div>
<!-- BREADCRUMBS -->
<?php
if ($conf['breadcrumbs'] || $conf['youarehere']) {
?>
<div class="breadcrumbs">
<?php
if ($conf['youarehere']) {
?>
<div class="youarehere"><?php
tpl_youarehere();
?>
开发者ID:jbschafer,项目名称:LearningLabServer,代码行数:31,代码来源:tpl_header.php
示例10: p_index_xhtml
/**
* Renders the Index
*
*/
function p_index_xhtml($ns)
{
require_once DOKU_INC . 'inc/search.php';
global $conf;
global $ID;
$dir = $conf['datadir'];
$tpl = $conf['template'];
$start = isset($conf['start']) ? $conf['start'] : 'start';
$ns = getNS($ns);
$data = array();
search($data, $conf['datadir'], 'search_index', array('ns' => $ns));
$i = 0;
$cleanindexlist = array();
if (tpl_getConf('cleanindexlist')) {
$cleanindexlist = explode(',', tpl_getConf('cleanindexlist'));
$i = 0;
foreach ($cleanindexlist as $tmpitem) {
$cleanindexlist[$i] = trim($tmpitem);
$i++;
}
}
$i = 0;
foreach ($data as $item) {
if (tpl_getConf('cleanindex')) {
if (count($cleanindexlist)) {
if (strpos($item['id'], ':')) {
list($tmpitem) = explode(':', $item['id']);
} else {
$tmpitem = $item['id'];
}
if (in_array($tmpitem, $cleanindexlist)) {
unset($data[$i]);
}
}
}
if ($item['id'] == 'sidebar' or $item['id'] == $start or preg_match('/:' . $start . '$/', $item['id']) or !empty($conf['hidepages']) and preg_match('/' . $conf['hidepages'] . '$/', $item['id']) or $item['id'] == $conf['tpl']['dokukit']['extlinks']) {
unset($data[$i]);
}
$i++;
}
# echo index with empty items removed
echo html_buildlist($data, 'idx', '_html_list_index', 'html_li_index');
}
开发者ID:particleKIT,项目名称:dokuKIT,代码行数:47,代码来源:tpl_functions.php
示例11: switch
{
switch ($type) {
case 'register':
// deprecated
_tpl_register($link, $wrapper);
break;
}
}
/* fallbacks for things missing in older DokuWiki versions
********************************************************************/
/* if newer settings exist in the core, use them, otherwise fall back to template settings */
if (!isset($conf['tagline'])) {
$conf['tagline'] = tpl_getConf('tagline');
}
if (!isset($conf['sidebar'])) {
$conf['sidebar'] = tpl_getConf('sidebarID');
}
/* these $lang strings are now in the core */
if (!isset($lang['user_tools'])) {
$lang['user_tools'] = tpl_getLang('user_tools');
}
if (!isset($lang['site_tools'])) {
$lang['site_tools'] = tpl_getLang('site_tools');
}
if (!isset($lang['page_tools'])) {
$lang['page_tools'] = tpl_getLang('page_tools');
}
if (!isset($lang['skip_to_content'])) {
$lang['skip_to_content'] = tpl_getLang('skip_to_content');
}
/**
开发者ID:projectesIF,项目名称:Ateneu,代码行数:31,代码来源:tpl_functions.php
示例12: _mixture_glyph
echo _mixture_glyph("close", "close");
?>
</label>
<ul>
<?php
_mixture_adminDropdown();
?>
</ul>
</div>
</div>
</div>
</li>
<?php
}
?>
<li>
<?php
_mixture_searchform(true, tpl_getConf('autoComplete'));
?>
</li>
</ul>
</div><!-- #mixture__tools -->
<?php
if ($conf['breadcrumbs'] or $conf['youarehere']) {
include 'tpl_site_header_nav_breadcrumbs.php';
}
?>
</nav>
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:30,代码来源:tpl_site_header_nav.php
示例13: switch
<?php
switch (tpl_getConf('wiki_actionlinks')) {
case 'buttons':
tpl_button('edit');
tpl_button('history');
break;
case 'links':
tpl_actionlink('edit');
tpl_actionlink('history');
break;
}
?>
</div>
<div class="bar-right">
<?php
switch (tpl_getConf('wiki_actionlinks')) {
case 'buttons':
tpl_button('backlink');
tpl_button('subscription');
tpl_button('top');
break;
case 'links':
tpl_actionlink('backlink');
tpl_actionlink('subscription');
tpl_actionlink('top');
break;
}
?>
</div>
</div>
<div class="clearer"></div>
开发者ID:xudianyang,项目名称:wiki.phpboy.net,代码行数:31,代码来源:main.php
示例14: _mixture_stickme
/**
* STICKY OR NOT
*/
function _mixture_stickme($element)
{
if ($element != null and strpos(tpl_getConf('stickies'), $element) !== false) {
return " stickme";
}
}
开发者ID:geekitude,项目名称:dokuwiki-template-mixture,代码行数:9,代码来源:tpl_functions.php
示例15: hsc
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?php
echo hsc($lang['mediaselect']);
?>
[<?php
echo strip_tags($conf['title']);
?>
]
</title>
<?php
tpl_metaheaders();
?>
<link rel="shortcut icon" href="<?php
echo tpl_getConf('lab_favicon');
?>
" type="image/x-icon" />
</head>
<body>
<div id="media__manager" class="dokuwiki">
<div id="media__left">
<?php
html_msgarea();
?>
<h1><?php
echo hsc($lang['mediaselect']);
?>
</h1>
开发者ID:eslusanschi,项目名称:lab-infrastructure,代码行数:30,代码来源:mediamanager.php
示例16: gmdate
year = "<?php
echo gmdate("Y", $rev);
?>
",
url = "\url{<?php
echo str_replace(",", "{,}", hsc($permurl));
?>
}",
note = "[Online; accessed <?php
echo gmdate("j-F-Y");
?>
]"
author = "<?php
echo tpl_getConf("monobook_cite_author");
?>
",
title = "<?php
tpl_pagetitle();
?>
--- <?php
echo hsc($conf["title"]);
?>
",
year = "<?php
echo gmdate("Y", $rev);
?>
",
url = "\url{<?php
echo hsc($permurl);
开发者ID:RJWoodhead,项目名称:dokuwiki-template-monobook,代码行数:31,代码来源:inc_cite.php
示例17: 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':
case 'showLoginOnFooter':
return $value && !$_SERVER['REMOTE_USER'];
case 'showSidebar':
if (bootstrap3_conf('showLandingPage')) {
return false;
}
return page_findnearest($conf['sidebar']) && $ACT == 'show';
case 'showRightSidebar':
return page_findnearest(tpl_getConf('rightSidebar')) && $ACT == 'show';
case 'landingPages':
return sprintf('/%s/', $value);
case 'showLandingPage':
return $value && (bool) preg_match_all(bootstrap3_conf('landingPages'), $ID);
case 'pageOnPanel':
if (bootstrap3_conf('showLandingPage')) {
return false;
}
return $value;
case 'showThemeSwitcher':
return $value && bootstrap3_conf('bootstrapTheme') == 'bootswatch';
}
//$type = bootstrap3_conf_metadata($key);
//if ($type[0] == 'regex') {
// return sprintf('/%s/', $value);
//}
return $value;
}
开发者ID:ERTurner,项目名称:dokuwiki-template-bootstrap3,代码行数:52,代码来源:tpl_functions.php
示例18: tpl_sidebar
?>
<?php
tpl_sidebar('left');
?>
</div>
<div id="page">
<?php
html_msgarea();
?>
<?php
$notoc ? tpl_content(false) : tpl_content();
?>
</div>
<div id="right_sidebar">
<?php
if (tpl_getConf('search') == 'right') {
?>
<div class="sidebar_box search_sidebar">
<?php
tpl_searchform();
?>
</div>
<?php
}
?>
<?php
tpl_sidebar('right');
?>
</div>
</div>
开发者ID:silentulo,项目名称:dokuwiki-template-kunlaborejo,代码行数:30,代码来源:main.php
示例19: tpl_getConf
width:<?php
echo tpl_getConf('width');
?>
;
padding-left:2.5em;
padding-right:2.5em;
}
.h6e-post-content {
font-size:<?php
echo tpl_getConf('font-size');
?>
;
}
.h6e-entry-title, .h6e-entry-title a, .h6e-entry-title a:visited, .do-page h1, .content-page h2 {
color:<?php
echo tpl_getConf('title-color');
?>
;
}
</style>
</head>
<body class="h6e-layout">
<div id="media__manager" class="dokuwiki h6e-main-content">
<div id="media__left">
<?php
html_msgarea();
?>
开发者ID:pfharlock,项目名称:dokuwiki-minimal,代码行数:30,代码来源:mediamanager.php
示例20: tpl_action
/* 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') */
tpl_action('top', 1, 'li');
?>
</ul>
</li>
</ul>
<?php
_tpl_searchform();
?>
</div>
</div></div>
<div class="container<?php
if ((int) tpl_getConf('full_width') === 1) {
echo "-fluid";
}
?>
not-header">
<div class="notifications hidden-print">
<?php
html_msgarea();
?>
</div>
<a href="#dokuwiki__content" class="sr-only hidden-print"><?php
echo $lang['skip_to_content'];
?>
</a>
<a href="#dokuwiki__aside" class="skip-to-sidebar hidden-print visible-xs btn-block btn btn-info"><?php
开发者ID:n1trux,项目名称:cw-bootstrap,代码行数:31,代码来源:main.php
注:本文中的tpl_getConf函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论