Changeset 3393560
- Timestamp:
- 11/11/2025 10:44:20 AM (5 weeks ago)
- Location:
- tutor-lms-migration-tool
- Files:
-
- 14 edited
- 1 copied
-
tags/2.4.1 (copied) (copied from tutor-lms-migration-tool/trunk)
-
tags/2.4.1/assets/js/admin.js (modified) (3 diffs)
-
tags/2.4.1/classes/Utils.php (modified) (1 diff)
-
tags/2.4.1/readme.txt (modified) (2 diffs)
-
tags/2.4.1/tutor-lms-migration-tool.php (modified) (2 diffs)
-
tags/2.4.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/2.4.1/views/migration_ld.php (modified) (16 diffs)
-
tags/2.4.1/views/migration_wc.php (modified) (3 diffs)
-
trunk/assets/js/admin.js (modified) (3 diffs)
-
trunk/classes/Utils.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tutor-lms-migration-tool.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/views/migration_ld.php (modified) (16 diffs)
-
trunk/views/migration_wc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tutor-lms-migration-tool/tags/2.4.1/assets/js/admin.js
r3378798 r3393560 234 234 $(migrateStartBtn).on('click', function (event) { 235 235 event.preventDefault(); 236 $('#wc-sales-data-migration-form').submit();237 236 if (totalItemsMigrateCounts > 0) { 238 237 migrationModal.removeClass('active'); … … 387 386 }, 388 387 SELECTORS: { 389 migrationPage: '.tutor-migration-page', 390 migrateBtn: '.migrate-now-btn', 388 migrationPage: '.tutor-migration-page-wc', 389 migrateBtn: '.migrate-now-btn-wc', 390 migrationStartBtn: '#migration-start-btn-wc', 391 391 navLink: '.tutor-nav-link', 392 392 activeNavLink: '.tutor-nav-link.is-active', … … 422 422 const $wooCheckboxes = $wooMigrationPage.find(`#${WOO_CONFIG.TABS.CUSTOM} input[type="checkbox"]`); 423 423 424 $wooMigrateBtn.on('click', function (event) { 425 event.preventDefault(); 426 427 migrationModal.addClass('active'); 428 }); 429 430 $(WOO_CONFIG.SELECTORS.migrationStartBtn).on('click', function (event) { 431 event.preventDefault(); 432 433 migrationModal.removeClass('active'); 434 $(WOO_CONFIG.SELECTORS.form).submit(); 435 }); 436 437 438 424 439 // Store original checkbox state 425 440 let wooOriginalCheckboxes = []; -
tutor-lms-migration-tool/tags/2.4.1/classes/Utils.php
r3378798 r3393560 76 76 */ 77 77 public static function check_course_access() { 78 if ( current_user_can( 'manage_options' ) ||! current_user_can( 'publish_tutor_courses' ) ) {78 if ( ! current_user_can( 'manage_options' ) && ! current_user_can( 'publish_tutor_courses' ) ) { 79 79 wp_send_json( 80 80 array( -
tutor-lms-migration-tool/tags/2.4.1/readme.txt
r3378798 r3393560 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 2.4. 08 Stable tag: 2.4.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 135 135 136 136 == Changelog == 137 138 = 2.4.1 - 11 November, 2025 = 139 140 Fix: LearnDash to Tutor migration fails due to permission issue. 137 141 138 142 = 2.4.0 - 15 October, 2025 = -
tutor-lms-migration-tool/tags/2.4.1/tutor-lms-migration-tool.php
r3378798 r3393560 5 5 * Description: A migration toolkit that allows you to migrate data from other LMS platforms to Tutor LMS. 6 6 * Author: Themeum 7 * Version: 2.4. 07 * Version: 2.4.1 8 8 * Author URI: http://themeum.com 9 9 * Requires at least: 5.3 … … 31 31 */ 32 32 33 define( 'TLMT_VERSION', '2.4. 0' );33 define( 'TLMT_VERSION', '2.4.1' ); 34 34 define( 'TLMT_FILE', __FILE__ ); 35 35 define( 'TLMT_PATH', plugin_dir_path( TLMT_FILE ) ); -
tutor-lms-migration-tool/tags/2.4.1/vendor/composer/installed.php
r3378798 r3393560 2 2 'root' => array( 3 3 'name' => 'themeum/tutor-lms-migration-tool', 4 'pretty_version' => '2.4. 0',5 'version' => '2.4. 0.0',6 'reference' => ' e847c98a59425cbe1a0161a5e5b13c7086f4c85b',4 'pretty_version' => '2.4.1', 5 'version' => '2.4.1.0', 6 'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'themeum/tutor-lms-migration-tool' => array( 14 'pretty_version' => '2.4. 0',15 'version' => '2.4. 0.0',16 'reference' => ' e847c98a59425cbe1a0161a5e5b13c7086f4c85b',14 'pretty_version' => '2.4.1', 15 'version' => '2.4.1.0', 16 'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
tutor-lms-migration-tool/tags/2.4.1/views/migration_ld.php
r3378798 r3393560 1 <?php 2 /** 3 * Migration page 4 * 5 * @package TutorLMSMigrationTool\Views 6 * @author Themeum <[email protected]> 7 * @link https://themeum.com 8 * @since 2.3.0 9 */ 10 11 if ( ! defined( 'ABSPATH' ) ) { 12 exit; 13 } 14 ?> 1 15 <div class="tutor-migration-page"> 16 <?php 17 global $wpdb; 18 19 $utils = new Utils(); 20 21 $tutor_migration_history = $utils->fetch_history( 'ld' ); 22 23 $courses_count = $utils->ld_course_count(); 24 25 $orders_count = $utils->ld_orders_count(); 26 27 $items_count = $courses_count + $orders_count; 28 ?> 29 2 30 <div id="tutor-migration-wrapper"> 3 31 <div class="tutor-migration-area"> 4 32 <div class="tutor-migration-top tutor-px-48 tutor-pt-32 tutor-pb-40"> 5 <div class=""> 33 <div class=""> 6 34 <div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-course-content-title"> 7 Migration35 <?php esc_html_e( 'Migration', 'tutor-lms-migration-tool' ); ?> 8 36 </div> 9 37 <div class="tutor-migration-top-subtitle tutor-fs-6"> 10 Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.38 <?php esc_html_e( 'Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.', 'tutor-lms-migration-tool' ); ?> 11 39 </div> 12 40 </div> 13 41 <div class="tutor-d-flex tutor-justify-end tutor-align-center"> 14 <img s rc="assets/img/learndash.jpg" alt="import">42 <img style src="<?php echo esc_url( TLMT_URL . 'assets/img/learndash.jpg' ); ?>" alt="import"> 15 43 </div> 16 44 </div> … … 20 48 <li class="tutor-nav-item"> 21 49 <a class="tutor-nav-link is-active" href="#" data-tutor-nav-target="tutor-auto-migrate-tab"> 22 Auto Migrate50 <?php esc_html_e( 'Auto Migrate', 'tutor-lms-migration-tool' ); ?> 23 51 </a> 24 52 </li> 25 53 <li class="tutor-nav-item"> 26 54 <div class="tutor-d-flex tutor-align-center"> 27 <a class="tutor-nav-link" style="cursor: default; padding-right: 8px;">28 Upload File29 </a>30 <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">31 Coming soon32 </span>55 <a class="tutor-nav-link" data-tutor-nav-target="" style="cursor: default; padding-right: 8px;"> 56 <?php esc_html_e( 'Upload File', 'tutor-lms-migration-tool' ); ?> 57 </a> 58 <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;"> 59 <?php esc_html_e( 'Coming soon', 'tutor-lms-migration-tool' ); ?> 60 </span> 33 61 </div> 34 62 </li> 35 63 <li class="tutor-nav-item tutor-nav-more tutor-d-none"> 36 64 <a class="tutor-nav-link tutor-nav-more-item" href="#"> 37 <span class="tutor-mr-4"> More</span>65 <span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor-lms-migration-tool' ); ?></span> 38 66 <span class="tutor-nav-more-icon tutor-icon-times"></span> 39 67 </a> … … 46 74 <div id="tutor-auto-migrate-tab" class="tutor-tab-item is-active"> 47 75 <div class="tutor-tab-item-wrap tutor-pt-32 tutor-pb-40 tutor-p-48"> 48 <form id="tlmt-lp-migrate-to-tutor-lms"> 76 <form id="tlmt-lp-migrate-to-tutor-lms" action="ld_migrate_all_data_to_tutor" method="post"> 77 <?php tutor_nonce_field(); ?> 49 78 <div class="lp-migration-checkbox"> 50 79 <div id="sectionCourse"> 51 <label >80 <label for="courses"> 52 81 <div class="lp-migration-singlebox"> 53 82 <div class="lp-migration-singlebox-checkbox"> … … 58 87 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">Courses</div> 59 88 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 60 Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.89 <?php esc_html_e( 'Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 61 90 </div> 62 91 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 66 95 </div> 67 96 <div id="sectionOrders" class="tutor-py-16"> 68 <label >97 <label for="sales-data"> 69 98 <div class="lp-migration-singlebox"> 70 99 <div class="lp-migration-singlebox-checkbox"> … … 73 102 <div class="lp-migration-singlebox-desc"> 74 103 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title"> 75 Sales Data104 <?php esc_html_e( 'Sales Data', 'tutor-lms-migration-tool' ); ?> 76 105 </div> 77 106 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 78 Migrate revenue and sales data to Tutor LMS.107 <?php esc_html_e( 'Migrate revenue and sales data to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 79 108 </div> 80 109 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 84 113 </div> 85 114 <div id="sectionReviews" class="tutor-py-16"> 86 <label >115 <label for="reviews"> 87 116 <div class="lp-migration-singlebox"> 88 117 <div class="lp-migration-singlebox-checkbox"> … … 91 120 <div class="lp-migration-singlebox-desc"> 92 121 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title"> 93 Reviews122 <?php esc_html_e( 'Reviews', 'tutor-lms-migration-tool' ); ?> 94 123 </div> 95 124 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 96 All of the course reviews will be carried over to Tutor LMS.125 <?php esc_html_e( 'All of the course reviews will be carried over to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 97 126 </div> 98 127 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 106 135 </div> 107 136 <div class="tutor-backup-area tutor-px-48 tutor-py-36 tutor-border-top"> 108 <button class="tutor-btn tutor-btn-primary tutor-btn-lg">Migrate Now</button> 109 </div> 110 </div> 111 137 <?php require __DIR__ . '/components/migrate-now.php'; ?> 138 </div> 139 </div> 112 140 <div id="tutor-manual-migrate-tab" class="tutor-tab-item"> 113 141 <div class="tutor-tab-item-wrap tutor-p-48"> … … 116 144 <span class="tutor-fs-3 tutor-fw-medium tutor-color-primary tutor-icon-import"></span> 117 145 </div> 118 <form id="tutor-manual-migrate-form"> 119 <input type="file" id="tutor-migration-browse-file" hidden accept=".xml" required> 120 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium"> 121 <div class="tutor-color-black">Drag & Drop XML file here</div> 122 or <a href="#" class="tutor-color-primary">Browse File</a> 123 </div> 146 <form id="tutor-manual-migrate-form" method="post" enctype="multipart/form-data"> 147 <?php tutor_nonce_field(); ?> 148 <input type="hidden" name="tutor_action" value="tutor_import_from_ld"> 149 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium"> 150 <div class="tutor-color-black"> <?php esc_html_e( 'Drag & Drop XML file here', 'tutor-lms-migration-tool' ); ?> </div> 151 or <a href="" class="tutor-color-primary"> <?php esc_html_e( 'Browse File', 'tutor-lms-migration-tool' ); ?> </a> 152 </div> 153 <input id="tutor-migration-browse-file" name="tutor_import_file" hidden type="file" accept=".xml" required> 124 154 <span class="file-info tutor-fw-medium backup-now-subtile tutor-fs-6"></span> 125 155 </form> … … 130 160 <div class="tutor-row tutor-align-center"> 131 161 <div class="tutor-col-md-8 tutor-d-flex tutor-flex-wrap"> 132 <span class="backup-now-subtile tutor-fs-7">Please take a complete backup for safety.</span> 133 <button type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black"> 134 Backup Now 135 </button> 162 <sapn class="backup-now-subtile tutor-fs-7"><?php esc_html_e( 'Please take a complete a backup for safety.', 'tutor-lms-migration-tool' ); ?></sapn> 163 <form id="tutor_migration_export_form" method="post"> 164 <?php tutor_nonce_field(); ?> 165 <input type="hidden" id="tutor_migration_vendor" name="tutor_migration_vendor" value="ld"> 166 <input type="hidden" name="tutor_action" value="tutor_ld_export_xml"> 167 <button <?php echo ! $items_count ? 'disabled' : ''; ?> type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black"> 168 <?php esc_html_e( 'Backup Now', 'tutor-lms-migration-tool' ); ?> 169 </button> 170 </form> 136 171 </div> 137 172 <div class="migrate-now-btn-wrapper tutor-col-md-4 tutor-d-flex tutor-justify-end"> 138 173 <button type="submit" id="manual-migrate-now-btn" class="tutor-btn tutor-btn-primary tutor-btn-lg" disabled> 139 Migrate Now174 <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?> 140 175 </button> 141 176 </div> … … 144 179 </div> 145 180 </div> 181 <!-- ./ tutor migration tab --> 146 182 </div> 147 183 148 184 <!-- migration history area --> 185 <?php if ( count( $tutor_migration_history ) ) : ?> 149 186 <div class="tutor-migration-history"> 150 187 <div class="tutor-migration-history-heading tutor-fs-5 tutor-color-subdued tutor-mt-24 tutor-mb-16"> 151 Settings History188 <?php esc_html_e( 'Settings History', 'tutor-lms-migration-tool' ); ?> 152 189 </div> 153 190 <div class="tutor-table-responsive"> … … 155 192 <thead> 156 193 <tr> 157 <th style="padding-left: 38px;">Date</th> 158 <th></th> 194 <th class="tutor-table-rows-sorting" style="padding-left: 38px;"> 195 <?php esc_html_e( 'Date', 'tutor-lms-migration-tool' ); ?> 196 </th> 197 <th class="tutor-table-rows-sorting"> 198 </th> 159 199 </tr> 160 200 </thead> 161 201 <tbody> 202 <?php foreach ( $tutor_migration_history as $tutor_history ) : ?> 162 203 <tr> 163 204 <td> 164 205 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal"> 165 Sept 12, 2025, 03:15 PM 206 <?php 207 echo esc_html( tutor_get_formated_date( get_option( 'date_format' ), $tutor_history->created_at ) ); 208 echo ', ' . date( 'h:i A', strtotime( $tutor_history->created_at ) ); 209 ?> 210 166 211 </div> 167 212 </td> 168 213 <td> 214 <?php 215 $migration_type_class = ''; 216 if ( $tutor_history->migration_type == 'Imported' ) { 217 $migration_type_class = 'success'; 218 } elseif ( $tutor_history->migration_type == 'Exported' ) { 219 $migration_type_class = 'warning'; 220 } 221 ?> 169 222 <div class="tutor-d-flex tutor-justify-end tutor-pr-32"> 170 <span class="tutor-badge-label label-success">Imported</span> 223 <span class="tutor-badge-label label-<?php echo esc_attr( $migration_type_class ); ?>"> 224 <?php echo esc_html( $tutor_history->migration_type ); ?> 225 </span> 171 226 </div> 172 227 </td> 173 228 </tr> 174 <tr> 175 <td> 176 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal"> 177 Sept 10, 2025, 11:45 AM 178 </div> 179 </td> 180 <td> 181 <div class="tutor-d-flex tutor-justify-end tutor-pr-32"> 182 <span class="tutor-badge-label label-warning">Exported</span> 183 </div> 184 </td> 185 </tr> 229 <?php endforeach; ?> 186 230 </tbody> 187 231 </table> 188 232 </div> 189 233 </div> 234 <?php endif; ?> 235 <!-- ./ tutor-migration-history --> 190 236 </div> 191 237 </div> 192 238 193 <!-- Modal: Confirmation -->194 239 <div class="lp-migration-modal-wrap"> 195 240 <div class="lp-migration-modal"> 196 241 <div class="lp-migration-alert lp-import flex-center tutor-flex-column tutor-py-60 tutor-text-center"> 197 242 <div class="lp-migration-modal-icon"> 198 <img src=" assets/img/yes_no.svg" alt="export">243 <img src="<?php echo esc_url( TLMT_URL . 'assets/img/yes_no.svg' ); ?>" alt="export"> 199 244 </div> 200 245 <div class="migration-modal-btn-group flex-center tutor-flex-column"> 201 246 <div class="tutor-fs-5 tutor-fw-normal tutor-color-black tutor-mb-32 tutor-mt-16"> 202 Are you sure you want to migrate from <br> LearnDash to Tutor LMS? 247 <?php esc_html_e( 'Are you sure you want to migrate from', 'tutor-lms-migration-tool' ); ?> 248 <br> 249 <?php esc_html_e( 'LearnDash to Tutor LMS?', 'tutor-lms-migration-tool' ); ?> 203 250 </div> 204 251 <div class="tutor-d-flex"> 205 252 <a href="#" class="migration-later-btn tutor-btn tutor-btn-outline-primary tutor-btn-lg tutor-mr-24"> 206 <span> No, Maybe Later!</span>253 <span> <?php esc_html_e( 'No, Maybe Later!', 'tutor-lms-migration-tool' ); ?></span> 207 254 </a> 208 255 <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg"> 209 Yes, Let’s Start 256 <?php 257 esc_html_e( 'Yes, Let’s Start', 'tutor-lms-migration-tool' ); 258 ?> 210 259 </a> 211 260 </div> … … 219 268 </div> 220 269 221 <!-- Modal: Success --> 270 222 271 <div class="lp-success-modal-wrap"> 223 272 <div class="lp-success-modal"> … … 233 282 <span class="modal-close-line success-close-line-two"></span> 234 283 </div> 235 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 236 Migration Successful!237 </div> 238 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 239 Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.240 </div> 241 <a href=" #" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">242 Go to courses284 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 285 <?php esc_html_e( 'Migration Successful!', 'tutor-lms-migration-tool' ); ?> 286 </div> 287 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 288 <?php esc_html_e( 'Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.', 'tutor-lms-migration-tool' ); ?> 289 </div> 290 <a href="<?php echo esc_url( admin_url() ); ?>admin.php?page=tutor" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20"> 291 <?php esc_html_e( 'Go to courses', 'tutor-lms-migration-tool' ); ?> 243 292 </a> 244 293 </div> … … 246 295 </div> 247 296 248 <!-- Modal: Error -->249 297 <div class="lp-error-modal-wrap"> 250 298 <div class="lp-error-modal"> 251 299 <div class="lp-modal-alert tutor-p-40"> 252 <img class="tutor-mt-12" style="width: 80px; height: 80px;" src=" assets/img/error-modal-icon.jpg" alt="error-midal-alert-icon">300 <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="<?php echo esc_url( TLMT_URL . 'assets/img/error-modal-icon.jpg' ); ?>" alt="error-midal-alert-icon"> 253 301 <div class="modal-close success-modal-close"> 254 302 <span class="modal-close-line success-close-line-one"></span> 255 303 <span class="modal-close-line success-close-line-two"></span> 256 304 </div> 257 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 258 Migration Failed!259 </div> 260 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 261 Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.262 </div> 263 <a href=" #" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">264 Try Again305 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 306 <?php esc_html_e( 'Migration Failed!', 'tutor-lms-migration-tool' ); ?> 307 </div> 308 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 309 <?php esc_html_e( 'Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.', 'tutor-lms-migration-tool' ); ?> 310 </div> 311 <a href="" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20"> 312 <?php esc_html_e( 'Try Again', 'tutor-lms-migration-tool' ); ?> 265 313 </a> 266 314 </div> -
tutor-lms-migration-tool/tags/2.4.1/views/migration_wc.php
r3378798 r3393560 20 20 21 21 ?> 22 <div class="tutor-migration-page ">22 <div class="tutor-migration-page-wc"> 23 23 24 24 <div id="tutor-migration-wrapper"> … … 185 185 </div> 186 186 <div class="migrate-now-btn-wrapper tutor-col-md-3 tutor-d-flex tutor-justify-end"> 187 <span id="total_items_migrate_counts " class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>187 <span id="total_items_migrate_counts_wc" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span> 188 188 189 189 <!-- get active tab using php --> 190 <button type="submit" class="migrate-now-btn tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>190 <button type="submit" class="migrate-now-btn-wc tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>> 191 191 <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?> 192 192 </button> … … 268 268 </span> 269 269 </a> 270 <a href="#" class="migration-start-btntutor-btn tutor-btn-primary tutor-btn-lg">270 <a href="#" id="migration-start-btn-wc" class="migration-start-btn-wc tutor-btn tutor-btn-primary tutor-btn-lg"> 271 271 <?php esc_html_e( "Yes, Let's Start", 'tutor-lms-migration-tool' ); ?> 272 272 </a> -
tutor-lms-migration-tool/trunk/assets/js/admin.js
r3378798 r3393560 234 234 $(migrateStartBtn).on('click', function (event) { 235 235 event.preventDefault(); 236 $('#wc-sales-data-migration-form').submit();237 236 if (totalItemsMigrateCounts > 0) { 238 237 migrationModal.removeClass('active'); … … 387 386 }, 388 387 SELECTORS: { 389 migrationPage: '.tutor-migration-page', 390 migrateBtn: '.migrate-now-btn', 388 migrationPage: '.tutor-migration-page-wc', 389 migrateBtn: '.migrate-now-btn-wc', 390 migrationStartBtn: '#migration-start-btn-wc', 391 391 navLink: '.tutor-nav-link', 392 392 activeNavLink: '.tutor-nav-link.is-active', … … 422 422 const $wooCheckboxes = $wooMigrationPage.find(`#${WOO_CONFIG.TABS.CUSTOM} input[type="checkbox"]`); 423 423 424 $wooMigrateBtn.on('click', function (event) { 425 event.preventDefault(); 426 427 migrationModal.addClass('active'); 428 }); 429 430 $(WOO_CONFIG.SELECTORS.migrationStartBtn).on('click', function (event) { 431 event.preventDefault(); 432 433 migrationModal.removeClass('active'); 434 $(WOO_CONFIG.SELECTORS.form).submit(); 435 }); 436 437 438 424 439 // Store original checkbox state 425 440 let wooOriginalCheckboxes = []; -
tutor-lms-migration-tool/trunk/classes/Utils.php
r3378798 r3393560 76 76 */ 77 77 public static function check_course_access() { 78 if ( current_user_can( 'manage_options' ) ||! current_user_can( 'publish_tutor_courses' ) ) {78 if ( ! current_user_can( 'manage_options' ) && ! current_user_can( 'publish_tutor_courses' ) ) { 79 79 wp_send_json( 80 80 array( -
tutor-lms-migration-tool/trunk/readme.txt
r3378798 r3393560 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 2.4. 08 Stable tag: 2.4.1 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 135 135 136 136 == Changelog == 137 138 = 2.4.1 - 11 November, 2025 = 139 140 Fix: LearnDash to Tutor migration fails due to permission issue. 137 141 138 142 = 2.4.0 - 15 October, 2025 = -
tutor-lms-migration-tool/trunk/tutor-lms-migration-tool.php
r3378798 r3393560 5 5 * Description: A migration toolkit that allows you to migrate data from other LMS platforms to Tutor LMS. 6 6 * Author: Themeum 7 * Version: 2.4. 07 * Version: 2.4.1 8 8 * Author URI: http://themeum.com 9 9 * Requires at least: 5.3 … … 31 31 */ 32 32 33 define( 'TLMT_VERSION', '2.4. 0' );33 define( 'TLMT_VERSION', '2.4.1' ); 34 34 define( 'TLMT_FILE', __FILE__ ); 35 35 define( 'TLMT_PATH', plugin_dir_path( TLMT_FILE ) ); -
tutor-lms-migration-tool/trunk/vendor/composer/installed.php
r3378798 r3393560 2 2 'root' => array( 3 3 'name' => 'themeum/tutor-lms-migration-tool', 4 'pretty_version' => '2.4. 0',5 'version' => '2.4. 0.0',6 'reference' => ' e847c98a59425cbe1a0161a5e5b13c7086f4c85b',4 'pretty_version' => '2.4.1', 5 'version' => '2.4.1.0', 6 'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'themeum/tutor-lms-migration-tool' => array( 14 'pretty_version' => '2.4. 0',15 'version' => '2.4. 0.0',16 'reference' => ' e847c98a59425cbe1a0161a5e5b13c7086f4c85b',14 'pretty_version' => '2.4.1', 15 'version' => '2.4.1.0', 16 'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
tutor-lms-migration-tool/trunk/views/migration_ld.php
r3378798 r3393560 1 <?php 2 /** 3 * Migration page 4 * 5 * @package TutorLMSMigrationTool\Views 6 * @author Themeum <[email protected]> 7 * @link https://themeum.com 8 * @since 2.3.0 9 */ 10 11 if ( ! defined( 'ABSPATH' ) ) { 12 exit; 13 } 14 ?> 1 15 <div class="tutor-migration-page"> 16 <?php 17 global $wpdb; 18 19 $utils = new Utils(); 20 21 $tutor_migration_history = $utils->fetch_history( 'ld' ); 22 23 $courses_count = $utils->ld_course_count(); 24 25 $orders_count = $utils->ld_orders_count(); 26 27 $items_count = $courses_count + $orders_count; 28 ?> 29 2 30 <div id="tutor-migration-wrapper"> 3 31 <div class="tutor-migration-area"> 4 32 <div class="tutor-migration-top tutor-px-48 tutor-pt-32 tutor-pb-40"> 5 <div class=""> 33 <div class=""> 6 34 <div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-course-content-title"> 7 Migration35 <?php esc_html_e( 'Migration', 'tutor-lms-migration-tool' ); ?> 8 36 </div> 9 37 <div class="tutor-migration-top-subtitle tutor-fs-6"> 10 Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.38 <?php esc_html_e( 'Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.', 'tutor-lms-migration-tool' ); ?> 11 39 </div> 12 40 </div> 13 41 <div class="tutor-d-flex tutor-justify-end tutor-align-center"> 14 <img s rc="assets/img/learndash.jpg" alt="import">42 <img style src="<?php echo esc_url( TLMT_URL . 'assets/img/learndash.jpg' ); ?>" alt="import"> 15 43 </div> 16 44 </div> … … 20 48 <li class="tutor-nav-item"> 21 49 <a class="tutor-nav-link is-active" href="#" data-tutor-nav-target="tutor-auto-migrate-tab"> 22 Auto Migrate50 <?php esc_html_e( 'Auto Migrate', 'tutor-lms-migration-tool' ); ?> 23 51 </a> 24 52 </li> 25 53 <li class="tutor-nav-item"> 26 54 <div class="tutor-d-flex tutor-align-center"> 27 <a class="tutor-nav-link" style="cursor: default; padding-right: 8px;">28 Upload File29 </a>30 <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">31 Coming soon32 </span>55 <a class="tutor-nav-link" data-tutor-nav-target="" style="cursor: default; padding-right: 8px;"> 56 <?php esc_html_e( 'Upload File', 'tutor-lms-migration-tool' ); ?> 57 </a> 58 <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;"> 59 <?php esc_html_e( 'Coming soon', 'tutor-lms-migration-tool' ); ?> 60 </span> 33 61 </div> 34 62 </li> 35 63 <li class="tutor-nav-item tutor-nav-more tutor-d-none"> 36 64 <a class="tutor-nav-link tutor-nav-more-item" href="#"> 37 <span class="tutor-mr-4"> More</span>65 <span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor-lms-migration-tool' ); ?></span> 38 66 <span class="tutor-nav-more-icon tutor-icon-times"></span> 39 67 </a> … … 46 74 <div id="tutor-auto-migrate-tab" class="tutor-tab-item is-active"> 47 75 <div class="tutor-tab-item-wrap tutor-pt-32 tutor-pb-40 tutor-p-48"> 48 <form id="tlmt-lp-migrate-to-tutor-lms"> 76 <form id="tlmt-lp-migrate-to-tutor-lms" action="ld_migrate_all_data_to_tutor" method="post"> 77 <?php tutor_nonce_field(); ?> 49 78 <div class="lp-migration-checkbox"> 50 79 <div id="sectionCourse"> 51 <label >80 <label for="courses"> 52 81 <div class="lp-migration-singlebox"> 53 82 <div class="lp-migration-singlebox-checkbox"> … … 58 87 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">Courses</div> 59 88 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 60 Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.89 <?php esc_html_e( 'Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 61 90 </div> 62 91 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 66 95 </div> 67 96 <div id="sectionOrders" class="tutor-py-16"> 68 <label >97 <label for="sales-data"> 69 98 <div class="lp-migration-singlebox"> 70 99 <div class="lp-migration-singlebox-checkbox"> … … 73 102 <div class="lp-migration-singlebox-desc"> 74 103 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title"> 75 Sales Data104 <?php esc_html_e( 'Sales Data', 'tutor-lms-migration-tool' ); ?> 76 105 </div> 77 106 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 78 Migrate revenue and sales data to Tutor LMS.107 <?php esc_html_e( 'Migrate revenue and sales data to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 79 108 </div> 80 109 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 84 113 </div> 85 114 <div id="sectionReviews" class="tutor-py-16"> 86 <label >115 <label for="reviews"> 87 116 <div class="lp-migration-singlebox"> 88 117 <div class="lp-migration-singlebox-checkbox"> … … 91 120 <div class="lp-migration-singlebox-desc"> 92 121 <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title"> 93 Reviews122 <?php esc_html_e( 'Reviews', 'tutor-lms-migration-tool' ); ?> 94 123 </div> 95 124 <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16"> 96 All of the course reviews will be carried over to Tutor LMS.125 <?php esc_html_e( 'All of the course reviews will be carried over to Tutor LMS.', 'tutor-lms-migration-tool' ); ?> 97 126 </div> 98 127 <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div> … … 106 135 </div> 107 136 <div class="tutor-backup-area tutor-px-48 tutor-py-36 tutor-border-top"> 108 <button class="tutor-btn tutor-btn-primary tutor-btn-lg">Migrate Now</button> 109 </div> 110 </div> 111 137 <?php require __DIR__ . '/components/migrate-now.php'; ?> 138 </div> 139 </div> 112 140 <div id="tutor-manual-migrate-tab" class="tutor-tab-item"> 113 141 <div class="tutor-tab-item-wrap tutor-p-48"> … … 116 144 <span class="tutor-fs-3 tutor-fw-medium tutor-color-primary tutor-icon-import"></span> 117 145 </div> 118 <form id="tutor-manual-migrate-form"> 119 <input type="file" id="tutor-migration-browse-file" hidden accept=".xml" required> 120 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium"> 121 <div class="tutor-color-black">Drag & Drop XML file here</div> 122 or <a href="#" class="tutor-color-primary">Browse File</a> 123 </div> 146 <form id="tutor-manual-migrate-form" method="post" enctype="multipart/form-data"> 147 <?php tutor_nonce_field(); ?> 148 <input type="hidden" name="tutor_action" value="tutor_import_from_ld"> 149 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium"> 150 <div class="tutor-color-black"> <?php esc_html_e( 'Drag & Drop XML file here', 'tutor-lms-migration-tool' ); ?> </div> 151 or <a href="" class="tutor-color-primary"> <?php esc_html_e( 'Browse File', 'tutor-lms-migration-tool' ); ?> </a> 152 </div> 153 <input id="tutor-migration-browse-file" name="tutor_import_file" hidden type="file" accept=".xml" required> 124 154 <span class="file-info tutor-fw-medium backup-now-subtile tutor-fs-6"></span> 125 155 </form> … … 130 160 <div class="tutor-row tutor-align-center"> 131 161 <div class="tutor-col-md-8 tutor-d-flex tutor-flex-wrap"> 132 <span class="backup-now-subtile tutor-fs-7">Please take a complete backup for safety.</span> 133 <button type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black"> 134 Backup Now 135 </button> 162 <sapn class="backup-now-subtile tutor-fs-7"><?php esc_html_e( 'Please take a complete a backup for safety.', 'tutor-lms-migration-tool' ); ?></sapn> 163 <form id="tutor_migration_export_form" method="post"> 164 <?php tutor_nonce_field(); ?> 165 <input type="hidden" id="tutor_migration_vendor" name="tutor_migration_vendor" value="ld"> 166 <input type="hidden" name="tutor_action" value="tutor_ld_export_xml"> 167 <button <?php echo ! $items_count ? 'disabled' : ''; ?> type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black"> 168 <?php esc_html_e( 'Backup Now', 'tutor-lms-migration-tool' ); ?> 169 </button> 170 </form> 136 171 </div> 137 172 <div class="migrate-now-btn-wrapper tutor-col-md-4 tutor-d-flex tutor-justify-end"> 138 173 <button type="submit" id="manual-migrate-now-btn" class="tutor-btn tutor-btn-primary tutor-btn-lg" disabled> 139 Migrate Now174 <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?> 140 175 </button> 141 176 </div> … … 144 179 </div> 145 180 </div> 181 <!-- ./ tutor migration tab --> 146 182 </div> 147 183 148 184 <!-- migration history area --> 185 <?php if ( count( $tutor_migration_history ) ) : ?> 149 186 <div class="tutor-migration-history"> 150 187 <div class="tutor-migration-history-heading tutor-fs-5 tutor-color-subdued tutor-mt-24 tutor-mb-16"> 151 Settings History188 <?php esc_html_e( 'Settings History', 'tutor-lms-migration-tool' ); ?> 152 189 </div> 153 190 <div class="tutor-table-responsive"> … … 155 192 <thead> 156 193 <tr> 157 <th style="padding-left: 38px;">Date</th> 158 <th></th> 194 <th class="tutor-table-rows-sorting" style="padding-left: 38px;"> 195 <?php esc_html_e( 'Date', 'tutor-lms-migration-tool' ); ?> 196 </th> 197 <th class="tutor-table-rows-sorting"> 198 </th> 159 199 </tr> 160 200 </thead> 161 201 <tbody> 202 <?php foreach ( $tutor_migration_history as $tutor_history ) : ?> 162 203 <tr> 163 204 <td> 164 205 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal"> 165 Sept 12, 2025, 03:15 PM 206 <?php 207 echo esc_html( tutor_get_formated_date( get_option( 'date_format' ), $tutor_history->created_at ) ); 208 echo ', ' . date( 'h:i A', strtotime( $tutor_history->created_at ) ); 209 ?> 210 166 211 </div> 167 212 </td> 168 213 <td> 214 <?php 215 $migration_type_class = ''; 216 if ( $tutor_history->migration_type == 'Imported' ) { 217 $migration_type_class = 'success'; 218 } elseif ( $tutor_history->migration_type == 'Exported' ) { 219 $migration_type_class = 'warning'; 220 } 221 ?> 169 222 <div class="tutor-d-flex tutor-justify-end tutor-pr-32"> 170 <span class="tutor-badge-label label-success">Imported</span> 223 <span class="tutor-badge-label label-<?php echo esc_attr( $migration_type_class ); ?>"> 224 <?php echo esc_html( $tutor_history->migration_type ); ?> 225 </span> 171 226 </div> 172 227 </td> 173 228 </tr> 174 <tr> 175 <td> 176 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal"> 177 Sept 10, 2025, 11:45 AM 178 </div> 179 </td> 180 <td> 181 <div class="tutor-d-flex tutor-justify-end tutor-pr-32"> 182 <span class="tutor-badge-label label-warning">Exported</span> 183 </div> 184 </td> 185 </tr> 229 <?php endforeach; ?> 186 230 </tbody> 187 231 </table> 188 232 </div> 189 233 </div> 234 <?php endif; ?> 235 <!-- ./ tutor-migration-history --> 190 236 </div> 191 237 </div> 192 238 193 <!-- Modal: Confirmation -->194 239 <div class="lp-migration-modal-wrap"> 195 240 <div class="lp-migration-modal"> 196 241 <div class="lp-migration-alert lp-import flex-center tutor-flex-column tutor-py-60 tutor-text-center"> 197 242 <div class="lp-migration-modal-icon"> 198 <img src=" assets/img/yes_no.svg" alt="export">243 <img src="<?php echo esc_url( TLMT_URL . 'assets/img/yes_no.svg' ); ?>" alt="export"> 199 244 </div> 200 245 <div class="migration-modal-btn-group flex-center tutor-flex-column"> 201 246 <div class="tutor-fs-5 tutor-fw-normal tutor-color-black tutor-mb-32 tutor-mt-16"> 202 Are you sure you want to migrate from <br> LearnDash to Tutor LMS? 247 <?php esc_html_e( 'Are you sure you want to migrate from', 'tutor-lms-migration-tool' ); ?> 248 <br> 249 <?php esc_html_e( 'LearnDash to Tutor LMS?', 'tutor-lms-migration-tool' ); ?> 203 250 </div> 204 251 <div class="tutor-d-flex"> 205 252 <a href="#" class="migration-later-btn tutor-btn tutor-btn-outline-primary tutor-btn-lg tutor-mr-24"> 206 <span> No, Maybe Later!</span>253 <span> <?php esc_html_e( 'No, Maybe Later!', 'tutor-lms-migration-tool' ); ?></span> 207 254 </a> 208 255 <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg"> 209 Yes, Let’s Start 256 <?php 257 esc_html_e( 'Yes, Let’s Start', 'tutor-lms-migration-tool' ); 258 ?> 210 259 </a> 211 260 </div> … … 219 268 </div> 220 269 221 <!-- Modal: Success --> 270 222 271 <div class="lp-success-modal-wrap"> 223 272 <div class="lp-success-modal"> … … 233 282 <span class="modal-close-line success-close-line-two"></span> 234 283 </div> 235 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 236 Migration Successful!237 </div> 238 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 239 Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.240 </div> 241 <a href=" #" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">242 Go to courses284 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 285 <?php esc_html_e( 'Migration Successful!', 'tutor-lms-migration-tool' ); ?> 286 </div> 287 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 288 <?php esc_html_e( 'Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.', 'tutor-lms-migration-tool' ); ?> 289 </div> 290 <a href="<?php echo esc_url( admin_url() ); ?>admin.php?page=tutor" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20"> 291 <?php esc_html_e( 'Go to courses', 'tutor-lms-migration-tool' ); ?> 243 292 </a> 244 293 </div> … … 246 295 </div> 247 296 248 <!-- Modal: Error -->249 297 <div class="lp-error-modal-wrap"> 250 298 <div class="lp-error-modal"> 251 299 <div class="lp-modal-alert tutor-p-40"> 252 <img class="tutor-mt-12" style="width: 80px; height: 80px;" src=" assets/img/error-modal-icon.jpg" alt="error-midal-alert-icon">300 <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="<?php echo esc_url( TLMT_URL . 'assets/img/error-modal-icon.jpg' ); ?>" alt="error-midal-alert-icon"> 253 301 <div class="modal-close success-modal-close"> 254 302 <span class="modal-close-line success-close-line-one"></span> 255 303 <span class="modal-close-line success-close-line-two"></span> 256 304 </div> 257 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 258 Migration Failed!259 </div> 260 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 261 Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.262 </div> 263 <a href=" #" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">264 Try Again305 <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 306 <?php esc_html_e( 'Migration Failed!', 'tutor-lms-migration-tool' ); ?> 307 </div> 308 <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 309 <?php esc_html_e( 'Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.', 'tutor-lms-migration-tool' ); ?> 310 </div> 311 <a href="" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20"> 312 <?php esc_html_e( 'Try Again', 'tutor-lms-migration-tool' ); ?> 265 313 </a> 266 314 </div> -
tutor-lms-migration-tool/trunk/views/migration_wc.php
r3378798 r3393560 20 20 21 21 ?> 22 <div class="tutor-migration-page ">22 <div class="tutor-migration-page-wc"> 23 23 24 24 <div id="tutor-migration-wrapper"> … … 185 185 </div> 186 186 <div class="migrate-now-btn-wrapper tutor-col-md-3 tutor-d-flex tutor-justify-end"> 187 <span id="total_items_migrate_counts " class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>187 <span id="total_items_migrate_counts_wc" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span> 188 188 189 189 <!-- get active tab using php --> 190 <button type="submit" class="migrate-now-btn tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>190 <button type="submit" class="migrate-now-btn-wc tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>> 191 191 <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?> 192 192 </button> … … 268 268 </span> 269 269 </a> 270 <a href="#" class="migration-start-btntutor-btn tutor-btn-primary tutor-btn-lg">270 <a href="#" id="migration-start-btn-wc" class="migration-start-btn-wc tutor-btn tutor-btn-primary tutor-btn-lg"> 271 271 <?php esc_html_e( "Yes, Let's Start", 'tutor-lms-migration-tool' ); ?> 272 272 </a>
Note: See TracChangeset
for help on using the changeset viewer.