Changeset 11207
- Timestamp:
- 08/26/2021 11:50:05 PM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/page-dashicons.js
r11206 r11207 35 35 glyphtext = jQuery('#temp').text(); 36 36 37 // icon code 38 var charCode = jQuery('#iconlist li.dashicons-' + permalink ).attr('data-code'); 39 37 40 var sectionName = jQuery('#iconlist li.dashicons-' + permalink ).parent().prevAll('h4').first().text(); 38 41 … … 40 43 41 44 jQuery( '#glyph' ).html( tmpl({ 45 charCode: charCode, 42 46 cssClass: 'dashicons-' + permalink, 43 47 sectionName: sectionName, -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/page-dashicons.php
r11206 r11207 10 10 require_once __DIR__ . '/inc/dashicons.php'; 11 11 12 wp_enqueue_style( 'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '202 00427' );12 wp_enqueue_style( 'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '20210826' ); 13 13 wp_enqueue_script( 'dashicons-page', get_template_directory_uri() . '/js/page-dashicons.js', array( 'jquery', 'wp-util' ), '20210826' ); 14 14 … … 195 195 <span><strong>{{data.sectionName}}</strong></span> 196 196 <span class="name"><code>{{data.cssClass}}</code></span> 197 <span class="charCode"><code>{{data.charCode}}</code></span> 197 198 <span class="link"><a href='javascript:dashicons.copy( "content: \"\\{{data.attr}}\";", "css" )'><?php _e( 'Copy CSS', 'wporg' ); ?></a></span> 198 199 <span class="link"><a href="javascript:dashicons.copy( '{{data.html}}', 'html' )"><?php _e( 'Copy HTML', 'wporg' ); ?></a></span> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/page-dashicons.scss
r11206 r11207 59 59 .info { 60 60 float:right; 61 margin-top: $spacing *2;61 margin-top: $spacing; 62 62 width: 35%; 63 64 .charCode code { 65 color: #888; 66 } 63 67 } 64 68 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/page-dashicons.css
r11206 r11207 60 60 .dashicons-page #glyph .info { 61 61 float: right; 62 margin-top: 50px;62 margin-top: 25px; 63 63 width: 35%; 64 } 65 66 .dashicons-page #glyph .info .charCode code { 67 color: #888; 64 68 } 65 69
Note: See TracChangeset
for help on using the changeset viewer.