Categories Images - Version 2.3.1

Version Description

  • Bug fix in js for Wordpress media uploader.
Download this release

Release Info

Developer elzahlan
Plugin Icon 128x128 Categories Images
Version 2.3.1
Comparing to
See all releases

Code changes from version 1.0 to 2.3.1

categories-images.php CHANGED
@@ -4,66 +4,151 @@ Plugin Name: Categories Images
4
  Plugin URI: http://zahlan.net/blog/2012/06/categories-images/
5
  Description: Categories Images Plugin allow you to add an image to category or any custom term.
6
  Author: Muhammad Said El Zahlan
7
- Version: 1.0
8
  Author URI: http://zahlan.net/
9
  */
10
  ?>
11
  <?php
12
- // inti the plugin
13
- add_action('admin_head', 'z_inti');
14
- function z_inti() {
 
 
 
 
 
 
 
15
  $z_taxonomies = get_taxonomies();
16
  if (is_array($z_taxonomies)) {
17
- foreach ($z_taxonomies as $z_taxonomy ) {
 
 
 
 
 
 
18
  add_action($z_taxonomy.'_add_form_fields', 'z_add_texonomy_field');
19
  add_action($z_taxonomy.'_edit_form_fields', 'z_edit_texonomy_field');
 
 
20
  }
21
  }
22
  }
23
 
 
 
 
 
 
 
 
 
 
 
24
  // add image field in add form
25
  function z_add_texonomy_field() {
26
- wp_enqueue_style('thickbox');
 
 
 
 
 
 
27
  echo '<div class="form-field">
28
- <label for="taxonomy_image">Image</label>
29
  <input type="text" name="taxonomy_image" id="taxonomy_image" value="" />
 
 
30
  </div>'.z_script();
31
  }
32
 
33
  // add image field in edit form
34
  function z_edit_texonomy_field($taxonomy) {
35
- wp_enqueue_style('thickbox');
 
 
 
 
 
 
 
 
 
 
36
  echo '<tr class="form-field">
37
- <th scope="row" valign="top"><label for="taxonomy_image">Image</label></th>
38
- <td><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.get_option('z_taxonomy_image'.$taxonomy->term_id).'" /><br /></td>
 
 
 
39
  </tr>'.z_script();
40
  }
41
-
42
- wp_enqueue_script('thickbox');
43
-
44
  function z_script() {
45
  return '<script type="text/javascript">
46
- jQuery(document).ready(function() {
47
- var fileInput = "";
48
- jQuery("#taxonomy_image").live("click",
49
- function() {
50
- fileInput = jQuery("#taxonomy_image");
51
- tb_show("", "media-upload.php?type=image&amp;TB_iframe=true");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  return false;
53
- });
54
- window.original_send_to_editor = window.send_to_editor;
55
- window.send_to_editor = function(html) {
56
- if (fileInput) {
57
- fileurl = jQuery("img", html).attr("src");
58
- if (!fileurl)
59
- fileurl = jQuery(html).attr("src");
60
-
61
- jQuery(fileInput).val(fileurl);
 
 
62
  tb_remove();
63
  }
64
- else
65
- window.original_send_to_editor(html);
66
- };
 
 
 
 
 
 
 
 
 
 
67
  });
68
  </script>';
69
  }
@@ -77,7 +162,7 @@ function z_save_taxonomy_image($term_id) {
77
  }
78
 
79
  // output taxonomy image url for the given term_id (NULL by default)
