Simple Image Sizes - Version 1.0.3

Version Description

Download this release

Release Info

Developer Rahe
Plugin Icon wp plugin Simple Image Sizes
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

css/sis-style.css ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .delete_size {
2
+ width: 90px;
3
+ padding: 0px;
4
+ display:inline-block;
5
+ position:relative;
6
+ text-indent:16px;
7
+ margin-right:5px;
8
+ text-align:center
9
+ }
10
+
11
+ .delete_size_icon {
12
+ float: right;
13
+ top: 2px;
14
+ position:absolute;
15
+ left: 0px;
16
+ }
17
+
18
+ #sis-regen .progress-percent {
19
+ position:absolute;
20
+ left:50%;
21
+ top:50%;
22
+ width:50px;
23
+ margin-left:-25px;
24
+ height:25px;
25
+ margin-top:-9px;
26
+ font-weight:bold;
27
+ text-align:center;
28
+ }
29
+
30
+ #sis-regen .wrapper {
31
+ display: inline-block;
32
+ float: left;
33
+ width: 45%;
34
+ }
35
+
36
+ #sis-regen #regenerate_message {
37
+ display:none;
38
+ }
39
+
40
+ #sis-regen .progress {
41
+ position:relative;
42
+ height:25px;
43
+ }
44
+
45
+ #sis-regen #thumb {
46
+ display:none;
47
+ }
48
+
49
+ #sis-regen #ajax_thumbnail_rebuild {
50
+ margin-top:40px;
51
+ }
inc/class.admin.php CHANGED
@@ -2,15 +2,21 @@
2
  Class SISAdmin{
3
 
4
  // Original sizes
5
- var $original = array( 'thumbnail', 'medium', 'large' );
6
 
7
- function __construct(){
8
  // Init
9
  add_action ( 'admin_menu', array( &$this, 'init' ) );
10
- add_action ( 'admin_init', array( &$this, 'registerJavaScript' ), 11 );
11
 
12
  // Add ajax action
13
- add_action('wp_ajax_ajax_thumbnail_rebuild', array( &$this, 'ajax_thumbnail_rebuild_ajax' ) );
 
 
 
 
 
 
14
  }
15
 
16
  /**
@@ -20,16 +26,17 @@ Class SISAdmin{
20
  * @return void
21
  * @author Nicolas Juen
22
  */
23
- function registerJavaScript() {
24
  // Add javascript
25
- wp_enqueue_script( 'custom_image_size', SIS_URL.'js/custom_sizes.min.js', array('jquery'), '1.0' );
26
  wp_enqueue_script( 'jquery-ui-progressbar', SIS_URL.'js/jquery-ui-1.8.10.custom.min.js', array(), '1.8.10' );
27
 
28
  // Ad javascript translation
29
- wp_localize_script( 'custom_image_size', 'custom_image_size', $this->localize_vars() );
30
 
31
  // Add CSS
32
  wp_enqueue_style( 'jquery-ui-regenthumbs', SIS_URL.'jquery-ui/redmond/jquery-ui-1.8.10.custom.css', array(), '1.8.10' );
 
33
  }
34
 
35
  /**
@@ -39,19 +46,42 @@ Class SISAdmin{
39
  * @return void
40
  * @author Nicolas Juen
41
  */
42
- function localize_vars() {
43
  return array(
44
- 'ajaxUrl' => home_url( '/wp-admin/admin-ajax.php' ),
45
  'reading' => __( 'Reading attachments...', 'sis' ),
46
  'maximumWidth' => __( 'Maximum width', 'sis' ),
47
  'maximumHeight' => __( 'Maximum height', 'sis' ),
48
  'crop' => __( 'Crop ?', 'sis' ),
 
49
  'deleteImage' => __( 'Delete', 'sis' ),
50
  'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
51
  'regenerating' => __( 'Regenerating ', 'sis'),
52
  'validate' => __( 'Validate image size name', 'sis' ),
 
 
53
  );
54
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  /**
57
  * Init for the option page
@@ -94,8 +124,8 @@ Class SISAdmin{
94
  else // For default sizes set in options
95
  $crop = get_option( "{$s}_crop" );
96
 
97
- // Add the setting ield for this size
98
- add_settings_field( 'image_size_'.$s.'', __( 'Size ', 'sis' ).$s, array( &$this, 'image_sizes' ), 'media' , 'default', array( 'name' => $s , 'width' => $width , 'height' => $height ) );
99
 
100
  }
101
 
@@ -103,10 +133,13 @@ Class SISAdmin{
103
  register_setting( 'media', 'custom_image_sizes' );
104
 
105
  // Add the button
106
- add_settings_field( 'add_size', 'Add a new size', array( &$this, 'add_size' ), 'media' );
 
 
 
107
 
108
  // Add section for the thumbnail regeneration
109
- add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'sis' ), array( &$this, 'thumbnail_regenerate' ), 'media' );
110
  }
111
 
112
  /**
@@ -117,7 +150,7 @@ Class SISAdmin{
117
  * @return void
118
  * @author Nicolas Juen
119
  */
120
- function image_sizes( $args ) {
121
  // Get the options
122
  $sizes = (array)get_option( 'custom_image_sizes' );
123
 
@@ -148,10 +181,9 @@ Class SISAdmin{
148
  <?php _e( 'Crop ?', 'sis'); ?>
149
  <input type='checkbox' <?php checked( $crop, 1 ) ?> name="<?php echo 'custom_image_sizes['.$args['name'].'][c]' ?>" value="1" />
150
  </label>
151
- <!-- <img src="<?php echo esc_url( admin_url( 'images/no.png' ) ); ?>" alt="" class="delete_size" /> -->
152
- <label class="ui-state-default ui-corner-all delete_size" style="width: 90px; padding: 0px; display:inline-block; position:relative; text-indent:16px;margin-right:5px;text-align:center">
153
  <?php _e( 'Delete', 'sis'); ?>
154
- <div class="ui-icon ui-icon-circle-close" style="float: right; top: 2px; position:absolute;left: 0px;">
155
  </div>
156
  </label>
157
  <?php }
@@ -163,9 +195,21 @@ Class SISAdmin{
163
  * @return void
164
  * @author Nicolas Juen
165
  */
166
- function add_size() { ?>
167
  <input type="button" class="button-secondary action" id="add_size" value="<?php _e( 'Add a new size of thumbnail', 'sis'); ?> " />
168
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
169
  }
170
 
171
  /**
@@ -175,12 +219,12 @@ Class SISAdmin{
175
  * @return void
176
  * @author Nicolas Juen
177
  */
178
- function thumbnail_regenerate() {
179
  // Get the sizes
180
  global $_wp_additional_image_sizes;
181
  ?>
182
- <div>
183
- <div style="display: inline-block;float: left;width: 45%;">
184
  <h4> <?php _e( 'Select which thumbnails you want to rebuild:', 'sis'); ?> </h4>
185
  <table cellspacing="0" class="widefat page fixed">
186
  <thead>
@@ -261,7 +305,7 @@ Class SISAdmin{
261
  <th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
262
  </tr>
263
  </thead>
264
- <tboby>
265
  <?php
266
  // Diplay the post types table
267
  foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $ptype ):
@@ -291,12 +335,12 @@ Class SISAdmin{
291
  </div>
292
 
293
  <div style="clear:both;padding-top:15px">
294
- <div id="regenerate_message" style="display:none"></div>
295
- <div class="progress" style="position:relative;height:25px;">
296
- <div class="progress-percent" style="position:absolute;left:50%;top:50%;width:50px;margin-left:-25px;height:25px;margin-top:-9px;font-weight:bold;text-align:center;"></div>
297
  </div>
298
- <div id="thumb" style="display:none;"><h4><?php _e( 'Last image:', 'sis'); ?></h4><img id="thumb-img" /></div>
299
- <input type="button" onClick="javascript:regenerate();" class="button" name="ajax_thumbnail_rebuild" id="ajax_thumbnail_rebuild" value="<?php _e( 'Regenerate Thumbnails', 'sis' ) ?>" style="margin-top:40px;" />
300
  </div>
301
  <?php
302
  }
@@ -308,7 +352,7 @@ Class SISAdmin{
308
  * @return void
309
  * @author Nicolas Juen
310
  */
311
- function ajax_thumbnail_rebuild_ajax() {
312
  global $wpdb;
313
 
314
  // Get the action
@@ -384,7 +428,7 @@ Class SISAdmin{
384
  * @param string $file Filepath of the Attached image.
385
  * @return mixed Metadata for attachment.
386
  */
387
- function wp_generate_attachment_metadata_custom( $attachment_id, $file, $thumbnails = NULL ) {
388
  $attachment = get_post( $attachment_id );
389
 
390
  $metadata = array();
@@ -439,5 +483,70 @@ Class SISAdmin{
439
 
440
  return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );
441
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
442
  }
443
  ?>
2
  Class SISAdmin{
3
 
4
  // Original sizes
5
+ public $original = array( 'thumbnail', 'medium', 'large' );
6
 
7
+ public function __construct(){
8
  // Init
9
  add_action ( 'admin_menu', array( &$this, 'init' ) );
10
+ add_action ( 'admin_init', array( &$this, 'registerScripts' ), 11 );
11
 
12
  // Add ajax action
13
+ add_action('wp_ajax_ajax_thumbnail_rebuild', array( &$this, 'ajaxThumbnailRebuildAjax' ) );
14
+
15
+ // Add image sizes in the form
16
+ add_filter( 'attachment_fields_to_edit', array( &$this, 'sizesInForm' ), 11, 2 ); // Add our sizes to media forms
17
+
18
+ // Add link in plugins list
19
+ add_filter('plugin_action_links', array( &$this,'addSettingsLink'), 10, 2 );
20
  }
21
 
22
  /**
26
  * @return void
27
  * @author Nicolas Juen
28
  */
29
+ public function registerScripts() {
30
  // Add javascript
31
+ wp_enqueue_script( 'custom_image_size', SIS_URL.'js/custom_sizes.js', array('jquery'), '1.0' );
32
  wp_enqueue_script( 'jquery-ui-progressbar', SIS_URL.'js/jquery-ui-1.8.10.custom.min.js', array(), '1.8.10' );
33
 
34
  // Ad javascript translation
35
+ wp_localize_script( 'custom_image_size', 'custom_image_size', $this->localizeVars() );
36
 
37
  // Add CSS
38
  wp_enqueue_style( 'jquery-ui-regenthumbs', SIS_URL.'jquery-ui/redmond/jquery-ui-1.8.10.custom.css', array(), '1.8.10' );
39
+ wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), '1.0' );
40
  }
41
 
42
  /**
46
  * @return void
47
  * @author Nicolas Juen
48
  */
49
+ public function localizeVars() {
50
  return array(
51
+ 'ajaxUrl' => admin_url( '/admin-ajax.php' ),
52
  'reading' => __( 'Reading attachments...', 'sis' ),
53
  'maximumWidth' => __( 'Maximum width', 'sis' ),
54
  'maximumHeight' => __( 'Maximum height', 'sis' ),
55
  'crop' => __( 'Crop ?', 'sis' ),
56
+ 'of' => __( ' of ', 'sis' ),
57
  'deleteImage' => __( 'Delete', 'sis' ),
58
  'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
59
  'regenerating' => __( 'Regenerating ', 'sis'),
60
  'validate' => __( 'Validate image size name', 'sis' ),
61
+ 'done' => __( 'Done.', 'sis' ),
62
+ 'size' => __( 'Size', 'sis' ),
63
  );
64
  }
65
+
66
+ /**
67
+ * Add a link to the setting option page
68
+ *
69
+ * @access public
70
+ * @param array $links
71
+ * @param string $file
72
+ * @return void
73
+ * @author Nicolas Juen
74
+ */
75
+ public function addSettingsLink( $links, $file ) {
76
+
77
+ if( $file != 'simple-image-sizes/simple_image_sizes.php' )
78
+ return $links;
79
+
80
+ $settings_link = '<a href="'.admin_url('options-media.php').'"> '.__( 'Settings', 'sis' ).' </a>';
81
+ array_unshift($links, $settings_link);
82
+
83
+ return $links;
84
+ }
85
 
86
  /**
87
  * Init for the option page
124
  else // For default sizes set in options
125
  $crop = get_option( "{$s}_crop" );
126
 
127
+ // Add the setting field for this size
128
+ add_settings_field( 'image_size_'.$s.'', __( 'Size ', 'sis' ).$s, array( &$this, 'imageSizes' ), 'media' , 'default', array( 'name' => $s , 'width' => $width , 'height' => $height ) );
129
 
130
  }
131
 
133
  register_setting( 'media', 'custom_image_sizes' );
134
 
135
  // Add the button
136
+ add_settings_field( 'add_size', __( 'Add a new size', 'sis' ), array( &$this, 'addSize' ), 'media' );
137
+
138
+ // Add legend
139
+ add_settings_field( 'add_legend', __( 'Legend of the sizes', 'sis' ), array( &$this, 'addLegend' ), 'media' );
140
 
141
  // Add section for the thumbnail regeneration
142
+ add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'sis' ), array( &$this, 'thumbnailRegenerate' ), 'media' );
143
  }
144
 
145
  /**
150
  * @return void
151
  * @author Nicolas Juen
152
  */
153
+ public function imageSizes( $args ) {
154
  // Get the options
155
  $sizes = (array)get_option( 'custom_image_sizes' );
156
 
181
  <?php _e( 'Crop ?', 'sis'); ?>
182
  <input type='checkbox' <?php checked( $crop, 1 ) ?> name="<?php echo 'custom_image_sizes['.$args['name'].'][c]' ?>" value="1" />
183
  </label>
184
+ <label class="ui-state-default ui-corner-all delete_size">
 
185
  <?php _e( 'Delete', 'sis'); ?>
186
+ <div class="ui-icon ui-icon-circle-close delete_size_icon">
187
  </div>
188
  </label>
189
  <?php }
195
  * @return void
196
  * @author Nicolas Juen
197
  */
198
+ public function addSize() { ?>
199
  <input type="button" class="button-secondary action" id="add_size" value="<?php _e( 'Add a new size of thumbnail', 'sis'); ?> " />
200
  <?php
201
+ }
202
+
203
+ /**
204
+ * Add the legend fo the colors
205
+ *
206
+ * @access public
207
+ * @return void
208
+ * @author Nicolas Juen
209
+ */
210
+ public function addLegend() { ?>
211
+ <?php _e('The images created on your theme are <span style="color:orange">orange</span> and your custom size are <span style="color:green"> green </span>.', 'sis'); ?>
212
+ <?php
213
  }
214
 
215
  /**
219
  * @return void
220
  * @author Nicolas Juen
221
  */
222
+ public function thumbnailRegenerate() {
223
  // Get the sizes
224
  global $_wp_additional_image_sizes;
225
  ?>
226
+ <div id="sis-regen">
227
+ <div class="wrapper" style="">
228
  <h4> <?php _e( 'Select which thumbnails you want to rebuild:', 'sis'); ?> </h4>
229
  <table cellspacing="0" class="widefat page fixed">
230
  <thead>
305
  <th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
306
  </tr>
307
  </thead>
308
+ <tbody>
309
  <?php
310
  // Diplay the post types table
311
  foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $ptype ):
335
  </div>
336
 
337
  <div style="clear:both;padding-top:15px">
338
+ <div id="regenerate_message"></div>
339
+ <div class="progress">
340
+ <div class="progress-percent" ></div>
341
  </div>
342
+ <div id="thumb"><h4><?php _e( 'Last image:', 'sis'); ?></h4><img id="thumb-img" /></div>
343
+ <input type="button" onClick="javascript:regenerate();" class="button" name="ajax_thumbnail_rebuild" id="ajax_thumbnail_rebuild" value="<?php _e( 'Regenerate Thumbnails', 'sis' ) ?>" />
344
  </div>
345
  <?php
346
  }
352
  * @return void
353
  * @author Nicolas Juen
354
  */
355
+ public function ajaxThumbnailRebuildAjax() {
356
  global $wpdb;
357
 
358
  // Get the action
428
  * @param string $file Filepath of the Attached image.
429
  * @return mixed Metadata for attachment.
430
  */
431
+ public function wp_generate_attachment_metadata_custom( $attachment_id, $file, $thumbnails = NULL ) {
432
  $attachment = get_post( $attachment_id );
433
 
434
  $metadata = array();
483
 
484
  return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );
485
  }
486
+
487
+ /**
488
+ * Add the custom sizes to the image sizes in article edition
489
+ *
490
+ * @access public
491
+ * @param array $form_fields
492
+ * @param object $post
493
+ * @return void
494
+ * @author Nicolas Juen
495
+ * @author Additional Image Sizes (zui)
496
+ */
497
+ public function sizesInForm( $form_fields, $post ) {
498
+ // Protect from being view in Media editor where there are no sizes
499
+ if ( isset($form_fields['image-size']) ) {
500
+ $out = NULL;
501
+ $size_names = array();
502
+ $sizes_custom = get_option( 'custom_image_sizes' );
503
+ if (is_array($sizes_custom)) {
504
+ foreach($sizes_custom as $key => $value) {
505
+ $size_names[$key] = $key;
506
+ }
507
+ }
508
+ foreach ( $size_names as $size => $label ) {
509
+ $downsize = image_downsize($post->ID, $size);
510
+
511
+ // is this size selectable?
512
+ $enabled = ( $downsize[3] || 'full' == $size );
513
+ $css_id = "image-size-{$size}-{$post->ID}";
514
+
515
+ // We must do a clumsy search of the existing html to determine is something has been checked yet
516
+ if ( FALSE === strpos('checked="checked"', $form_fields['image-size']['html']) ) {
517
+
518
+ if ( empty($check) )
519
+ $check = get_user_setting('imgsize'); // See if they checked a custom size last time
520
+
521
+ $checked = '';
522
+
523
+ // if this size is the default but that's not available, don't select it
524
+ if ( $size == $check || str_replace(" ", "", $size) == $check ) {
525
+ if ( $enabled )
526
+ $checked = " checked='checked'";
527
+ else
528
+ $check = '';
529
+ } elseif ( !$check && $enabled && 'thumbnail' != $size ) {
530
+ // if $check is not enabled, default to the first available size that's bigger than a thumbnail
531
+ $check = $size;
532
+ $checked = " checked='checked'";
533
+ }
534
+ }
535
+ $html = "<div class='image-size-item' style='min-height: 50px; margin-top: 18px;'><input type='radio' " . disabled( $enabled, false, false ) . "name='attachments[$post->ID][image-size]' id='{$css_id}' value='{$size}'$checked />";
536
+
537
+ $html .= "<label for='{$css_id}'>$label</label>";
538
+ // only show the dimensions if that choice is available
539
+ if ( $enabled )
540
+ $html .= " <label for='{$css_id}' class='help'>" . sprintf( "(%d&nbsp;&times;&nbsp;%d)", $downsize[1], $downsize[2] ). "</label>";
541
+
542
+ $html .= '</div>';
543
+
544
+ $out .= $html;
545
+ }
546
+ $form_fields['image-size']['html'] .= $out;
547
+ } // End protect from Media editor
548
+
549
+ return $form_fields;
550
+ }
551
  }
552
  ?>
js/custom_sizes.js CHANGED
@@ -3,8 +3,8 @@ jQuery(function() {
3
  jQuery( '#add_size' ).click( addSize );
4
  jQuery( '.add_size_name' ).live( 'click', registerSize );
5
  jQuery( '.delete_size' ).live( 'click', deleteSize );
6
- jQuery( 'span.custom_size' ).parent().parent().children('th').css( { 'color' : 'green' } );
7
- jQuery( 'span.theme_size' ).parent().parent().children('th').css( { 'color' : 'orange' } );
8
  });
9
 
10
  function addSize() {
@@ -22,11 +22,11 @@ function addSize() {
22
  }
23
 
24
  function registerSize() {
25
- name = jQuery( this ).parent().parent().children( 'th' ).find( 'input' ).val();
26
- id = jQuery( this ).parent().parent().children( 'th' ).find( 'input' ).attr( 'id' );
27
 
28
  output = '<th scope="row">';
29
- output += 'Size '+name;
30
  output += '</th>';
31
  output += '<td>';
32
  output += '<input name="custom_image_sizes['+name+'][custom]" type="hidden" id="custom_image_sizes['+name+'][custom]" value="1" />';
@@ -106,10 +106,10 @@ function regenerate() {
106
  jQuery( "#ajax_thumbnail_rebuild" ).removeAttr( "disabled" );
107
  jQuery( ".progress, #thumb" ).hide();
108
 
109
- setMessage("Done.");
110
  return;
111
  }
112
- setMessage( custom_image_size.regenerating + ( curr+1 ) + " of " + list.length + " (" + list[curr].title + ")...");
113
 
114
  jQuery.ajax({
115
  url: custom_image_size.ajaxUrl,
3
  jQuery( '#add_size' ).click( addSize );
4
  jQuery( '.add_size_name' ).live( 'click', registerSize );
5
  jQuery( '.delete_size' ).live( 'click', deleteSize );
6
+ jQuery( 'span.custom_size' ).closest('tr').children('th').css( { 'color' : 'green' } );
7
+ jQuery( 'span.theme_size' ).closest('tr').children('th').css( { 'color' : 'orange' } );
8
  });
9
 
10
  function addSize() {
22
  }
23
 
24
  function registerSize() {
25
+ name = jQuery( this ).closest('tr').children( 'th' ).find( 'input' ).val();
26
+ id = jQuery( this ).closest('tr').children( 'th' ).find( 'input' ).attr( 'id' );
27
 
28
  output = '<th scope="row">';
29
+ output += custom_image_size.size+' '+name;
30
  output += '</th>';
31
  output += '<td>';
32
  output += '<input name="custom_image_sizes['+name+'][custom]" type="hidden" id="custom_image_sizes['+name+'][custom]" value="1" />';
106
  jQuery( "#ajax_thumbnail_rebuild" ).removeAttr( "disabled" );
107
  jQuery( ".progress, #thumb" ).hide();
108
 
109
+ setMessage(custom_image_size.done);
110
  return;
111
  }
112
+ setMessage( custom_image_size.regenerating + ( curr+1 ) + custom_image_size.of + list.length + " (" + list[curr].title + ")...");
113
 
114
  jQuery.ajax({
115
  url: custom_image_size.ajaxUrl,
js/custom_sizes.min.js CHANGED
@@ -1,12 +1 @@
1
- var i=0;jQuery(function(){jQuery('#add_size').click(addSize);jQuery('.add_size_name').live('click',registerSize);jQuery('.delete_size').live('click',deleteSize);jQuery('span.custom_size').parent().parent().children('th').css({'color':'green'});jQuery('span.theme_size').parent().parent().children('th').css({'color':'orange'});});function addSize(){row='<tr valign="top" class="new_size_'+i+'">';row+='<th scope="row">';row+='<input type="text" value="thumbnail-name" id="new_size_'+i+'" />';row+='</th>';row+='<td>';row+='<input type="button" class="button-secondary action add_size_name" id="validate_'+i+'" value="'+custom_image_size.validate+'" />';row+='</td>';row+='</tr>';jQuery(this).parent().parent().before(row);i++;}
2
- function registerSize(){name=jQuery(this).parent().parent().children('th').find('input').val();id=jQuery(this).parent().parent().children('th').find('input').attr('id');output='<th scope="row">';output+='Size '+name;output+='</th>';output+='<td>';output+='<input name="custom_image_sizes['+name+'][custom]" type="hidden" id="custom_image_sizes['+name+'][custom]" value="1" />';output+='<label for="custom_image_sizes['+name+'][w]">';output+=custom_image_size.maximumWidth+' <input name="custom_image_sizes['+name+'][w] " type="text" id="custom_image_sizes['+name+'][w]" value="" class="small-text" />'
3
- output+='</label>';output+='<label for="custom_image_sizes['+name+'][h]">';output+=custom_image_size.maximumHeight+' <input name="custom_image_sizes['+name+'][h]" type="text" id="custom_image_sizes['+name+'][h]" value="" class="small-text" />';output+='</label>';output+='<label class="crop"> '
4
- output+=custom_image_size.crop+' <input type="checkbox" name="custom_image_sizes['+name+'][c]" value="1" /> </label>';output+='<label class="ui-state-default ui-corner-all delete_size" style="width: 90px; padding: 0px; display:inline-block; position:relative; text-indent:16px;text-align:center">';output+=custom_image_size.deleteImage;output+='<div class="ui-icon ui-icon-circle-close" style="float: right; top: 2px; position:absolute;left: 0px;">';output+='</div>';output+='</label>';output+='</td>';jQuery('#'+id).parent().parent().html(output);}
5
- function deleteSize(){jQuery(this).parent().parent().remove();}
6
- function setMessage(msg){jQuery("#regenerate_message").html(msg).addClass('updated').addClass('fade').show();jQuery(".progress").progressbar();}
7
- function regenerate(){jQuery("#ajax_thumbnail_rebuild").attr("disabled",true);setMessage("<p>"+custom_image_size.reading+"</p>");inputs=jQuery('input.thumbnails:checked');var thumbnails='';if(inputs.length!=jQuery('input.thumbnails[type=checkbox]').length){inputs.each(function(){thumbnails+='&thumbnails[]='+jQuery(this).val();});}
8
- inputs=jQuery('input.post_types:checked');var post_types='';if(inputs.length!=jQuery('input.post_types[type=checkbox]').length){inputs.each(function(){post_types+='&post_types[]='+jQuery(this).val();});}
9
- jQuery.ajax({url:custom_image_size.ajaxUrl,type:"POST",data:"action=ajax_thumbnail_rebuild&do=getlist"+post_types,success:function(result){var list=eval(result);var curr=0;function regenItem(){if(!list){jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");jQuery(".progress, #thumb").hide();setMessage(custom_image_size.noMedia);return false;}
10
- percent=(curr/list.length)*100;jQuery(".progress").progressbar("value",percent);jQuery(".progress-percent").html(Math.round(percent)+"%");if(curr>=list.length){jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");jQuery(".progress, #thumb").hide();setMessage("Done.");return;}
11
- setMessage(custom_image_size.regenerating+(curr+1)+" of "+list.length+" ("+list[curr].title+")...");jQuery.ajax({url:custom_image_size.ajaxUrl,type:"POST",data:"action=ajax_thumbnail_rebuild&do=regen&id="+list[curr].id+thumbnails,success:function(result){jQuery("#thumb").show();jQuery("#thumb-img").attr("src",result);curr=curr+1;regenItem();}});}
12
- regenItem();},error:function(request,status,error){setMessage("Error "+request.status);}});}
1
+ var i=0;jQuery(function(){jQuery('#add_size').click(addSize);jQuery('.add_size_name').live('click',registerSize);jQuery('.delete_size').live('click',deleteSize);jQuery('span.custom_size').closest('tr').children('th').css({'color':'green'});jQuery('span.theme_size').closest('tr').children('th').css({'color':'orange'})});function addSize(){row='<tr valign="top" class="new_size_'+i+'">';row+='<th scope="row">';row+='<input type="text" value="thumbnail-name" id="new_size_'+i+'" />';row+='</th>';row+='<td>';row+='<input type="button" class="button-secondary action add_size_name" id="validate_'+i+'" value="'+custom_image_size.validate+'" />';row+='</td>';row+='</tr>';jQuery(this).parent().parent().before(row);i++}function registerSize(){name=jQuery(this).closest('tr').children('th').find('input').val();id=jQuery(this).closest('tr').children('th').find('input').attr('id');output='<th scope="row">';output+=custom_image_size.size+' '+name;output+='</th>';output+='<td>';output+='<input name="custom_image_sizes['+name+'][custom]" type="hidden" id="custom_image_sizes['+name+'][custom]" value="1" />';output+='<label for="custom_image_sizes['+name+'][w]">';output+=custom_image_size.maximumWidth+' <input name="custom_image_sizes['+name+'][w] " type="text" id="custom_image_sizes['+name+'][w]" value="" class="small-text" />'output+='</label>';output+='<label for="custom_image_sizes['+name+'][h]">';output+=custom_image_size.maximumHeight+' <input name="custom_image_sizes['+name+'][h]" type="text" id="custom_image_sizes['+name+'][h]" value="" class="small-text" />';output+='</label>';output+='<label class="crop"> 'output+=custom_image_size.crop+' <input type="checkbox" name="custom_image_sizes['+name+'][c]" value="1" /> </label>';output+='<label class="ui-state-default ui-corner-all delete_size" style="width: 90px; padding: 0px; display:inline-block; position:relative; text-indent:16px;text-align:center">';output+=custom_image_size.deleteImage;output+='<div class="ui-icon ui-icon-circle-close" style="float: right; top: 2px; position:absolute;left: 0px;">';output+='</div>';output+='</label>';output+='</td>';jQuery('#'+id).parent().parent().html(output)}function deleteSize(){jQuery(this).parent().parent().remove()}function setMessage(msg){jQuery("#regenerate_message").html(msg).addClass('updated').addClass('fade').show();jQuery(".progress").progressbar()}function regenerate(){jQuery("#ajax_thumbnail_rebuild").attr("disabled",true);setMessage("<p>"+custom_image_size.reading+"</p>");inputs=jQuery('input.thumbnails:checked');var thumbnails='';if(inputs.length!=jQuery('input.thumbnails[type=checkbox]').length){inputs.each(function(){thumbnails+='&thumbnails[]='+jQuery(this).val()})}inputs=jQuery('input.post_types:checked');var post_types='';if(inputs.length!=jQuery('input.post_types[type=checkbox]').length){inputs.each(function(){post_types+='&post_types[]='+jQuery(this).val()})}jQuery.ajax({url:custom_image_size.ajaxUrl,type:"POST",data:"action=ajax_thumbnail_rebuild&do=getlist"+post_types,success:function(result){var list=eval(result);var curr=0;function regenItem(){if(!list){jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");jQuery(".progress, #thumb").hide();setMessage(custom_image_size.noMedia);return false}percent=(curr/list.length)*100;jQuery(".progress").progressbar("value",percent);jQuery(".progress-percent").html(Math.round(percent)+"%");if(curr>=list.length){jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");jQuery(".progress, #thumb").hide();setMessage(custom_image_size.done);return}setMessage(custom_image_size.regenerating+(curr+1)+custom_image_size.of+list.length+" ("+list[curr].title+")...");jQuery.ajax({url:custom_image_size.ajaxUrl,type:"POST",data:"action=ajax_thumbnail_rebuild&do=regen&id="+list[curr].id+thumbnails,success:function(result){jQuery("#thumb").show();jQuery("#thumb-img").attr("src",result);curr=curr+1;regenItem()}})}regenItem()},error:function(request,status,error){setMessage("Error "+request.status)}})}
 
 
 
 
 
 
 
 
 
 
 
languages/sis-fr_FR.mo CHANGED
Binary file
languages/sis-fr_FR.po CHANGED
@@ -3,118 +3,143 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Simple image sizes\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-image-sizes\n"
7
- "POT-Creation-Date: 2011-03-03 09:27:12+00:00\n"
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2011-03-03 10:40+0100\n"
12
- "Last-Translator: Nicolas <njuen@beapi.fr>\n"
13
- "Language-Team: Beapi <njuen@beapi.fr>\n"
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-Country: FRANCE\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
- "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-Basepath: ../\n"
 
19
 
20
- #: inc/class.admin.php:45
21
  msgid "Reading attachments..."
22
  msgstr "Chargement des médias..."
23
 
24
- #: inc/class.admin.php:46
25
- #: inc/class.admin.php:137
26
  msgid "Maximum width"
27
  msgstr "Largeur maximum"
28
 
29
- #: inc/class.admin.php:47
30
- #: inc/class.admin.php:142
31
  msgid "Maximum height"
32
  msgstr "Hauteur maximum"
33
 
34
- #: inc/class.admin.php:48
35
- #: inc/class.admin.php:148
36
- #: inc/class.admin.php:192
37
- #: inc/class.admin.php:251
38
  msgid "Crop ?"
39
- msgstr "Crop ?"
40
 
41
- #: inc/class.admin.php:49
42
- #: inc/class.admin.php:153
 
 
 
 
43
  msgid "Delete"
44
  msgstr "Supprimer"
45
 
46
- #: inc/class.admin.php:50
47
  msgid "No media in your site to regenerate !"
48
  msgstr "Pas de médias à regénérer !"
49
 
50
- #: inc/class.admin.php:51
51
  msgid "Regenerating "
52
- msgstr "Regénération"
53
 
54
- #: inc/class.admin.php:52
55
  msgid "Validate image size name"
56
  msgstr "Valider le nom de la taille d'image"
57
 
58
- #: inc/class.admin.php:98
 
 
 
 
 
 
 
 
59
  msgid "Size "
60
- msgstr "Taille"
61
 
62
- #: inc/class.admin.php:109
 
 
 
 
 
 
 
 
63
  msgid "Thumbnail regeneration"
64
  msgstr "Régénération des vignettes"
65
 
66
- #: inc/class.admin.php:130
67
  msgid "Custom size"
68
  msgstr "Taille personnelle"
69
 
70
- #: inc/class.admin.php:133
71
  msgid "Theme size"
72
  msgstr "Taille de thème"
73
 
74
- #: inc/class.admin.php:167
75
  msgid "Add a new size of thumbnail"
76
  msgstr "Ajouter une nouvelle taille de vignette"
77
 
78
- #: inc/class.admin.php:184
 
 
 
 
79
  msgid "Select which thumbnails you want to rebuild:"
80
  msgstr "Sélectionnez les tailles de vignettes à régénérer"
81
 
82
- #: inc/class.admin.php:188
83
- #: inc/class.admin.php:247
84
- #: inc/class.admin.php:260
85
- #: inc/class.admin.php:285
86
  msgid "Resize ?"
87
- msgstr "Retailler ?"
88
 
89
- #: inc/class.admin.php:189
90
- #: inc/class.admin.php:248
91
  msgid "Size name"
92
  msgstr "Nom de la taille"
93
 
94
- #: inc/class.admin.php:190
95
- #: inc/class.admin.php:249
96
  msgid "Width"
97
  msgstr "Largeur"
98
 
99
- #: inc/class.admin.php:191
100
- #: inc/class.admin.php:250
101
  msgid "Height"
102
  msgstr "Hauteur"
103
 
104
- #: inc/class.admin.php:256
105
  msgid "Select which post type source thumbnails you want to rebuild:"
106
- msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer:"
107
 
108
- #: inc/class.admin.php:261
109
- #: inc/class.admin.php:286
110
  msgid "Post type"
111
  msgstr "Type de contenu"
112
 
113
- #: inc/class.admin.php:298
114
  msgid "Last image:"
115
- msgstr "Dernière image:"
116
 
117
- #: inc/class.admin.php:299
118
  msgid "Regenerate Thumbnails"
119
  msgstr "Régénérer les vignettes"
120
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Simple image sizes\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: 2011-03-16 23:32+0100\n"
8
+ "PO-Revision-Date: 2011-03-16 23:32+0100\n"
9
+ "Last-Translator: Nicolas JUEN <njuen@beapi.fr>\n"
10
+ "Language-Team: Beapi <njuen@beapi.fr>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
 
 
 
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-Country: FRANCE\n"
16
  "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__\n"
18
  "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: inc/class.admin.php:50
22
  msgid "Reading attachments..."
23
  msgstr "Chargement des médias..."
24
 
25
+ #: inc/class.admin.php:51
26
+ #: inc/class.admin.php:148
27
  msgid "Maximum width"
28
  msgstr "Largeur maximum"
29
 
30
+ #: inc/class.admin.php:52
31
+ #: inc/class.admin.php:153
32
  msgid "Maximum height"
33
  msgstr "Hauteur maximum"
34
 
35
+ #: inc/class.admin.php:53
36
+ #: inc/class.admin.php:159
37
+ #: inc/class.admin.php:214
38
+ #: inc/class.admin.php:273
39
  msgid "Crop ?"
40
+ msgstr "Rogner ?"
41
 
42
+ #: inc/class.admin.php:54
43
+ msgid " of "
44
+ msgstr " de "
45
+
46
+ #: inc/class.admin.php:55
47
+ #: inc/class.admin.php:163
48
  msgid "Delete"
49
  msgstr "Supprimer"
50
 
51
+ #: inc/class.admin.php:56
52
  msgid "No media in your site to regenerate !"
53
  msgstr "Pas de médias à regénérer !"
54
 
55
+ #: inc/class.admin.php:57
56
  msgid "Regenerating "
57
+ msgstr "Regénération "
58
 
59
+ #: inc/class.admin.php:58
60
  msgid "Validate image size name"
61
  msgstr "Valider le nom de la taille d'image"
62
 
63
+ #: inc/class.admin.php:59
64
+ msgid "Done."
65
+ msgstr "Fini."
66
+
67
+ #: inc/class.admin.php:60
68
+ msgid "Size"
69
+ msgstr "Taille "
70
+
71
+ #: inc/class.admin.php:106
72
  msgid "Size "
73
+ msgstr "Taille "
74
 
75
+ #: inc/class.admin.php:114
76
+ msgid "Add a new size"
77
+ msgstr "Ajouter une nouvelle taille"
78
+
79
+ #: inc/class.admin.php:117
80
+ msgid "Legend of the sizes"
81
+ msgstr "Légende des tailles"
82
+
83
+ #: inc/class.admin.php:120
84
  msgid "Thumbnail regeneration"
85
  msgstr "Régénération des vignettes"
86
 
87
+ #: inc/class.admin.php:141
88
  msgid "Custom size"
89
  msgstr "Taille personnelle"
90
 
91
+ #: inc/class.admin.php:144
92
  msgid "Theme size"
93
  msgstr "Taille de thème"
94
 
95
+ #: inc/class.admin.php:177
96
  msgid "Add a new size of thumbnail"
97
  msgstr "Ajouter une nouvelle taille de vignette"
98
 
99
+ #: inc/class.admin.php:189
100
+ msgid "The images created on your theme are <span style=\"color:orange\">orange</span> and your custom size are <span style=\"color:green\"> green </span>."
101
+ msgstr "Les tailles d'images crées par votre thème sont en <span style=\"color:orange\">orange</span> et vos tailles personnalisés sont en <span style=\"color:green\"> vert </span>."
102
+
103
+ #: inc/class.admin.php:206
104
  msgid "Select which thumbnails you want to rebuild:"
105
  msgstr "Sélectionnez les tailles de vignettes à régénérer"
106
 
107
+ #: inc/class.admin.php:210
108
+ #: inc/class.admin.php:269
109
+ #: inc/class.admin.php:282
110
+ #: inc/class.admin.php:307
111
  msgid "Resize ?"
112
+ msgstr "Regénérer ?"
113
 
114
+ #: inc/class.admin.php:211
115
+ #: inc/class.admin.php:270
116
  msgid "Size name"
117
  msgstr "Nom de la taille"
118
 
119
+ #: inc/class.admin.php:212
120
+ #: inc/class.admin.php:271
121
  msgid "Width"
122
  msgstr "Largeur"
123
 
124
+ #: inc/class.admin.php:213
125
+ #: inc/class.admin.php:272
126
  msgid "Height"
127
  msgstr "Hauteur"
128
 
129
+ #: inc/class.admin.php:278
130
  msgid "Select which post type source thumbnails you want to rebuild:"
131
+ msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer : "
132
 
133
+ #: inc/class.admin.php:283
134
+ #: inc/class.admin.php:308
135
  msgid "Post type"
136
  msgstr "Type de contenu"
137
 
138
+ #: inc/class.admin.php:320
139
  msgid "Last image:"
140
+ msgstr "Dernière image :"
141
 
142
+ #: inc/class.admin.php:321
143
  msgid "Regenerate Thumbnails"
144
  msgstr "Régénérer les vignettes"
145
 
languages/sis.pot CHANGED
@@ -2,102 +2,144 @@
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: \n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/simple-image-sizes\n"
7
- "POT-Creation-Date: 2011-03-03 09:27:12+00:00\n"
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
- "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
14
 
15
- #: inc/class.admin.php:45
16
  msgid "Reading attachments..."
17
  msgstr ""
18
 
19
- #: inc/class.admin.php:46 inc/class.admin.php:137
 
20
  msgid "Maximum width"
21
  msgstr ""
22
 
23
- #: inc/class.admin.php:47 inc/class.admin.php:142
 
24
  msgid "Maximum height"
25
  msgstr ""
26
 
27
- #: inc/class.admin.php:48 inc/class.admin.php:148 inc/class.admin.php:192
28
- #: inc/class.admin.php:251
 
 
29
  msgid "Crop ?"
30
  msgstr ""
31
 
32
- #: inc/class.admin.php:49 inc/class.admin.php:153
 
 
 
 
 
33
  msgid "Delete"
34
  msgstr ""
35
 
36
- #: inc/class.admin.php:50
37
  msgid "No media in your site to regenerate !"
38
  msgstr ""
39
 
40
- #: inc/class.admin.php:51
41
  msgid "Regenerating "
42
  msgstr ""
43
 
44
- #: inc/class.admin.php:52
45
  msgid "Validate image size name"
46
  msgstr ""
47
 
48
- #: inc/class.admin.php:98
 
 
 
 
 
 
 
 
49
  msgid "Size "
50
  msgstr ""
51
 
52
- #: inc/class.admin.php:109
 
 
 
 
 
 
 
 
53
  msgid "Thumbnail regeneration"
54
  msgstr ""
55
 
56
- #: inc/class.admin.php:130
57
  msgid "Custom size"
58
  msgstr ""
59
 
60
- #: inc/class.admin.php:133
61
  msgid "Theme size"
62
  msgstr ""
63
 
64
- #: inc/class.admin.php:167
65
  msgid "Add a new size of thumbnail"
66
  msgstr ""
67
 
68
- #: inc/class.admin.php:184
 
 
 
 
69
  msgid "Select which thumbnails you want to rebuild:"
70
  msgstr ""
71
 
72
- #: inc/class.admin.php:188 inc/class.admin.php:247 inc/class.admin.php:260
73
- #: inc/class.admin.php:285
 
 
74
  msgid "Resize ?"
75
  msgstr ""
76
 
77
- #: inc/class.admin.php:189 inc/class.admin.php:248
 
78
  msgid "Size name"
79
  msgstr ""
80
 
81
- #: inc/class.admin.php:190 inc/class.admin.php:249
 
82
  msgid "Width"
83
  msgstr ""
84
 
85
- #: inc/class.admin.php:191 inc/class.admin.php:250
 
86
  msgid "Height"
87
  msgstr ""
88
 
89
- #: inc/class.admin.php:256
90
  msgid "Select which post type source thumbnails you want to rebuild:"
91
  msgstr ""
92
 
93
- #: inc/class.admin.php:261 inc/class.admin.php:286
 
94
  msgid "Post type"
95
  msgstr ""
96
 
97
- #: inc/class.admin.php:298
98
  msgid "Last image:"
99
  msgstr ""
100
 
101
- #: inc/class.admin.php:299
102
  msgid "Regenerate Thumbnails"
103
  msgstr ""
 
2
  # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Simple image sizes\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: 2011-03-16 23:32+0100\n"
8
+ "PO-Revision-Date: 2011-03-16 23:46+0100\n"
9
+ "Last-Translator: Nicolas JUEN <njuen@beapi.fr>\n"
10
+ "Language-Team: Beapi <njuen@beapi.fr>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-Language: French\n"
15
+ "X-Poedit-Country: FRANCE\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
 
21
+ #: inc/class.admin.php:50
22
  msgid "Reading attachments..."
23
  msgstr ""
24
 
25
+ #: inc/class.admin.php:51
26
+ #: inc/class.admin.php:148
27
  msgid "Maximum width"
28
  msgstr ""
29
 
30
+ #: inc/class.admin.php:52
31
+ #: inc/class.admin.php:153
32
  msgid "Maximum height"
33
  msgstr ""
34
 
35
+ #: inc/class.admin.php:53
36
+ #: inc/class.admin.php:159
37
+ #: inc/class.admin.php:214
38
+ #: inc/class.admin.php:273
39
  msgid "Crop ?"
40
  msgstr ""
41
 
42
+ #: inc/class.admin.php:54
43
+ msgid " of "
44
+ msgstr ""
45
+
46
+ #: inc/class.admin.php:55
47
+ #: inc/class.admin.php:163
48
  msgid "Delete"
49
  msgstr ""
50
 
51
+ #: inc/class.admin.php:56
52
  msgid "No media in your site to regenerate !"
53
  msgstr ""
54
 
55
+ #: inc/class.admin.php:57
56
  msgid "Regenerating "
57
  msgstr ""
58
 
59
+ #: inc/class.admin.php:58
60
  msgid "Validate image size name"
61
  msgstr ""
62
 
63
+ #: inc/class.admin.php:59
64
+ msgid "Done."
65
+ msgstr ""
66
+
67
+ #: inc/class.admin.php:60
68
+ msgid "Size"
69
+ msgstr ""
70
+
71
+ #: inc/class.admin.php:106
72
  msgid "Size "
73
  msgstr ""
74
 
75
+ #: inc/class.admin.php:114
76
+ msgid "Add a new size"
77
+ msgstr ""
78
+
79
+ #: inc/class.admin.php:117
80
+ msgid "Legend of the sizes"
81
+ msgstr ""
82
+
83
+ #: inc/class.admin.php:120
84
  msgid "Thumbnail regeneration"
85
  msgstr ""
86
 
87
+ #: inc/class.admin.php:141
88
  msgid "Custom size"
89
  msgstr ""
90
 
91
+ #: inc/class.admin.php:144
92
  msgid "Theme size"
93
  msgstr ""
94
 
95
+ #: inc/class.admin.php:177
96
  msgid "Add a new size of thumbnail"
97
  msgstr ""
98
 
99
+ #: inc/class.admin.php:189
100
+ msgid "The images created on your theme are <span style=\"color:orange\">orange</span> and your custom size are <span style=\"color:green\"> green </span>."
101
+ msgstr ""
102
+
103
+ #: inc/class.admin.php:206
104
  msgid "Select which thumbnails you want to rebuild:"
105
  msgstr ""
106
 
107
+ #: inc/class.admin.php:210
108
+ #: inc/class.admin.php:269
109
+ #: inc/class.admin.php:282
110
+ #: inc/class.admin.php:307
111
  msgid "Resize ?"
112
  msgstr ""
113
 
114
+ #: inc/class.admin.php:211
115
+ #: inc/class.admin.php:270
116
  msgid "Size name"
117
  msgstr ""
118
 
119
+ #: inc/class.admin.php:212
120
+ #: inc/class.admin.php:271
121
  msgid "Width"
122
  msgstr ""
123
 
124
+ #: inc/class.admin.php:213
125
+ #: inc/class.admin.php:272
126
  msgid "Height"
127
  msgstr ""
128
 
129
+ #: inc/class.admin.php:278
130
  msgid "Select which post type source thumbnails you want to rebuild:"
131
  msgstr ""
132
 
133
+ #: inc/class.admin.php:283
134
+ #: inc/class.admin.php:308
135
  msgid "Post type"
136
  msgstr ""
137
 
138
+ #: inc/class.admin.php:320
139
  msgid "Last image:"
140
  msgstr ""
141
 
142
+ #: inc/class.admin.php:321
143
  msgid "Regenerate Thumbnails"
144
  msgstr ""
145
+
readme.txt CHANGED
@@ -4,12 +4,12 @@ Donate link: http://www.beapi.fr/donate/
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate,
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
- Stable tag: 1.0.2
8
 
9
  == Description ==
10
 
11
  This plugin allow create custom image sizes for your site. Override your theme sizes directly on the media option page.
12
- Regenerate your sizes by size and post type too !
13
 
14
  == Installation ==
15
 
@@ -23,6 +23,15 @@ Regenerate your sizes by size and post type too !
23
  2. Regenerating
24
 
25
  == Changelog ==
 
 
 
 
 
 
 
 
 
26
  * 1.0.2
27
  * Fix the plugin license
28
  * 1.0.1
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate,
5
  Requires at least: 3.0
6
  Tested up to: 3.1
7
+ Stable tag: 1.0.3
8
 
9
  == Description ==
10
 
11
  This plugin allow create custom image sizes for your site. Override your theme sizes directly on the media option page.
12
+ You can regenerate all the sizes you have just created and choose wich one you wanted to regenerate.
13
 
14
  == Installation ==
15
 
23
  2. Regenerating
24
 
25
  == Changelog ==
26
+ * 1.0.3
27
+ * Fix the plugin language
28
+ * Add some translations
29
+ * Externalise some css
30
+ * Add sizes in the image adding to an article
31
+ * Add setting link in the plugins list
32
+ * Use admin_url instead of home_url
33
+ * Add legend for colors
34
+ * Some code refactoring
35
  * 1.0.2
36
  * Fix the plugin license
37
  * 1.0.1
simple_image_sizes.php CHANGED
@@ -2,8 +2,8 @@
2
  /*
3
  Plugin Name: Simple Image Size
4
  Plugin URI: http://wordpress.org/extend/plugins/simple-image-sizes/
5
- Description: Add an option in media setting page for images sizes
6
- Version: 1.0.2
7
  Author: Rahe
8
  Author URI: http://www.beapi.fr
9
  Text Domain: sis
2
  /*
3
  Plugin Name: Simple Image Size
4
  Plugin URI: http://wordpress.org/extend/plugins/simple-image-sizes/
5
+ Description: Add options in media setting page for images sizes
6
+ Version: 1.0.3
7
  Author: Rahe
8
  Author URI: http://www.beapi.fr
9
  Text Domain: sis