Add filter and simplify get started steps
This commit is contained in:
@@ -79,20 +79,6 @@ div.sportspress-message a.button-secondary {
|
|||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sportspress-steps .welcome-icon:before {
|
.sportspress-steps .welcome-icon i: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;
|
|
||||||
color: #888;
|
color: #888;
|
||||||
}
|
|
||||||
|
|
||||||
.sportspress-steps .sp-welcome-icon:before {
|
|
||||||
font-family: sportspress;
|
|
||||||
}
|
}
|
||||||
@@ -203,17 +203,17 @@ class SP_Admin_Welcome {
|
|||||||
$steps = apply_filters( 'sportspress_next_steps', array(
|
$steps = apply_filters( 'sportspress_next_steps', array(
|
||||||
'teams' => array(
|
'teams' => array(
|
||||||
'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_team' ), 'edit.php' ) ),
|
'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' ),
|
'label' => __( 'Add New Team', 'sportspress' ),
|
||||||
),
|
),
|
||||||
'players' => array(
|
'players' => array(
|
||||||
'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_player' ), 'edit.php' ) ),
|
'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' ),
|
'label' => __( 'Add New Player', 'sportspress' ),
|
||||||
),
|
),
|
||||||
'events' => array(
|
'events' => array(
|
||||||
'link' => admin_url( add_query_arg( array( 'post_type' => 'sp_event' ), 'edit.php' ) ),
|
'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' ),
|
'label' => __( 'Add New Event', 'sportspress' ),
|
||||||
),
|
),
|
||||||
) );
|
) );
|
||||||
@@ -222,14 +222,14 @@ class SP_Admin_Welcome {
|
|||||||
<div class="sportspress-steps">
|
<div class="sportspress-steps">
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ( $steps as $step ) { ?>
|
<?php foreach ( $steps as $step ) { ?>
|
||||||
<li><a href="<?php echo esc_url( $step['link'] ); ?>" class="welcome-icon sp-welcome-icon <?php echo sp_array_value( $step, 'icon' ); ?>"><?php echo $step['label']; ?></a></li>
|
<li><a href="<?php echo esc_url( $step['link'] ); ?>" class="welcome-icon sp-welcome-icon"><i class="<?php echo sp_array_value( $step, 'icon' ); ?>"></i> <?php echo $step['label']; ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="return-to-dashboard">
|
|
||||||
<a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'general' ), 'admin.php' ) ) ); ?>"><?php _e( 'Go to SportsPress Settings', 'sportspress' ); ?></a>
|
<h4><?php _e( 'Settings', 'sportspress' ); ?></h4>
|
||||||
</div>
|
<a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'sportspress', 'tab' => 'general' ), 'admin.php' ) ) ); ?>"><?php _e( 'Go to SportsPress Settings', 'sportspress' ); ?></a>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<form method="post" id="mainform" action="" enctype="multipart/form-data">
|
<form method="post" id="mainform" action="" enctype="multipart/form-data">
|
||||||
<h4><?php _e( 'Basic Setup', 'sportspress' ); ?></h4>
|
<h4><?php _e( 'Basic Setup', 'sportspress' ); ?></h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user