Version Description
Download this release
Release Info
Developer | Rahe |
Plugin | Simple Image Sizes |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- css/sis-style.css +6 -6
- inc/class.admin.php +78 -19
- js/custom_sizes.js +134 -114
- js/custom_sizes.min.js +1 -1
- languages/sis-fr_FR.mo +0 -0
- languages/sis-fr_FR.po +64 -44
- readme.txt +8 -2
- simple_image_sizes.php +1 -1
css/sis-style.css
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
left: 0px;
|
16 |
}
|
17 |
|
18 |
-
|
19 |
position:absolute;
|
20 |
left:50%;
|
21 |
top:50%;
|
@@ -27,25 +27,25 @@
|
|
27 |
text-align:center;
|
28 |
}
|
29 |
|
30 |
-
|
31 |
display: inline-block;
|
32 |
float: left;
|
33 |
width: 45%;
|
34 |
}
|
35 |
|
36 |
-
#
|
37 |
display:none;
|
38 |
}
|
39 |
|
40 |
-
|
41 |
position:relative;
|
42 |
height:25px;
|
43 |
}
|
44 |
|
45 |
-
#
|
46 |
display:none;
|
47 |
}
|
48 |
|
49 |
-
#
|
50 |
margin-top:40px;
|
51 |
}
|
15 |
left: 0px;
|
16 |
}
|
17 |
|
18 |
+
.progress .progress-percent {
|
19 |
position:absolute;
|
20 |
left:50%;
|
21 |
top:50%;
|
27 |
text-align:center;
|
28 |
}
|
29 |
|
30 |
+
.wrapper {
|
31 |
display: inline-block;
|
32 |
float: left;
|
33 |
width: 45%;
|
34 |
}
|
35 |
|
36 |
+
#regenerate_message {
|
37 |
display:none;
|
38 |
}
|
39 |
|
40 |
+
.progress {
|
41 |
position:relative;
|
42 |
height:25px;
|
43 |
}
|
44 |
|
45 |
+
#thumb {
|
46 |
display:none;
|
47 |
}
|
48 |
|
49 |
+
#ajax_thumbnail_rebuild {
|
50 |
margin-top:40px;
|
51 |
}
|
inc/class.admin.php
CHANGED
@@ -7,10 +7,11 @@ Class SISAdmin{
|
|
7 |
public function __construct(){
|
8 |
// Init
|
9 |
add_action ( 'admin_menu', array( &$this, 'init' ) );
|
10 |
-
add_action ( '
|
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
|
@@ -26,17 +27,19 @@ Class SISAdmin{
|
|
26 |
* @return void
|
27 |
* @author Nicolas Juen
|
28 |
*/
|
29 |
-
public function registerScripts() {
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -59,7 +62,8 @@ Class SISAdmin{
|
|
59 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
60 |
'validate' => __( 'Validate image size name', 'sis' ),
|
61 |
'done' => __( 'Done.', 'sis' ),
|
62 |
-
'size' => __( 'Size', 'sis' ),
|
|
|
63 |
);
|
64 |
}
|
65 |
|
@@ -138,6 +142,9 @@ Class SISAdmin{
|
|
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 |
}
|
@@ -189,14 +196,28 @@ Class SISAdmin{
|
|
189 |
<?php }
|
190 |
|
191 |
/**
|
192 |
-
* Add the button to
|
193 |
*
|
194 |
* @access public
|
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 |
|
@@ -229,7 +250,7 @@ Class SISAdmin{
|
|
229 |
<table cellspacing="0" class="widefat page fixed">
|
230 |
<thead>
|
231 |
<tr>
|
232 |
-
<th class="manage-column column-
|
233 |
<th class="manage-column column-author" scope="col"><?php _e( 'Size name', 'sis'); ?></th>
|
234 |
<th class="manage-column column-author" scope="col"><?php _e( 'Width', 'sis'); ?></th>
|
235 |
<th class="manage-column column-author" scope="col"><?php _e( 'Height', 'sis'); ?></th>
|
@@ -288,7 +309,7 @@ Class SISAdmin{
|
|
288 |
<?php endforeach;?>
|
289 |
</tbody>
|
290 |
<tfoot>
|
291 |
-
<th class="manage-column column-
|
292 |
<th class="manage-column column-author" scope="col"><?php _e( 'Size name', 'sis'); ?></th>
|
293 |
<th class="manage-column column-author" scope="col"><?php _e( 'Width', 'sis'); ?></th>
|
294 |
<th class="manage-column column-author" scope="col"><?php _e( 'Height', 'sis'); ?></th>
|
@@ -301,7 +322,7 @@ Class SISAdmin{
|
|
301 |
<table cellspacing="0" class="widefat page fixed">
|
302 |
<thead>
|
303 |
<tr>
|
304 |
-
<th class="manage-column column-
|
305 |
<th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
|
306 |
</tr>
|
307 |
</thead>
|
@@ -326,7 +347,7 @@ Class SISAdmin{
|
|
326 |
</tbody>
|
327 |
<tfoot>
|
328 |
<tr>
|
329 |
-
<th class="manage-column column-
|
330 |
<th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
|
331 |
</tr>
|
332 |
</tfoot>
|
@@ -345,6 +366,44 @@ Class SISAdmin{
|
|
345 |
<?php
|
346 |
}
|
347 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
/**
|
349 |
* Rebuild the image
|
350 |
*
|
7 |
public function __construct(){
|
8 |
// Init
|
9 |
add_action ( 'admin_menu', array( &$this, 'init' ) );
|
10 |
+
add_action ( 'admin_enqueue_scripts', array( &$this, 'registerScripts' ), 11 );
|
11 |
|
12 |
// Add ajax action
|
13 |
add_action('wp_ajax_ajax_thumbnail_rebuild', array( &$this, 'ajaxThumbnailRebuildAjax' ) );
|
14 |
+
add_action('wp_ajax_get_sizes', array( &$this, 'ajaxGetSizes' ) );
|
15 |
|
16 |
// Add image sizes in the form
|
17 |
add_filter( 'attachment_fields_to_edit', array( &$this, 'sizesInForm' ), 11, 2 ); // Add our sizes to media forms
|
27 |
* @return void
|
28 |
* @author Nicolas Juen
|
29 |
*/
|
30 |
+
public function registerScripts($hook_suffix = '' ) {
|
31 |
+
if( $hook_suffix == 'options-media.php' ) {
|
32 |
+
// Add javascript
|
33 |
+
wp_enqueue_script( 'custom_image_size', SIS_URL.'js/custom_sizes.min.js', array('jquery'), '1.0' );
|
34 |
+
wp_enqueue_script( 'jquery-ui-progressbar', SIS_URL.'js/jquery-ui-1.8.10.custom.min.js', array(), '1.8.10' );
|
35 |
+
|
36 |
+
// Ad javascript translation
|
37 |
+
wp_localize_script( 'custom_image_size', 'custom_image_size', $this->localizeVars() );
|
38 |
+
|
39 |
+
// Add CSS
|
40 |
+
wp_enqueue_style( 'jquery-ui-regenthumbs', SIS_URL.'jquery-ui/redmond/jquery-ui-1.8.10.custom.css', array(), '1.8.10' );
|
41 |
+
wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), '1.0' );
|
42 |
+
}
|
43 |
}
|
44 |
|
45 |
/**
|
62 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
63 |
'validate' => __( 'Validate image size name', 'sis' ),
|
64 |
'done' => __( 'Done.', 'sis' ),
|
65 |
+
'size' => __( 'Size', 'sis' ),
|
66 |
+
'notOriginal' => __( 'Don\'t use the basic Wordpress thumbnail size name, use the form above to edit them', 'sis' ),
|
67 |
);
|
68 |
}
|
69 |
|
142 |
// Add legend
|
143 |
add_settings_field( 'add_legend', __( 'Legend of the sizes', 'sis' ), array( &$this, 'addLegend' ), 'media' );
|
144 |
|
145 |
+
// Add size button
|
146 |
+
add_settings_field( 'get_php', __( 'Get php for theme', 'sis' ), array( &$this, 'getPhp' ), 'media' );
|
147 |
+
|
148 |
// Add section for the thumbnail regeneration
|
149 |
add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'sis' ), array( &$this, 'thumbnailRegenerate' ), 'media' );
|
150 |
}
|
196 |
<?php }
|
197 |
|
198 |
/**
|
199 |
+
* Add the button to add a size
|
200 |
*
|
201 |
* @access public
|
202 |
* @return void
|
203 |
* @author Nicolas Juen
|
204 |
*/
|
205 |
public function addSize() { ?>
|
206 |
+
<input type="button" class="button-secondary action" id="add_size" value="<?php _e( 'Add a new size of thumbnail', 'sis'); ?>" />
|
207 |
+
<?php
|
208 |
+
}
|
209 |
+
|
210 |
+
/**
|
211 |
+
* Add the button to get the php for th sizes
|
212 |
+
*
|
213 |
+
* @access public
|
214 |
+
* @return void
|
215 |
+
* @author Nicolas Juen
|
216 |
+
*/
|
217 |
+
public function getPhp() { ?>
|
218 |
+
<input type="button" class="button-secondary action" id="get_php" value="<?php _e( 'Get the PHP for the template', 'sis'); ?>" />
|
219 |
+
<p> <?php _e( 'Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin.', 'sis'); ?> </p>
|
220 |
+
<code></code>
|
221 |
<?php
|
222 |
}
|
223 |
|
250 |
<table cellspacing="0" class="widefat page fixed">
|
251 |
<thead>
|
252 |
<tr>
|
253 |
+
<th class="manage-column column-date" scope="col"><?php _e( 'Resize ?', 'sis'); ?></th>
|
254 |
<th class="manage-column column-author" scope="col"><?php _e( 'Size name', 'sis'); ?></th>
|
255 |
<th class="manage-column column-author" scope="col"><?php _e( 'Width', 'sis'); ?></th>
|
256 |
<th class="manage-column column-author" scope="col"><?php _e( 'Height', 'sis'); ?></th>
|
309 |
<?php endforeach;?>
|
310 |
</tbody>
|
311 |
<tfoot>
|
312 |
+
<th class="manage-column column-date" scope="col"><?php _e( 'Resize ?', 'sis'); ?></th>
|
313 |
<th class="manage-column column-author" scope="col"><?php _e( 'Size name', 'sis'); ?></th>
|
314 |
<th class="manage-column column-author" scope="col"><?php _e( 'Width', 'sis'); ?></th>
|
315 |
<th class="manage-column column-author" scope="col"><?php _e( 'Height', 'sis'); ?></th>
|
322 |
<table cellspacing="0" class="widefat page fixed">
|
323 |
<thead>
|
324 |
<tr>
|
325 |
+
<th class="manage-column column-date" scope="col"><?php _e( 'Resize ?', 'sis'); ?></th>
|
326 |
<th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
|
327 |
</tr>
|
328 |
</thead>
|
347 |
</tbody>
|
348 |
<tfoot>
|
349 |
<tr>
|
350 |
+
<th class="manage-column column-date" scope="col"><?php _e( 'Resize ?', 'sis'); ?></th>
|
351 |
<th class="manage-column column-author" scope="col"><?php _e( 'Post type', 'sis'); ?></th>
|
352 |
</tr>
|
353 |
</tfoot>
|
366 |
<?php
|
367 |
}
|
368 |
|
369 |
+
/**
|
370 |
+
* Display the add_image_size for the registered sizes
|
371 |
+
*
|
372 |
+
* @access public
|
373 |
+
* @return void
|
374 |
+
*/
|
375 |
+
public function ajaxGetSizes() {
|
376 |
+
global $_wp_additional_image_sizes;
|
377 |
+
|
378 |
+
foreach ( get_intermediate_image_sizes() as $s ):
|
379 |
+
|
380 |
+
// Don't make the original sizes
|
381 |
+
if( in_array( $s, $this->original ) )
|
382 |
+
continue;
|
383 |
+
|
384 |
+
if ( isset( $_wp_additional_image_sizes[$s]['width'] ) ) // For theme-added sizes
|
385 |
+
$width = intval( $_wp_additional_image_sizes[$s]['width'] );
|
386 |
+
else // For default sizes set in options
|
387 |
+
$width = get_option( "{$s}_size_w" );
|
388 |
+
|
389 |
+
if ( isset( $_wp_additional_image_sizes[$s]['height'] ) ) // For theme-added sizes
|
390 |
+
$height = intval( $_wp_additional_image_sizes[$s]['height'] );
|
391 |
+
else // For default sizes set in options
|
392 |
+
$height = get_option( "{$s}_size_h" );
|
393 |
+
|
394 |
+
if ( isset( $_wp_additional_image_sizes[$s]['crop'] ) ) // For theme-added sizes
|
395 |
+
$crop = intval( $_wp_additional_image_sizes[$s]['crop'] );
|
396 |
+
else // For default sizes set in options
|
397 |
+
$crop = get_option( "{$s}_crop" );
|
398 |
+
|
399 |
+
$crop = ( $crop == 0 )? 'false' : 'true' ;
|
400 |
+
?>
|
401 |
+
add_image_size( '<?php echo $s; ?>', '<?php echo $width; ?>', '<?php echo $height; ?>', '<?php echo $crop ?>' );<br />
|
402 |
+
<?php endforeach;
|
403 |
+
|
404 |
+
die();
|
405 |
+
}
|
406 |
+
|
407 |
/**
|
408 |
* Rebuild the image
|
409 |
*
|
js/custom_sizes.js
CHANGED
@@ -1,134 +1,154 @@
|
|
1 |
-
var i = 0
|
2 |
jQuery(function() {
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
});
|
9 |
|
10 |
function addSize() {
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
function registerSize() {
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
output += '<input name="custom_image_sizes['+name+'][custom]" type="hidden" id="custom_image_sizes['+name+'][custom]" value="1" />';
|
33 |
-
output +='<label for="custom_image_sizes['+name+'][w]">';
|
34 |
-
output += custom_image_size.maximumWidth+' <input name="custom_image_sizes['+name+'][w] " type="text" id="custom_image_sizes['+name+'][w]" value="" class="small-text" />'
|
35 |
-
output +='</label>';
|
36 |
-
|
37 |
-
output +='<label for="custom_image_sizes['+name+'][h]">';
|
38 |
-
output += custom_image_size.maximumHeight+' <input name="custom_image_sizes['+name+'][h]" type="text" id="custom_image_sizes['+name+'][h]" value="" class="small-text" />';
|
39 |
-
output +='</label>';
|
40 |
-
|
41 |
-
output +='<label class="crop"> '
|
42 |
-
output +=custom_image_size.crop+' <input type="checkbox" name="custom_image_sizes['+name+'][c]" value="1" /> </label>';
|
43 |
-
|
44 |
-
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">';
|
45 |
-
output +=custom_image_size.deleteImage;
|
46 |
-
output +='<div class="ui-icon ui-icon-circle-close" style="float: right; top: 2px; position:absolute;left: 0px;">';
|
47 |
-
output +='</div>';
|
48 |
-
output +='</label>';
|
49 |
-
output += '</td>';
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
}
|
54 |
|
55 |
function deleteSize() {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
////////////// Image resizing /////////////
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
jQuery( ".progress" ).progressbar();
|
64 |
}
|
65 |
|
66 |
function regenerate() {
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
}
|
1 |
+
var i = 0;
|
2 |
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').closest('tr').children('th').css({
|
7 |
+
'color': 'green'
|
8 |
+
});
|
9 |
+
jQuery('span.theme_size').closest('tr').children('th').css({
|
10 |
+
'color': 'orange'
|
11 |
+
});
|
12 |
+
jQuery('#get_php').click(getPhp);
|
13 |
});
|
14 |
|
15 |
function addSize() {
|
16 |
+
row = '<tr valign="top" class="new_size_' + i + '">';
|
17 |
+
row += '<th scope="row">';
|
18 |
+
row += '<input type="text" value="thumbnail-name" id="new_size_' + i + '" />';
|
19 |
+
row += '</th>';
|
20 |
+
row += '<td>';
|
21 |
+
row += '<input type="button" class="button-secondary action add_size_name" id="validate_' + i + '" value="' + custom_image_size.validate + '" />';
|
22 |
+
row += '</td>';
|
23 |
+
row += '</tr>';
|
24 |
+
|
25 |
+
jQuery(this).parent().parent().before(row);
|
26 |
+
i++;
|
27 |
+
}
|
28 |
+
|
29 |
+
function getPhp() {
|
30 |
+
jQuery.ajax({
|
31 |
+
url: custom_image_size.ajaxUrl,
|
32 |
+
type: "POST",
|
33 |
+
data: "action=get_sizes",
|
34 |
+
success: function(result) {
|
35 |
+
jQuery('#get_php').nextAll('code').html('<br />' + result);
|
36 |
+
}
|
37 |
+
});
|
38 |
}
|
39 |
|
40 |
function registerSize() {
|
41 |
+
name = jQuery(this).closest('tr').children('th').find('input').val();
|
42 |
+
id = jQuery(this).closest('tr').children('th').find('input').attr('id');
|
43 |
|
44 |
+
if( name == 'thumbnail' || name == "medium" || name == "large" ) {
|
45 |
+
alert( custom_image_size.notOriginal );
|
46 |
+
return false;
|
47 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
+
output = '<th scope="row">';
|
50 |
+
output += custom_image_size.size + ' ' + name;
|
51 |
+
output += '</th>';
|
52 |
+
output += '<td>';
|
53 |
+
output += '<input name="custom_image_sizes[' + name + '][custom]" type="hidden" id="custom_image_sizes[' + name + '][custom]" value="1" />';
|
54 |
+
output += '<label for="custom_image_sizes[' + name + '][w]">';
|
55 |
+
output += custom_image_size.maximumWidth + ' <input name="custom_image_sizes[' + name + '][w] " type="text" id="custom_image_sizes[' + name + '][w]" value="" class="small-text" />'
|
56 |
+
output += '</label>';
|
57 |
+
|
58 |
+
output += '<label for="custom_image_sizes[' + name + '][h]">';
|
59 |
+
output += custom_image_size.maximumHeight + ' <input name="custom_image_sizes[' + name + '][h]" type="text" id="custom_image_sizes[' + name + '][h]" value="" class="small-text" />';
|
60 |
+
output += '</label>';
|
61 |
+
|
62 |
+
output += '<label class="crop"> '
|
63 |
+
output += custom_image_size.crop + ' <input type="checkbox" name="custom_image_sizes[' + name + '][c]" value="1" /> </label>';
|
64 |
+
|
65 |
+
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">';
|
66 |
+
output += custom_image_size.deleteImage;
|
67 |
+
output += '<div class="ui-icon ui-icon-circle-close" style="float: right; top: 2px; position:absolute;left: 0px;">';
|
68 |
+
output += '</div>';
|
69 |
+
output += '</label>';
|
70 |
+
output += '</td>';
|
71 |
+
|
72 |
+
jQuery('#' + id).parent().parent().html(output);
|
73 |
|
74 |
}
|
75 |
|
76 |
function deleteSize() {
|
77 |
+
jQuery(this).parent().parent().remove();
|
78 |
}
|
79 |
|
80 |
////////////// Image resizing /////////////
|
81 |
+
function setMessage(msg) {
|
82 |
+
jQuery("#regenerate_message").html(msg).addClass('updated').addClass('fade').show();
|
83 |
+
jQuery(".progress").progressbar();
|
|
|
84 |
}
|
85 |
|
86 |
function regenerate() {
|
87 |
+
jQuery("#ajax_thumbnail_rebuild").attr("disabled", true);
|
88 |
+
setMessage("<p>" + custom_image_size.reading + "</p>");
|
89 |
+
|
90 |
+
inputs = jQuery('input.thumbnails:checked');
|
91 |
+
var thumbnails = '';
|
92 |
+
if (inputs.length != jQuery('input.thumbnails[type=checkbox]').length) {
|
93 |
+
inputs.each(function() {
|
94 |
+
thumbnails += '&thumbnails[]=' + jQuery(this).val();
|
95 |
+
});
|
96 |
+
}
|
97 |
+
|
98 |
+
inputs = jQuery('input.post_types:checked');
|
99 |
+
var post_types = '';
|
100 |
+
if (inputs.length != jQuery('input.post_types[type=checkbox]').length) {
|
101 |
+
inputs.each(function() {
|
102 |
+
post_types += '&post_types[]=' + jQuery(this).val();
|
103 |
+
});
|
104 |
+
}
|
105 |
+
|
106 |
+
jQuery.ajax({
|
107 |
+
url: custom_image_size.ajaxUrl,
|
108 |
+
type: "POST",
|
109 |
+
data: "action=ajax_thumbnail_rebuild&do=getlist" + post_types,
|
110 |
+
success: function(result) {
|
111 |
+
var list = eval(result);
|
112 |
+
var curr = 0;
|
113 |
+
|
114 |
+
function regenItem() {
|
115 |
+
if (!list) {
|
116 |
+
jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");
|
117 |
+
jQuery(".progress, #thumb").hide();
|
118 |
+
|
119 |
+
setMessage(custom_image_size.noMedia);
|
120 |
+
return false;
|
121 |
+
}
|
122 |
+
percent = (curr / list.length) * 100;
|
123 |
+
jQuery(".progress").progressbar("value", percent);
|
124 |
+
jQuery(".progress-percent").html(Math.round(percent) + "%");
|
125 |
+
if (curr >= list.length) {
|
126 |
+
jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");
|
127 |
+
jQuery(".progress, #thumb").hide();
|
128 |
+
|
129 |
+
setMessage(custom_image_size.done);
|
130 |
+
return;
|
131 |
+
}
|
132 |
+
setMessage(custom_image_size.regenerating + (curr + 1) + custom_image_size.of + list.length + " (" + list[curr].title + ")...");
|
133 |
+
|
134 |
+
jQuery.ajax({
|
135 |
+
url: custom_image_size.ajaxUrl,
|
136 |
+
type: "POST",
|
137 |
+
data: "action=ajax_thumbnail_rebuild&do=regen&id=" + list[curr].id + thumbnails,
|
138 |
+
success: function(result) {
|
139 |
+
jQuery("#thumb").show();
|
140 |
+
jQuery("#thumb-img").attr("src", result);
|
141 |
+
|
142 |
+
curr = curr + 1;
|
143 |
+
regenItem();
|
144 |
+
}
|
145 |
+
});
|
146 |
+
}
|
147 |
+
|
148 |
+
regenItem();
|
149 |
+
},
|
150 |
+
error: function(request, status, error) {
|
151 |
+
setMessage("Error " + request.status);
|
152 |
+
}
|
153 |
+
});
|
154 |
}
|
js/custom_sizes.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var i=0;jQuery(function(){jQuery(
|
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"});jQuery("#get_php").click(getPhp)});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 getPhp(){jQuery.ajax({url:custom_image_size.ajaxUrl,type:"POST",data:"action=get_sizes",success:function(a){jQuery("#get_php").nextAll("code").html("<br />"+a)}})}function registerSize(){name=jQuery(this).closest("tr").children("th").find("input").val();id=jQuery(this).closest("tr").children("th").find("input").attr("id");if(name=="thumbnail"||name=="medium"||name=="large"){alert(custom_image_size.notOriginal);return false}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(a){jQuery("#regenerate_message").html(a).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
@@ -4,9 +4,9 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Simple image sizes\n"
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
-
"POT-Creation-Date: 2011-
|
8 |
-
"PO-Revision-Date: 2011-
|
9 |
-
"Last-Translator: Nicolas
|
10 |
"Language-Team: Beapi <njuen@beapi.fr>\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -18,128 +18,148 @@ msgstr ""
|
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
-
#: inc/class.admin.php:
|
22 |
msgid "Reading attachments..."
|
23 |
msgstr "Chargement des médias..."
|
24 |
|
25 |
-
#: inc/class.admin.php:
|
26 |
-
#: inc/class.admin.php:
|
27 |
msgid "Maximum width"
|
28 |
msgstr "Largeur maximum"
|
29 |
|
30 |
-
#: inc/class.admin.php:
|
31 |
-
#: inc/class.admin.php:
|
32 |
msgid "Maximum height"
|
33 |
msgstr "Hauteur maximum"
|
34 |
|
35 |
-
#: inc/class.admin.php:
|
36 |
-
#: inc/class.admin.php:
|
37 |
-
#: inc/class.admin.php:
|
38 |
-
#: inc/class.admin.php:
|
39 |
msgid "Crop ?"
|
40 |
msgstr "Rogner ?"
|
41 |
|
42 |
-
#: inc/class.admin.php:
|
43 |
msgid " of "
|
44 |
msgstr " de "
|
45 |
|
46 |
-
#: inc/class.admin.php:
|
47 |
-
#: inc/class.admin.php:
|
48 |
msgid "Delete"
|
49 |
msgstr "Supprimer"
|
50 |
|
51 |
-
#: inc/class.admin.php:
|
52 |
msgid "No media in your site to regenerate !"
|
53 |
msgstr "Pas de médias à regénérer !"
|
54 |
|
55 |
-
#: inc/class.admin.php:
|
56 |
msgid "Regenerating "
|
57 |
msgstr "Regénération "
|
58 |
|
59 |
-
#: inc/class.admin.php:
|
60 |
msgid "Validate image size name"
|
61 |
msgstr "Valider le nom de la taille d'image"
|
62 |
|
63 |
-
#: inc/class.admin.php:
|
64 |
msgid "Done."
|
65 |
msgstr "Fini."
|
66 |
|
67 |
-
#: inc/class.admin.php:
|
68 |
msgid "Size"
|
69 |
msgstr "Taille "
|
70 |
|
71 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
msgid "Size "
|
73 |
msgstr "Taille "
|
74 |
|
75 |
-
#: inc/class.admin.php:
|
76 |
msgid "Add a new size"
|
77 |
msgstr "Ajouter une nouvelle taille"
|
78 |
|
79 |
-
#: inc/class.admin.php:
|
80 |
msgid "Legend of the sizes"
|
81 |
msgstr "Légende des tailles"
|
82 |
|
83 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
84 |
msgid "Thumbnail regeneration"
|
85 |
msgstr "Régénération des vignettes"
|
86 |
|
87 |
-
#: inc/class.admin.php:
|
88 |
msgid "Custom size"
|
89 |
msgstr "Taille personnelle"
|
90 |
|
91 |
-
#: inc/class.admin.php:
|
92 |
msgid "Theme size"
|
93 |
msgstr "Taille de thème"
|
94 |
|
95 |
-
#: inc/class.admin.php:
|
96 |
msgid "Add a new size of thumbnail"
|
97 |
msgstr "Ajouter une nouvelle taille de vignette"
|
98 |
|
99 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|
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:
|
108 |
-
#: inc/class.admin.php:
|
109 |
-
#: inc/class.admin.php:
|
110 |
-
#: inc/class.admin.php:
|
111 |
msgid "Resize ?"
|
112 |
msgstr "Regénérer ?"
|
113 |
|
114 |
-
#: inc/class.admin.php:
|
115 |
-
#: inc/class.admin.php:
|
116 |
msgid "Size name"
|
117 |
msgstr "Nom de la taille"
|
118 |
|
119 |
-
#: inc/class.admin.php:
|
120 |
-
#: inc/class.admin.php:
|
121 |
msgid "Width"
|
122 |
msgstr "Largeur"
|
123 |
|
124 |
-
#: inc/class.admin.php:
|
125 |
-
#: inc/class.admin.php:
|
126 |
msgid "Height"
|
127 |
msgstr "Hauteur"
|
128 |
|
129 |
-
#: inc/class.admin.php:
|
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:
|
134 |
-
#: inc/class.admin.php:
|
135 |
msgid "Post type"
|
136 |
msgstr "Type de contenu"
|
137 |
|
138 |
-
#: inc/class.admin.php:
|
139 |
msgid "Last image:"
|
140 |
msgstr "Dernière image :"
|
141 |
|
142 |
-
#: inc/class.admin.php:
|
143 |
msgid "Regenerate Thumbnails"
|
144 |
msgstr "Régénérer les vignettes"
|
145 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Simple image sizes\n"
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
+
"POT-Creation-Date: 2011-04-12 15:00+0100\n"
|
8 |
+
"PO-Revision-Date: 2011-04-12 15:02+0100\n"
|
9 |
+
"Last-Translator: Nicolas <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"
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
+
#: inc/class.admin.php:55
|
22 |
msgid "Reading attachments..."
|
23 |
msgstr "Chargement des médias..."
|
24 |
|
25 |
+
#: inc/class.admin.php:56
|
26 |
+
#: inc/class.admin.php:177
|
27 |
msgid "Maximum width"
|
28 |
msgstr "Largeur maximum"
|
29 |
|
30 |
+
#: inc/class.admin.php:57
|
31 |
+
#: inc/class.admin.php:182
|
32 |
msgid "Maximum height"
|
33 |
msgstr "Hauteur maximum"
|
34 |
|
35 |
+
#: inc/class.admin.php:58
|
36 |
+
#: inc/class.admin.php:188
|
37 |
+
#: inc/class.admin.php:257
|
38 |
+
#: inc/class.admin.php:316
|
39 |
msgid "Crop ?"
|
40 |
msgstr "Rogner ?"
|
41 |
|
42 |
+
#: inc/class.admin.php:59
|
43 |
msgid " of "
|
44 |
msgstr " de "
|
45 |
|
46 |
+
#: inc/class.admin.php:60
|
47 |
+
#: inc/class.admin.php:192
|
48 |
msgid "Delete"
|
49 |
msgstr "Supprimer"
|
50 |
|
51 |
+
#: inc/class.admin.php:61
|
52 |
msgid "No media in your site to regenerate !"
|
53 |
msgstr "Pas de médias à regénérer !"
|
54 |
|
55 |
+
#: inc/class.admin.php:62
|
56 |
msgid "Regenerating "
|
57 |
msgstr "Regénération "
|
58 |
|
59 |
+
#: inc/class.admin.php:63
|
60 |
msgid "Validate image size name"
|
61 |
msgstr "Valider le nom de la taille d'image"
|
62 |
|
63 |
+
#: inc/class.admin.php:64
|
64 |
msgid "Done."
|
65 |
msgstr "Fini."
|
66 |
|
67 |
+
#: inc/class.admin.php:65
|
68 |
msgid "Size"
|
69 |
msgstr "Taille "
|
70 |
|
71 |
+
#: inc/class.admin.php:66
|
72 |
+
msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
|
73 |
+
msgstr "N'utilisez pas les noms de base de Wordpress pour vos tailles, utilisez le formulaire ci-dessus pour les éditer. "
|
74 |
+
|
75 |
+
#: inc/class.admin.php:84
|
76 |
+
msgid "Settings"
|
77 |
+
msgstr "Paramètres"
|
78 |
+
|
79 |
+
#: inc/class.admin.php:132
|
80 |
msgid "Size "
|
81 |
msgstr "Taille "
|
82 |
|
83 |
+
#: inc/class.admin.php:140
|
84 |
msgid "Add a new size"
|
85 |
msgstr "Ajouter une nouvelle taille"
|
86 |
|
87 |
+
#: inc/class.admin.php:143
|
88 |
msgid "Legend of the sizes"
|
89 |
msgstr "Légende des tailles"
|
90 |
|
91 |
+
#: inc/class.admin.php:146
|
92 |
+
msgid "Get php for theme"
|
93 |
+
msgstr "Code PHP pour le thème"
|
94 |
+
|
95 |
+
#: inc/class.admin.php:149
|
96 |
msgid "Thumbnail regeneration"
|
97 |
msgstr "Régénération des vignettes"
|
98 |
|
99 |
+
#: inc/class.admin.php:170
|
100 |
msgid "Custom size"
|
101 |
msgstr "Taille personnelle"
|
102 |
|
103 |
+
#: inc/class.admin.php:173
|
104 |
msgid "Theme size"
|
105 |
msgstr "Taille de thème"
|
106 |
|
107 |
+
#: inc/class.admin.php:206
|
108 |
msgid "Add a new size of thumbnail"
|
109 |
msgstr "Ajouter une nouvelle taille de vignette"
|
110 |
|
111 |
+
#: inc/class.admin.php:218
|
112 |
+
msgid "Get the PHP for the template"
|
113 |
+
msgstr "Récupérer le code PHP pour le thème"
|
114 |
+
|
115 |
+
#: inc/class.admin.php:219
|
116 |
+
msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
|
117 |
+
msgstr "Copiez et collez dans votre fichier de fonction de votre thème Wordpress si vous voulez les conserver et désactiver le plugin."
|
118 |
+
|
119 |
+
#: inc/class.admin.php:232
|
120 |
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>."
|
121 |
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>."
|
122 |
|
123 |
+
#: inc/class.admin.php:249
|
124 |
msgid "Select which thumbnails you want to rebuild:"
|
125 |
msgstr "Sélectionnez les tailles de vignettes à régénérer"
|
126 |
|
127 |
+
#: inc/class.admin.php:253
|
128 |
+
#: inc/class.admin.php:312
|
129 |
+
#: inc/class.admin.php:325
|
130 |
+
#: inc/class.admin.php:350
|
131 |
msgid "Resize ?"
|
132 |
msgstr "Regénérer ?"
|
133 |
|
134 |
+
#: inc/class.admin.php:254
|
135 |
+
#: inc/class.admin.php:313
|
136 |
msgid "Size name"
|
137 |
msgstr "Nom de la taille"
|
138 |
|
139 |
+
#: inc/class.admin.php:255
|
140 |
+
#: inc/class.admin.php:314
|
141 |
msgid "Width"
|
142 |
msgstr "Largeur"
|
143 |
|
144 |
+
#: inc/class.admin.php:256
|
145 |
+
#: inc/class.admin.php:315
|
146 |
msgid "Height"
|
147 |
msgstr "Hauteur"
|
148 |
|
149 |
+
#: inc/class.admin.php:321
|
150 |
msgid "Select which post type source thumbnails you want to rebuild:"
|
151 |
msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer : "
|
152 |
|
153 |
+
#: inc/class.admin.php:326
|
154 |
+
#: inc/class.admin.php:351
|
155 |
msgid "Post type"
|
156 |
msgstr "Type de contenu"
|
157 |
|
158 |
+
#: inc/class.admin.php:363
|
159 |
msgid "Last image:"
|
160 |
msgstr "Dernière image :"
|
161 |
|
162 |
+
#: inc/class.admin.php:364
|
163 |
msgid "Regenerate Thumbnails"
|
164 |
msgstr "Régénérer les vignettes"
|
165 |
|
readme.txt
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
=== Simple Image Sizes ===
|
2 |
-
Contributors:
|
3 |
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.
|
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 which one you wanted to regenerate.
|
|
|
13 |
|
14 |
== Installation ==
|
15 |
|
@@ -24,6 +25,11 @@ You can regenerate all the sizes you have just created and choose which one you
|
|
24 |
2. Regenerating
|
25 |
|
26 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
27 |
* 1.0.4
|
28 |
* Fix the add_image_size issue ( height and width reversed )
|
29 |
* 1.0.3
|
1 |
=== Simple Image Sizes ===
|
2 |
+
Contributors: Rahe
|
3 |
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.5
|
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 which one you wanted to regenerate.
|
13 |
+
You can now get all the code to copy and paste to your function theme file.
|
14 |
|
15 |
== Installation ==
|
16 |
|
25 |
2. Regenerating
|
26 |
|
27 |
== Changelog ==
|
28 |
+
* 1.0.5
|
29 |
+
* Only add css and js script in the media page to avoid any javascript error in other pages
|
30 |
+
* Rectify css
|
31 |
+
* Add function to get the code for the function.php file of the theme
|
32 |
+
* Don't redefine the Wordpress basic size names
|
33 |
* 1.0.4
|
34 |
* Fix the add_image_size issue ( height and width reversed )
|
35 |
* 1.0.3
|
simple_image_sizes.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
Author: Rahe
|
8 |
Author URI: http://www.beapi.fr
|
9 |
Text Domain: sis
|
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.5
|
7 |
Author: Rahe
|
8 |
Author URI: http://www.beapi.fr
|
9 |
Text Domain: sis
|