1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 05:44:26 +03:00
ifhub.club/application/plugins/page/classes/hooks/HookPage.class.php

36 lines
921 B
PHP
Raw Normal View History

2010-06-06 13:41:17 +03:00
<?php
/*-------------------------------------------------------
*
* LiveStreet Engine Social Networking
* Copyright © 2008 Mzhelskiy Maxim
*
*--------------------------------------------------------
*
* Official site: www.livestreet.ru
* Contact e-mail: rus.engine@gmail.com
*
* GNU General Public License, version 2:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
---------------------------------------------------------
*/
/**
* Регистрация хука для вывода меню страниц
*
*/
class PluginPage_HookPage extends Hook {
public function RegisterHook() {
$this->AddHook('template_main_menu_item','Menu');
2010-06-06 13:41:17 +03:00
}
public function Menu() {
$aPages=$this->PluginPage_Page_GetPages(array('pid'=>null,'main'=>1,'active'=>1));
2010-06-06 13:41:17 +03:00
$this->Viewer_Assign('aPagesMain',$aPages);
return $this->Viewer_Fetch(Plugin::GetTemplatePath(__CLASS__).'main_menu.tpl');
}
}
?>