WordPress.org

Plugin Directory

Changeset 607153


Ignore:
Timestamp:
10/02/12 19:29:59 (19 months ago)
Author:
andy
Message:

jetpack notes: switch to noticon in toolbar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/branches/notes/modules/notes.php

    r604751 r607153  
    4242    function action_init() { 
    4343        wp_enqueue_style( 'notes-admin-bar-rest', $this->wpcom_static_url( '/wp-content/mu-plugins/notes/admin-bar-rest.css' ), array(), '2012-05-18a' ); 
     44        wp_enqueue_style( 'noticons', $this->wpcom_static_url( '/i/noticons/noticons.css' ), array(), '2012-10-02' ); 
    4445        wp_enqueue_script( 'spin', $this->wpcom_static_url( '/wp-includes/js/spin.js' ), array( 'jquery' ) ); 
    4546        wp_enqueue_script( 'jquery.spin', $this->wpcom_static_url( '/wp-includes/js/jquery/jquery.spin.js' ), array( 'jquery', 'spin' ) ); 
     
    6667        $wp_admin_bar->add_menu( array( 
    6768            'id'     => 'notes', 
    68             'title'  => '<span id="wpnt-notes-unread-count" class="' . esc_attr( $classes ) . '">' 
    69                     . '<img width="14px" height="14px" src="' . esc_url( $noticon ) . '" style="display: inline-block; width: 14px; height: 14px; overflow-x: hidden; overflow-y: hidden;" /></span>', 
     69            'title'  => '<span id="wpnt-notes-unread-count" class="' . esc_attr( $classes ) . '"> 
     70                    <span class="noticon noticon-notification" /></span> 
     71                    </span>', 
    7072            'meta'   => array( 
    71                 'html'  => '<div id="wpnt-notes-panel" style="display:none"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">' . __('Notifications') . '</span><span class="wpnt-notes-panel-link"></span></div></div>', 
     73                'html'  => '<div id="wpnt-notes-panel" style="display:none"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">' . __('Notifications', 'jetpack') . '</span><span class="wpnt-notes-panel-link"></span></div></div>', 
    7274                'class' => 'menupop', 
    7375            ), 
Note: See TracChangeset for help on using the changeset viewer.