| @@ -101,85 +101,7 @@ | ||
| 101 | 101 | </p> |
| 102 | 102 | </div><!-- .postbox --> |
| 103 | 103 | |
| 104 | 104 | <?php |
| 105 | - // Importers. | |
| 106 | - foreach ( $importers as $importer ) { | |
| 107 | - ?> | |
| 108 | - <div id="import-<?php echo esc_attr( $importer['name'] ); ?>" class="postbox"> | |
| 109 | - <h2> | |
| 110 | - <?php | |
| 111 | - printf( | |
| 112 | - /* translators: %s: Importer title */ | |
| 113 | - esc_html__( '%s: Migrate Configuration', 'convertkit' ), | |
| 114 | - esc_html( $importer['title'] ) | |
| 115 | - ); | |
| 116 | - ?> | |
| 117 | - </h2> | |
| 118 | - | |
| 119 | - <p class="description"> | |
| 120 | - <?php | |
| 121 | - printf( | |
| 122 | - /* translators: %s: Importer title */ | |
| 123 | - esc_html__( 'Automatically replace %s form shortcodes and blocks with Kit form shortcodes and blocks.', 'convertkit' ), | |
| 124 | - esc_html( $importer['title'] ) | |
| 125 | - ); | |
| 126 | - ?> | |
| 127 | - <br /> | |
| 128 | - </p> | |
| 129 | - | |
| 130 | - <table class="widefat striped"> | |
| 131 | - <thead> | |
| 132 | - <tr> | |
| 133 | - <th> | |
| 134 | - <?php | |
| 135 | - printf( | |
| 136 | - /* translators: %s: Importer title */ | |
| 137 | - esc_html__( '%s Form', 'convertkit' ), | |
| 138 | - esc_html( $importer['title'] ) | |
| 139 | - ); | |
| 140 | - ?> | |
| 141 | - </th> | |
| 142 | - <th><?php esc_html_e( 'Kit Form', 'convertkit' ); ?></th> | |
| 143 | - </tr> | |
| 144 | - </thead> | |
| 145 | - <tbody> | |
| 146 | - <?php | |
| 147 | - foreach ( $importer['forms'] as $importer_form_id => $importer_form_title ) { | |
| 148 | - ?> | |
| 149 | - <tr> | |
| 150 | - <td><?php echo esc_html( $importer_form_title ); ?></td> | |
| 151 | - <td> | |
| 152 | - <select name="_wp_convertkit_integration_<?php echo esc_attr( $importer['name'] ); ?>_settings[<?php echo esc_attr( $importer_form_id ); ?>]"> | |
| 153 | - <?php | |
| 154 | - foreach ( $forms->get() as $form ) { | |
| 155 | - ?> | |
| 156 | - <option value="<?php echo esc_attr( $form['id'] ); ?>"><?php echo esc_html( $form['name'] ); ?></option> | |
| 157 | - <?php | |
| 158 | - } | |
| 159 | - ?> | |
| 160 | - </select> | |
| 161 | - </td> | |
| 162 | - </tr> | |
| 163 | - <?php | |
| 164 | - } | |
| 165 | - ?> | |
| 166 | - </tbody> | |
| 167 | - </table> | |
| 168 | - | |
| 169 | - <p> | |
| 170 | - <?php | |
| 171 | - submit_button( | |
| 172 | - __( 'Migrate', 'convertkit' ), | |
| 173 | - 'primary', | |
| 174 | - 'convertkit-import-' . $importer['name'], | |
| 175 | - false | |
| 176 | - ); | |
| 177 | - ?> | |
| 178 | - </p> | |
| 179 | - </div><!-- .postbox --> | |
| 180 | - <?php | |
| 181 | - } | |
| 182 | - | |
| 183 | 105 | wp_nonce_field( 'convertkit-settings-tools', '_convertkit_settings_tools_nonce' ); |
| 184 | 106 | ?> |
| 185 | 107 | </div><!-- .metabox-holder --> |