fix and use get_all_html_headers()
This commit is contained in:
parent
f3a3c76988
commit
b76ee95c76
8 changed files with 10 additions and 46 deletions
|
@ -225,8 +225,9 @@ class Page {
|
|||
*/
|
||||
public function get_all_html_headers() {
|
||||
$data = '';
|
||||
ksort($this->html_headers);
|
||||
foreach ($this->html_headers as $line) {
|
||||
$data .= $line . "\n";
|
||||
$data .= "\t\t" . $line . "\n";
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
|
|
@ -50,13 +50,7 @@ class Layout {
|
|||
//$base_href = $config->get_string('base_href');
|
||||
$data_href = get_base_href();
|
||||
$contact_link = contact_link();
|
||||
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$user_block_html = "";
|
||||
|
|
|
@ -50,13 +50,7 @@ class Layout {
|
|||
//$base_href = $config->get_string('base_href');
|
||||
//$data_href = get_base_href();
|
||||
$contact_link = contact_link();
|
||||
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$user_block_html = "";
|
||||
|
|
|
@ -14,12 +14,7 @@ class Layout {
|
|||
//$theme_name = $config->get_string('theme', 'default');
|
||||
//$data_href = get_base_href();
|
||||
$contact_link = contact_link();
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
|
|
|
@ -7,12 +7,7 @@ class Layout {
|
|||
$theme_name = $config->get_string('theme', 'default');
|
||||
$data_href = get_base_href();
|
||||
$contact_link = contact_link();
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
|
|
|
@ -21,12 +21,7 @@ class Layout {
|
|||
$site_name = $config->get_string('title');
|
||||
$data_href = get_base_href();
|
||||
$contact_link = contact_link();
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t{$line}\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$menu = "<div class='menu'>
|
||||
<script type='text/javascript' src='{$data_href}/themes/{$theme_name}/wz_tooltip.js'></script>
|
||||
|
|
|
@ -14,13 +14,8 @@ class Layout {
|
|||
$data_href = get_base_href();
|
||||
$main_page = $config->get_string('main_page');
|
||||
$contact_link = contact_link();
|
||||
$site_link = make_link();
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$site_link = make_link();
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
|
|
|
@ -16,12 +16,7 @@ class Layout {
|
|||
$data_href = get_base_href();
|
||||
$main_page = $config->get_string('main_page');
|
||||
$contact_link = contact_link();
|
||||
|
||||
$header_html = "";
|
||||
ksort($page->html_headers);
|
||||
foreach($page->html_headers as $line) {
|
||||
$header_html .= "\t\t$line\n";
|
||||
}
|
||||
$header_html = $page->get_all_html_headers();
|
||||
|
||||
$left_block_html = "";
|
||||
$main_block_html = "";
|
||||
|
|
Reference in a new issue