diff --git a/engine/modules/plugin/Plugin.class.php b/engine/modules/plugin/Plugin.class.php index b0d3d855..4323420f 100644 --- a/engine/modules/plugin/Plugin.class.php +++ b/engine/modules/plugin/Plugin.class.php @@ -85,8 +85,26 @@ class LsPlugin extends Module { * Считываем данные из XML файла описания */ $sPluginXML = $this->sPluginsDir.$sPlugin.'/'.self::PLUGIN_README_FILE; - if($this->aPluginsList[$sPlugin]['property'] = @simplexml_load_file($sPluginXML)) { - $this->aPluginsList[$sPlugin]['property']->homepage=$this->Text_Parser($this->aPluginsList[$sPlugin]['property']->homepage); + if($oXml = @simplexml_load_file($sPluginXML)) { + /** + * Обрабатываем данные, считанные из XML-описания + */ + $sLang=$this->Lang_GetLang(); + $oXml->name->data = count($aName=$oXml->xpath("name/lang/{$sLang}")) + ? $this->Text_Parser(trim(array_shift($aName))) + : $this->Text_Parser(trim($oXml->name->data)); + + $oXml->author->data = count($aAuthor=$oXml->xpath("author/lang/{$sLang}")) + ? $this->Text_Parser(trim(array_shift($aAuthor))) + : $this->Text_Parser(trim($oXml->author->data)); + + $oXml->description->data = count($aDescription=$oXml->xpath("description/lang/{$sLang}")) + ? $this->Text_Parser(trim(array_shift($aDescription))) + : $this->Text_Parser(trim($oXml->description->data)); + + $oXml->homepage=$this->Text_Parser($oXml->homepage); + + $this->aPluginsList[$sPlugin]['property']=$oXml; } } diff --git a/plugins/profiler/plugin.xml b/plugins/profiler/plugin.xml index 7de6d492..e64e3715 100644 --- a/plugins/profiler/plugin.xml +++ b/plugins/profiler/plugin.xml @@ -1,7 +1,15 @@ - Livestreet Profiler Plugin - LiveStreet Developers Team + + + Livestreet Profiler Plugin + + + + + LiveStreet Developers Team + + http://livestreet.ru/ 1.0.0 @@ -11,7 +19,14 @@ - Профилирование работы движка LiveStreet-движка. + + Профилирование работы движка LiveStreet-движка. + + + + Profiling the engine`s working. + + diff --git a/templates/skin/new/actions/ActionAdmin/plugins.tpl b/templates/skin/new/actions/ActionAdmin/plugins.tpl index 55275bc9..7a5dee31 100644 --- a/templates/skin/new/actions/ActionAdmin/plugins.tpl +++ b/templates/skin/new/actions/ActionAdmin/plugins.tpl @@ -18,9 +18,9 @@ {foreach from=$aPlugins item=aPlugin} - {$aPlugin.property->name|escape:'html'}
{$aPlugin.property->description|escape:'html'}
{$aPlugin.property->homepage} + {$aPlugin.property->name->data|escape:'html'}
{$aPlugin.property->description->data|escape:'html'}
{$aPlugin.property->homepage} {$aPlugin.property->version|escape:'html'} - {$aPlugin.property->author|escape:'html'} + {$aPlugin.property->author->data|escape:'html'} {if $aPlugin.is_active}{$aLang.plugins_plugin_deactivate}{else}{$aLang.plugins_plugin_activate}{/if} {/foreach}