html-admin-dashboard-setup.php
4 years ago
html-admin-page-addons-category-nav.php
4 years ago
html-admin-page-addons.php
3 years ago
html-admin-page-product-export.php
5 years ago
html-admin-page-reports.php
5 years ago
html-admin-page-status-logs-db.php
5 years ago
html-admin-page-status-logs.php
4 years ago
html-admin-page-status-report.php
3 years ago
html-admin-page-status-tools.php
3 years ago
html-admin-page-status.php
8 years ago
html-admin-settings.php
5 years ago
html-bulk-edit-product.php
3 years ago
html-email-template-preview.php
7 years ago
html-notice-base-table-missing.php
5 years ago
html-notice-custom.php
8 years ago
html-notice-download-dir-sync-complete.php
4 years ago
html-notice-install.php
5 years ago
html-notice-legacy-shipping.php
7 years ago
html-notice-maxmind-license-key.php
6 years ago
html-notice-no-shipping-methods.php
7 years ago
html-notice-redirect-only-download.php
4 years ago
html-notice-regenerating-lookup-table.php
5 years ago
html-notice-regenerating-thumbnails.php
8 years ago
html-notice-secure-connection.php
8 years ago
html-notice-template-check.php
5 years ago
html-notice-update.php
7 years ago
html-notice-updated.php
7 years ago
html-notice-updating.php
6 years ago
html-notice-uploads-directory-is-unprotected.php
3 years ago
html-notice-wp-php-minimum-requirements.php
6 years ago
html-quick-edit-product.php
5 years ago
html-report-by-date.php
5 years ago
html-admin-dashboard-setup.php
54 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Dashboard - Finish Setup |
| 4 | * |
| 5 | * @package WooCommerce\Admin |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | ?> |
| 12 | <div class="dashboard-widget-finish-setup" data-current-step="<?php echo esc_html( $step_number - 1 ); ?>" data-total-steps="<?php echo esc_html( $tasks_count ); ?>"> |
| 13 | <span class='progress-wrapper'> |
| 14 | <svg class="circle-progress" width="17" height="17" version="1.1" xmlns="http://www.w3.org/2000/svg"> |
| 15 | <circle r="6.5" cx="10" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="0"></circle> |
| 16 | <circle class="bar" r="6.5" cx="190" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="<?php echo esc_attr( $circle_dashoffset ); ?>" transform='rotate(-90 100 100)'></circle> |
| 17 | </svg> |
| 18 | <span><?php echo esc_html_e( 'Step', 'woocommerce' ); ?> <?php echo esc_html( $step_number ); ?> <?php echo esc_html_e( 'of', 'woocommerce' ); ?> <?php echo esc_html( $tasks_count ); ?></span> |
| 19 | </span> |
| 20 | |
| 21 | <div class="description"> |
| 22 | <div> |
| 23 | <?php echo esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?> |
| 24 | <div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php echo esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div> |
| 25 | </div> |
| 26 | <img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png" /> |
| 27 | </div> |
| 28 | <div class="clear"></div> |
| 29 | </div> |
| 30 | |
| 31 | <script type="text/javascript"> |
| 32 | /*global jQuery */ |
| 33 | (function( $ ) { |
| 34 | const widget = $( '.dashboard-widget-finish-setup' ); |
| 35 | const currentStep = widget.data( 'current-step' ); |
| 36 | const totalSteps = widget.data( 'total-steps' ); |
| 37 | |
| 38 | $( document ).on( 'ready', function() { |
| 39 | window.wcTracks.recordEvent( 'wcadmin_setup_widget_view', { |
| 40 | completed_tasks: currentStep, |
| 41 | total_tasks: totalSteps, |
| 42 | } ); |
| 43 | }); |
| 44 | |
| 45 | |
| 46 | $( '.dashboard-widget-finish-setup a' ).on( 'click', function() { |
| 47 | window.wcTracks.recordEvent( 'wcadmin_setup_widget_click', { |
| 48 | completed_tasks: currentStep, |
| 49 | total_tasks: totalSteps, |
| 50 | } ); |
| 51 | }); |
| 52 | })( jQuery ); |
| 53 | </script> |
| 54 |