Skip to content

Commit

Permalink
Add missing predefined demo import notice
Browse files Browse the repository at this point in the history
  • Loading branch information
capuderg committed Mar 31, 2021
1 parent 998c3e3 commit 47d52c7
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 18 deletions.
16 changes: 15 additions & 1 deletion assets/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/main.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,18 @@
margin: 0;
}
}

.notice {
margin: 30px 0 0;

p {
margin: .5em 0;
font-size: 13px;
line-height: 1.5;
color: #3c434a;
font-weight: normal;
}
}
}

.ocdi-install-plugins-content-content,
Expand Down
32 changes: 16 additions & 16 deletions languages/one-click-demo-import.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-03-31T06:36:05+00:00\n"
"POT-Creation-Date: 2021-03-31T10:43:06+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: one-click-demo-import\n"
Expand Down Expand Up @@ -403,12 +403,12 @@ msgid "No import files specified!"
msgstr ""

#: inc/OneClickDemoImport.php:451
#: views/import.php:95
#: views/import.php:101
msgid "Import Complete!"
msgstr ""

#: inc/OneClickDemoImport.php:452
#: views/import.php:98
#: views/import.php:104
msgid "Congrats, your demo was imported successfully. You can now begin editing your site."
msgstr ""

Expand Down Expand Up @@ -688,13 +688,13 @@ msgid "Select which pre-built pages you want to import to use on your website. A
msgstr ""

#: views/create-content.php:50
#: views/import.php:63
#: views/import.php:69
#: views/install-plugins.php:49
msgid "Checkmark icon"
msgstr ""

#: views/create-content.php:51
#: views/import.php:67
#: views/import.php:73
#: views/install-plugins.php:50
msgid "Loading..."
msgstr ""
Expand All @@ -704,13 +704,13 @@ msgid "The following plugins will be installed for free: "
msgstr ""

#: views/create-content.php:66
#: views/import.php:75
#: views/import.php:81
#: views/install-plugins.php:57
msgid "Back icon"
msgstr ""

#: views/create-content.php:66
#: views/import.php:75
#: views/import.php:81
#: views/install-plugins.php:57
msgid "Go Back"
msgstr ""
Expand All @@ -727,40 +727,40 @@ msgstr ""
msgid "To ensure the best experience, installing the following plugins is strongly recommended, and in some cases required."
msgstr ""

#: views/import.php:36
#: views/import.php:42
msgid "All required/recommended plugins are already installed. You can import your demo content."
msgstr ""

#: views/import.php:48
#: views/import.php:54
msgid "Star icon"
msgstr ""

#: views/import.php:65
#: views/import.php:71
msgid "Lock icon"
msgstr ""

#: views/import.php:76
#: views/import.php:82
#: views/plugin-page.php:277
msgid "Continue & Import"
msgstr ""

#: views/import.php:85
#: views/import.php:91
msgid "Importing Content"
msgstr ""

#: views/import.php:86
#: views/import.php:92
msgid "Please sit tight while we import your content. Do not refresh the page or hit the back button."
msgstr ""

#: views/import.php:89
#: views/import.php:95
msgid "Importing animation"
msgstr ""

#: views/import.php:106
#: views/import.php:112
msgid "Theme Settings"
msgstr ""

#: views/import.php:107
#: views/import.php:113
msgid "Visit Site"
msgstr ""

Expand Down
6 changes: 6 additions & 0 deletions views/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<p>
<?php esc_html_e( 'To ensure the best experience, installing the following plugins is strongly recommended, and in some cases required.', 'one-click-demo-import' ); ?>
</p>

<?php if ( ! empty( $this->import_files[ $_GET['import'] ]['import_notice'] ) ) : ?>
<div class="notice notice-info">
<p><?php echo wp_kses_post( $this->import_files[ $_GET['import'] ]['import_notice'] ); ?></p>
</div>
<?php endif; ?>
</div>
<div class="ocdi-install-plugins-content-content">
<?php if ( empty( $theme_plugins ) ) : ?>
Expand Down

0 comments on commit 47d52c7

Please sign in to comment.