/** * @param $identifier * @param $headline * @param $helpUrl * @param $actionUrl * @return string * @throws IfwPsn_Wp_Plugin_Exception */ public static function getImportForm($identifier, $headline, $helpUrl, $actionUrl) { $helpText = sprintf(__('Need help? <a href="%s" target="_blank">Check the docs</a>.', 'psn'), IfwPsn_Wp_Plugin_Manager::getInstance('Psn')->getConfig()->plugin->docUrl . $helpUrl); $options = array('headline' => $headline, 'help_text' => $helpText, 'action_url' => $actionUrl, 'import_file_label' => __('Import file', 'psn'), 'import_file_description' => __('Please select a valid .xml export file.', 'psn'), 'import_prefix_label' => __('Import prefix (optional)', 'psn'), 'import_prefix_description' => __('Prepend this text to imported items names to identify them.', 'psn'), 'wait_text_headline' => __('Processing file', 'psn'), 'wait_text_description' => __('Please wait while the export file is being processed ...', 'psn')); return IfwPsn_Wp_Data_Importer::getForm(IfwPsn_Wp_Plugin_Manager::getInstance('Psn'), $identifier, $options); }