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

@@ -50,7 +50,7 @@ jQuery(document).ready(function($){
// Tab switcher // Tab switcher
$(".sp-tab-panel").siblings(".sp-tab-bar").find("a").click(function() { $(".sp-tab-panel").siblings(".sp-tab-bar").find("a").click(function() {
$(this).closest("li").removeClass("wp-tab").addClass("wp-tab-active").siblings().removeClass("wp-tab-active").addClass("wp-tab").closest(".wp-tab-bar").siblings($(this).attr("href")).show().trigger('checkCheck').siblings(".wp-tab-panel").hide(); $(this).closest("li").addClass("tabs").siblings().removeClass("tabs").closest(".sp-tab-bar").siblings($(this).attr("href")).show().trigger('checkCheck').siblings(".sp-tab-panel").hide();
return false; return false;
}); });

View File

@@ -95,12 +95,12 @@ class SP_Meta_Box_Event_Teams {
); );
?> ?>
<?php if ( $tabs ) { ?> <?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 <?php
$j = 0; $j = 0;
foreach ( $tabs as $slug => $tab ) { 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 <?php
$j++; $j++;
} }

View File

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

View File

@@ -845,7 +845,7 @@ if ( !function_exists( 'sp_post_checklist' ) ) {
if ( ! isset( $slug ) ) if ( ! isset( $slug ) )
$slug = $meta; $slug = $meta;
?> ?>
<div id="<?php echo $slug; ?>-all" class="posttypediv wp-tab-panel sp-tab-panel sp-tab-filter-panel sp-select-all-range" style="display: <?php echo $display; ?>;"> <div id="<?php echo $slug; ?>-all" class="posttypediv tabs-panel sp-tab-panel sp-tab-filter-panel sp-select-all-range" style="display: <?php echo $display; ?>;">
<input type="hidden" value="0" name="<?php echo $slug; ?><?php if ( isset( $index ) ) echo '[' . $index . ']'; ?>[]" /> <input type="hidden" value="0" name="<?php echo $slug; ?><?php if ( isset( $index ) ) echo '[' . $index . ']'; ?>[]" />
<ul class="categorychecklist form-no-clear"> <ul class="categorychecklist form-no-clear">
<li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php _e( 'Select All', 'sportspress' ); ?></strong></label></li> <li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php _e( 'Select All', 'sportspress' ); ?></strong></label></li>
@@ -929,7 +929,7 @@ if ( !function_exists( 'sp_column_checklist' ) ) {
if ( ! isset( $post_id ) ) if ( ! isset( $post_id ) )
global $post_id; global $post_id;
?> ?>
<div id="<?php echo $meta; ?>-all" class="posttypediv wp-tab-panel sp-tab-panel sp-select-all-range" style="display: <?php echo $display; ?>;"> <div id="<?php echo $meta; ?>-all" class="posttypediv tabs-panel sp-tab-panel sp-select-all-range" style="display: <?php echo $display; ?>;">
<input type="hidden" value="0" name="sp_columns[]" /> <input type="hidden" value="0" name="sp_columns[]" />
<ul class="categorychecklist form-no-clear"> <ul class="categorychecklist form-no-clear">
<li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php _e( 'Select All', 'sportspress' ); ?></strong></label></li> <li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php _e( 'Select All', 'sportspress' ); ?></strong></label></li>

View File

@@ -175,7 +175,7 @@ class SportsPress_Lazy_Loading {
$diff = array_diff( $post_ids, $selected ); $diff = array_diff( $post_ids, $selected );
$selected = array_flip( $selected ); $selected = array_flip( $selected );
?> ?>
<div id="<?php echo $slug; ?>-all" class="posttypediv wp-tab-panel sp-tab-panel sp-ajax-checklist sp-select-all-range" style="display: <?php echo $display; ?>;"> <div id="<?php echo $slug; ?>-all" class="posttypediv tabs-panel sp-tab-panel sp-ajax-checklist sp-select-all-range" style="display: <?php echo $display; ?>;">
<input type="hidden" value="0" name="<?php echo $slug; ?><?php if ( isset( $index ) ) echo '[' . $index . ']'; ?>[]" /> <input type="hidden" value="0" name="<?php echo $slug; ?><?php if ( isset( $index ) ) echo '[' . $index . ']'; ?>[]" />
<ul class="categorychecklist form-no-clear"> <ul class="categorychecklist form-no-clear">
<?php if ( is_array( $posts ) && sizeof( $posts ) ) { ?> <?php if ( is_array( $posts ) && sizeof( $posts ) ) { ?>