WordPress.org

Making WordPress.org

Changeset 9776


Ignore:
Timestamp:
04/27/2020 12:19:44 AM (18 months ago)
Author:
dd32
Message:

Developer: Include the 'category'/Group of the icons in the glyph preview.

This allows for users to know which group of icons a search result belongs to.

See #5172.

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/functions.php

    r9733 r9776  
    346346    wp_enqueue_style( 'dashicons' );
    347347    wp_enqueue_style( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600' );
    348     wp_enqueue_style( 'wporg-developer-style', get_stylesheet_uri(), array(), '2' );
     348    wp_enqueue_style( 'wporg-developer-style', get_stylesheet_uri(), array(), '3' );
    349349    wp_enqueue_style( 'wp-dev-sass-compiled', get_template_directory_uri() . '/stylesheets/main.css', array( 'wporg-developer-style' ), '20200413' );
    350350    wp_enqueue_script( 'wporg-developer-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20181209', true );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/js/page-dashicons.js

    r1271 r9776  
    3535            glyphtext = jQuery('#temp').text();
    3636
     37            var sectionName = jQuery('#iconlist div.dashicons-' + permalink ).prevUntil('h4').last().prev().text();
     38
    3739            var tmpl = wp.template( 'glyphs' );
    3840
    3941            jQuery( '#glyph' ).html( tmpl({
    4042                cssClass: 'dashicons-' + permalink,
     43                sectionName: sectionName,
    4144                attr: attr,
    4245                html: htmltext,
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/page-dashicons.php

    r9441 r9776  
    88 */
    99
    10 wp_enqueue_style(  'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '20150217' );
    11 wp_enqueue_script( 'dashicons-page', get_template_directory_uri() . '/js/page-dashicons.js', array( 'jquery', 'wp-util' ), '20150217' );
     10wp_enqueue_style(  'dashicons-page', get_template_directory_uri() . '/stylesheets/page-dashicons.css', array(), '20200427' );
     11wp_enqueue_script( 'dashicons-page', get_template_directory_uri() . '/js/page-dashicons.js', array( 'jquery', 'wp-util' ), '20200427' );
    1212
    1313get_header(); ?>
     
    463463            <div class="dashicons {{data.cssClass}}"></div>
    464464            <div class="info">
     465                <span><strong>{{data.sectionName}}</strong></span>
    465466                <span class="name"><code>{{data.cssClass}}</code></span>
    466467                <span class="link"><a href='javascript:dashicons.copy( "content: \"\\{{data.attr}}\";", "css" )'><?php _e( 'Copy CSS', 'wporg' ); ?></a></span>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/page-dashicons.css

    r3720 r9776  
    6060.dashicons-page #glyph .info {
    6161  float: right;
    62   margin-top: 50px;
     62  margin-top: 30px;
    6363  width: 35%;
    6464}
Note: See TracChangeset for help on using the changeset viewer.