function template_common_prologue($args) { global $WikiName, $HomePage, $WikiLogo, $MetaKeywords, $MetaDescription; global $StyleScript, $SeparateTitleWords, $SeparateHeaderWords, $SearchURL, $FindScript; //echo "<p>template_common_prologue(".print_r($args,True).")</p>"; $keywords = ' ' . html_split_name($args['headlink']); $keywords = str_replace('"', '"', $keywords); //ob_start(); // Start buffering output. /* if($SeparateTitleWords) { $args['title'] = html_split_name($args['title']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta name="KEYWORDS" content="<?php print $MetaKeywords . $keywords; ?>" /> <meta name="DESCRIPTION" content="<?php print $MetaDescription; ?>" /> <?php if($args['norobots']) { ?> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> <?php } ?> <link rel="STYLESHEET" href="<?php print $StyleScript; ?>" type="text/css" /> <title><?php print $args['title'] . ' - ' . $WikiName; ?></title> </head> <body> <?php */ ?> <link rel="stylesheet" href="<?php echo $GLOBALS['phpgw_info']['server']['webserver_url'] . '/wiki/template/wiki.css'; ?> " type="text/css" /> <div align="left"> <div id="header"> <?php /* removed logo for now: TODO show it on extern site <div class="logo"> <a href="<?php print viewURL($HomePage); ?>"><img src="<?php print $WikiLogo; ?>" alt="[Home]" /></a> </div> */ ?> <h1 style="margin:0px;"> <?php print $args['heading']; if ($args['headlink'] != '') { ?> <a class="title" href="<?php print findURL($args['headlink']); ?> "> <?php $title = get_title($args['headlink']); if ($SeparateHeaderWords) { print html_split_name($title); } else { print $title; } ?> </a> <?php } print $args['headsufx']; ?> </h1> <?php if ($args['toolbar']) { if (!$args['nosearch']) { echo '<form method="POST" action="' . $FindScript . '" name="thesearch"> <input type="hidden" name="action" value="find"/> <div class="form">' . "\n"; } print html_toolbar_top(); if (!$args['nosearch']) { echo ' | ' . lang('Search') . ': <input type="text" name="find" size="20" />'; } echo "\n<hr align=left width=99% />\n"; if (!$args['nosearch']) { echo "</div>\n</form>\n"; } } ?> </div> <?php }
function template_common_prologue($args) { global $WikiName, $HomePage, $WikiLogo, $MetaKeywords, $MetaDescription; global $StyleScript, $SeparateTitleWords, $SeparateHeaderWords; $keywords = ' ' . html_split_name($args['headlink']); $keywords = str_replace('"', '"', $keywords); preg_match("/^(.*)\\//", $args['headlink'], $path); // Find startpath of page ob_start(); // Start buffering output. if ($SeparateTitleWords) { $args['title'] = html_split_name($args['title']); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta name="KEYWORDS" content="<?php print $MetaKeywords . $keywords; ?> " /> <meta name="DESCRIPTION" content="<?php print $MetaDescription; ?> " /> <?php if ($args['norobots']) { ?> <meta name="ROBOTS" content="NOINDEX, NOFOLLOW" /> <?php } ?> <link rel="STYLESHEET" href="<?php print $StyleScript; ?> " type="text/css" /> <title><?php print $args['title'] . ' - ' . $WikiName; ?> </title> </head> <body> <div id="header"> <div class="logo"> <a href="<?php print viewURL($HomePage); ?> "><img src="<?php print $WikiLogo; ?> " alt="[Home]" /></a> </div> <h1> <?php print $args['heading']; if ($args['headlink'] != '') { ?> <a class="title" href="<?php print findURL($args['headlink']); ?> "> <?php if ($SeparateHeaderWords) { print html_split_name($args['headlink']); } else { print $args['headlink']; } ?> </a> <?php } print $args['headsufx']; ?> </h1> <div id="toolbar-top"> <?php if ($args['toolbar']) { if (isset($path[1])) { print html_toolbar_top($path[1]); } else { print html_toolbar_top(""); } } ?> </div> <hr /> </div> <?php }