Plugin Directory

Changeset 3195174


Ignore:
Timestamp:
11/22/2024 06:58:19 PM (17 months ago)
Author:
conutant
Message:

Improved the import page.

Location:
super-blank
Files:
384 added
5 edited

Legend:

Unmodified
Added
Removed
  • super-blank/trunk/assets/css/admin-styles.css

    r3192548 r3195174  
    583583
    584584/* Button styles */
    585 .super-blank-button {
     585/* .super-blank-button {
    586586    opacity: 0;
    587587    visibility: hidden;
    588588    transition: opacity 0.6s ease-in, visibility 0s linear 0.4s;
    589 }
     589} */
    590590
    591591.super-blank-button.showing {
  • super-blank/trunk/assets/js/scripts.js

    r3192548 r3195174  
    517517
    518518                if (this.installProgress) return;
     519
     520                if (!$("#sb-import-confirmation-checkbox").is(":checked")) {
     521
     522                    alert('Please, confirm that you understand this action will delete and replace your entire website.');
     523                    return;
     524                }
     525
     526                if(!confirm('Are you sure you want to proceed with the import?')) return;
    519527
    520528                this.installProgress = true;
     
    573581
    574582        // Initialize the confirmation input functionality
    575         superBlankInstallationHandler.setupConfirmationInput();
     583        // superBlankInstallationHandler.setupConfirmationInput();
    576584
    577585        // Manage click button
  • super-blank/trunk/inc/admin-pages.php

    r3192548 r3195174  
    4545
    4646                <p class="super-blank-description">
    47                     <?php printf(esc_html__('Add pages, install theme, configure your design, and more.') . '<br>' . esc_html__('Please type in %s below when ready.', 'super-blank'), '<i>super blank</i>'); ?>
     47                    <?php printf(esc_html__('Add pages, install theme, configure your design, and more.')); ?>
    4848                </p>
    4949
    5050                <div id="status-message" class="super-blank-warning">
    51                     <?php esc_html_e('This will delete and replace your entire website!', 'super-blank'); ?>
     51
     52                    <input type="checkbox" id="sb-import-confirmation-checkbox" />
     53
     54                    <?php esc_html_e('I understand this will delete and replace my entire website!', 'super-blank'); ?>
    5255                </div>
    5356
    5457                <!-- Tools -->
    55                 <div class="super-blank-tools-area">
     58                <div class="super-blank-tools-area">                   
    5659
    57                     <div class="super-blank-confirmation">
    58                         <input id="super-blank-confirmation-input" type="text" autocomplete="off" />
    59                         <div class="cursor-container">
    60                             <span class="cursor">|</span>
    61                             <span>Type here</span>
    62                         </div>
    63                     </div>
    64 
    65                     <div class="super-blank-button" style="display: none;">
     60                    <div class="super-blank-button">
    6661                        <a href="#" class="button" id="super-blank-install"><?php esc_html_e("Let's Do This", 'super-blank'); ?></a>
    6762                    </div>
  • super-blank/trunk/readme.txt

    r3192548 r3195174  
    44Requires at least: 5.9
    55Tested up to: 6.7
    6 Stable tag: 1.0.4
     6Stable tag: 1.0.5
    77Requires PHP: 7.4
    88License: GNU General Public License v2.0 or later
     
    7373== Changelog ==
    7474
     75= 1.0.5 =
     76* Improved the import page
     77
    7578= 1.0.4 =
    7679* Improved the import process
  • super-blank/trunk/super-blank.php

    r3192548 r3195174  
    66 * Author:            Tyler Moore
    77 * Author URI:        https://tyler.com/
    8  * Version:           1.0.4
     8 * Version:           1.0.5
    99 * Text Domain:       super-blank
    1010 * License:           GPLv2 or later
     
    2323if (!defined('SUPER_BLANK_PLUGIN_VERSION')) {
    2424
    25     define('SUPER_BLANK_PLUGIN_VERSION', '1.0.4'); // '1.0.4'
     25    define('SUPER_BLANK_PLUGIN_VERSION', '1.0.5'); // '1.0.5'
    2626}
    2727
Note: See TracChangeset for help on using the changeset viewer.