예제 #1
0
            $oData->version = $tIni['version'];
            $tData[$lang][] = $oData;
            //fr
            $oPage = new Page();
            $oPage->name = 'detail_' . $oData->id;
            $oPage->type = 'detail_plugin';
            $oPage->author = $tIni['author'];
            $oPage->title = $tIni['title.' . $lang];
            $oPage->id = (string) $oData->id;
            $oPage->version = $tIni['version'];
            $sDescFile = $sPathPlugin . '/' . $sPlugin . '.desc_' . $lang . '.xml';
            if (file_exists($sDescFile)) {
                $oXml = simplexml_load_file($sDescFile);
                $oPage->presentation = formate((string) $oXml->presentation);
                $oPage->actualites = formate((string) $oXml->actualites);
                $oPage->utilisation = formate((string) $oXml->utilisation);
            }
            $oPage->content = null;
            $oPage->tNav = $tNav[$lang];
            $oPage->save($lang);
        }
    }
}
foreach ($tLang as $lang) {
    if (isset($tData[$lang])) {
        $oPage = new Page();
        $oPage->name = 'plugin_list_1';
        $oPage->type = 'list';
        $oPage->title = 'Liste plugin';
        $oPage->content = '';
        $oPage->tNav = $tNav[$lang];
예제 #2
0
 function getUrlPartage($url)
 {
     return formate(detectUrl($url));
 }