Skip to content

Commit b2719bf

Browse files
feat: update sponsors icon to Material Design (#35)
* feat: update sponsors icon to Material Design * fix: revert composer and package lock
1 parent 7276c5d commit b2719bf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

includes/class-newspack-sponsors-core.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public static function register_cpt() {
7777
'parent_item_colon' => __( 'Parent Sponsors:', 'newspack-sponsors' ),
7878
'not_found' => __( 'No sponsors found.', 'newspack-sponsors' ),
7979
'not_found_in_trash' => __( 'No sponsors found in Trash.', 'newspack-sponsors' ),
80-
'featured_image' => __( 'Sponsor logo', 'newspack-sponsors' ),
80+
'featured_image' => __( 'Sponsor Logo', 'newspack-sponsors' ),
8181
'set_featured_image' => __( 'Set sponsor logo', 'newspack-sponsors' ),
82-
'remove_featured_image' => __( 'Remove sponsor Logo', 'newspack-sponsors' ),
83-
'use_featured_image' => __( 'Use as sponsor Logo', 'newspack-sponsors' ),
82+
'remove_featured_image' => __( 'Remove sponsor logo', 'newspack-sponsors' ),
83+
'use_featured_image' => __( 'Use as sponsor logo', 'newspack-sponsors' ),
8484
];
8585

8686
$cpt_args = [
@@ -90,7 +90,7 @@ public static function register_cpt() {
9090
'show_in_rest' => true,
9191
'supports' => [ 'editor', 'title', 'custom-fields', 'thumbnail' ],
9292
'taxonomies' => [ 'category', 'post_tag' ], // Regular post categories and tags.
93-
'menu_icon' => 'dashicons-money',
93+
'menu_icon' => 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0Ij48cGF0aCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyem0xLjQxIDE2LjA5VjIwaC0yLjY3di0xLjkzYy0xLjcxLS4zNi0zLjE2LTEuNDYtMy4yNy0zLjRoMS45NmMuMSAxLjA1LjgyIDEuODcgMi42NSAxLjg3IDEuOTYgMCAyLjQtLjk4IDIuNC0xLjU5IDAtLjgzLS40NC0xLjYxLTIuNjctMi4xNC0yLjQ4LS42LTQuMTgtMS42Mi00LjE4LTMuNjcgMC0xLjcyIDEuMzktMi44NCAzLjExLTMuMjFWNGgyLjY3djEuOTVjMS44Ni40NSAyLjc5IDEuODYgMi44NSAzLjM5SDE0LjNjLS4wNS0xLjExLS42NC0xLjg3LTIuMjItMS44Ny0xLjUgMC0yLjQuNjgtMi40IDEuNjQgMCAuODQuNjUgMS4zOSAyLjY3IDEuOTFzNC4xOCAxLjM5IDQuMTggMy45MWMtLjAxIDEuODMtMS4zOCAyLjgzLTMuMTIgMy4xNnoiIGZpbGw9IiNhMGE1YWEiLz48L3N2Zz4K',
9494
];
9595

9696
register_post_type( self::NEWSPACK_SPONSORS_CPT, $cpt_args );

src/editor/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ addFilter( 'editor.PostTaxonomyType', 'newspack-sponsors-editor', TaxonomyPanel
1919
* Register plugin editor settings.
2020
*/
2121
registerPlugin( 'newspack-sponsors-editor', {
22-
icon: 'money',
2322
render: Sidebar,
23+
icon: null,
2424
} );

0 commit comments

Comments
 (0)