meta keywords with commas

This commit is contained in:
Shish 2009-08-24 06:49:40 +01:00
parent d3697b35d5
commit 15d7a76799

View file

@ -5,8 +5,10 @@ class ViewImageTheme extends Themelet {
* Build a page showing $image and some info about it
*/
public function display_page(Page $page, Image $image, $editor_parts) {
$metatags = str_replace(" ", ", ", html_escape($image->get_tag_list()));
$page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list()));
$page->add_header("<meta name=\"keywords\" content=\"".html_escape($image->get_tag_list())."\">");
$page->add_header("<meta name=\"keywords\" content=\"$metatags\">");
$page->set_heading(html_escape($image->get_tag_list()));
$page->add_block(new Block("Navigation", $this->build_navigation($image), "left", 0));
$page->add_block(new Block(null, $this->build_info($image, $editor_parts), "main", 10));