Widget CSS Classes - Version 1.2.1

Version Description

  • Added Slovak translation by Branco WebHostingGeeks.com
  • Updated Widget Context compatibility fix plus notice fix by Joan Piedra
  • Changed jQuery live to on for 1.9 compatibility
Download this release

Release Info

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

Code changes from version 1.2 to 1.2.1

includes/widget-css-classes.class.php CHANGED
@@ -86,6 +86,7 @@ class WCSSC {
86
  * @since 1.0
87
  */
88
  public static function add_widget_classes( $params ) {
 
89
  global $wp_registered_widgets, $widget_number;
90
 
91
  $arr_registered_widgets = wp_get_sidebars_widgets(); // Get an array of ALL registered widgets
@@ -94,6 +95,7 @@ class WCSSC {
94
  $widget_obj = $wp_registered_widgets[$widget_id];
95
  $widget_num = $widget_obj['params'][0]['number'];
96
  $widget_css_classes = ( get_option( 'WCSSC_options' ) ? get_option( 'WCSSC_options' ) : array() );
 
97
 
98
  // if Widget Logic plugin is enabled, use it's callback
99
  if ( in_array( 'widget-logic/widget_logic.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
@@ -106,7 +108,12 @@ class WCSSC {
106
 
107
  // if Widget Context plugin is enabled, use it's callback
108
  } elseif ( in_array( 'widget-context/widget-context.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
109
- $widget_opt = get_option( $widget_obj['callback_original_wc'][0]->option_name );
 
 
 
 
 
110
 
111
  // Default callback
112
  } else {
86
  * @since 1.0
87
  */
88
  public static function add_widget_classes( $params ) {
89
+
90
  global $wp_registered_widgets, $widget_number;
91
 
92
  $arr_registered_widgets = wp_get_sidebars_widgets(); // Get an array of ALL registered widgets
95
  $widget_obj = $wp_registered_widgets[$widget_id];
96
  $widget_num = $widget_obj['params'][0]['number'];
97
  $widget_css_classes = ( get_option( 'WCSSC_options' ) ? get_option( 'WCSSC_options' ) : array() );
98
+ $widget_opt = null;
99
 
100
  // if Widget Logic plugin is enabled, use it's callback
101
  if ( in_array( 'widget-logic/widget_logic.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
108
 
109
  // if Widget Context plugin is enabled, use it's callback
110
  } elseif ( in_array( 'widget-context/widget-context.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
111
+ $callback = isset($widget_obj['callback_original_wc']) ? $widget_obj['callback_original_wc'] : null;
112
+ $callback = !$callback && isset($widget_obj['callback']) ? $widget_obj['callback'] : null;
113
+
114
+ if ($callback && is_array($widget_obj['callback'])) {
115
+ $widget_opt = get_option( $callback[0]->option_name );
116
+ }
117
 
118
  // Default callback
119
  } else {
js/widget-css-classes.js CHANGED
@@ -2,7 +2,7 @@ jQuery( document ).ready( function ( $ ) {
2
 
3
  $( '.wcssc_copy' ).relCopy( {} );
4
 
5
- $( '.wcssc_remove' ).live( 'click', function(e) {
6
  e.preventDefault();
7
  $( this ).parent().slideUp( function () {
8
  $( this ).remove();
2
 
3
  $( '.wcssc_copy' ).relCopy( {} );
4
 
5
+ $( 'p' ).on( 'click', '.wcssc_remove', function(e) {
6
  e.preventDefault();
7
  $( this ).parent().slideUp( function () {
8
  $( this ).remove();
languages/widget-css-classes_sk_SK.mo ADDED
Binary file
languages/widget-css-classes_sk_SK.po ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Widget CSS Classes\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-12-02 15:50-0500\n"
6
+ "PO-Revision-Date: 2013-01-15 18:44+0300\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: <cindy@cleverness.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e\n"
13
+ "X-Poedit-Basepath: ./\n"
14
+ "X-Generator: Poedit 1.5.4\n"
15
+ "X-Poedit-SearchPath-0: ..\n"
16
+
17
+ #: ../includes/widget-css-classes-library.class.php:31
18
+ msgid "Settings"
19
+ msgstr "Nastavenia"
20
+
21
+ #: ../includes/widget-css-classes-library.class.php:45
22
+ msgid "Version"
23
+ msgstr "Verzia"
24
+
25
+ #: ../includes/widget-css-classes-library.class.php:46
26
+ msgid "Donate"
27
+ msgstr "Darovať"
28
+
29
+ #: ../includes/widget-css-classes-settings.class.php:39
30
+ #: ../includes/widget-css-classes-settings.class.php:42
31
+ msgid "Widget CSS Classes Settings"
32
+ msgstr "Widget CSS triedy nastavenia"
33
+
34
+ #: ../includes/widget-css-classes-settings.class.php:43
35
+ msgid "Add Widget Number Classes"
36
+ msgstr "Pridať Widget počet tried"
37
+
38
+ #: ../includes/widget-css-classes-settings.class.php:44
39
+ msgid "Add First/Last Classes"
40
+ msgstr "Pridať prvom a poslednom tried"
41
+
42
+ #: ../includes/widget-css-classes-settings.class.php:45
43
+ msgid "Add Even/Odd Classes"
44
+ msgstr "Pridať aj/nepárne tried"
45
+
46
+ #: ../includes/widget-css-classes-settings.class.php:46
47
+ msgid "Show Additional Field for ID"
48
+ msgstr "Zobraziť ďalšie pole pre ID"
49
+
50
+ #: ../includes/widget-css-classes-settings.class.php:47
51
+ msgid "Class Field Type"
52
+ msgstr "Typ poľa trieda"
53
+
54
+ #: ../includes/widget-css-classes-settings.class.php:48
55
+ msgid "Define Classes for Dropdown"
56
+ msgstr "Definovať triedy pre rozbaľovací zoznam"
57
+
58
+ #: ../includes/widget-css-classes-settings.class.php:53
59
+ #: ../includes/widget-css-classes-settings.class.php:60
60
+ #: ../includes/widget-css-classes-settings.class.php:67
61
+ #: ../includes/widget-css-classes-settings.class.php:74
62
+ msgid "Yes"
63
+ msgstr "áno"
64
+
65
+ #: ../includes/widget-css-classes-settings.class.php:54
66
+ #: ../includes/widget-css-classes-settings.class.php:61
67
+ #: ../includes/widget-css-classes-settings.class.php:68
68
+ #: ../includes/widget-css-classes-settings.class.php:75
69
+ msgid "No"
70
+ msgstr "nie"
71
+
72
+ #: ../includes/widget-css-classes-settings.class.php:81
73
+ msgid "Text"
74
+ msgstr "Text"
75
+
76
+ #: ../includes/widget-css-classes-settings.class.php:82
77
+ msgid "Dropdown"
78
+ msgstr "Rozbaľovací zoznam"
79
+
80
+ #: ../includes/widget-css-classes-settings.class.php:83
81
+ msgid "Hide"
82
+ msgstr "Skryť"
83
+
84
+ #: ../includes/widget-css-classes-settings.class.php:115
85
+ msgid "Import/Export"
86
+ msgstr "Import a Export"
87
+
88
+ #: ../includes/widget-css-classes-settings.class.php:120
89
+ msgid "Settings Imported"
90
+ msgstr "Nastavenia dovážané"
91
+
92
+ #: ../includes/widget-css-classes-settings.class.php:123
93
+ msgid "Invalid Settings File"
94
+ msgstr "Neplatný súbor nastavení"
95
+
96
+ #: ../includes/widget-css-classes-settings.class.php:126
97
+ msgid "No Settings File Selected"
98
+ msgstr "Žiadny súbor nastavení vybraných"
99
+
100
+ #: ../includes/widget-css-classes-settings.class.php:197
101
+ msgid "Widget CSS Classes"
102
+ msgstr "Widget CSS triedy"
103
+
104
+ #: ../includes/widget-css-classes-settings.class.php:243
105
+ msgid "Import/Export Settings"
106
+ msgstr "Import a Export nastavení"
107
+
108
+ #: ../includes/widget-css-classes-settings.class.php:245
109
+ msgid "Export Settings"
110
+ msgstr "Exportovať nastavenie"
111
+
112
+ #: ../includes/widget-css-classes-settings.class.php:249
113
+ msgid "Import Settings"
114
+ msgstr "Nastavenie importu"
115
+
116
+ #: ../includes/widget-css-classes.class.php:34
117
+ msgid "CSS ID"
118
+ msgstr "CSS A ID"
119
+
120
+ #: ../includes/widget-css-classes.class.php:40
121
+ #: ../includes/widget-css-classes.class.php:47
122
+ msgid "CSS Class"
123
+ msgstr "CSS triedy"
124
+
125
+ #: ../includes/widget-css-classes.class.php:49
126
+ msgid "Select"
127
+ msgstr "Vyberte"
128
+
129
+ #: ../includes/widget-css-classes.class.php:147
130
+ msgid "widget-"
131
+ msgstr "widget-"
132
+
133
+ #: ../includes/widget-css-classes.class.php:151
134
+ msgid "widget-first"
135
+ msgstr "widget-prvé"
136
+
137
+ #: ../includes/widget-css-classes.class.php:152
138
+ msgid "widget-last"
139
+ msgstr "widget-posledný"
140
+
141
+ #: ../includes/widget-css-classes.class.php:162
142
+ msgid "widget-even"
143
+ msgstr "widget-aj"
144
+
145
+ #: ../includes/widget-css-classes.class.php:163
146
+ msgid "widget-odd"
147
+ msgstr "widget-odd"
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: 3.5
11
- Stable tag: 1.2
12
 
13
  Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
14
 
@@ -81,6 +81,11 @@ Visit [the plugin website](http://cleverness.org/plugins/widget-css-classes/) an
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
84
  = 1.2 =
85
  * Replace ID with custom ID rather than appending to existing ID
86
  * Added settings to not show numbered widget classes, first/last classes, and even/odd classes
@@ -116,6 +121,8 @@ Plus/Minus Icons from [Farm Fresh Icons](http://www.fatcow.com/free-icons) by Fa
116
 
117
  Widget Context compatibility fix provided by [Joan Piedra](http://joanpiedra.com/)
118
 
 
 
119
  == License ==
120
 
121
  This file is part of Widget CSS Classes.
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: 3.5.1
11
+ Stable tag: 1.2.1
12
 
13
  Add custom classes and ids plus first, last, even, odd, and numbered classes to your widgets.
14
 
81
 
82
  == Changelog ==
83
 
84
+ = 1.2.1 =
85
+ * Added Slovak translation by Branco [WebHostingGeeks.com](http://webhostinggeeks.com/user-reviews/)
86
+ * Updated Widget Context compatibility fix plus notice fix by [Joan Piedra](http://joanpiedra.com/)
87
+ * Changed jQuery live to on for 1.9 compatibility
88
+
89
  = 1.2 =
90
  * Replace ID with custom ID rather than appending to existing ID
91
  * Added settings to not show numbered widget classes, first/last classes, and even/odd classes
121
 
122
  Widget Context compatibility fix provided by [Joan Piedra](http://joanpiedra.com/)
123
 
124
+ Slovak translation by Branco [WebHostingGeeks.com](http://webhostinggeeks.com/user-reviews/)
125
+
126
  == License ==
127
 
128
  This file is part of Widget CSS Classes.
screenshot-4.jpg DELETED
Binary file
screenshot-4.png ADDED
Binary file
widget-css-classes.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Widget CSS Classes
4
- Version: 1.2
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.1
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