protected function SetTemplateInclude($sTemplate) { list($sPlugin, $sAction) = explode('_', get_class($this), 2); $sPath = HelperPlugin::GetPluginPath() . '/templates/skin/'; if (is_dir($sPath . Config::Get('view.skin'))) { $sPath .= Config::Get('view.skin'); } elseif (is_dir($sPath . 'admin_default')) { $sPath .= 'admin_default'; } elseif (is_dir($sPath . 'default')) { $sPath .= 'default'; } else { $sPath = ''; } if ($sPath) { $sTemplate = $sPath . '/actions/ActionAdmin/' . $sTemplate . '.tpl'; } else { $sTemplate = Plugin::GetTemplatePath($this->sPluginAddon) . 'actions/' . $sAction . '/' . $sTemplate . '.tpl'; } $sTemplate = ACE::LocalPath($sTemplate, ACE::GetPluginsDir()); //var_dump($s);exit; $this->Viewer_Assign('include_tpl', $sTemplate); }