| @@ -53,10 +53,10 @@ | ||
| 53 | 53 | ?> |
| 54 | 54 | <div class="wrap"> |
| 55 | 55 | <h2 class="frm-h2"><?php echo esc_html( $this->name ); ?> Importer</h2> |
| 56 | 56 | <p class="howto">Import forms and settings automatically from <?php echo esc_html( $this->name ); ?>.</p> |
| 57 | - <div id="welcome-panel"> | |
| 58 | - <div style="margin-bottom:10px;"> | |
| 57 | + <div class="welcome-panel" id="welcome-panel"> | |
| 58 | + <div class="welcome-panel-content" style="text-align:center;margin-bottom:10px;"> | |
| 59 | 59 | <p class="about-description"> |
| 60 | 60 | Select the forms to import. |
| 61 | 61 | </p> |
| 62 | 62 | <form class="frm_form_importer" method="post" |
| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | action="<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>"> |
| 64 | 64 | <?php wp_nonce_field( 'nonce', 'frm_ajax' ); ?> |
| 65 | 65 | <input type="hidden" name="slug" value="<?php echo esc_attr( $this->slug ); ?>" /> |
| 66 | 66 | <input type="hidden" name="action" value="frm_import_<?php echo esc_attr( $this->slug ); ?>" /> |
| 67 | - <div style="max-width:400px;text-align:left;"> | |
| 67 | + <div style="margin:10px auto;max-width:400px;text-align:left;"> | |
| 68 | 68 | <?php |
| 69 | 69 | if ( empty( $this->get_forms() ) ) { |
| 70 | 70 | esc_html_e( 'No Forms Found.', 'formidable' ); |
| 71 | 71 | } |
| @@ -85,9 +85,9 @@ | ||
| 85 | 85 | </label> |
| 86 | 86 | </p> |
| 87 | 87 | <?php } ?> |
| 88 | 88 | </div> |
| 89 | - <p class="submit"><button type="submit" class="button button-primary frm-button-primary">Start Import</button></p> | |
| 89 | + <button type="submit" class="button button-primary button-hero">Start Import</button> | |
| 90 | 90 | </form> |
| 91 | 91 | <div id="frm-importer-process" class="frm-importer-process frm_hidden"> |
| 92 | 92 | |
| 93 | 93 | <p class="process-count"> |
| @@ -369,9 +369,9 @@ | ||
| 369 | 369 | * @param array $form parameters for the new form to be created. Only |
| 370 | 370 | * the name key is a must. The keys are the column |
| 371 | 371 | * names of the forms table in the DB. |
| 372 | 372 | * |
| 373 | - * @return bool|int The ID of the newly created form or false on failure. | |
| 373 | + * @return int The ID of the newly created form. | |
| 374 | 374 | */ |
| 375 | 375 | protected function create_form( $form ) { |
| 376 | 376 | $form['form_key'] = $form['name']; |
| 377 | 377 | $form['status'] = 'published'; |