Plugin Directory

Changeset 3380690


Ignore:
Timestamp:
10/19/2025 06:31:58 AM (5 months ago)
Author:
recorp
Message:
  • ADDED: Email notification system when export completed.
Location:
export-wp-page-to-static-html/tags/4.3.4
Files:
2 edited
8 copied

Legend:

Unmodified
Added
Removed
  • export-wp-page-to-static-html/tags/4.3.4/README.txt

    r3379262 r3380690  
    9191
    9292== Changelog ==
     93
     94= 4.3.4 - 20 October 2025 =
     95* ADDED: Email notification system when export completed.
     96
     97= 4.3.3 - 8 September 2025 =
     98* FIXED: Skip assets not working issue.
     99* FIXED: Some other issues.
     100* ADDED: Increase 3 pages limitation to 6 pages.
     101
     102= 4.3.2 - 8 September 2025 =
     103* UPDATED: little thing.
    93104
    94105= 4.3.1 - 8 September 2025 =
  • export-wp-page-to-static-html/tags/4.3.4/admin/js/export-logs.js

    r3350057 r3380690  
    280280   
    281281    else if (r.creating_html_process === 'completed' && r.are_all_assets_exported && r.creating_zip_status !== 'completed') {
     282      toggleComplete('html', true);
    282283      exporting_assets_completed(r);
    283284      const frac = (r.total_pushed_file_to_zip || 0) / Math.max(1, r.total_zip_files || 1);
  • export-wp-page-to-static-html/tags/4.3.4/admin/partials/Tabs/wp-pages.php

    r3357356 r3380690  
    342342        </div>
    343343
     344        <div class="p-t-10">
     345          <div class="email_settings_section">
     346            <div class="email_settings_item">
     347                <label class="checkbox-container m-r-45"><?php _e('Receive notification when complete', 'export-wp-page-to-static-html'); ?>
     348                    <input type="checkbox" id="email_notification" name="email_notification">
     349                    <span class="checkmark"></span>
     350                </label>
     351
     352                <div class="email_settings_item export_html_sub_settings">
     353                    <input type="text" id="receive_notification_email" name="notification_email" placeholder="Enter emails (optional)">
     354                    <span><?php _e('Enter emails seperated by comma (,) (optional)', 'export-wp-page-to-static-html'); ?></span>
     355                </div>
     356            </div>
     357          </div>
     358        </div>
     359
    344360      </div>
    345361    </div>
  • export-wp-page-to-static-html/tags/4.3.4/export-wp-page-to-static-html.php

    r3379262 r3380690  
    1010 * Plugin URI:        https://myrecorp.com
    1111 * Description:       Seamlessly export any WordPress page or post into lightweight, fully responsive static HTML/CSS and print-ready PDF with a single click. Boost your site’s performance and security by serving pre-rendered pages, create offline-friendly backups. Perfect for developers, content creators, and businesses needing fast, reliable exports of WordPress content.
    12  * Version:           4.3.3
     12 * Version:           4.3.4
    1313 * Author:            ReCorp
    1414 * Author URI:        https://www.upwork.com/fl/rayhan1
     
    5757         * Rename this for your plugin and update it as you release new versions.
    5858         */
    59         define( 'EXPORT_WP_PAGE_TO_STATIC_HTML_VERSION', '4.3.3' );
     59        define( 'EXPORT_WP_PAGE_TO_STATIC_HTML_VERSION', '4.3.4' );
    6060        define( 'EWPPTSH_PLUGIN_DIR_URL', plugin_dir_url(__FILE__) );
    6161        define( 'EWPPTSH_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__) );
    6262        define( 'EWPPTSH_DEVELOPER_MODE', false );
    63         define( 'WPPTSH_DB_VERSION', '1.1');
     63        define( 'WPPTSH_DB_VERSION', '1.2');
    6464
    6565        /**
     
    134134        // Runs on every load, no __FILE__ here
    135135        function wpptsh_update_db_check() {
     136            global $wpdb;
     137
    136138            $installed_ver = get_option('wpptsh_db_version');
     139            $table_name    = $wpdb->prefix . 'export_urls_logs';
     140            $column_name   = 'type';
    137141
    138             if ($installed_ver !=WPPTSH_DB_VERSION) {
    139                 global $wpdb;
    140                 $table_name = $wpdb->prefix . 'export_urls_logs';
     142            if ($installed_ver != WPPTSH_DB_VERSION) {
     143                // Check if the column already exists
     144                $column_exists = $wpdb->get_results(
     145                    $wpdb->prepare(
     146                        "SHOW COLUMNS FROM `$table_name` LIKE %s",
     147                        $column_name
     148                    )
     149                );
    141150
    142                 // Add only missing column(s)
    143                 $wpdb->query("ALTER TABLE $table_name ADD COLUMN type TINYTEXT NOT NULL");
     151                // Add column only if it does not exist
     152                if (empty($column_exists)) {
     153                    $wpdb->query("ALTER TABLE `$table_name` ADD COLUMN `$column_name` TINYTEXT NOT NULL");
     154                }
    144155
     156                // Update DB version
     157                update_option('wpptsh_db_version', WPPTSH_DB_VERSION);
    145158
    146                 update_option('wpptsh_db_version', WPPTSH_DB_VERSION);
     159                // Add worker token if not already set
     160                if (!get_option('ewptshp_worker_token')) {
     161                    add_option('ewptshp_worker_token', wp_generate_password(32, false, false));
     162                }
    147163            }
    148            
    149164        }
     165
    150166        add_action('plugins_loaded', 'wpptsh_update_db_check');
    151167    }
Note: See TracChangeset for help on using the changeset viewer.