Skip to content

Commit

Permalink
Move Import Status box up underneath import button to improve visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Dec 13, 2015
1 parent c331a8e commit ad07ebb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comment-mail-pro/includes/classes/menu-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -2039,8 +2039,11 @@ protected function import_export_()
' </tbody>'.
' </table>';

$_panel_body .= '<iframe src="'.esc_attr($this->plugin->utils_url->to('/client-s/iframes/stcr-import-start.html')).'" name="'.esc_attr(__NAMESPACE__.'_import_stcr_iframe').'" class="pmp-import-iframe-output"></iframe>';

$_panel_body .= ' <hr />';

$_panel_body .= ' <h1>'.sprintf(__('How to Import StCR Subscriptions into Comment Mail', $this->plugin->text_domain), esc_html($this->plugin->name)).'</h1>'."\n";
$_panel_body .= ' <h3>'.sprintf(__('Step 1: Import StCR Subscriptions', $this->plugin->text_domain), esc_html($this->plugin->name)).'</h3>'."\n";
$_panel_body .= ' <p>'.sprintf(__('Click the "Begin StCR Auto-Importation" button above to start the import process. %1$s will import all of your existing Subscribe to Comments Reloaded comment subscriptions. Your existing StCR comment subscriptions will remain intact—nothing will be deleted or removed. %1$s will simply copy the subscriptions from StCR into %1$s\'s database.', $this->plugin->text_domain), esc_html($this->plugin->name)).'</p>'."\n";
$_panel_body .= ' <p class="pmp-note pmp-info" style="font-size:90%;">'.sprintf(__('<strong>Note:</strong> This process may take several minutes. %1$s will work through each post in your database, collecting all of the StCR subscriptions that exist (just a few at a time to prevent any script timeouts). The status bar below may refresh several times during this process. When it\'s complete, you should see a message that reads "<strong>Import complete!</strong>", along with a few details regarding the importation. If the importation is interrupted for any reason, you may simply click the button again and %1$s will resume where it left off.', $this->plugin->text_domain), esc_html($this->plugin->name), esc_attr($this->plugin->utils_url->subs_menu_page_only())).'</p>';
Expand All @@ -2063,8 +2066,6 @@ protected function import_export_()

$_panel_body .= '</form>';

$_panel_body .= '<iframe src="'.esc_attr($this->plugin->utils_url->to('/client-s/iframes/stcr-import-start.html')).'" name="'.esc_attr(__NAMESPACE__.'_import_stcr_iframe').'" class="pmp-import-iframe-output"></iframe>';

echo $this->panel(__('Subscribe to Comments Reloaded (StCR)', $this->plugin->text_domain), $_panel_body, array('icon' => '<i class="fa fa-upload"></i>', 'open' => (!$this->plugin->is_pro && !$this->plugin->utils_env->is_pro_preview()) || !import_stcr::ever_imported()));

unset($_form_field_args, $_form_fields, $_panel_body); // Housekeeping.
Expand Down

0 comments on commit ad07ebb

Please sign in to comment.