forked from Cavemanon/cavepaintings
Implemented a nav link generating system so that extension power what shows up in the menus rather than being hard-coded in the themes.
This commit is contained in:
@ -116,4 +116,11 @@ class RSS_Images extends Extension
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event)
|
||||
{
|
||||
if($event->parent=="posts") {
|
||||
$event->add_nav_link("posts_rss", new Link('rss/images'), "Feed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user