| @@ -6,9 +6,11 @@ | ||
| 6 | 6 | // It is accessed from /wp-admin/admin.php?page=formidable-styles&frm_action=edit&form=782 |
| 7 | 7 | |
| 8 | 8 | ?> |
| 9 | 9 | <div class="frm_page_container"> |
| 10 | - <?php // The embed button expects that the form ID is available as a #form_id field. ?> | |
| 10 | + <?php | |
| 11 | + // The embed button expects that the form ID is available as a #form_id field. | |
| 12 | + ?> | |
| 11 | 13 | <input type="hidden" id="form_id" value="<?php echo absint( $form->id ); ?>" /> |
| 12 | 14 | |
| 13 | 15 | <?php |
| 14 | 16 | // Wrap the header in a .frm_wrap element so the h1 tag gets styled properly. |
| @@ -23,9 +25,10 @@ | ||
| 23 | 25 | 'publish' => array( |
| 24 | 26 | 'FrmFormsController::form_publish_button', |
| 25 | 27 | array( |
| 26 | 28 | 'values' => array( |
| 27 | - 'form_key' => $form->form_key, // Pass this so that the Preview dropdown works. | |
| 29 | + // Pass this so that the Preview dropdown works. | |
| 30 | + 'form_key' => $form->form_key, | |
| 28 | 31 | ), |
| 29 | 32 | ), |
| 30 | 33 | ), |
| 31 | 34 | ) |
| @@ -34,10 +37,12 @@ | ||
| 34 | 37 | </div> |
| 35 | 38 | <div id="frm_styler_wrapper" class="columns-2"> |
| 36 | 39 | <?php |
| 37 | 40 | $view_file = 'list' === $view ? 'list' : 'edit'; |
| 38 | - include $style_views_path . '_styles-' . $view_file . '.php'; // Render view based on type (either _styles-list.php or _styles-edit.php). | |
| 41 | + // Render view based on type (either _styles-list.php or _styles-edit.php). | |
| 42 | + require $style_views_path . '_styles-' . $view_file . '.php'; | |
| 39 | 43 | |
| 40 | - include $style_views_path . '_style-preview-container.php'; // Render preview container. | |
| 44 | + // Render preview container. | |
| 45 | + require $style_views_path . '_style-preview-container.php'; | |
| 41 | 46 | ?> |
| 42 | 47 | </div> |
| 43 | 48 | </div> |