From 18823215cbad72b431a99ba12dd91abebe584553 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 10 Mar 2015 14:22:04 +1100 Subject: [PATCH] Add filter and simplify get started steps --- assets/css/activation.css | 16 +--------------- includes/admin/class-sp-admin-welcome.php | 14 +++++++------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/assets/css/activation.css b/assets/css/activation.css index d9dadf0c..1b0c199e 100644 --- a/assets/css/activation.css +++ b/assets/css/activation.css @@ -79,20 +79,6 @@ div.sportspress-message a.button-secondary { *zoom: 1; } -.sportspress-steps .welcome-icon:before { - font: 400 20px/1 dashicons; - speak: none; - display: inline-block; - padding: 0 10px 0 0; - top: -1px; - position: relative; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-decoration: none!important; - vertical-align: top; +.sportspress-steps .welcome-icon i:before { color: #888; -} - -.sportspress-steps .sp-welcome-icon:before { - font-family: sportspress; } \ No newline at end of file diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index 3857ffc1..073f02f7 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -203,17 +203,17 @@ class SP_Admin_Welcome { $steps = apply_filters( 'sportspress_next_steps', array( 'teams' => array( 'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_team' ), 'edit.php' ) ), - 'icon' => 'dashicons-shield-alt', + 'icon' => 'sp-icon-shield', 'label' => __( 'Add New Team', 'sportspress' ), ), 'players' => array( 'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_player' ), 'edit.php' ) ), - 'icon' => 'dashicons-groups', + 'icon' => 'sp-icon-tshirt', 'label' => __( 'Add New Player', 'sportspress' ), ), 'events' => array( 'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ), - 'icon' => 'dashicons-calendar', + 'icon' => 'sp-icon-calendar', 'label' => __( 'Add New Event', 'sportspress' ), ), ) ); @@ -222,14 +222,14 @@ class SP_Admin_Welcome {
-
- -
+ +

+