site description keywords
This commit is contained in:
parent
aa77becbf6
commit
52ba270e78
@ -15,11 +15,16 @@ class SiteDescription extends SimpleExtension {
|
||||
$description = $config->get_string("site_description");
|
||||
$page->add_header("<meta name=\"description\" content=\"$description\">");
|
||||
}
|
||||
if(strlen($config->get_string("site_keywords")) > 0) {
|
||||
$keywords = $config->get_string("site_keywords");
|
||||
$page->add_header("<meta name=\"keywords\" content=\"$keywords\">");
|
||||
}
|
||||
}
|
||||
|
||||
public function onSetupBuilding(SetupBuildingEvent $event) {
|
||||
$sb = new SetupBlock("Site Description");
|
||||
$sb->add_longtext_option("site_description");
|
||||
$sb->add_text_option("site_description", "Description: ");
|
||||
$sb->add_text_option("site_keywords", "<br>Keywords: ");
|
||||
$event->panel->add_block($sb);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user