73 |
73 |
74 // Should we output a MicroID? http://microid.org/ |
74 // Should we output a MicroID? http://microid.org/ |
75 if (strpos(PUN_PAGE, 'profile') === 0) |
75 if (strpos(PUN_PAGE, 'profile') === 0) |
76 echo '<meta name="microid" content="mailto+http:sha1:'.sha1(sha1('mailto:'.$user['email']).sha1(pun_link($pun_url['user'], $id))).'" />'."\n"; |
76 echo '<meta name="microid" content="mailto+http:sha1:'.sha1(sha1('mailto:'.$user['email']).sha1(pun_link($pun_url['user'], $id))).'" />'."\n"; |
77 |
77 |
78 ?> |
78 // Generate the page title (really hackish Enano specific trick) |
79 <title><?php echo generate_crumbs(true) ?></title> |
79 $enano_template =& $GLOBALS['template']; |
80 <?php |
80 $enano_template->tpl_strings['PAGE_NAME'] = generate_crumbs(true); |
81 |
81 |
82 // Should we output feed links? |
82 // Should we output feed links? |
83 if (PUN_PAGE == 'viewtopic') |
83 if (PUN_PAGE == 'viewtopic') |
84 { |
84 { |
85 echo '<link rel="alternate" type="application/rss+xml" href="'.pun_link($pun_url['topic_rss'], $id).'" title="'.$lang_common['RSS Feed'].'" />'."\n"; |
85 echo '<link rel="alternate" type="application/rss+xml" href="'.pun_link($pun_url['topic_rss'], $id).'" title="'.$lang_common['RSS Feed'].'" />'."\n"; |
130 ($hook = get_hook('hd_'.PUN_PAGE.'_head')) ? eval($hook) : null; |
130 ($hook = get_hook('hd_'.PUN_PAGE.'_head')) ? eval($hook) : null; |
131 |
131 |
132 ($hook = get_hook('hd_head')) ? eval($hook) : null; |
132 ($hook = get_hook('hd_head')) ? eval($hook) : null; |
133 |
133 |
134 $tpl_temp = trim(ob_get_contents()); |
134 $tpl_temp = trim(ob_get_contents()); |
|
135 |
135 $template->add_header($tpl_temp); |
136 $template->add_header($tpl_temp); |
136 ob_end_clean(); |
137 ob_end_clean(); |
|
138 |
137 // END SUBST - <!-- pun_head --> |
139 // END SUBST - <!-- pun_head --> |
138 |
140 |
139 |
141 |
140 // START SUBST - <!-- pun_page --> |
142 // START SUBST - <!-- pun_page --> |
141 $tpl_main = str_replace('<!-- pun_page -->', 'id="pun-'.PUN_PAGE.'"', $tpl_main); |
143 $tpl_main = str_replace('<!-- pun_page -->', 'id="pun-'.PUN_PAGE.'"', $tpl_main); |
145 // START SUBST - <!-- pun_skip --> |
147 // START SUBST - <!-- pun_skip --> |
146 $tpl_main = str_replace('<!-- pun_skip -->', '<div id="pun-access"><a href="#pun-main">'.$lang_common['Skip to content'].'</a></div>'."\n", $tpl_main); |
148 $tpl_main = str_replace('<!-- pun_skip -->', '<div id="pun-access"><a href="#pun-main">'.$lang_common['Skip to content'].'</a></div>'."\n", $tpl_main); |
147 // END SUBST - <!-- pun_skip --> |
149 // END SUBST - <!-- pun_skip --> |
148 |
150 |
149 // START SUBST - <!-- pun_title --> |
151 // START SUBST - <!-- pun_title --> |
150 $tpl_main = str_replace('<!-- pun_title -->', '<div id="pun-title">'."\n\t".'<div><strong>'.htmlspecialchars($pun_config['o_board_title']).'</strong></div>'."\n".'</div>'."\n", $tpl_main); |
152 $tpl_main = str_replace('<!-- pun_title -->', '', $tpl_main); // '<div id="pun-title">'."\n\t".'<div><strong>'.htmlspecialchars($pun_config['o_board_title']).'</strong></div>'."\n".'</div>'."\n", $tpl_main); |
151 // END SUBST - <!-- pun_title --> |
153 // END SUBST - <!-- pun_title --> |
152 |
154 |
153 |
155 |
154 // START SUBST - <!-- pun_desc --> |
156 // START SUBST - <!-- pun_desc --> |
155 if ($pun_config['o_board_desc'] != '') |
157 if ($pun_config['o_board_desc'] != '') |
156 $tpl_main = str_replace('<!-- pun_desc -->', '<div id="pun-desc">'."\n\t".'<div>'.htmlspecialchars($pun_config['o_board_desc']).'</div>'."\n".'</div>'."\n", $tpl_main); |
158 $tpl_main = str_replace('<!-- pun_desc -->', '', $tpl_main); // '<div id="pun-desc">'."\n\t".'<div>'.htmlspecialchars($pun_config['o_board_desc']).'</div>'."\n".'</div>'."\n", $tpl_main); |
157 // END SUBST - <!-- pun_desc --> |
159 // END SUBST - <!-- pun_desc --> |
158 |
160 |
159 |
161 |
160 // START SUBST - <!-- pun_navlinks --> |
162 // START SUBST - <!-- pun_navlinks --> |
161 $tpl_main = str_replace('<!-- pun_navlinks -->', '<div id="pun-navlinks">'."\n\t".'<ul>'."\n\t\t".generate_navlinks()."\n\t".'</ul>'."\n".'</div>'."\n", $tpl_main); |
163 $tpl_main = str_replace('<!-- pun_navlinks -->', '<div id="pun-navlinks">'."\n\t".'<ul>'."\n\t\t".generate_navlinks()."\n\t".'</ul>'."\n".'</div>'."\n", $tpl_main); |