challenge
1 year ago
css
1 week ago
img
1 year ago
js
1 month ago
menu
1 month ago
partials
2 weeks ago
rest-api
1 week ago
scss
1 year ago
settings
1 week ago
uninstall
1 year ago
wpchill
1 month ago
admin-notices.php
6 months ago
admin.php
1 month ago
class-strong-testimonials-addons.php
1 month ago
class-strong-testimonials-admin-category-list.php
1 year ago
class-strong-testimonials-admin-list.php
1 year ago
class-strong-testimonials-admin-scripts.php
1 month ago
class-strong-testimonials-admin.php
1 month ago
class-strong-testimonials-debug.php
6 months ago
class-strong-testimonials-exporter.php
1 year ago
class-strong-testimonials-help.php
1 year ago
class-strong-testimonials-helper.php
1 month ago
class-strong-testimonials-list-table.php
1 year ago
class-strong-testimonials-lite-vs-pro-page.php
1 month ago
class-strong-testimonials-post-editor.php
7 months ago
class-strong-testimonials-review.php
1 year ago
class-strong-testimonials-updater.php
1 month ago
class-strong-testimonials-upsell.php
1 week ago
class-strong-views-list-table.php
1 month ago
class-walker-strong-category-checklist.php
1 year ago
class-walker-strong-form-category-checklist.php
1 year ago
class-wpmtst-onboarding.php
1 year ago
compat.php
1 year ago
custom-fields-ajax.php
1 year ago
custom-fields.php
1 week ago
form-preview.php
1 year ago
view-list-order.php
1 year ago
views-ajax.php
1 month ago
views-validate.php
1 year ago
views.php
1 month ago
class-wpmtst-onboarding.php
44 lines
| 1 | <?php |
| 2 | if ( ! class_exists( 'WP_List_Table' ) ) { |
| 3 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php'; |
| 4 | } |
| 5 | if ( ! class_exists( 'WP_Posts_List_Table' ) ) { |
| 6 | require_once ABSPATH . 'wp-admin/includes/class-wp-posts-list-table.php'; |
| 7 | } |
| 8 | |
| 9 | class WPMTST_Onboarding extends WP_Posts_List_Table { |
| 10 | |
| 11 | |
| 12 | // Your custom list table is here |
| 13 | public function display() { |
| 14 | |
| 15 | $new_gal_url = admin_url( 'post-new.php?post_type=wpm-testimonial' ); |
| 16 | ?> |
| 17 | <div class="wpmtst-onboarding-wrapper"> |
| 18 | |
| 19 | <div class="wpmtst-onboarding-title"> |
| 20 | <img src="<?php echo esc_url( WPMTST_ADMIN_URL ) . 'img/onboarding/WPChill-Onboarding-Wave.png'; ?>" class="wpmtst-onboarding-title-icon" /> <span><?php esc_html_e( 'Hi, there!', 'strong-testimonials' ); ?></span> |
| 21 | </div> |
| 22 | <div class="wpmtst-onboarding-text-wrap"> |
| 23 | <p><?php esc_html_e( 'In just a few steps, you will be collecting and publishing your testimonials or reviews. Beginners and pros alike will appreciate the wealth of flexible features refined over 4 years from user feedback and requests.', 'strong-testimonials' ); ?></p> |
| 24 | </div> |
| 25 | <div class="wpmtst-onboarding-banner-wrap"> |
| 26 | <img src="<?php echo esc_url( WPMTST_ADMIN_URL ) . 'img/onboarding/st-banner.png'; ?>" class="wpmtst-onboarding-banner" /> |
| 27 | </div> |
| 28 | <div class="wpmtst-onboarding-button-wrap"> |
| 29 | <a href="<?php echo esc_url( $new_gal_url ); ?>" class="wpmtst-onboarding-button"><?php esc_html_e( 'Create your first testimonial', 'strong-testimonials' ); ?></a> |
| 30 | </div> |
| 31 | <div class="wpmtst-onboarding-doc-wrap"> |
| 32 | <p class="wpmtst-onboarding-doc" > |
| 33 | <?php |
| 34 | // translators: %1$s is the opening HTML tag for the documentation link, %2$s is the closing HTML tag for the documentation link. |
| 35 | echo sprintf( esc_html__( 'Need help? Check out %1$s our documentation%2$s.', 'strong-testimonials' ), '<a href="https://strongtestimonials.com/kb/" target="_blank">', '</a>' ); |
| 36 | ?> |
| 37 | </p> |
| 38 | </div> |
| 39 | </div> |
| 40 | <?php |
| 41 | } |
| 42 | } |
| 43 | |
| 44 |