Esempio n. 1
0
 /**
  * @param IfwPsn_Wp_Plugin_Manager $pm
  * @param $identifier
  * @param array $options
  * @return string
  */
 public static function getForm(IfwPsn_Wp_Plugin_Manager $pm, $identifier, $options = array())
 {
     $context = array('identifier' => $identifier, 'headline' => $options['headline'], 'help_text' => $options['help_text'], 'action_url' => $options['action_url'], 'import_file_label' => $options['import_file_label'], 'import_file_description' => $options['import_file_description'], 'import_prefix_label' => $options['import_prefix_label'], 'import_prefix_description' => $options['import_prefix_description'], 'wait_text_headline' => $options['wait_text_headline'], 'wait_text_description' => $options['wait_text_description'], 'nonce' => wp_create_nonce(IfwPsn_Zend_Controller_ModelBinding::getImportNonceAction($identifier)));
     return IfwPsn_Wp_Tpl::getFilesytemInstance($pm)->render('import_form.html.twig', $context);
 }