Adopt new WP tab class names

This commit is contained in:
Brian Miyaji
2016-08-27 13:09:08 +10:00
parent 1fc0e167ca
commit 35b5c31e49
6 changed files with 12 additions and 12 deletions

View File

@@ -95,12 +95,12 @@ class SP_Meta_Box_Event_Teams {
);
?>
<?php if ( $tabs ) { ?>
<ul id="sp_team-tabs" class="wp-tab-bar sp-tab-bar">
<ul id="sp_team-tabs" class="sp-tab-bar category-tabs">
<?php
$j = 0;
foreach ( $tabs as $slug => $tab ) {
?>
<li class="wp-tab<?php if ( 0 == $j ) { ?>-active<?php } ?>"><a href="#<?php echo $slug; ?>-all"><?php echo $tab['label']; ?></a></li>
<li class="<?php if ( 0 == $j ) { ?>tabs<?php } ?>"><a href="#<?php echo $slug; ?>-all"><?php echo $tab['label']; ?></a></li>
<?php
$j++;
}

View File

@@ -51,10 +51,10 @@ class SP_Meta_Box_List_Columns {
</ul>
<p><strong><?php _e( 'Data', 'sportspress' ); ?></strong></p>
<div class="sp-instance">
<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
<li class="wp-tab-active"><a href="#sp_performance-all"><?php _e( 'Performance', 'sportspress' ); ?></a></li>
<li class="wp-tab"><a href="#sp_metric-all"><?php _e( 'Metrics', 'sportspress' ); ?></a></li>
<li class="wp-tab"><a href="#sp_statistic-all"><?php _e( 'Statistics', 'sportspress' ); ?></a></li>
<ul id="sp_column-tabs" class="sp-tab-bar category-tabs">
<li class="tabs"><a href="#sp_performance-all"><?php _e( 'Performance', 'sportspress' ); ?></a></li>
<li><a href="#sp_metric-all"><?php _e( 'Metrics', 'sportspress' ); ?></a></li>
<li><a href="#sp_statistic-all"><?php _e( 'Statistics', 'sportspress' ); ?></a></li>
</ul>
<?php
sp_column_checklist( $post->ID, 'sp_performance', 'block', $selected );

View File

@@ -24,9 +24,9 @@ class SP_Meta_Box_Player_Columns {
?>
<div class="sp-instance">
<?php if ( $tabs ) { ?>
<ul id="sp_column-tabs" class="wp-tab-bar sp-tab-bar">
<ul id="sp_column-tabs" class="sp-tab-bar category-tabs">
<?php foreach ( $tabs as $index => $post_type ) { $object = get_post_type_object( $post_type ); ?>
<li class="wp-tab<?php if ( 0 == $index ) { ?>-active<?php } ?>"><a href="#<?php echo $post_type; ?>-all"><?php echo $object->labels->menu_name; ?></a></li>
<li class="<?php if ( 0 == $index ) { ?>tabs<?php } ?>"><a href="#<?php echo $post_type; ?>-all"><?php echo $object->labels->menu_name; ?></a></li>
<?php } ?>
</ul>
<?php