示例#1
0
     }
     unset($coverpage);
 }
 if ($xmls->doesExist('/plugin/binding/config[lang()]')) {
     $config = $xmls->selectNode('/plugin/binding/config[lang()]');
     if (!empty($config['.attributes']['dataValHandler'])) {
         $configMappings[$plugin] = array('config' => 'ok', 'dataValHandler' => $config['.attributes']['dataValHandler']);
     } else {
         $configMappings[$plugin] = array('config' => 'ok');
     }
 }
 if (doesHaveOwnership() && $xmls->doesExist('/plugin/binding/adminMenu')) {
     $title = htmlspecialchars($xmls->getValue('/plugin/title[lang()]'));
     if ($xmls->doesExist('/plugin/binding/adminMenu/viewMethods')) {
         foreach ($xmls->selectNodes('/plugin/binding/adminMenu/viewMethods/method') as $adminViewMenu) {
             $menutitle = htmlspecialchars(XMLStruct::getValueByLocale($adminViewMenu['title']));
             if (empty($menutitle)) {
                 continue;
             }
             if (isset($adminViewMenu['topMenu'][0]['.value'])) {
                 $pluginTopMenuLocation = htmlspecialchars($adminViewMenu['topMenu'][0]['.value']);
                 switch ($pluginTopMenuLocation) {
                     case 'center':
                     case 'entry':
                     case 'link':
                     case 'skin':
                     case 'plugin':
                     case 'setting':
                         break;
                     default:
                         $pluginTopMenuLocation = 'plugin';