diff --git a/includes/admin/class-wc-admin-attributes.php b/includes/admin/class-wc-admin-attributes.php index 257020644da..6694de59092 100644 --- a/includes/admin/class-wc-admin-attributes.php +++ b/includes/admin/class-wc-admin-attributes.php @@ -4,14 +4,14 @@ * * The attributes section lets users add custom attributes to assign to products - they can also be used in the layered nav widget. * - * @author WooThemes - * @category Admin - * @package WooCommerce/Admin - * @version 2.1.0 + * @author WooThemes + * @category Admin + * @package WooCommerce/Admin + * @version 2.3.0 */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; } /** @@ -23,7 +23,7 @@ class WC_Admin_Attributes { * Handles output of the attributes page in admin. * * Shows the created attributes and lets you add new ones or edit existing ones. - * The added attributes are stored in the database and can be used for layered navigation. + * The added attributes are stored in the database and can be used for layered navigation. */ public static function output() { global $wpdb; @@ -232,8 +232,8 @@ class WC_Admin_Attributes { ?>

-

-
+

+ @@ -299,57 +299,57 @@ class WC_Admin_Attributes { ?>

-

-
-
-
-
-
- - - - - - - - - - - +

+
+
+
+
+
+ + + + + + + + + + + - - - - - + + + + - - - -
attribute_label ); ?> + attribute_label ); ?> -
|
-
attribute_name ); ?>attribute_type ) ); ?>attribute_orderby ) { - case 'name' : - _e( 'Name', 'woocommerce' ); - break; - case 'name_num' : - _e( 'Name (numeric)', 'woocommerce' ); - break; - case 'id' : - _e( 'Term ID', 'woocommerce' ); - break; - default: - _e( 'Custom ordering', 'woocommerce' ); - break; - } - ?>attribute_name ); +
|
+
attribute_name ); ?>attribute_type ) ); ?>attribute_orderby ) { + case 'name' : + _e( 'Name', 'woocommerce' ); + break; + case 'name_num' : + _e( 'Name (numeric)', 'woocommerce' ); + break; + case 'id' : + _e( 'Term ID', 'woocommerce' ); + break; + default: + _e( 'Custom ordering', 'woocommerce' ); + break; + } + ?>attribute_name ); - if ( taxonomy_exists( $taxonomy ) ) { - $terms = get_terms( $taxonomy, 'hide_empty=0' ); + if ( taxonomy_exists( $taxonomy ) ) { + $terms = get_terms( $taxonomy, 'hide_empty=0' ); - switch ( $tax->attribute_orderby ) { + switch ( $tax->attribute_orderby ) { case 'name_num' : usort( $terms, '_wc_get_product_terms_name_num_usort_callback' ); break; @@ -367,24 +367,24 @@ class WC_Admin_Attributes { } else { echo ''; } - ?>
-
- -
-
-
-

-

- + ?> + + + + +
+
+
+
+
+

+

+
@@ -419,19 +419,21 @@ class WC_Admin_Attributes {

- -
-
-
-
-