Widget CSS Classes - Version 1.2.9

Version Description

  • Changed h2 to h1 on settings page
  • Changed plus/minus icons on settings page to dashicons
Download this release

Release Info

Developer elusivelight
Plugin Icon 128x128 Widget CSS Classes
Version 1.2.9
Comparing to
See all releases

Code changes from version 1.2.8 to 1.2.9

css/widget-css-classes.css CHANGED
@@ -1,9 +1,8 @@
1
- .wcssc_copy img, .wcssc_remove img {
2
  vertical-align: middle;
3
  margin: 0;
4
  padding: 0;
5
  }
6
-
7
- .wcssc_remove img {
8
- margin-left: -12px;
9
  }
1
+ .wcssc_copy span, .wcssc_remove span {
2
  vertical-align: middle;
3
  margin: 0;
4
  padding: 0;
5
  }
6
+ .wcssc_copy, .wcssc_remove {
7
+ text-decoration: none;
 
8
  }
images/bullet-toggle-minus-icon.png DELETED
Binary file
images/bullet-toggle-plus-icon.png DELETED
Binary file
includes/widget-css-classes-settings.class.php CHANGED
@@ -91,22 +91,22 @@ class WCSSC_Settings {
91
  if ( $preset != '' ) {
92
  ?>
93
  <p><input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown]['.esc_attr( $key ).']'; ?>" value="<?php echo esc_attr( $preset ); ?>" />
94
- &nbsp;&nbsp;&nbsp;&nbsp;<a class="wcssc_remove" href="#"><img src="<?php echo esc_attr( WCSSC_PLUGIN_URL ); ?>/images/bullet-toggle-minus-icon.png" alt="-" /></a></p>
95
  <?php
96
  }
97
  }
98
  ?>
99
  <p class="wcssc_dropdown">
100
  <input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown][]'; ?>" value="" />
101
- <a href="#" class="wcssc_copy" rel=".wcssc_dropdown"><img src="<?php echo esc_attr( WCSSC_PLUGIN_URL ); ?>/images/bullet-toggle-plus-icon.png" alt="+" /></a>
102
- <a class="wcssc_remove" href="#"><img src="<?php echo esc_attr( WCSSC_PLUGIN_URL ); ?>/images/bullet-toggle-minus-icon.png" alt="-" /></a>
103
  </p>
104
  <?php
105
  } else {
106
  ?>
107
  <p class="wcssc_dropdown"><input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown][]'; ?>" value="<?php echo esc_attr( $this->general_settings['dropdown'] ); ?>" />
108
- <a href="#" class="wcssc_copy" rel=".wcssc_dropdown"><img src="<?php echo esc_attr( WCSSC_PLUGIN_URL ); ?>/images/bullet-toggle-plus-icon.png" alt="+" /></a>
109
- <a class="wcssc_remove" href="#"><img src="<?php echo esc_attr( WCSSC_PLUGIN_URL ); ?>/images/bullet-toggle-minus-icon.png" alt="-" /></a></p>
110
  <?php
111
  }
112
  }
@@ -229,12 +229,12 @@ class WCSSC_Settings {
229
  function plugin_options_tabs() {
230
  $current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : $this->general_key;
231
 
232
- echo '<h2 class="nav-tab-wrapper">';
233
  foreach ( $this->plugin_tabs as $tab_key => $tab_caption ) {
234
  $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
235
  echo '<a class="nav-tab '.esc_attr( $active ).'" href="?page='.esc_attr( $this->plugin_key ).'&amp;tab='.esc_attr( $tab_key ).'">'.esc_html( $tab_caption ).'</a>';
236
  }
237
- echo '</h2>';
238
  }
239
 
240
  function importexport_fields() {
91
  if ( $preset != '' ) {
92
  ?>
93
  <p><input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown]['.esc_attr( $key ).']'; ?>" value="<?php echo esc_attr( $preset ); ?>" />
94
+ <a class="wcssc_remove" href="#"><span class="dashicons dashicons-dismiss"></span></a></p>
95
  <?php
96
  }
97
  }
98
  ?>
99
  <p class="wcssc_dropdown">
100
  <input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown][]'; ?>" value="" />
101
+ <a href="#" class="wcssc_copy" rel=".wcssc_dropdown"><span class="dashicons dashicons-plus-alt"></span></a>
102
+ <a class="wcssc_remove" href="#"><span class="dashicons dashicons-dismiss"></span></a>
103
  </p>
104
  <?php
105
  } else {
106
  ?>
107
  <p class="wcssc_dropdown"><input type="text" name="<?php echo esc_attr( $this->general_key ).'[dropdown][]'; ?>" value="<?php echo esc_attr( $this->general_settings['dropdown'] ); ?>" />
108
+ <a href="#" class="wcssc_copy" rel=".wcssc_dropdown"><span class="dashicons dashicons-plus-alt"></span></a>
109
+ <a class="wcssc_remove" href="#"><span class="dashicons dashicons-dismiss"></span></a></p>
110
  <?php
111
  }
112
  }
229
  function plugin_options_tabs() {
230
  $current_tab = isset( $_GET['tab'] ) ? $_GET['tab'] : $this->general_key;
231
 
232
+ echo '<h1 class="nav-tab-wrapper">';
233
  foreach ( $this->plugin_tabs as $tab_key => $tab_caption ) {
234
  $active = $current_tab == $tab_key ? 'nav-tab-active' : '';
235
  echo '<a class="nav-tab '.esc_attr( $active ).'" href="?page='.esc_attr( $this->plugin_key ).'&amp;tab='.esc_attr( $tab_key ).'">'.esc_html( $tab_caption ).'</a>';
236
  }
237
+ echo '</h1>';
238
  }
239
 
240
  function importexport_fields() {
readme.txt CHANGED
@@ -7,8 +7,8 @@ Tags: widgets, classes, css, widget classes, widget css
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires at least: 3.3
10
- Tested up to: 4.3
11
- Stable tag: 1.2.8
12
 
13
  Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
14
 
@@ -94,8 +94,12 @@ Visit [the plugin website](http://cleverness.org/plugins/widget-css-classes/) an
94
 
95
  == Changelog ==
96
 
 
 
 
 
97
  = 1.2.8 =
98
- * Added text domain to plugin header in preperation for automatic language translations
99
 
100
  = 1.2.7 =
101
  * Changed class and ID fields to full-width
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires at least: 3.3
10
+ Tested up to: 4.4
11
+ Stable tag: 1.2.9
12
 
13
  Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
14
 
94
 
95
  == Changelog ==
96
 
97
+ = 1.2.9 =
98
+ * Changed h2 to h1 on settings page
99
+ * Changed plus/minus icons on settings page to dashicons
100
+
101
  = 1.2.8 =
102
+ * Added text domain to plugin header in preparation for automatic language translations
103
 
104
  = 1.2.7 =
105
  * Changed class and ID fields to full-width
widget-css-classes.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Widget CSS Classes
4
- Version: 1.2.8
5
  Description: Add custom, first, last, even, odd, and numbered classes to your widgets.
6
  Author: C.M. Kendrick
7
  Author URI: http://cleverness.org
1
  <?php
2
  /*
3
  Plugin Name: Widget CSS Classes
4
+ Version: 1.2.9
5
  Description: Add custom, first, last, even, odd, and numbered classes to your widgets.
6
  Author: C.M. Kendrick
7
  Author URI: http://cleverness.org