/**
  * @see	wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::prepareImport()
  */
 protected function prepareImport(array $data)
 {
     $result = parent::prepareImport($data);
     // position
     $result['menuPosition'] = !empty($data['elements']['position']) && $data['elements']['position'] == 'footer' ? 'footer' : 'header';
     // class name
     if (!empty($data['elements']['classname'])) {
         $result['className'] = $data['elements']['classname'];
     }
     return $result;
 }
 /**
  * @see	\wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::prepareImport()
  */
 protected function prepareImport(array $data)
 {
     $result = parent::prepareImport($data);
     // class name
     if (!empty($data['elements']['classname'])) {
         $result['className'] = $data['elements']['classname'];
     }
     // FontAwesome icon name
     if (!empty($data['elements']['iconclassname']) && preg_match('~^fa\\-[a-z\\-]+$~', $data['elements']['iconclassname'])) {
         $result['iconClassName'] = $data['elements']['iconclassname'];
     }
     return $result;
 }