PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
← All changes | libraries/cmb2-tabs/cmb2-tabs.php +5 -5 5.8.6 → 6.0.3 View file →
@@ -7,9 +7,9 @@
7 7 * Plugin Name: CMB2 Tabs
8 8 * Plugin URI: https://github.com/rubengc/cmb2-tabs
9 9 * GitHub Plugin URI: https://github.com/rubengc/cmb2-tabs
10 10 * Description: Tabs for CMB2 boxes.
11 - * Version: 1.0.4
11 + * Version: 1.0.5
12 12 * Author: Ruben Garcia
13 13 * Author URI: http://rubengc.com/
14 14 * License: GPLv2+
15 15 */
@@ -25,9 +25,9 @@
25 25
26 26 /**
27 27 * Current version number
28 28 */
29 - const VERSION = '1.0.4';
29 + const VERSION = '1.0.5';
30 30
31 31 /**
32 32 * Initialize the plugin by hooking into CMB2
33 33 */
@@ -48,9 +48,9 @@
48 48 */
49 49 public function before_form( $cmb_id, $object_id, $object_type, $cmb ) {
50 50 if( $cmb->prop( 'tabs' ) && is_array( $cmb->prop( 'tabs' ) ) ) : ?>
51 51 <div class="cmb-tabs-wrap cmb-tabs-<?php echo ( ( $cmb->prop( 'vertical_tabs' ) ) ? 'vertical' : 'horizontal' ) ?>">
52 - <div class="cmb-tabs">
52 + <div class="cmb-tabs" data-speed="<?php echo ( ( $cmb->prop( 'tabs_speed' ) !== null ) ? $cmb->prop( 'tabs_speed' ) : 'fast' ) ?>">
53 53
54 54 <?php foreach( $cmb->prop( 'tabs' ) as $tab ) :
55 55 $fields_selector = array();
56 56
@@ -73,13 +73,13 @@
73 73 $fields_selector = apply_filters( 'cmb2_tabs_tab_fields_selector', $fields_selector, $tab, $cmb_id, $object_id, $object_type, $cmb );
74 74 $fields_selector = apply_filters( 'cmb2_tabs_tab_' . $tab['id'] . '_fields_selector', $fields_selector, $tab, $cmb_id, $object_id, $object_type, $cmb );
75 75 ?>
76 76
77 - <div id="<?php echo $cmb_id . '-tab-' . $tab['id']; ?>" class="cmb-tab" data-fields="<?php echo implode( ', ', $fields_selector ); ?>">
77 + <div id="<?php echo esc_attr( $cmb_id ) . '-tab-' . esc_attr( $tab['id'] ); ?>" class="cmb-tab" data-fields="<?php echo esc_attr( implode( ', ', $fields_selector ) ); ?>">
78 78
79 79 <?php if( isset( $tab['icon'] ) && ! empty( $tab['icon'] ) ) :
80 80 $tab['icon'] = strpos($tab['icon'], 'dashicons') !== false ? 'dashicons ' . $tab['icon'] : $tab['icon']?>
81 - <span class="cmb-tab-icon"><i class="<?php echo $tab['icon']; ?>"></i></span>
81 + <span class="cmb-tab-icon"><i class="<?php echo esc_attr( $tab['icon'] ); ?>"></i></span>
82 82 <?php endif; ?>
83 83
84 84 <?php if( isset( $tab['title'] ) && ! empty( $tab['title'] ) ) : ?>
85 85 <span class="cmb-tab-title"><?php echo $tab['title']; ?></span>