Making WordPress.org


Ignore:
Timestamp:
08/26/2021 11:50:05 PM (3 years ago)
Author:
coffee2code
Message:

Developer, Dashicons: Show dashicon character code in the selected icon info panel.

See #5014.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/page-dashicons.php

    r11206 r11207  
    1010require_once __DIR__ . '/inc/dashicons.php';
    1111
    12 wp_enqueue_style(  'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '20200427' );
     12wp_enqueue_style(  'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '20210826' );
    1313wp_enqueue_script( 'dashicons-page', get_template_directory_uri() . '/js/page-dashicons.js', array( 'jquery', 'wp-util' ), '20210826' );
    1414
     
    195195                <span><strong>{{data.sectionName}}</strong></span>
    196196                <span class="name"><code>{{data.cssClass}}</code></span>
     197                <span class="charCode"><code>{{data.charCode}}</code></span>
    197198                <span class="link"><a href='javascript:dashicons.copy( "content: \"\\{{data.attr}}\";", "css" )'><?php _e( 'Copy CSS', 'wporg' ); ?></a></span>
    198199                <span class="link"><a href="javascript:dashicons.copy( '{{data.html}}', 'html' )"><?php _e( 'Copy HTML', 'wporg' ); ?></a></span>
Note: See TracChangeset for help on using the changeset viewer.