';
$out.='';
// if ($suf) $out='<'.$suf.'>'.$out.''.$suf.'>';
}
if($return) return $out;
echo $out;
return true;
}
function ds_html_msgarea(){ /* ½ºÆ®·¦¿ë msg */
global $MSG, $MSG_shown;
/** @var array $MSG */
// store if the global $MSG has already been shown and thus HTML output has been started
$MSG_shown = true;
if(!isset($MSG)) return;
$shown = array();
foreach($MSG as $msg){
$hash = md5($msg['msg']);
if(isset($shown[$hash])) continue; // skip double messages
if(info_msg_allowed($msg)){
print '
';
print '';
print $msg['msg'];
print '
';
}
$shown[$hash] = 1;
}
unset($GLOBALS['MSG']);
}
function tpl_bs_breadcrumbs($tag='li') {
global $lang;
global $conf;
//check if enabled
if(!$conf['breadcrumbs']) return false;
$crumbs = breadcrumbs(); //setup crumb trace
$last = count($crumbs);
if ($last==1) return false;
$i = 0;
print '';
print '
';
return $ret;
}
function _tpl_toc_to_twitter_bootstrap_event_hander(&$event, $param)
{
global $conf;
global $lang;
//This is tied to the specific format of the DokuWiki TOC.
echo _tpl_toc_to_twitter_bootstrap_event_hander_dump_level($event->data,$lang['toc'], true);
}
function _tpl_toc_to_twitter_bootstrap()
{
//Force generation of TOC, request that the TOC is returned as HTML, but then ignore the returned string. The hook will instead dump out the TOC.
global $EVENT_HANDLER;
$EVENT_HANDLER->register_hook('TPL_TOC_RENDER', 'AFTER', NULL, '_tpl_toc_to_twitter_bootstrap_event_hander');
tpl_toc(true);
}
function tpl_logo ($return = false) {
global $INFO;
global $conf;
$logoSize = array();
$logo = tpl_getMediaFile(array(':'.$INFO['namespace'].':logo.jpg',':'.$INFO['namespace'].':logo.png',':¿À´Ã:'.date("n¿ù_jÀÏ").'.png',':logo.png',':wiki:logo.png', 'images/logo.png'), false, $logoSize);
$out='';
// $out=tpl_link(wl('..:'),$out,'',1);
$out=tpl_link(wl($INFO['namespace'].':'.$conf['start'],'',true),$out,'',1);
if($return) return $out;
echo $out;
return true;
}
function tpl_background ($return = false) {
global $INFO;
$bg=tpl_getConf('bg_ns');
$logoSize = array();
$img = tpl_getMediaFile(array(':'.$INFO['namespace'].':'.$bg,':'.$bg, 'images/bg.png'), false);
$out=$img;
if($return) return $out;
echo $out;
return true;
}
function tpl_title ($return=false) {
global $INFO;
global $conf;
//strip_tags($conf['title'])
$out='