Changeset 13062
- Timestamp:
- 12/15/2023 02:06:16 PM (9 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/tour
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/tour/assets/css/style.css
r12982 r13062 44 44 cursor: pointer; 45 45 } 46 .dismiss-tour { 47 background: none; 48 border: none; 49 color: #1067a9; 50 text-decoration: underline; 51 cursor: pointer; 52 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/tour/assets/js/tour-step-editor.js
r12982 r13062 76 76 } 77 77 } 78 enableTourCreation(); 78 document.addEventListener( 'DOMContentLoaded', function () { 79 document 80 .getElementById( 'tour-launcher' ) 81 .addEventListener( 'click', toggleTourSelector ); 82 enableTourCreation(); 83 } ); 79 84 80 85 function reportMissingSelector( tourTitle, step, selector ) { … … 108 113 } 109 114 110 document111 .getElementById( 'tour-launcher' )112 .addEventListener( 'click', toggleTourSelector );113 115 const clearHighlight = function ( event ) { 114 116 if ( typeof tour_plugin.tours[ tourId ] !== 'undefined' ) { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/tour/assets/js/tour.js
r12982 r13062 44 44 onHighlightStarted( element, step ) { 45 45 step.popover.description += 46 '<br>< a href=""class="dismiss-tour">Dismiss the tour';46 '<br><button class="dismiss-tour">Dismiss the tour'; 47 47 }, 48 48 onHighlighted( element, step, options ) { … … 209 209 style.cssRules.length 210 210 ); 211 212 style.insertRule( 213 '@media (prefers-reduced-motion: reduce) {' + 214 '.tour-' + 215 tourId + 216 '{' + 217 'box-shadow: none !important;' + 218 '}' + 219 '}', 220 style.cssRules.length 221 ); 211 222 } 212 223 startStep = 0; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/tour/class-tour.php
r12982 r13062 15 15 add_action( 'admin_enqueue_scripts', array( $class, 'enqueue_scripts' ) ); 16 16 add_action( 'wp_enqueue_scripts', array( $class, 'enqueue_scripts' ) ); 17 add_action( 'gp_head', array( $class, 'enqueue_scripts' ) );18 17 add_action( 'init', array( $class, 'register_post_type' ) ); 19 18 add_action( 'init', array( $class, 'register_block_type' ) ); … … 27 26 add_action( 'edit_form_after_editor', array( $class, 'edit_form_after_editor' ) ); 28 27 add_filter( 'tour_list', array( $class, 'tour_list' ) ); 29 add_shortcode( 'tour_ button', array( $class, 'show_tour_list' ) );28 add_shortcode( 'tour_list', array( $class, 'show_tour_list' ) ); 30 29 add_action( 'admin_menu', array( $class, 'add_admin_menu' ) ); 31 30 add_action( 'wp_footer', array( $class, 'output_tour_button' ) ); 32 31 add_action( 'admin_footer', array( $class, 'output_tour_button' ) ); 32 add_action( 'gp_footer', array( $class, 'output_tour_button' ) ); 33 33 add_action( 'show_user_profile', array( $class, 'show_user_profile' ) ); 34 34 add_action( 'wp_before_admin_bar_render', array( $class, 'add_tours_menu_to_masterbar' ) );
Note: See TracChangeset
for help on using the changeset viewer.