80
- function z_taxonomy_image_url($term_id = NULL) {
81
  if (!$term_id) {
82
  if (is_category())
83
  $term_id = get_query_var('cat');
@@ -86,6 +171,121 @@ function z_taxonomy_image_url($term_id = NULL) {
86
  $term_id = $current_term->term_id;
87
  }
88
  }
89
- return get_option('z_taxonomy_image'.$term_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
91
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Plugin URI: http://zahlan.net/blog/2012/06/categories-images/
5
  Description: Categories Images Plugin allow you to add an image to category or any custom term.
6
  Author: Muhammad Said El Zahlan
7
+ Version: 2.3.1
8
  Author URI: http://zahlan.net/
9
  */
10
  ?>
11
  <?php
12
+ if (!defined('Z_PLUGIN_URL'))
13
+ define('Z_PLUGIN_URL', untrailingslashit(plugins_url('', __FILE__)));
14
+
15
+ define('Z_IMAGE_PLACEHOLDER', Z_PLUGIN_URL."/images/placeholder.png");
16
+
17
+ // l10n
18
+ load_plugin_textdomain('zci', FALSE, 'categories-images/languages');
19
+
20
+ add_action('admin_init', 'z_init');
21
+ function z_init() {
22
  $z_taxonomies = get_taxonomies();
23
  if (is_array($z_taxonomies)) {
24
+ $zci_options = get_option('zci_options');
25
+ if (empty($zci_options['excluded_taxonomies']))
26
+ $zci_options['excluded_taxonomies'] = array();
27
+
28
+ foreach ($z_taxonomies as $z_taxonomy) {
29
+ if (in_array($z_taxonomy, $zci_options['excluded_taxonomies']))
30
+ continue;
31
  add_action($z_taxonomy.'_add_form_fields', 'z_add_texonomy_field');
32
  add_action($z_taxonomy.'_edit_form_fields', 'z_edit_texonomy_field');
33
+ add_filter( 'manage_edit-' . $z_taxonomy . '_columns', 'z_taxonomy_columns' );
34
+ add_filter( 'manage_' . $z_taxonomy . '_custom_column', 'z_taxonomy_column', 10, 3 );
35
  }
36
  }
37
  }
38
 
39
+ function z_add_style() {
40
+ echo '<style type="text/css" media="screen">
41
+ th.column-thumb {width:60px;}
42
+ .form-field img.taxonomy-image {border:1px solid #eee;max-width:300px;max-height:300px;}
43
+ .inline-edit-row fieldset .thumb label span.title {width:48px;height:48px;border:1px solid #eee;display:inline-block;}
44
+ .column-thumb span {width:48px;height:48px;border:1px solid #eee;display:inline-block;}
45
+ .inline-edit-row fieldset .thumb img,.column-thumb img {width:48px;height:48px;}
46
+ </style>';
47
+ }
48
+
49
  // add image field in add form
50
  function z_add_texonomy_field() {
51
+ if (get_bloginfo('version') >= 3.5)
52
+ wp_enqueue_media();
53
+ else {
54
+ wp_enqueue_style('thickbox');
55
+ wp_enqueue_script('thickbox');
56
+ }
57
+
58
  echo '<div class="form-field">
59
+ <label for="taxonomy_image">' . __('Image', 'zci') . '</label>
60
  <input type="text" name="taxonomy_image" id="taxonomy_image" value="" />
61
+ <br/>
62
+ <button class="z_upload_image_button button">' . __('Upload/Add image', 'zci') . '</button>
63
  </div>'.z_script();
64
  }
65
 
66
  // add image field in edit form
67
  function z_edit_texonomy_field($taxonomy) {
68
+ if (get_bloginfo('version') >= 3.5)
69
+ wp_enqueue_media();
70
+ else {
71
+ wp_enqueue_style('thickbox');
72
+ wp_enqueue_script('thickbox');
73
+ }
74
+
75
+ if (z_taxonomy_image_url( $taxonomy->term_id, TRUE ) == Z_IMAGE_PLACEHOLDER)
76
+ $image_text = "";
77
+ else
78
+ $image_text = z_taxonomy_image_url( $taxonomy->term_id, TRUE );
79
  echo '<tr class="form-field">
80
+ <th scope="row" valign="top"><label for="taxonomy_image">' . __('Image', 'zci') . '</label></th>
81
+ <td><img class="taxonomy-image" src="' . z_taxonomy_image_url( $taxonomy->term_id, TRUE ) . '"/><br/><input type="text" name="taxonomy_image" id="taxonomy_image" value="'.$image_text.'" /><br />
82
+ <button class="z_upload_image_button button">' . __('Upload/Add image', 'zci') . '</button>
83
+ <button class="z_remove_image_button button">' . __('Remove image', 'zci') . '</button>
84
+ </td>
85
  </tr>'.z_script();
86
  }
87
+ // upload using wordpress upload
 
 
88
  function z_script() {
89
  return '<script type="text/javascript">
90
+ jQuery(document).ready(function($) {
91
+ var wordpress_ver = "'.get_bloginfo("version").'", upload_button;
92
+ $(".z_upload_image_button").click(function(event) {
93
+ upload_button = $(this);
94
+ var frame;
95
+ if (wordpress_ver >= "3.5") {
96
+ event.preventDefault();
97
+ if (frame) {
98
+ frame.open();
99
+ return;
100
+ }
101
+ frame = wp.media();
102
+ frame.on( "select", function() {
103
+ // Grab the selected attachment.
104
+ var attachment = frame.state().get("selection").first();
105
+ frame.close();
106
+ if (upload_button.parent().prev().children().hasClass("tax_list")) {
107
+ upload_button.parent().prev().children().val(attachment.attributes.url);
108
+ upload_button.parent().prev().prev().children().attr("src", attachment.attributes.url);
109
+ }
110
+ else
111
+ $("#taxonomy_image").val(attachment.attributes.url);
112
+ });
113
+ frame.open();
114
+ }
115
+ else {
116
+ tb_show("", "media-upload.php?type=image&amp;TB_iframe=true");
117
+ return false;
118
+ }
119
+ });
120
+
121
+ $(".z_remove_image_button").click(function() {
122
+ $("#taxonomy_image").val("");
123
+ $(this).parent().siblings(".title").children("img").attr("src","' . Z_IMAGE_PLACEHOLDER . '");
124
+ $(".inline-edit-col :input[name=\'taxonomy_image\']").val("");
125
  return false;
126
+ });
127
+
128
+ if (wordpress_ver < "3.5") {
129
+ window.send_to_editor = function(html) {
130
+ imgurl = $("img",html).attr("src");
131
+ if (upload_button.parent().prev().children().hasClass("tax_list")) {
132
+ upload_button.parent().prev().children().val(imgurl);
133
+ upload_button.parent().prev().prev().children().attr("src", imgurl);
134
+ }
135
+ else
136
+ $("#taxonomy_image").val(imgurl);
137
  tb_remove();
138
  }
139
+ }
140
+
141
+ $(".editinline").live("click", function(){
142
+ var tax_id = $(this).parents("tr").attr("id").substr(4);
143
+ var thumb = $("#tag-"+tax_id+" .thumb img").attr("src");
144
+ if (thumb != "' . Z_IMAGE_PLACEHOLDER . '") {
145
+ $(".inline-edit-col :input[name=\'taxonomy_image\']").val(thumb);
146
+ } else {
147
+ $(".inline-edit-col :input[name=\'taxonomy_image\']").val("");
148
+ }
149
+ $(".inline-edit-col .title img").attr("src",thumb);
150
+ return false;
151
+ });
152
  });
153
  </script>';
154
  }
162
  }
163
 
164
  // output taxonomy image url for the given term_id (NULL by default)
165
+ function z_taxonomy_image_url($term_id = NULL, $return_placeholder = FALSE) {
166
  if (!$term_id) {
167
  if (is_category())
168
  $term_id = get_query_var('cat');
171
  $term_id = $current_term->term_id;
172
  }
173
  }
174
+ $taxonomy_image_url = get_option('z_taxonomy_image'.$term_id);
175
+ if ($return_placeholder)
176
+ return ($taxonomy_image_url != "") ? $taxonomy_image_url : Z_IMAGE_PLACEHOLDER;
177
+ else
178
+ return $taxonomy_image_url;
179
+ }
180
+
181
+ function z_quick_edit_custom_box($column_name, $screen, $name) {
182
+ if ($column_name == 'thumb')
183
+ echo '<fieldset>
184
+ <div class="thumb inline-edit-col">
185
+ <label>
186
+ <span class="title"><img src="" alt="Thumbnail"/></span>
187
+ <span class="input-text-wrap"><input type="text" name="taxonomy_image" value="" class="tax_list" /></span>
188
+ <span class="input-text-wrap">
189
+ <button class="z_upload_image_button button">' . __('Upload/Add image', 'zci') . '</button>
190
+ <button class="z_remove_image_button button">' . __('Remove image', 'zci') . '</button>
191
+ </span>
192
+ </label>
193
+ </div>
194
+ </fieldset>';
195
+ }
196
+
197
+ /**
198
+ * Thumbnail column added to category admin.
199
+ *
200
+ * @access public
201
+ * @param mixed $columns
202
+ * @return void
203
+ */
204
+ function z_taxonomy_columns( $columns ) {
205
+ $new_columns = array();
206
+ $new_columns['cb'] = $columns['cb'];
207
+ $new_columns['thumb'] = __('Image', 'zci');
208
+
209
+ unset( $columns['cb'] );
210
+
211
+ return array_merge( $new_columns, $columns );
212
+ }
213
+
214
+ /**
215
+ * Thumbnail column value added to category admin.
216
+ *
217
+ * @access public
218
+ * @param mixed $columns
219
+ * @param mixed $column
220
+ * @param mixed $id
221
+ * @return void
222
+ */
223
+ function z_taxonomy_column( $columns, $column, $id ) {
224
+ if ( $column == 'thumb' )
225
+ $columns = '<span><img src="' . z_taxonomy_image_url($id, TRUE) . '" alt="' . __('Thumbnail', 'zci') . '" class="wp-post-image" /></span>';
226
+
227
+ return $columns;
228
+ }
229
+
230
+ // change 'insert into post' to 'use this image'
231
+ function z_change_insert_button_text($safe_text, $text) {
232
+ return str_replace("Insert into Post", "Use this image", $text);
233
+ }
234
+
235
+ // style the image in category list
236
+ if ( strpos( $_SERVER['SCRIPT_NAME'], 'edit-tags.php' ) > 0 ) {
237
+ add_action( 'admin_head', 'z_add_style' );
238
+ add_action('quick_edit_custom_box', 'z_quick_edit_custom_box', 10, 3);
239
+ add_filter("attribute_escape", "z_change_insert_button_text", 10, 2);
240
+ }
241
+
242
+ // New menu submenu for plugin options in Settings menu
243
+ add_action('admin_menu', 'z_options_menu');
244
+ function z_options_menu() {
245
+ add_options_page(__('Categories Images settings', 'zci'), __('Categories Images', 'zci'), 'manage_options', 'zci-options', 'zci_options');
246
+ add_action('admin_init', 'z_register_settings');
247
  }
248
+
249
+ // Register plugin settings
250
+ function z_register_settings() {
251
+ register_setting('zci_options', 'zci_options', 'z_options_validate');
252
+ add_settings_section('zci_settings', __('Categories Images settings', 'zci'), 'z_section_text', 'zci-options');
253
+ add_settings_field('z_excluded_taxonomies', __('Excluded Taxonomies', 'zci'), 'z_excluded_taxonomies', 'zci-options', 'zci_settings');
254
+ }
255
+
256
+ // Settings section description
257
+ function z_section_text() {
258
+ echo '<p>'.__('Please select the taxonomies you want to exclude it from Categories Images plugin', 'zci').'</p>';
259
+ }
260
+
261
+ // Excluded taxonomies checkboxs
262
+ function z_excluded_taxonomies() {
263
+ $options = get_option('zci_options');
264
+ $disabled_taxonomies = array('nav_menu', 'link_category', 'post_format');
265
+ foreach (get_taxonomies() as $tax) : if (in_array($tax, $disabled_taxonomies)) continue; ?>
266
+ <input type="checkbox" name="zci_options[excluded_taxonomies][<?php echo $tax ?>]" value="<?php echo $tax ?>" <?php checked(isset($options['excluded_taxonomies'][$tax])); ?> /> <?php echo $tax ;?><br />
267
+ <?php endforeach;
268
+ }
269
+
270
+ // Validating options
271
+ function z_options_validate($input) {
272
+ return $input;
273
+ }
274
+
275
+ // Plugin option page
276
+ function zci_options() {
277
+ if (!current_user_can('manage_options'))
278
+ wp_die(__( 'You do not have sufficient permissions to access this page.', 'zci'));
279
+ $options = get_option('zci_options');
280
+ ?>
281
+ <div class="wrap">
282
+ <?php screen_icon(); ?>
283
+ <h2><?php _e('Categories Images', 'zci'); ?></h2>
284
+ <form method="post" action="options.php">
285
+ <?php settings_fields('zci_options'); ?>
286
+ <?php do_settings_sections('zci-options'); ?>
287
+ <?php submit_button(); ?>
288
+ </form>
289
+ </div>
290
+ <?php
291
+ }
images/placeholder.png ADDED
Binary file
languages/zci-ar.mo ADDED
Binary file
languages/zci-ar.po ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Categories Images\n"
4
+ "POT-Creation-Date: 2013-06-14 04:42+0200\n"
5
+ "PO-Revision-Date: 2013-06-14 04:45+0200\n"
6
+ "Last-Translator: Muhammad Zahlan <elzahlan@gmail.com>\n"
7
+ "Language-Team: Muhammad Zahlan <elzahlan@gmail.com>\n"
8
+ "Language: ar\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.5\n"
13
+ "X-Poedit-KeywordsList: _;__;_e\n"
14
+ "X-Poedit-Basepath: ../\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: categories-images.php:59 categories-images.php:80 categories-images.php:207
19
+ msgid "Image"
20
+ msgstr "صورة"
21
+
22
+ #: categories-images.php:62 categories-images.php:82 categories-images.php:189
23
+ msgid "Upload/Add image"
24
+ msgstr "رفع/اضافة صورة"
25
+
26
+ #: categories-images.php:83 categories-images.php:190
27
+ msgid "Remove image"
28
+ msgstr "حذف الصورة"
29
+
30
+ #: categories-images.php:225
31
+ msgid "Thumbnail"
32
+ msgstr "صورة مصغرة"
33
+
34
+ #: categories-images.php:245 categories-images.php:252
35
+ msgid "Categories Images settings"
36
+ msgstr "إعدادات صور التصنيفات"
37
+
38
+ #: categories-images.php:245 categories-images.php:283
39
+ msgid "Categories Images"
40
+ msgstr "صور التصنيفات"
41
+
42
+ #: categories-images.php:253
43
+ msgid "Excluded Taxonomies"
44
+ msgstr "التصنيفات المستبعدة"
45
+
46
+ #: categories-images.php:258
47
+ msgid ""
48
+ "Please select the taxonomies you want to exclude it from Categories Images "
49
+ "plugin"
50
+ msgstr ""
51
+ "من فضلك قم بإختيار نوع التصنيفات التي تريد استبعادها من الإضافة ( التصنيفات "
52
+ "التي لن يتم استخدام صور فيها )"
53
+
54
+ #: categories-images.php:278
55
+ msgid "You do not have sufficient permissions to access this page."
56
+ msgstr "لا توجد لديك صلاحيات كافية لعرض هذه الصفحة."
languages/zci-zh_CN.mo ADDED
Binary file
languages/zci-zh_CN.po ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Categories Images\n"
4
+ "POT-Creation-Date: 2013-01-10 16:45+0800\n"
5
+ "PO-Revision-Date: 2013-01-10 16:45+0800\n"
6
+ "Last-Translator: Joe <tkjune@gmail.com>\n"
7
+ "Language-Team: Joe Tse <tkjune@gmail.com>\n"
8
+ "Language: zh_CN\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.4\n"
13
+ "X-Poedit-KeywordsList: _;__;_e\n"
14
+ "X-Poedit-Basepath: ../\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: categories-images.php:52 categories-images.php:68 categories-images.php:164
19
+ msgid "Image"
20
+ msgstr "图片"
21
+
22
+ #: categories-images.php:55 categories-images.php:70 categories-images.php:146
23
+ msgid "Upload/Add image"
24
+ msgstr "上传/添加图片"
25
+
26
+ #: categories-images.php:71 categories-images.php:147
27
+ msgid "Remove image"
28
+ msgstr "删除图片"
29
+
30
+ #: categories-images.php:182
31
+ msgid "Thumbnail"
32
+ msgstr "缩略图"
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Categories Images ===
2
  Contributors: elzahlan
3
- Tags: Category Image, Categories Images, admin, texonomy image, category icon, category logo
 
4
  Requires at least: 2.8
5
- Tested up to: 3.3.2
6
- Stable tag: 1.0
7
 
8
  The Categories Images Plugin allow you to add image with category or taxonomy.
9
 
@@ -11,7 +12,13 @@ The Categories Images Plugin allow you to add image with category or taxonomy.
11
 
12
  The Categories Images Plugin allow you to add image with category or taxonomy.
13
 
14
- Use `<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>` to get the url and put it in any <img /> tag in (category or taxonomy) template.
 
 
 
 
 
 
15
 
16
  == Installation ==
17
 
@@ -37,13 +44,67 @@ Go to [http://zahlan.net/blog/2012/06/categories-images/](http://zahlan.net/blog
37
 
38
  == Frequently Asked Questions ==
39
 
40
- None
 
41
 
42
  == Screenshots ==
43
 
44
- None
 
 
 
 
45
 
46
  == Changelog ==
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  = 1.0 =
49
- The First Release
1
  === Categories Images ===
2
  Contributors: elzahlan
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=G8LC4VSYKYSGA
4
+ Tags: Category Image, Category Images, Categories Images, taxonomy image, taxonomy images, taxonomies images, category icon, categories icons, category logo, categories logos, admin, wp-admin, category image plugin, categories images plugin
5
  Requires at least: 2.8
6
+ Tested up to: 3.5.1
7
+ Stable tag: 2.3.1
8
 
9
  The Categories Images Plugin allow you to add image with category or taxonomy.
10
 
12
 
13
  The Categories Images Plugin allow you to add image with category or taxonomy.
14
 
15
+ Use `<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>` to get the url and put it in any img tag in (category or taxonomy) template.
16
+
17
+ Also from settings menu you can exclude any taxonomies from the plugin to avoid conflicting with another plugins like WooCommerce!
18
+
19
+ = More documentation =
20
+
21
+ Go to [http://zahlan.net/blog/2012/06/categories-images/](http://zahlan.net/blog/2012/06/categories-images/)
22
 
23
  == Installation ==
24
 
44
 
45
  == Frequently Asked Questions ==
46
 
47
+ Please check the documentation page:
48
+ [http://zahlan.net/blog/2012/06/categories-images/](http://zahlan.net/blog/2012/06/categories-images/)
49
 
50
  == Screenshots ==
51
 
52
+ 1. Image preview and new image field in add/edit category or taxonomy with upload button which allow you to select current or upload a new image.
53
+ 2. New image field with (upload/remove) buttons to allow you to edit category or taxonomy image in quick edit.
54
+ 3. When you click the upload button the wordpress upload box will popup, upload or select image then press use this image.
55
+ 4. New submenu (Categories Images) in Settings menu.
56
+ 5. Now you can exclude any taxonomy from the plugin and save changes.
57
 
58
  == Changelog ==
59
 
60
+ = 2.3.1 =
61
+ * Bug fix in js for Wordpress media uploader.
62
+
63
+ = 2.3 =
64
+ * New screenshots.
65
+ * Updated language file.
66
+ * Added support for both old and new Wordpress media uploader.
67
+ * Added new submenu (Categories Images) in Settings menu.
68
+ * Added new settings for excluding any taxonomies from the plugin.
69
+ * Added new placeholder image.
70
+
71
+ Thanks to Patrick http://www.patrickbos.nl and Hassan http://profiles.wordpress.org/hassanhamm/ for the new ideas.
72
+
73
+ = 2.2.4 =
74
+ * java script bug fixed, reported about conflicting with WooCommerce plugin. Thanks to Marty McGee.
75
+
76
+ = 2.2.3 =
77
+ * bug fix in displaying category or taxonomy image at the frontend.
78
+
79
+ = 2.2.2 =
80
+ * bug fix in displaying placeholder image in wp-admin.
81
+
82
+ = 2.2.1 =
83
+ * edit z_taxonomy_image_url() to only return data in case the user inserted image for the selected category or taxonomy
84
+
85
+ = 2.2 =
86
+ * fix a bug, prevent a function from running execpt when editing a category or taxonomy to avoid affecting other wordpress edit pages in the wp-admin
87
+
88
+ = 2.1 =
89
+ * fix a bug in languages
90
+ * fix a bug in quick edit category or taxonomy
91
+
92
+ = 2.0 =
93
+ * New screenshots.
94
+ * Added l10n support.
95
+ * Added Arabic and Chinese languages.
96
+ * Added new button for upload or select an image using wordpress media uploader.
97
+ * Added default image placeholder.
98
+ * Added thumbnail in categories or taxonomies list.
99
+ * Added image thumbnail, image text box, upload button and remove button in quick edit.
100
+
101
+ Thank so much to Joe Tse http://tkjune.com :)
102
+
103
+ = 1.2 =
104
+ Adding some screenshots
105
+
106
+ = 1.1 =
107
+ Fix javascript bug with wordpress 3.4
108
+
109
  = 1.0 =
110
+ The First Release
screenshot-1.jpg ADDED
Binary file
screenshot-2.jpg ADDED
Binary file
screenshot-3.jpg ADDED
Binary file
screenshot-4.jpg ADDED
Binary file
screenshot-5.jpg ADDED
Binary file