Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | }else if(substr($var,0,21) == 'sf_page_name_formula_'){ |
206 | 206 | $form_xml_text .= '<PageNameFormula>'.$val.'</PageNameFormula>'; |
207 | 207 | }else if(substr($var,0,16) == 'sf_create_title_'){ |
208 | | - $form_xml_text .= '<CreateTite>'.$val.'</CreateTite>'; |
| 208 | + $form_xml_text .= '<CreateTitle>'.$val.'</CreateTitle>'; |
209 | 209 | }else if(substr($var,0,14) == 'sf_edit_title_'){ |
210 | 210 | $form_xml_text .= '<EditTitle>'.$val.'</EditTitle>'; |
211 | 211 | $form_xml_text .= '</semanticforms_Form>'; |
— | — | @@ -237,15 +237,7 @@ |
238 | 238 | $text_extensions['sf_form'] = $form_xml_text; |
239 | 239 | return true; |
240 | 240 | } |
241 | | - public static function getFilledSchemaHtmlTextForPS( $pageSchemaObj, &$text_extensions ){ |
242 | | - $pageXml = $pageSchemaObj->pageXml; |
243 | | - foreach ( $pageXml->children() as $tag => $template_xml ) { |
244 | | - if ( $tag == 'Form' ){ |
245 | | - |
246 | | - } |
247 | | - } |
248 | | - return true; |
249 | | - } |
| 241 | + |
250 | 242 | public static function getFilledHtmlTextForPS( $pageSchemaObj, &$text_extensions ){ |
251 | 243 | $template_fields = array(); |
252 | 244 | $html_text = ""; |
— | — | @@ -259,7 +251,7 @@ |
260 | 252 | $form_html_text .= '<fieldset style="background: #CF9;"><legend>Form</legend> |
261 | 253 | <p> Name: <input size="15" name="sf_form_name_starter" value= "'.$form_array['name'].'" ></p> |
262 | 254 | <p> Page name formula: <input size="20" name="sf_page_name_formula_starter" value="'.$form_array['PageNameFormula'].'" ></p> |
263 | | - <p> Title of form for new pages: <input size="25" name="sf_create_title_starter" value="'.$form_array['CreateTite'].'" ></p> |
| 255 | + <p> Title of form for new pages: <input size="25" name="sf_create_title_starter" value="'.$form_array['CreateTitle'].'" ></p> |
264 | 256 | <p> Title of form for existing pages: <input size="25" name="sf_edit_title_starter" value="'.$form_array['EditTitle'].'" ></p> |
265 | 257 | </fieldset>'; |
266 | 258 | foreach ( $template_all as $template ) { |
— | — | @@ -372,7 +364,7 @@ |
373 | 365 | } |
374 | 366 | $form = SFForm::create( $form_name, $form_templates ); |
375 | 367 | $form->setPageNameFormula( $form_array['PageNameFormula'] ); |
376 | | - $form->setCreateTitle( $form_array['CreateTite'] ); |
| 368 | + $form->setCreateTitle( $form_array['CreateTitle'] ); |
377 | 369 | $form->setEditTitle( $form_array['EditTitle'] ); |
378 | 370 | $title = Title::makeTitleSafe( SF_NS_FORM, $form->getFormName() ); |
379 | 371 | $key_title = PageSchemas::titleString( $title ); |