Пример #1
0
 /**
  * Инициализация хуков шаблонизатора
  */
 public function InitHooks()
 {
     $aActivePlugins = $this->Plugin_GetActivePlugins();
     foreach ($aActivePlugins as $sPlugin) {
         $aConfig = ACE::FileIncludeIfExists(Plugin::GetTemplatePath($sPlugin) . '/settings/config/config.php');
         Config::Load($aConfig, false);
     }
     $aHooks = Config::Get('view.hooks');
     if (is_array($aHooks)) {
         foreach ($aHooks as $aHook) {
             $this->TplHookCreate($aHook['template'], $aHook['selector'], $aHook['content'], $aHook['action']);
         }
     }
 }