Version Description
Download this release
Release Info
Developer | Rahe |
Plugin | Simple Image Sizes |
Version | v2.3.1 |
Comparing to | |
See all releases |
Code changes from version v2.2.5 to v2.3.1
- inc/class.admin.php +143 -32
- js/sis-attachments.js +47 -7
- js/sis-attachments.min.js +3 -2
- js/sis.js +18 -3
- js/sis.min.js +23 -22
- languages/sis-fr_FR.mo +0 -0
- languages/sis-fr_FR.po +77 -66
- languages/sis.pot +118 -75
- readme.txt +12 -2
- simple_image_sizes.php +2 -2
inc/class.admin.php
CHANGED
@@ -10,19 +10,27 @@ Class SISAdmin {
|
|
10 |
add_action ( 'admin_enqueue_scripts', array( &$this, 'registerScripts' ), 11 );
|
11 |
|
12 |
// Add ajax action
|
13 |
-
add_action('
|
14 |
-
add_action('
|
15 |
-
add_action('
|
16 |
-
add_action('
|
17 |
-
|
18 |
-
// Add image sizes in the form
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
|
21 |
// Add link in plugins list
|
22 |
-
add_filter('plugin_action_links', array( &$this,'addSettingsLink'), 10, 2 );
|
23 |
|
24 |
// Add action in media row quick actions
|
25 |
-
add_filter( 'media_row_actions', array(&$this, 'addActionsList'), 10, 2 );
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
/**
|
@@ -47,7 +55,7 @@ Class SISAdmin {
|
|
47 |
// Add CSS
|
48 |
wp_enqueue_style( 'jquery-ui-sis', SIS_URL.'css/Aristo/jquery-ui-1.8.7.custom.css', array(), '1.8.7' );
|
49 |
wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), SIS_VERSION );
|
50 |
-
} elseif( $hook_suffix == 'upload.php' ) {
|
51 |
// Add javascript
|
52 |
wp_enqueue_script( 'sis_js', SIS_URL.'js/sis-attachments.min.js', array( 'jquery' ), SIS_VERSION );
|
53 |
|
@@ -79,6 +87,7 @@ Class SISAdmin {
|
|
79 |
'deleteImage' => __( 'Delete', 'sis' ),
|
80 |
'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
|
81 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
|
|
82 |
'validate' => __( 'Validate image size name', 'sis' ),
|
83 |
'done' => __( 'Done.', 'sis' ),
|
84 |
'size' => __( 'Size', 'sis' ),
|
@@ -90,6 +99,7 @@ Class SISAdmin {
|
|
90 |
'messageRegenerated' => __( 'images have been regenerated !', 'sis' ),
|
91 |
'validateButton' => __( 'Validate', 'sis' ),
|
92 |
'startedAt' => __( ' started at', 'sis' ),
|
|
|
93 |
'finishedAt' => __( ' finished at :', 'sis' ),
|
94 |
'phpError' => __( 'Error during the php treatment, be sure to not have php errors in your page', 'sis' ),
|
95 |
'notSaved' => __( 'All the sizes you have modifed are not saved, continue anyway ?', 'sis' ),
|
@@ -218,27 +228,33 @@ Class SISAdmin {
|
|
218 |
$crop = isset( $sizes[$args['name']]['c'] ) && !empty( $sizes[$args['name']]['c'] )? $sizes[$args['name']]['c'] : $args['c'] ;
|
219 |
$show = isset( $sizes[$args['name']]['s'] ) && !empty( $sizes[$args['name']]['s'] )? '1' : '0' ;
|
220 |
$custom = isset( $sizes[$args['name']]['custom'] ) && !empty( $sizes[$args['name']]['custom'] )? '1' : '0' ;
|
|
|
|
|
221 |
?>
|
222 |
-
<input type="hidden" value="<?php
|
223 |
<?php if( $custom ): ?>
|
224 |
-
<input name="<?php
|
225 |
<?php else: ?>
|
226 |
-
<input name="<?php
|
227 |
<?php endif; ?>
|
228 |
-
<label class="sis-label" for="<?php
|
229 |
<?php _e( 'Maximum width', 'sis'); ?>
|
230 |
-
<input name="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][w]' ); ?>" class='w small-text' type="number" step='1' min='0' id="<?php
|
231 |
</label>
|
232 |
<label class="sis-label" for="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][h]' ); ?>">
|
233 |
<?php _e( 'Maximum height', 'sis'); ?>
|
234 |
-
<input name="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][h]' ); ?>" class='h small-text' type="number" step='1' min='0' id="<?php
|
|
|
|
|
|
|
|
|
235 |
</label>
|
236 |
<span class="size_options">
|
237 |
-
<input type='checkbox' id="<?php
|
238 |
-
<label class="c" for="<?php
|
239 |
|
240 |
-
<input type='checkbox' id="<?php
|
241 |
-
<label class="s" for="<?php
|
242 |
</span>
|
243 |
<span class="delete_size"><?php _e( 'Delete', 'sis'); ?></span>
|
244 |
<span class="add_size validate_size"><?php _e( 'Update', 'sis'); ?></span>
|
@@ -293,7 +309,7 @@ Class SISAdmin {
|
|
293 |
*/
|
294 |
public function thumbnailRegenerate() {
|
295 |
// Get the sizes
|
296 |
-
global $_wp_additional_image_sizes;
|
297 |
?>
|
298 |
<input type="hidden" class="addSize" value='<?php echo wp_create_nonce( 'add_size' ); ?>' />
|
299 |
<input type="hidden" class="regen" value='<?php echo wp_create_nonce( 'regen' ); ?>' />
|
@@ -336,21 +352,21 @@ Class SISAdmin {
|
|
336 |
?>
|
337 |
<tr>
|
338 |
<th class="check-column">
|
339 |
-
<input type="checkbox" class="thumbnails" id="<?php echo $s ?>" name="thumbnails[]" checked="checked" value="<?php echo esc_attr( $s ); ?>" />
|
340 |
</th>
|
341 |
<th>
|
342 |
<label for="<?php esc_attr_e( $s ); ?>">
|
343 |
-
<?php
|
344 |
</label>
|
345 |
</th>
|
346 |
<th>
|
347 |
<label for="<?php esc_attr_e( $s ); ?>">
|
348 |
-
<?php
|
349 |
</label>
|
350 |
</th>
|
351 |
<th>
|
352 |
<label for="<?php esc_attr_e( $s ); ?>">
|
353 |
-
<?php
|
354 |
</label>
|
355 |
</th>
|
356 |
<th>
|
@@ -383,7 +399,10 @@ Class SISAdmin {
|
|
383 |
<tbody>
|
384 |
<?php
|
385 |
// Diplay the post types table
|
386 |
-
foreach ( get_post_types( array( 'public' => true ), 'objects' ) as $ptype ):
|
|
|
|
|
|
|
387 |
?>
|
388 |
<tr>
|
389 |
<th class="check-column">
|
@@ -393,7 +412,7 @@ Class SISAdmin {
|
|
393 |
</th>
|
394 |
<th>
|
395 |
<label for="<?php esc_attr_e( $ptype->name ); ?>">
|
396 |
-
<em><?php
|
397 |
</label>
|
398 |
</th>
|
399 |
</tr>
|
@@ -462,6 +481,7 @@ Class SISAdmin {
|
|
462 |
$width = !isset( $_POST['width'] )? 0 : absint( $_POST['width'] );
|
463 |
$crop = isset( $_POST['crop'] ) && $_POST['crop'] == 'false' ? false : true;
|
464 |
$show = isset( $_POST['show'] ) && $_POST['show'] == 'false' ? false : true;
|
|
|
465 |
|
466 |
// Check the nonce
|
467 |
if( !wp_verify_nonce( $nonce , 'add_size' ) ) {
|
@@ -476,7 +496,7 @@ Class SISAdmin {
|
|
476 |
}
|
477 |
|
478 |
// Make values
|
479 |
-
$values = array( 'custom' => 1, 'w' => $width , 'h' => $height, 'c' => $crop, 's' => $show );
|
480 |
|
481 |
// If the size have not changed return 2
|
482 |
if( isset( $sizes[$name] ) && $sizes[$name] === $values ) {
|
@@ -710,8 +730,10 @@ Class SISAdmin {
|
|
710 |
|
711 |
$resized = image_make_intermediate_size( $file, $size_data['width'], $size_data['height'], $size_data['crop'] );
|
712 |
|
713 |
-
|
714 |
-
|
|
|
|
|
715 |
|
716 |
if ( $resized )
|
717 |
$metadata['sizes'][$size] = $resized;
|
@@ -730,6 +752,7 @@ Class SISAdmin {
|
|
730 |
if ( $image_meta )
|
731 |
$metadata['image_meta'] = $image_meta;
|
732 |
}
|
|
|
733 |
return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );
|
734 |
}
|
735 |
|
@@ -752,8 +775,9 @@ Class SISAdmin {
|
|
752 |
|
753 |
if ( is_array( $sizes_custom ) ) {
|
754 |
foreach( $sizes_custom as $key => $value ) {
|
755 |
-
if( isset( $value['s'] ) && $value['s'] == 1 )
|
756 |
-
|
|
|
757 |
}
|
758 |
}
|
759 |
foreach ( $size_names as $size => $label ) {
|
@@ -799,5 +823,92 @@ Class SISAdmin {
|
|
799 |
|
800 |
return $form_fields;
|
801 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
802 |
}
|
803 |
?>
|
10 |
add_action ( 'admin_enqueue_scripts', array( &$this, 'registerScripts' ), 11 );
|
11 |
|
12 |
// Add ajax action
|
13 |
+
add_action( 'wp_ajax_'.'sis_ajax_thumbnail_rebuild', array( &$this, 'ajaxThumbnailRebuildAjax' ) );
|
14 |
+
add_action( 'wp_ajax_'.'get_sizes', array( &$this, 'ajaxGetSizes' ) );
|
15 |
+
add_action( 'wp_ajax_'.'add_size', array( &$this, 'ajaxAddSize' ) );
|
16 |
+
add_action( 'wp_ajax_'.'remove_size', array( &$this, 'ajaxRemoveSize' ) );
|
17 |
+
|
18 |
+
// Add image sizes in the form, check if 3.3 is installed or not
|
19 |
+
if( !function_exists( 'is_main_query' ) ) {
|
20 |
+
add_filter( 'attachment_fields_to_edit', array( &$this, 'sizesInForm' ), 11, 2 ); // Add our sizes to media forms
|
21 |
+
} else {
|
22 |
+
add_filter( 'image_size_names_choose', array( &$this, 'AddThumbnailName' ) );
|
23 |
+
}
|
24 |
|
25 |
// Add link in plugins list
|
26 |
+
add_filter( 'plugin_action_links', array( &$this,'addSettingsLink' ), 10, 2 );
|
27 |
|
28 |
// Add action in media row quick actions
|
29 |
+
add_filter( 'media_row_actions', array(&$this, 'addActionsList' ), 10, 2 );
|
30 |
+
|
31 |
+
// Add filter for the Media single
|
32 |
+
add_filter( 'attachment_fields_to_edit', array( &$this, 'addFieldRegenerate' ), 9, 2 );
|
33 |
+
|
34 |
}
|
35 |
|
36 |
/**
|
55 |
// Add CSS
|
56 |
wp_enqueue_style( 'jquery-ui-sis', SIS_URL.'css/Aristo/jquery-ui-1.8.7.custom.css', array(), '1.8.7' );
|
57 |
wp_enqueue_style( 'sis_css', SIS_URL.'css/sis-style.css', array(), SIS_VERSION );
|
58 |
+
} elseif( $hook_suffix == 'upload.php' || ( $hook_suffix == 'media.php' && isset( $_GET['attachment_id'] ) && isset( $_GET['action'] ) && $_GET['action'] == 'edit' ) ) {
|
59 |
// Add javascript
|
60 |
wp_enqueue_script( 'sis_js', SIS_URL.'js/sis-attachments.min.js', array( 'jquery' ), SIS_VERSION );
|
61 |
|
87 |
'deleteImage' => __( 'Delete', 'sis' ),
|
88 |
'noMedia' => __( 'No media in your site to regenerate !', 'sis' ),
|
89 |
'regenerating' => __( 'Regenerating ', 'sis'),
|
90 |
+
'regenerate' => __( 'Regenerate ', 'sis'),
|
91 |
'validate' => __( 'Validate image size name', 'sis' ),
|
92 |
'done' => __( 'Done.', 'sis' ),
|
93 |
'size' => __( 'Size', 'sis' ),
|
99 |
'messageRegenerated' => __( 'images have been regenerated !', 'sis' ),
|
100 |
'validateButton' => __( 'Validate', 'sis' ),
|
101 |
'startedAt' => __( ' started at', 'sis' ),
|
102 |
+
'customName' => __( 'Public name', 'sis' ),
|
103 |
'finishedAt' => __( ' finished at :', 'sis' ),
|
104 |
'phpError' => __( 'Error during the php treatment, be sure to not have php errors in your page', 'sis' ),
|
105 |
'notSaved' => __( 'All the sizes you have modifed are not saved, continue anyway ?', 'sis' ),
|
228 |
$crop = isset( $sizes[$args['name']]['c'] ) && !empty( $sizes[$args['name']]['c'] )? $sizes[$args['name']]['c'] : $args['c'] ;
|
229 |
$show = isset( $sizes[$args['name']]['s'] ) && !empty( $sizes[$args['name']]['s'] )? '1' : '0' ;
|
230 |
$custom = isset( $sizes[$args['name']]['custom'] ) && !empty( $sizes[$args['name']]['custom'] )? '1' : '0' ;
|
231 |
+
$name = isset( $sizes[$args['name']]['n'] ) && !empty( $sizes[$args['name']]['n'] )? esc_html( $sizes[$args['name']]['n'] ) : esc_html( $args['name'] ) ;
|
232 |
+
|
233 |
?>
|
234 |
+
<input type="hidden" value="<?php echo esc_attr( $args['name'] ); ?>" name="image_name" />
|
235 |
<?php if( $custom ): ?>
|
236 |
+
<input name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][custom]' ); ?>" type="hidden" id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][custom]' ); ?>" value="1" />
|
237 |
<?php else: ?>
|
238 |
+
<input name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][theme]' ); ?>" type="hidden" id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][theme]' ); ?>" value="1" />
|
239 |
<?php endif; ?>
|
240 |
+
<label class="sis-label" for="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][w]' ); ?>">
|
241 |
<?php _e( 'Maximum width', 'sis'); ?>
|
242 |
+
<input name="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][w]' ); ?>" class='w small-text' type="number" step='1' min='0' id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][w]' ); ?>" base_w='<?php echo esc_attr( $width ); ?>' value="<?php echo esc_attr( $width ); ?>" />
|
243 |
</label>
|
244 |
<label class="sis-label" for="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][h]' ); ?>">
|
245 |
<?php _e( 'Maximum height', 'sis'); ?>
|
246 |
+
<input name="<?php esc_attr_e( 'custom_image_sizes['.$args['name'].'][h]' ); ?>" class='h small-text' type="number" step='1' min='0' id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][h]' ); ?>" base_h='<?php echo esc_attr( $height ); ?>' value="<?php echo esc_attr( $height ); ?>" />
|
247 |
+
</label>
|
248 |
+
<label class="sis-label" for="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][n]' ); ?>">
|
249 |
+
<?php _e( 'Public name', 'sis'); ?>
|
250 |
+
<input name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][n]' ); ?>" class='n' type="text" id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][n]' ); ?>" base_n='<?php echo $name; ?>' value="<?php echo $name ?>" />
|
251 |
</label>
|
252 |
<span class="size_options">
|
253 |
+
<input type='checkbox' id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" <?php checked( $crop, 1 ) ?> class="c crop" base_c='<?php echo esc_attr( $crop ); ?>' name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" value="1" />
|
254 |
+
<label class="c" for="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>"><?php _e( 'Crop ?', 'sis'); ?></label>
|
255 |
|
256 |
+
<input type='checkbox' id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][s]'); ?>" <?php checked( $show, 1 ) ?> class="s show" base_s='<?php echo esc_attr( $show ); ?>' name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][s]'); ?>" value="1" />
|
257 |
+
<label class="s" for="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][s]'); ?>"><?php _e( 'Show in post insertion ?', 'sis'); ?></label>
|
258 |
</span>
|
259 |
<span class="delete_size"><?php _e( 'Delete', 'sis'); ?></span>
|
260 |
<span class="add_size validate_size"><?php _e( 'Update', 'sis'); ?></span>
|
309 |
*/
|
310 |
public function thumbnailRegenerate() {
|
311 |
// Get the sizes
|
312 |
+
global $_wp_additional_image_sizes,$_wp_post_type_features;
|
313 |
?>
|
314 |
<input type="hidden" class="addSize" value='<?php echo wp_create_nonce( 'add_size' ); ?>' />
|
315 |
<input type="hidden" class="regen" value='<?php echo wp_create_nonce( 'regen' ); ?>' />
|
352 |
?>
|
353 |
<tr>
|
354 |
<th class="check-column">
|
355 |
+
<input type="checkbox" class="thumbnails" id="<?php echo esc_attr( $s ) ?>" name="thumbnails[]" checked="checked" value="<?php echo esc_attr( $s ); ?>" />
|
356 |
</th>
|
357 |
<th>
|
358 |
<label for="<?php esc_attr_e( $s ); ?>">
|
359 |
+
<?php echo esc_html( $s ); ?>
|
360 |
</label>
|
361 |
</th>
|
362 |
<th>
|
363 |
<label for="<?php esc_attr_e( $s ); ?>">
|
364 |
+
<?php echo esc_html( $width); ?> px
|
365 |
</label>
|
366 |
</th>
|
367 |
<th>
|
368 |
<label for="<?php esc_attr_e( $s ); ?>">
|
369 |
+
<?php echo esc_html( $height ); ?> px
|
370 |
</label>
|
371 |
</th>
|
372 |
<th>
|
399 |
<tbody>
|
400 |
<?php
|
401 |
// Diplay the post types table
|
402 |
+
foreach ( get_post_types( array( 'public' => true, '_builtin' => false ), 'objects', 'or' ) as $ptype ):
|
403 |
+
// Avoid the post_types without post thumbnails feature
|
404 |
+
if( !array_key_exists( 'thumbnail' , $_wp_post_type_features[$ptype->name] ) || $_wp_post_type_features[$ptype->name] == false )
|
405 |
+
continue;
|
406 |
?>
|
407 |
<tr>
|
408 |
<th class="check-column">
|
412 |
</th>
|
413 |
<th>
|
414 |
<label for="<?php esc_attr_e( $ptype->name ); ?>">
|
415 |
+
<em><?php echo esc_html( $ptype->labels->name ); ?></em>
|
416 |
</label>
|
417 |
</th>
|
418 |
</tr>
|
481 |
$width = !isset( $_POST['width'] )? 0 : absint( $_POST['width'] );
|
482 |
$crop = isset( $_POST['crop'] ) && $_POST['crop'] == 'false' ? false : true;
|
483 |
$show = isset( $_POST['show'] ) && $_POST['show'] == 'false' ? false : true;
|
484 |
+
$cn = isset( $_POST['customName'] ) && !empty( $_POST['customName'] ) ? sanitize_text_field( $_POST['customName'] ): $name ;
|
485 |
|
486 |
// Check the nonce
|
487 |
if( !wp_verify_nonce( $nonce , 'add_size' ) ) {
|
496 |
}
|
497 |
|
498 |
// Make values
|
499 |
+
$values = array( 'custom' => 1, 'w' => $width , 'h' => $height, 'c' => $crop, 's' => $show, 'n' => $cn );
|
500 |
|
501 |
// If the size have not changed return 2
|
502 |
if( isset( $sizes[$name] ) && $sizes[$name] === $values ) {
|
730 |
|
731 |
$resized = image_make_intermediate_size( $file, $size_data['width'], $size_data['height'], $size_data['crop'] );
|
732 |
|
733 |
+
if( isset( $meta_datas['size'][$size] ) ) {
|
734 |
+
// Remove the size from the orignal sizes for after work
|
735 |
+
unset( $meta_datas['size'][$size] );
|
736 |
+
}
|
737 |
|
738 |
if ( $resized )
|
739 |
$metadata['sizes'][$size] = $resized;
|
752 |
if ( $image_meta )
|
753 |
$metadata['image_meta'] = $image_meta;
|
754 |
}
|
755 |
+
|
756 |
return apply_filters( 'wp_generate_attachment_metadata', $metadata, $attachment_id );
|
757 |
}
|
758 |
|
775 |
|
776 |
if ( is_array( $sizes_custom ) ) {
|
777 |
foreach( $sizes_custom as $key => $value ) {
|
778 |
+
if( isset( $value['s'] ) && $value['s'] == 1 ) {
|
779 |
+
$size_names[$key] = $this->_getThumbnailName( $key );;
|
780 |
+
}
|
781 |
}
|
782 |
}
|
783 |
foreach ( $size_names as $size => $label ) {
|
823 |
|
824 |
return $form_fields;
|
825 |
}
|
826 |
+
|
827 |
+
/**
|
828 |
+
* Add the thumbnail name in the post insertion, based on new WP filter
|
829 |
+
*
|
830 |
+
* @access public
|
831 |
+
* @param array $sizes
|
832 |
+
* @return array
|
833 |
+
* @since 2.3
|
834 |
+
* @author Nicolas Juen
|
835 |
+
* @author radeno based on this post : http://www.wpmayor.com/wordpress-hacks/how-to-add-custom-image-sizes-to-wordpress-uploader/
|
836 |
+
*/
|
837 |
+
function AddThumbnailName($sizes) {
|
838 |
+
// Get options
|
839 |
+
$sizes_custom = get_option( SIS_OPTION );
|
840 |
+
// init size array
|
841 |
+
$addsizes = array();
|
842 |
+
|
843 |
+
// check there is custom sizes
|
844 |
+
if ( is_array( $sizes_custom ) && !empty( $sizes_custom ) ) {
|
845 |
+
foreach( $sizes_custom as $key => $value ) {
|
846 |
+
// If we show this size in the admin
|
847 |
+
if( isset( $value['s'] ) && $value['s'] == 1 )
|
848 |
+
$addsizes[$key] = $this->_getThumbnailName( $key );
|
849 |
+
}
|
850 |
+
}
|
851 |
+
|
852 |
+
// Merge the two array
|
853 |
+
$newsizes = array_merge($sizes, $addsizes);
|
854 |
+
|
855 |
+
// Add new size
|
856 |
+
return $newsizes;
|
857 |
+
}
|
858 |
+
|
859 |
+
/**
|
860 |
+
* Get a thumbnail name from its slug
|
861 |
+
*
|
862 |
+
* @access private
|
863 |
+
* @param string $thumbnailSlug : the slug of the thumbnail
|
864 |
+
* @return array
|
865 |
+
* @since 2.3
|
866 |
+
* @author Nicolas Juen
|
867 |
+
*/
|
868 |
+
private function _getThumbnailName( $thumbnailSlug = '' ) {
|
869 |
+
|
870 |
+
// get the options
|
871 |
+
$sizes_custom = get_option( SIS_OPTION );
|
872 |
+
|
873 |
+
// If the size exists
|
874 |
+
if( isset( $sizes_custom[$thumbnailSlug] ) ) {
|
875 |
+
// If the name exists return it, slug by default
|
876 |
+
if( isset( $sizes_custom[$thumbnailSlug]['n'] ) && !empty( $sizes_custom[$thumbnailSlug]['n'] ) ) {
|
877 |
+
return $sizes_custom[$thumbnailSlug]['n'];
|
878 |
+
} else {
|
879 |
+
return $thumbnailSlug;
|
880 |
+
}
|
881 |
+
}
|
882 |
+
|
883 |
+
// return slug if not found
|
884 |
+
return $thumbnailSlug;
|
885 |
+
}
|
886 |
+
|
887 |
+
/**
|
888 |
+
* Get a thumbnail name from its slug
|
889 |
+
*
|
890 |
+
* @access public
|
891 |
+
* @param array $fields : the fields of the media
|
892 |
+
* @param object $post : the post object
|
893 |
+
* @return array
|
894 |
+
* @since 2.3.1
|
895 |
+
* @author Nicolas Juen
|
896 |
+
*/
|
897 |
+
function addFieldRegenerate( $fields, $post ) {
|
898 |
+
// Check this is an image
|
899 |
+
if( strpos( $post->post_mime_type, 'image' ) === false )
|
900 |
+
return $fields;
|
901 |
+
|
902 |
+
$fields['sis-regenerate'] = array(
|
903 |
+
'label' => __( 'Regenerate Thumbnails', 'sis' ),
|
904 |
+
'input' => 'html',
|
905 |
+
'html' => '
|
906 |
+
<input type="button" class="button title sis-regenerate-one" value="'.__( 'Regenerate Thumbnails', 'sis' ).'" />
|
907 |
+
<span class="title"><em></em></span>
|
908 |
+
<input type="hidden" class="regen" value="'.wp_create_nonce( 'regen' ).'" />
|
909 |
+
'
|
910 |
+
);
|
911 |
+
return $fields;
|
912 |
+
}
|
913 |
}
|
914 |
?>
|
js/sis-attachments.js
CHANGED
@@ -1,6 +1,37 @@
|
|
1 |
-
jQuery( function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
jQuery( '.sis-regenerate-one' ).click( function( e ) {
|
3 |
e.preventDefault();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
var regenerate = {
|
5 |
list : '',
|
6 |
percent : '' ,
|
@@ -9,13 +40,21 @@ jQuery( function(){
|
|
9 |
messageZone : '',
|
10 |
init: function( el ) {
|
11 |
this.el = jQuery( el );
|
12 |
-
id =
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
this.list = { 'id' : this.id, 'title' : 'titre' };
|
16 |
|
17 |
if( this.el.find('.title em').size() == 0 )
|
18 |
this.el.find('.title strong').after('<em/>');
|
|
|
19 |
this.messageZone = this.el.find('.title em');
|
20 |
|
21 |
if( !this.el.hasClass( 'ajaxing' ) )
|
@@ -52,9 +91,10 @@ jQuery( function(){
|
|
52 |
_self.el.fadeTo( 'fast' ,'1' ).removeClass('ajaxing');
|
53 |
}
|
54 |
});
|
55 |
-
|
56 |
}
|
57 |
}
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
1 |
+
jQuery( function() {
|
2 |
+
// Add action dinamycally
|
3 |
+
jQuery( 'select[name="action"]' ).append(
|
4 |
+
jQuery( '<option/>' ).attr( 'value', 'sis-regenerate' ).text( sis.regenerate )
|
5 |
+
);
|
6 |
+
|
7 |
+
// Regenerate one element
|
8 |
jQuery( '.sis-regenerate-one' ).click( function( e ) {
|
9 |
e.preventDefault();
|
10 |
+
new SISAttachRegenerate( this );
|
11 |
+
});
|
12 |
+
|
13 |
+
// On bulk actions
|
14 |
+
jQuery( '#doaction' ).click( function( e ) {
|
15 |
+
if( jQuery( this ).parent().find( 'select' ).val() == 'sis-regenerate' ) {
|
16 |
+
// Get checked checkbocxes
|
17 |
+
var els = jQuery( '.wp-list-table.media #the-list tr input[type="checkbox"]:checked' );
|
18 |
+
|
19 |
+
// Check there is any elements selected
|
20 |
+
if( els.length > 0 ) {
|
21 |
+
|
22 |
+
// Stop default action
|
23 |
+
e.preventDefault();
|
24 |
+
|
25 |
+
// Make all the selected elements
|
26 |
+
els.each( function( i,el ) {
|
27 |
+
new SISAttachRegenerate( jQuery( this ) );
|
28 |
+
} )
|
29 |
+
}
|
30 |
+
}
|
31 |
+
} );
|
32 |
+
|
33 |
+
// Function for regenerating the elements
|
34 |
+
var SISAttachRegenerate = function( el ) {
|
35 |
var regenerate = {
|
36 |
list : '',
|
37 |
percent : '' ,
|
40 |
messageZone : '',
|
41 |
init: function( el ) {
|
42 |
this.el = jQuery( el );
|
43 |
+
id = this.el.attr( 'id' );
|
44 |
+
|
45 |
+
// IF no id found
|
46 |
+
if( !id ) {
|
47 |
+
id = this.el.closest( '.media-item' ).attr( 'id' );
|
48 |
+
this.id = id.replace( 'media-item-', '' );
|
49 |
+
} else {
|
50 |
+
this.id = id.replace( 'post-', '' );
|
51 |
+
}
|
52 |
|
53 |
this.list = { 'id' : this.id, 'title' : 'titre' };
|
54 |
|
55 |
if( this.el.find('.title em').size() == 0 )
|
56 |
this.el.find('.title strong').after('<em/>');
|
57 |
+
|
58 |
this.messageZone = this.el.find('.title em');
|
59 |
|
60 |
if( !this.el.hasClass( 'ajaxing' ) )
|
91 |
_self.el.fadeTo( 'fast' ,'1' ).removeClass('ajaxing');
|
92 |
}
|
93 |
});
|
|
|
94 |
}
|
95 |
}
|
96 |
+
|
97 |
+
// Launch regeneration
|
98 |
+
regenerate.init( jQuery( el ).closest( 'tr' ) );
|
99 |
+
}
|
100 |
+
} );
|
js/sis-attachments.min.js
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
-
jQuery(function(){jQuery("
|
2 |
-
|
|
1 |
+
jQuery(function(){jQuery('select[name="action"]').append(jQuery("<option/>").attr("value","sis-regenerate").text(sis.regenerate));jQuery(".sis-regenerate-one").click(function(a){a.preventDefault();new c(this)});jQuery("#doaction").click(function(a){if("sis-regenerate"==jQuery(this).parent().find("select").val()){var b=jQuery('.wp-list-table.media #the-list tr input[type="checkbox"]:checked');0<b.length&&(a.preventDefault(),b.each(function(){new c(jQuery(this))}))}});var c=function(a){({list:"",percent:"",
|
2 |
+
el:"",id:"",messageZone:"",init:function(b){this.el=jQuery(b);(id=this.el.attr("id"))?this.id=id.replace("post-",""):(id=this.el.closest(".media-item").attr("id"),this.id=id.replace("media-item-",""));this.list={id:this.id,title:"titre"};0==this.el.find(".title em").size()&&this.el.find(".title strong").after("<em/>");this.messageZone=this.el.find(".title em");this.el.hasClass("ajaxing")||this.regenItem()},setMessage:function(b){this.messageZone.html(" - "+b).addClass("updated").addClass("fade").show()},
|
3 |
+
regenItem:function(){var b=this,a=jQuery("input.regen").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:"action=sis_ajax_thumbnail_rebuild&do=regen&id="+this.list.id+"&nonce="+a,beforeSend:function(){b.el.fadeTo("fast","0.2").addClass("ajaxing")},success:function(a){var c="",c=!a.src||!a.time||a.error||"object"!==typeof a?"object"!==typeof a?sis.phpError:a.error:sis.soloRegenerated.replace("%s",a.time);b.setMessage(c);b.el.fadeTo("fast","1").removeClass("ajaxing")}})}}).init(jQuery(a).closest("tr"))}});
|
js/sis.js
CHANGED
@@ -301,6 +301,16 @@ var sizes = {
|
|
301 |
).val( "0" ).addClass( "h small-text" )
|
302 |
).appendTo( tdEl );
|
303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
els = jQuery( '<span />' )
|
305 |
.addClass( 'size_options' )
|
306 |
.append(
|
@@ -345,6 +355,7 @@ var sizes = {
|
|
345 |
} )
|
346 |
.text( sis.show )
|
347 |
);
|
|
|
348 |
els.appendTo(tdEl);
|
349 |
|
350 |
jQuery( '<div />' ).text( sis.deleteImage ).addClass('delete_size').appendTo( tdEl );
|
@@ -406,6 +417,7 @@ var sizes = {
|
|
406 |
var n = parent.find( 'input[name="image_name"]' ).val();
|
407 |
var c = parent.find( 'label.c' ).hasClass( 'ui-state-active' );
|
408 |
var s = parent.find( 'label.s' ).hasClass( 'ui-state-active' );
|
|
|
409 |
|
410 |
if( c == false || c == undefined ) {
|
411 |
c = false;
|
@@ -427,7 +439,7 @@ var sizes = {
|
|
427 |
url: sis.ajaxUrl,
|
428 |
type: "POST",
|
429 |
dataType :'json',
|
430 |
-
data: { action : "add_size", width: w, height: h, crop: c, name: n, show: s, nonce : wp_nonce },
|
431 |
beforeSend: function() {
|
432 |
// Remove status and set pending
|
433 |
parent.removeClass();
|
@@ -597,16 +609,19 @@ var sizes = {
|
|
597 |
var w_el = parent.find( 'input.w' );
|
598 |
var c_el = parent.find( 'input.c' );
|
599 |
var s_el = parent.find( 'input.s' );
|
|
|
600 |
|
601 |
var h = h_el.val();
|
602 |
var w = w_el.val();
|
603 |
var c = parent.find( 'label.c' ).hasClass( 'ui-state-active' );
|
604 |
var s = parent.find( 'label.s' ).hasClass( 'ui-state-active' );
|
|
|
605 |
|
606 |
var base_h = h_el.attr( 'base_h' );
|
607 |
var base_w = w_el.attr( 'base_w' );
|
608 |
var base_c = c_el.attr( 'base_c' );
|
609 |
var base_s = s_el.attr( 'base_s' );
|
|
|
610 |
|
611 |
if( base_c == '0' )
|
612 |
base_c = false;
|
@@ -620,7 +635,7 @@ var sizes = {
|
|
620 |
|
621 |
|
622 |
|
623 |
-
if( h != base_h || w != base_w || c != base_c || s != base_s ) {
|
624 |
el.closest( 'td' ).addClass( 'notSaved' ).find('.add_size').css( 'display', 'inline-block' );
|
625 |
} else {
|
626 |
el.closest( 'td' ).removeClass( 'notSaved' ).find('.add_size').css( 'display', 'none' );
|
@@ -642,7 +657,7 @@ jQuery(function() {
|
|
642 |
jQuery('.delete_size').live( 'click', function( e ) { sizes.deleteSize( e, this ); } );
|
643 |
jQuery('.add_size').live( 'click', function( e ) { sizes.ajaxRegister( e, this ); } );
|
644 |
|
645 |
-
jQuery( '.h,.w,.c,.s' ).live( 'click', function( e ) { sizes.displayChange( this ); } );
|
646 |
|
647 |
// Seup the getphp
|
648 |
jQuery('#get_php').click( function( e ){ sizes.getPhp( e, this ) } );
|
301 |
).val( "0" ).addClass( "h small-text" )
|
302 |
).appendTo( tdEl );
|
303 |
|
304 |
+
|
305 |
+
jQuery( '<label />' ).attr( 'for', 'custom_image_sizes[' + name + '][n]' ).addClass( 'sis-label' ).text(sis.customName).append(
|
306 |
+
jQuery( '<input />' ).attr( { type: 'text',
|
307 |
+
name: 'custom_image_sizes[' + name + '][n]',
|
308 |
+
id: 'custom_image_sizes[' + name + '][n]',
|
309 |
+
base_n:name
|
310 |
+
}
|
311 |
+
).val( name ).addClass( "n small-text" )
|
312 |
+
).appendTo( tdEl );
|
313 |
+
|
314 |
els = jQuery( '<span />' )
|
315 |
.addClass( 'size_options' )
|
316 |
.append(
|
355 |
} )
|
356 |
.text( sis.show )
|
357 |
);
|
358 |
+
|
359 |
els.appendTo(tdEl);
|
360 |
|
361 |
jQuery( '<div />' ).text( sis.deleteImage ).addClass('delete_size').appendTo( tdEl );
|
417 |
var n = parent.find( 'input[name="image_name"]' ).val();
|
418 |
var c = parent.find( 'label.c' ).hasClass( 'ui-state-active' );
|
419 |
var s = parent.find( 'label.s' ).hasClass( 'ui-state-active' );
|
420 |
+
var cn = parent.find( 'input.n' ).val();
|
421 |
|
422 |
if( c == false || c == undefined ) {
|
423 |
c = false;
|
439 |
url: sis.ajaxUrl,
|
440 |
type: "POST",
|
441 |
dataType :'json',
|
442 |
+
data: { action : "add_size", width: w, height: h, crop: c, name: n, show: s, customName : cn , nonce : wp_nonce },
|
443 |
beforeSend: function() {
|
444 |
// Remove status and set pending
|
445 |
parent.removeClass();
|
609 |
var w_el = parent.find( 'input.w' );
|
610 |
var c_el = parent.find( 'input.c' );
|
611 |
var s_el = parent.find( 'input.s' );
|
612 |
+
var n_el = parent.find( 'input.n' );
|
613 |
|
614 |
var h = h_el.val();
|
615 |
var w = w_el.val();
|
616 |
var c = parent.find( 'label.c' ).hasClass( 'ui-state-active' );
|
617 |
var s = parent.find( 'label.s' ).hasClass( 'ui-state-active' );
|
618 |
+
var n = n_el.val();
|
619 |
|
620 |
var base_h = h_el.attr( 'base_h' );
|
621 |
var base_w = w_el.attr( 'base_w' );
|
622 |
var base_c = c_el.attr( 'base_c' );
|
623 |
var base_s = s_el.attr( 'base_s' );
|
624 |
+
var base_n = n_el.attr( 'base_n' );
|
625 |
|
626 |
if( base_c == '0' )
|
627 |
base_c = false;
|
635 |
|
636 |
|
637 |
|
638 |
+
if( h != base_h || w != base_w || c != base_c || s != base_s || n != base_n ) {
|
639 |
el.closest( 'td' ).addClass( 'notSaved' ).find('.add_size').css( 'display', 'inline-block' );
|
640 |
} else {
|
641 |
el.closest( 'td' ).removeClass( 'notSaved' ).find('.add_size').css( 'display', 'none' );
|
657 |
jQuery('.delete_size').live( 'click', function( e ) { sizes.deleteSize( e, this ); } );
|
658 |
jQuery('.add_size').live( 'click', function( e ) { sizes.ajaxRegister( e, this ); } );
|
659 |
|
660 |
+
jQuery( '.h,.w,.c,.s,.n' ).live( 'click skeyup change', function( e ) { sizes.displayChange( this ); } );
|
661 |
|
662 |
// Seup the getphp
|
663 |
jQuery('#get_php').click( function( e ){ sizes.getPhp( e, this ) } );
|
js/sis.min.js
CHANGED
@@ -1,24 +1,25 @@
|
|
1 |
sis_small=!0;
|
2 |
-
var regenerate={post_types:"",thumbnails:"",list:"",cur:0,timeScript:[],dateScript:"",percent:"",getThumbnails:function(){var a=this,
|
3 |
-
a+"</p>").addClass("updated").addClass("fade").show();this.refreshProgressBar()},setTimeMessage:function(a){jQuery("#time p span.time_message").html(a)},refreshProgressBar:function(){jQuery(".progress").progressbar()},checkStartRegenerating:function(){if(0<jQuery(".notSaved").size())if(!0==confirm(sis.notSaved))this.startRegenerating();else return!1;else this.startRegenerating()},startRegenerating:function(){var a=this,
|
4 |
-
type:"POST",dataType:"json",data:"action=sis_ajax_thumbnail_rebuild&do=getlist"+a.post_types+"&nonce="+
|
5 |
-
this.setMessage(sis.noMedia),!1;this.curr>=this.list.length?(
|
6 |
-
this.list[this.curr].id+this.thumbnails+"&nonce="+
|
7 |
-
|
8 |
-
a%86400,
|
9 |
-
jQuery("<td />").append(jQuery("<input />").attr({type:"button",id:"validate_"+this.i}).val(sis.validate).addClass("button-secondary action add_size_name")).appendTo(
|
10 |
-
!1;if(0!=g)return alert(sis.alreadyPresent),!1;var g=jQuery("<th />").attr("scope","row").text(sis.size+" "+
|
11 |
-
step:1,min:0,id:"custom_image_sizes["+
|
12 |
-
|
13 |
-
title:sis.show}).text(sis.show));els.appendTo(e);jQuery("<div />").text(sis.deleteImage).addClass("delete_size").appendTo(e);jQuery("<div />").text(sis.validateButton).addClass("add_size validate_size").appendTo(e);jQuery("#"+f).closest("tr").html(g.after(e));!0==sis_small?this.setButtonsSmall():
|
14 |
-
jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"get_sizes"},beforeSend:function(){
|
15 |
-
j=d.find("label.s").hasClass("ui-state-active"),h=!1==h||void 0==h?!1:!0,j=!1==j||void 0==j?!1:!0,
|
16 |
-
2==a?"notChangedAdding":"successAdding",
|
17 |
-
c=jQuery(a).closest("tr").find('input[name="image_name"]').val(),f=jQuery(a).closest("tr").find("input.deleteSize").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"remove_size",name:
|
18 |
-
a).end().find("input.thumbnails").val(a).attr("id",a).end().find("th:nth-child(2) > label").text(a).end().find("th:nth-child(3) > label").text(
|
19 |
-
jQuery(a).closest("tr").find("input[name=image_name]").val();jQuery('#sis-regen .wrapper > table#sis_sizes > tbody input[value="'+a+'"]').closest("tr").remove()},setButtons:function(){jQuery(".delete_size").button({icons:{primary:"ui-icon-circle-close"},
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
23 |
this)});jQuery("#get_php").nextAll("code").hide();jQuery("span.custom_size").closest("tr").children("th").css({color:"#89D76A"});jQuery("span.theme_size").closest("tr").children("th").css({color:"#F2A13A"});jQuery(".add_size").hide();jQuery('<div class="ui-widget" id="msg"><div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Alert:</strong> <ul class="msg" ></ul></p></div></div>').prependTo("div#wpwrap").slideUp(0);
|
24 |
-
jQuery("#msg").ajaxError(function(a,b
|
1 |
sis_small=!0;
|
2 |
+
var regenerate={post_types:"",thumbnails:"",list:"",cur:0,timeScript:[],dateScript:"",percent:"",getThumbnails:function(){var a=this,c=jQuery("input.thumbnails:checked");c.length!=jQuery('input.thumbnails[type="checkbox"]').length&&c.each(function(){a.thumbnails+="&thumbnails[]="+jQuery(this).val()})},getPostTypes:function(){var a=this,c=jQuery("input.post_types:checked");c.length!=jQuery('input.post_types[type="checkbox"]').length&&c.each(function(){a.post_types+="&post_types[]="+jQuery(this).val()})},setMessage:function(a){jQuery("#regenerate_message").html("<p>"+
|
3 |
+
a+"</p>").addClass("updated").addClass("fade").show();this.refreshProgressBar()},setTimeMessage:function(a){jQuery("#time p span.time_message").html(a)},refreshProgressBar:function(){jQuery(".progress").progressbar()},checkStartRegenerating:function(){if(0<jQuery(".notSaved").size())if(!0==confirm(sis.notSaved))this.startRegenerating();else return!1;else this.startRegenerating()},startRegenerating:function(){var a=this,c=jQuery("input.getList").val();this.dateScript=new Date;jQuery.ajax({url:sis.ajaxUrl,
|
4 |
+
type:"POST",dataType:"json",data:"action=sis_ajax_thumbnail_rebuild&do=getlist"+a.post_types+"&nonce="+c,beforeSend:function(){jQuery("#ajax_thumbnail_rebuild").attr("disabled",!0);a.setMessage(sis.reading);a.getThumbnails();a.getPostTypes()},success:function(b){if("object"!==typeof b)return a.reInit(),a.setMessage(sis.phpError),!1;jQuery("#time").show();a.list=b;a.curr=0;jQuery(".progress").show();a.regenItem()}})},regenItem:function(){var a=this,c=jQuery("input.regen").val();if(!this.list)return this.reInit(),
|
5 |
+
this.setMessage(sis.noMedia),!1;this.curr>=this.list.length?(c=new Date,this.reInit(),this.setMessage(sis.done+this.curr+" "+sis.messageRegenerated+sis.startedAt+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+sis.finishedAt+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds())):(this.setMessage(sis.regenerating+(this.curr+1)+sis.of+this.list.length+" ("+this.list[this.curr].title+")..."),jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:"action=sis_ajax_thumbnail_rebuild&do=regen&id="+
|
6 |
+
this.list[this.curr].id+this.thumbnails+"&nonce="+c,beforeSend:function(){a.percent=100*(a.curr/a.list.length);jQuery(".progress").progressbar("value",a.percent);jQuery(".progress-percent span.text").html(Math.round(a.percent)+"%").closest(".progress-percent").animate({left:Math.round(a.percent)-2.5+"%"},500)},success:function(b){if(!b.src||!b.time||b.error||"object"!==typeof b){var c="",c="object"!==typeof b?sis.phpError:b.error;jQuery("#error_messages").addClass("error message");jQuery("#error_messages ul.messages").prepend("<li>"+
|
7 |
+
c+"</li>")}else{b.message&&jQuery("#time ul.messages").prepend("<li>"+b.message+"</li>");var c=new Date,g=new Date;jQuery("#thumb").show();jQuery("#thumb-img").attr("src",b.src);a.timeScript.push(b.time);for(var b=a.timeScript.length,e=0,d=0;d<b;d++)e+=a.timeScript[d];b=Math.round(1E3*e/b*a.list.length);c.setTime(a.dateScript.getTime()+b);g=a.s2t((c.getTime()-g.getTime())/1E3);a.setTimeMessage(c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+sis.or+g+sis.beforeEnd)}a.curr++;a.regenItem()}}))},s2t:function(a){var a=
|
8 |
+
a%86400,c=new Date(1970,0,1);c.setSeconds(a);var b=c.toTimeString().substr(0,8);86399<a&&(b=Math.floor((c-Date.parse("1/1/70"))/36E5)+b.substr(2));return b},reInit:function(){jQuery("#ajax_thumbnail_rebuild").removeAttr("disabled");jQuery(".progress, #thumb").hide()}},sizes={i:0,add:function(a,c){a.preventDefault();var b=jQuery("<tr />").attr("valign","top").addClass("new_size_"+this.i+" new_size");jQuery("<th />").attr("scope","row").append(jQuery("<input />").attr({type:"text",id:"new_size_"+this.i}).val("thumbnail-name")).appendTo(b);
|
9 |
+
jQuery("<td />").append(jQuery("<input />").attr({type:"button",id:"validate_"+this.i}).val(sis.validate).addClass("button-secondary action add_size_name")).appendTo(b);jQuery(c).closest("tr").before(b);this.i++},register:function(a,c){a.preventDefault();var b=jQuery(c).closest("tr").children("th").find("input").val(),f=jQuery(c).closest("tr").children("th").find("input").attr("id"),g=jQuery(c).closest("tbody").find('input[value="'+b+'"]').length;if("thumbnail"==b||"medium"==b||"large"==b)return alert(sis.notOriginal),
|
10 |
+
!1;if(0!=g)return alert(sis.alreadyPresent),!1;var g=jQuery("<th />").attr("scope","row").text(sis.size+" "+b),e=jQuery("<td />");jQuery("<input />").attr({type:"hidden",name:"image_name"}).val(b).appendTo(e);jQuery("<input />").attr({type:"hidden",name:"custom_image_sizes["+b+"][custom]"}).val("1").appendTo(e);jQuery("<label />").attr("for","custom_image_sizes["+b+"][w]").addClass("sis-label").text(sis.maximumWidth).append(jQuery("<input />").attr({type:"number",name:"custom_image_sizes["+b+"][w]",
|
11 |
+
step:1,min:0,id:"custom_image_sizes["+b+"][w]",base_w:0}).val("0").addClass("w small-text")).appendTo(e);jQuery("<label />").attr("for","custom_image_sizes["+b+"][h]").addClass("sis-label").text(sis.maximumHeight).append(jQuery("<input />").attr({type:"number",name:"custom_image_sizes["+b+"][h]",step:1,min:0,id:"custom_image_sizes["+b+"][h]",base_h:0}).val("0").addClass("h small-text")).appendTo(e);jQuery("<label />").attr("for","custom_image_sizes["+b+"][n]").addClass("sis-label").text(sis.customName).append(jQuery("<input />").attr({type:"text",
|
12 |
+
name:"custom_image_sizes["+b+"][n]",id:"custom_image_sizes["+b+"][n]",base_n:b}).val(b).addClass("n small-text")).appendTo(e);els=jQuery("<span />").addClass("size_options").append(jQuery("<input />").attr({type:"checkbox",name:"custom_image_sizes["+b+"][c]",id:"custom_image_sizes["+b+"][c]",base_c:0}).val("1").addClass("c crop")).append(jQuery("<label />").attr({"for":"custom_image_sizes["+b+"][c]",id:"custom_image_sizes["+b+"][c]","class":"c",title:sis.crop}).text(sis.crop)).append(jQuery("<input />").attr({type:"checkbox",
|
13 |
+
name:"custom_image_sizes["+b+"][s]",id:"custom_image_sizes["+b+"][s]",base_s:0}).val("1").addClass("s show")).append(jQuery("<label />").attr({"for":"custom_image_sizes["+b+"][s]",id:"custom_image_sizes["+b+"][s]","class":"s",title:sis.show}).text(sis.show));els.appendTo(e);jQuery("<div />").text(sis.deleteImage).addClass("delete_size").appendTo(e);jQuery("<div />").text(sis.validateButton).addClass("add_size validate_size").appendTo(e);jQuery("#"+f).closest("tr").html(g.after(e));!0==sis_small?this.setButtonsSmall():
|
14 |
+
this.setButtons()},deleteSize:function(a,c){a.preventDefault();!0==confirm(sis.confirmDelete)&&(jQuery(c).closest("tr").remove(),this.ajaxUnregister(c))},getPhp:function(a,c){a.preventDefault();var b=jQuery(c).closest("tr");jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"get_sizes"},beforeSend:function(){b.removeClass("addPending");b.addClass("addPending")},success:function(a){jQuery("#get_php").nextAll("code").html("<br />"+a).show().css({display:"block"});b.removeClass("addPending")}})},
|
15 |
+
ajaxRegister:function(a,c){a.preventDefault();var b=this,f=jQuery(c).closest("table"),g,e=jQuery(".addSize").val(),d=jQuery(c).closest("tr"),i=d.find('input[name="image_name"]').val(),h=d.find("label.c").hasClass("ui-state-active"),j=d.find("label.s").hasClass("ui-state-active"),k=d.find("input.n").val(),h=!1==h||void 0==h?!1:!0,j=!1==j||void 0==j?!1:!0,l=parseInt(d.find("input.w").val()),m=parseInt(d.find("input.h").val());f.hasClass("ajaxing")||jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",
|
16 |
+
data:{action:"add_size",width:l,height:m,crop:h,name:i,show:j,customName:k,nonce:e},beforeSend:function(){d.removeClass();d.addClass("addPending");f.addClass("ajaxing")},success:function(a){var c="";d.removeClass();f.removeClass("ajaxing");0==a?c="errorAdding":(c=2==a?"notChangedAdding":"successAdding",b.addToArray(i,l,m,h,c));d.find("input.h").attr({base_h:m});d.find("input.w").attr({base_w:l});d.find("input.c").attr({base_c:h});d.find("input.s").attr({base_s:j});d.addClass(c);d.find("td").removeClass("notSaved");
|
17 |
+
d.find(".add_size").removeClass("validate_size").hide().children(".ui-button-text").text(sis.update);clearTimeout(g);g=setTimeout(function(){d.removeClass("errorAdding notChangedAdding successAdding")},3E3)}})},ajaxUnregister:function(a){var c=this,b=jQuery(a).closest("tr").find('input[name="image_name"]').val(),f=jQuery(a).closest("tr").find("input.deleteSize").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"remove_size",name:b,nonce:f},success:function(){c.removeFromArray(a)}})},addToArray:function(a,
|
18 |
+
c,b,f,g){var e=jQuery('#sis-regen .wrapper > table#sis_sizes > tbody input[value="'+a+'"]'),d="",i,d=0!=e.length?e.closest("tr"):jQuery("#sis-regen .wrapper > table#sis_sizes > tbody > tr:first").clone(),f=!0==f?sis.tr:sis.fl;d.find("th > label").attr("for",a).end().find("input.thumbnails").val(a).attr("id",a).end().find("th:nth-child(2) > label").text(a).end().find("th:nth-child(3) > label").text(c+"px").end().find("th:nth-child(4) > label").text(b+"px").end().find("th:nth-child(5) > label").text(f);
|
19 |
+
0==e.length&&d.appendTo("#sis-regen .wrapper > table#sis_sizes > tbody");d.removeClass("errorAdding notChangedAdding successAdding").addClass(g);clearTimeout(i);i=setTimeout(function(){d.removeClass("errorAdding notChangedAdding successAdding")},3E3)},removeFromArray:function(a){a=jQuery(a).closest("tr").find("input[name=image_name]").val();jQuery('#sis-regen .wrapper > table#sis_sizes > tbody input[value="'+a+'"]').closest("tr").remove()},setButtons:function(){jQuery(".delete_size").button({icons:{primary:"ui-icon-circle-close"},
|
20 |
+
text:!0});jQuery(".add_size").button({icons:{primary:"ui-icon-check"},text:!0});jQuery(".crop").button({icons:{primary:"ui-icon-arrow-4-diag"},text:!0});jQuery(".show").button({icons:{primary:"ui-icon-lightbulb"},text:!0});jQuery(".size_options").buttonset()},setButtonsSmall:function(){jQuery(".delete_size").button({icons:{primary:"ui-icon-circle-close"},text:!1});jQuery(".add_size").button({icons:{primary:"ui-icon-check"},text:!1});jQuery(".crop").button({icons:{primary:"ui-icon-arrow-4-diag"},text:!1});
|
21 |
+
jQuery(".show").button({icons:{primary:"ui-icon-lightbulb"},text:!1})},displayChange:function(a){var a=jQuery(a),c=a.closest("tr");if(c.hasClass("new_size"))return!1;var b=c.find("input.h"),f=c.find("input.w"),g=c.find("input.c"),e=c.find("input.s"),d=c.find("input.n"),i=b.val(),h=f.val(),j=c.find("label.c").hasClass("ui-state-active"),c=c.find("label.s").hasClass("ui-state-active"),k=d.val(),b=b.attr("base_h"),f=f.attr("base_w"),g=g.attr("base_c"),e=e.attr("base_s"),d=d.attr("base_n");i!=b||h!=f||
|
22 |
+
j!=("0"==g?!1:!0)||c!=("0"==e?!1:!0)||k!=d?a.closest("td").addClass("notSaved").find(".add_size").css("display","inline-block"):a.closest("td").removeClass("notSaved").find(".add_size").css("display","none")}};
|
23 |
+
jQuery(function(){jQuery("#ajax_thumbnail_rebuild").click(function(){regenerate.checkStartRegenerating()});jQuery("#add_size").click(function(a){sizes.add(a,this)});jQuery(".add_size_name").live("click",function(a){sizes.register(a,this)});jQuery(".delete_size").live("click",function(a){sizes.deleteSize(a,this)});jQuery(".add_size").live("click",function(a){sizes.ajaxRegister(a,this)});jQuery(".h,.w,.c,.s,.n").live("click skeyup change",function(){sizes.displayChange(this)});jQuery("#get_php").click(function(a){sizes.getPhp(a,
|
24 |
this)});jQuery("#get_php").nextAll("code").hide();jQuery("span.custom_size").closest("tr").children("th").css({color:"#89D76A"});jQuery("span.theme_size").closest("tr").children("th").css({color:"#F2A13A"});jQuery(".add_size").hide();jQuery('<div class="ui-widget" id="msg"><div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Alert:</strong> <ul class="msg" ></ul></p></div></div>').prependTo("div#wpwrap").slideUp(0);
|
25 |
+
jQuery("#msg").ajaxError(function(a,c,b){jQuery(this).find(".msg").append("<li>"+sis.ajaxErrorHandler+" "+b.url+", status "+c.status+" : "+c.statusText+"</li>").end().stop(!1,!1).slideDown(200).delay(5E3).slideUp(200)});jQuery(window).bind("resize",function(){820>=window.innerWidth&&!1==sis_small?(sizes.setButtonsSmall(),sis_small=!0):820<window.innerWidth&&!0==sis_small&&(sizes.setButtons(),sis_small=!1)});sizes.setButtons()});
|
languages/sis-fr_FR.mo
CHANGED
Binary file
|
languages/sis-fr_FR.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Simple image sizes\n"
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Beapi <njuen@beapi.fr>\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -18,220 +18,231 @@ 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 |
-
#: inc/class.admin.php:
|
44 |
msgid "yes"
|
45 |
msgstr "oui"
|
46 |
|
47 |
-
#: inc/class.admin.php:
|
48 |
-
#: inc/class.admin.php:
|
49 |
msgid "no"
|
50 |
msgstr "non"
|
51 |
|
52 |
-
#: inc/class.admin.php:
|
53 |
-
#: inc/class.admin.php:
|
54 |
msgid "Show in post insertion ?"
|
55 |
msgstr "Afficher dans l'insertion ?"
|
56 |
|
57 |
-
#: inc/class.admin.php:
|
58 |
msgid " of "
|
59 |
msgstr " de "
|
60 |
|
61 |
-
#: inc/class.admin.php:
|
62 |
msgid " or "
|
63 |
msgstr " ou "
|
64 |
|
65 |
-
#: inc/class.admin.php:
|
66 |
msgid " before the end."
|
67 |
msgstr " avant la fin."
|
68 |
|
69 |
-
#: inc/class.admin.php:
|
70 |
-
#: inc/class.admin.php:
|
71 |
msgid "Delete"
|
72 |
msgstr "Supprimer"
|
73 |
|
74 |
-
#: inc/class.admin.php:
|
75 |
msgid "No media in your site to regenerate !"
|
76 |
msgstr "Pas de médias à regénérer !"
|
77 |
|
78 |
-
#: inc/class.admin.php:
|
79 |
msgid "Regenerating "
|
80 |
msgstr "Regénération "
|
81 |
|
82 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
83 |
msgid "Validate image size name"
|
84 |
msgstr "Valider le nom de la taille d'image"
|
85 |
|
86 |
-
#: inc/class.admin.php:
|
87 |
msgid "Done."
|
88 |
msgstr "Fini."
|
89 |
|
90 |
-
#: inc/class.admin.php:
|
91 |
msgid "Size"
|
92 |
msgstr "Taille "
|
93 |
|
94 |
-
#: inc/class.admin.php:
|
95 |
msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
|
96 |
msgstr "N'utilisez pas les tailles par défaut de WordPress comme nom de taille, éditez leurs valeurs avec le formulaire ci-dessus."
|
97 |
|
98 |
-
#: inc/class.admin.php:
|
99 |
msgid "This size is already registered, edit it instead of recreating it."
|
100 |
msgstr "Cette taille existe déjà, éditez la au lieu de la recréer."
|
101 |
|
102 |
-
#: inc/class.admin.php:
|
103 |
msgid "Do you really want to delete these size ?"
|
104 |
msgstr "Voulez-vous réellement supprimer cette taille ?"
|
105 |
|
106 |
-
#: inc/class.admin.php:
|
107 |
-
#: inc/class.admin.php:
|
108 |
msgid "Update"
|
109 |
msgstr "Mettre à jour"
|
110 |
|
111 |
-
#: inc/class.admin.php:
|
112 |
msgid "Error requesting page"
|
113 |
msgstr "Erreur lors de la requête vers la page"
|
114 |
|
115 |
-
#: inc/class.admin.php:
|
116 |
msgid "images have been regenerated !"
|
117 |
msgstr "images ont été regénérées !"
|
118 |
|
119 |
-
#: inc/class.admin.php:
|
120 |
msgid "Validate"
|
121 |
msgstr "Valider"
|
122 |
|
123 |
-
#: inc/class.admin.php:
|
124 |
msgid " started at"
|
125 |
msgstr " commencé à "
|
126 |
|
127 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
|
|
128 |
msgid " finished at :"
|
129 |
msgstr " terminé à :"
|
130 |
|
131 |
-
#: inc/class.admin.php:
|
132 |
msgid "Error during the php treatment, be sure to not have php errors in your page"
|
133 |
msgstr "Erreur durant le traitement, soyez sûr de ne pas avoir d'erreurs php dans votre page"
|
134 |
|
135 |
-
#: inc/class.admin.php:
|
136 |
msgid "All the sizes you have modifed are not saved, continue anyway ?"
|
137 |
msgstr "Toutes les tailles qui ont été modifiée n'ont pas été sauvées, continuer tout de même ?"
|
138 |
|
139 |
-
#: inc/class.admin.php:
|
140 |
#, php-format
|
141 |
msgid "This image has been regenerated in %s seconds"
|
142 |
msgstr "Cette image a été regénérée en %s secondes"
|
143 |
|
144 |
-
#: inc/class.admin.php:
|
145 |
msgid "Regenerate thumbnails"
|
146 |
msgstr "Régénérer les vignettes"
|
147 |
|
148 |
-
#: inc/class.admin.php:
|
149 |
msgid "Settings"
|
150 |
msgstr "Paramètres"
|
151 |
|
152 |
-
#: inc/class.admin.php:
|
153 |
#, php-format
|
154 |
msgid "%s size"
|
155 |
msgstr "Taille %s"
|
156 |
|
157 |
-
#: inc/class.admin.php:
|
158 |
msgid "Add a new size"
|
159 |
msgstr "Ajouter une nouvelle taille"
|
160 |
|
161 |
-
#: inc/class.admin.php:
|
162 |
msgid "Legend of the sizes"
|
163 |
msgstr "Légende des tailles"
|
164 |
|
165 |
-
#: inc/class.admin.php:
|
166 |
msgid "Get php for theme"
|
167 |
msgstr "Récupérer le PHP pour le thème"
|
168 |
|
169 |
-
#: inc/class.admin.php:
|
170 |
msgid "Thumbnail regeneration"
|
171 |
msgstr "Régénération des vignettes"
|
172 |
|
173 |
-
#: inc/class.admin.php:
|
174 |
msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
|
175 |
msgstr "Copiez et collez le code ci-dessous dans votre fichier de fonctions de votre thème WordPress si vous voulez les conserver et désactiver ce plugin."
|
176 |
|
177 |
-
#: inc/class.admin.php:
|
178 |
msgid "The images created on your theme are <span style=\"color:#F2A13A\">orange</span> and your custom size are <span style=\"color:#89D76A\"> green </span>."
|
179 |
msgstr "Les tailles d'images crées par votre thème sont en <span style=\"color:#F2A13A\">orange</span> et vos tailles personnalisées sont en <span style=\"color:#89D76A\"> vert </span>."
|
180 |
|
181 |
-
#: inc/class.admin.php:
|
182 |
msgid "Select which thumbnails you want to rebuild:"
|
183 |
msgstr "Sélectionnez les tailles de vignettes à régénérer"
|
184 |
|
185 |
-
#: inc/class.admin.php:
|
186 |
-
#: inc/class.admin.php:
|
187 |
msgid "Size name"
|
188 |
msgstr "Nom de la taille"
|
189 |
|
190 |
-
#: inc/class.admin.php:
|
191 |
-
#: inc/class.admin.php:
|
192 |
msgid "Width"
|
193 |
msgstr "Largeur"
|
194 |
|
195 |
-
#: inc/class.admin.php:
|
196 |
-
#: inc/class.admin.php:
|
197 |
msgid "Height"
|
198 |
msgstr "Hauteur"
|
199 |
|
200 |
-
#: inc/class.admin.php:
|
201 |
msgid "Select which post type source thumbnails you want to rebuild:"
|
202 |
msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer : "
|
203 |
|
204 |
-
#: inc/class.admin.php:
|
205 |
-
#: inc/class.admin.php:
|
206 |
msgid "Post type"
|
207 |
msgstr "Type de contenu"
|
208 |
|
209 |
-
#: inc/class.admin.php:
|
210 |
msgid "End time calculated :"
|
211 |
msgstr "Fin du traitement calculé :"
|
212 |
|
213 |
-
#: inc/class.admin.php:
|
214 |
msgid "Last image:"
|
215 |
msgstr "Dernière image :"
|
216 |
|
217 |
-
#: inc/class.admin.php:
|
|
|
|
|
218 |
msgid "Regenerate Thumbnails"
|
219 |
msgstr "Régénérer les vignettes"
|
220 |
|
221 |
-
#: inc/class.admin.php:
|
222 |
msgid "Trying to cheat ?"
|
223 |
msgstr "Cheater ?"
|
224 |
|
225 |
-
#: inc/class.admin.php:
|
226 |
msgid "No id given in POST datas."
|
227 |
msgstr "Pas d'id donné dans les données du POST."
|
228 |
|
229 |
-
#: inc/class.admin.php:
|
230 |
#, php-format
|
231 |
msgid "This file already exists in this size and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
232 |
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
233 |
|
234 |
-
#: inc/class.admin.php:
|
235 |
#, php-format
|
236 |
msgid "This file does not exists and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
237 |
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Simple image sizes\n"
|
6 |
"Report-Msgid-Bugs-To: \n"
|
7 |
+
"POT-Creation-Date: 2012-03-31 01:51+0100\n"
|
8 |
+
"PO-Revision-Date: 2012-03-31 01:52+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Beapi <njuen@beapi.fr>\n"
|
11 |
"MIME-Version: 1.0\n"
|
18 |
"X-Poedit-Basepath: ../\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
+
#: inc/class.admin.php:77
|
22 |
msgid "Reading attachments..."
|
23 |
msgstr "Chargement des médias..."
|
24 |
|
25 |
+
#: inc/class.admin.php:78
|
26 |
+
#: inc/class.admin.php:241
|
27 |
msgid "Maximum width"
|
28 |
msgstr "Largeur maximum"
|
29 |
|
30 |
+
#: inc/class.admin.php:79
|
31 |
+
#: inc/class.admin.php:245
|
32 |
msgid "Maximum height"
|
33 |
msgstr "Hauteur maximum"
|
34 |
|
35 |
+
#: inc/class.admin.php:80
|
36 |
+
#: inc/class.admin.php:254
|
37 |
+
#: inc/class.admin.php:327
|
38 |
+
#: inc/class.admin.php:386
|
39 |
msgid "Crop ?"
|
40 |
msgstr "Rogner ?"
|
41 |
|
42 |
+
#: inc/class.admin.php:81
|
43 |
+
#: inc/class.admin.php:374
|
44 |
msgid "yes"
|
45 |
msgstr "oui"
|
46 |
|
47 |
+
#: inc/class.admin.php:82
|
48 |
+
#: inc/class.admin.php:374
|
49 |
msgid "no"
|
50 |
msgstr "non"
|
51 |
|
52 |
+
#: inc/class.admin.php:83
|
53 |
+
#: inc/class.admin.php:257
|
54 |
msgid "Show in post insertion ?"
|
55 |
msgstr "Afficher dans l'insertion ?"
|
56 |
|
57 |
+
#: inc/class.admin.php:84
|
58 |
msgid " of "
|
59 |
msgstr " de "
|
60 |
|
61 |
+
#: inc/class.admin.php:85
|
62 |
msgid " or "
|
63 |
msgstr " ou "
|
64 |
|
65 |
+
#: inc/class.admin.php:86
|
66 |
msgid " before the end."
|
67 |
msgstr " avant la fin."
|
68 |
|
69 |
+
#: inc/class.admin.php:87
|
70 |
+
#: inc/class.admin.php:259
|
71 |
msgid "Delete"
|
72 |
msgstr "Supprimer"
|
73 |
|
74 |
+
#: inc/class.admin.php:88
|
75 |
msgid "No media in your site to regenerate !"
|
76 |
msgstr "Pas de médias à regénérer !"
|
77 |
|
78 |
+
#: inc/class.admin.php:89
|
79 |
msgid "Regenerating "
|
80 |
msgstr "Regénération "
|
81 |
|
82 |
+
#: inc/class.admin.php:90
|
83 |
+
msgid "Regenerate "
|
84 |
+
msgstr "Regénérer "
|
85 |
+
|
86 |
+
#: inc/class.admin.php:91
|
87 |
msgid "Validate image size name"
|
88 |
msgstr "Valider le nom de la taille d'image"
|
89 |
|
90 |
+
#: inc/class.admin.php:92
|
91 |
msgid "Done."
|
92 |
msgstr "Fini."
|
93 |
|
94 |
+
#: inc/class.admin.php:93
|
95 |
msgid "Size"
|
96 |
msgstr "Taille "
|
97 |
|
98 |
+
#: inc/class.admin.php:94
|
99 |
msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
|
100 |
msgstr "N'utilisez pas les tailles par défaut de WordPress comme nom de taille, éditez leurs valeurs avec le formulaire ci-dessus."
|
101 |
|
102 |
+
#: inc/class.admin.php:95
|
103 |
msgid "This size is already registered, edit it instead of recreating it."
|
104 |
msgstr "Cette taille existe déjà, éditez la au lieu de la recréer."
|
105 |
|
106 |
+
#: inc/class.admin.php:96
|
107 |
msgid "Do you really want to delete these size ?"
|
108 |
msgstr "Voulez-vous réellement supprimer cette taille ?"
|
109 |
|
110 |
+
#: inc/class.admin.php:97
|
111 |
+
#: inc/class.admin.php:260
|
112 |
msgid "Update"
|
113 |
msgstr "Mettre à jour"
|
114 |
|
115 |
+
#: inc/class.admin.php:98
|
116 |
msgid "Error requesting page"
|
117 |
msgstr "Erreur lors de la requête vers la page"
|
118 |
|
119 |
+
#: inc/class.admin.php:99
|
120 |
msgid "images have been regenerated !"
|
121 |
msgstr "images ont été regénérées !"
|
122 |
|
123 |
+
#: inc/class.admin.php:100
|
124 |
msgid "Validate"
|
125 |
msgstr "Valider"
|
126 |
|
127 |
+
#: inc/class.admin.php:101
|
128 |
msgid " started at"
|
129 |
msgstr " commencé à "
|
130 |
|
131 |
+
#: inc/class.admin.php:102
|
132 |
+
#: inc/class.admin.php:249
|
133 |
+
msgid "Public name"
|
134 |
+
msgstr "Nom public"
|
135 |
+
|
136 |
+
#: inc/class.admin.php:103
|
137 |
msgid " finished at :"
|
138 |
msgstr " terminé à :"
|
139 |
|
140 |
+
#: inc/class.admin.php:104
|
141 |
msgid "Error during the php treatment, be sure to not have php errors in your page"
|
142 |
msgstr "Erreur durant le traitement, soyez sûr de ne pas avoir d'erreurs php dans votre page"
|
143 |
|
144 |
+
#: inc/class.admin.php:105
|
145 |
msgid "All the sizes you have modifed are not saved, continue anyway ?"
|
146 |
msgstr "Toutes les tailles qui ont été modifiée n'ont pas été sauvées, continuer tout de même ?"
|
147 |
|
148 |
+
#: inc/class.admin.php:106
|
149 |
#, php-format
|
150 |
msgid "This image has been regenerated in %s seconds"
|
151 |
msgstr "Cette image a été regénérée en %s secondes"
|
152 |
|
153 |
+
#: inc/class.admin.php:121
|
154 |
msgid "Regenerate thumbnails"
|
155 |
msgstr "Régénérer les vignettes"
|
156 |
|
157 |
+
#: inc/class.admin.php:141
|
158 |
msgid "Settings"
|
159 |
msgstr "Paramètres"
|
160 |
|
161 |
+
#: inc/class.admin.php:190
|
162 |
#, php-format
|
163 |
msgid "%s size"
|
164 |
msgstr "Taille %s"
|
165 |
|
166 |
+
#: inc/class.admin.php:197
|
167 |
msgid "Add a new size"
|
168 |
msgstr "Ajouter une nouvelle taille"
|
169 |
|
170 |
+
#: inc/class.admin.php:200
|
171 |
msgid "Legend of the sizes"
|
172 |
msgstr "Légende des tailles"
|
173 |
|
174 |
+
#: inc/class.admin.php:203
|
175 |
msgid "Get php for theme"
|
176 |
msgstr "Récupérer le PHP pour le thème"
|
177 |
|
178 |
+
#: inc/class.admin.php:206
|
179 |
msgid "Thumbnail regeneration"
|
180 |
msgstr "Régénération des vignettes"
|
181 |
|
182 |
+
#: inc/class.admin.php:286
|
183 |
msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
|
184 |
msgstr "Copiez et collez le code ci-dessous dans votre fichier de fonctions de votre thème WordPress si vous voulez les conserver et désactiver ce plugin."
|
185 |
|
186 |
+
#: inc/class.admin.php:299
|
187 |
msgid "The images created on your theme are <span style=\"color:#F2A13A\">orange</span> and your custom size are <span style=\"color:#89D76A\"> green </span>."
|
188 |
msgstr "Les tailles d'images crées par votre thème sont en <span style=\"color:#F2A13A\">orange</span> et vos tailles personnalisées sont en <span style=\"color:#89D76A\"> vert </span>."
|
189 |
|
190 |
+
#: inc/class.admin.php:319
|
191 |
msgid "Select which thumbnails you want to rebuild:"
|
192 |
msgstr "Sélectionnez les tailles de vignettes à régénérer"
|
193 |
|
194 |
+
#: inc/class.admin.php:324
|
195 |
+
#: inc/class.admin.php:383
|
196 |
msgid "Size name"
|
197 |
msgstr "Nom de la taille"
|
198 |
|
199 |
+
#: inc/class.admin.php:325
|
200 |
+
#: inc/class.admin.php:384
|
201 |
msgid "Width"
|
202 |
msgstr "Largeur"
|
203 |
|
204 |
+
#: inc/class.admin.php:326
|
205 |
+
#: inc/class.admin.php:385
|
206 |
msgid "Height"
|
207 |
msgstr "Hauteur"
|
208 |
|
209 |
+
#: inc/class.admin.php:391
|
210 |
msgid "Select which post type source thumbnails you want to rebuild:"
|
211 |
msgstr "Sélectionnez quelles vignettes de quel type de contenu vous souhaitez régénérer : "
|
212 |
|
213 |
+
#: inc/class.admin.php:396
|
214 |
+
#: inc/class.admin.php:424
|
215 |
msgid "Post type"
|
216 |
msgstr "Type de contenu"
|
217 |
|
218 |
+
#: inc/class.admin.php:446
|
219 |
msgid "End time calculated :"
|
220 |
msgstr "Fin du traitement calculé :"
|
221 |
|
222 |
+
#: inc/class.admin.php:457
|
223 |
msgid "Last image:"
|
224 |
msgstr "Dernière image :"
|
225 |
|
226 |
+
#: inc/class.admin.php:458
|
227 |
+
#: inc/class.admin.php:903
|
228 |
+
#: inc/class.admin.php:906
|
229 |
msgid "Regenerate Thumbnails"
|
230 |
msgstr "Régénérer les vignettes"
|
231 |
|
232 |
+
#: inc/class.admin.php:651
|
233 |
msgid "Trying to cheat ?"
|
234 |
msgstr "Cheater ?"
|
235 |
|
236 |
+
#: inc/class.admin.php:660
|
237 |
msgid "No id given in POST datas."
|
238 |
msgstr "Pas d'id donné dans les données du POST."
|
239 |
|
240 |
+
#: inc/class.admin.php:670
|
241 |
#, php-format
|
242 |
msgid "This file already exists in this size and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
243 |
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
244 |
|
245 |
+
#: inc/class.admin.php:672
|
246 |
#, php-format
|
247 |
msgid "This file does not exists and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
248 |
msgstr "Ce fichier existe déjà dans cette ces tailles d'image et n'a pas été regénéré :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
languages/sis.pot
CHANGED
@@ -2,210 +2,253 @@
|
|
2 |
# This file is distributed under the same license as the package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version:
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"POT-Creation-Date:
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
|
15 |
-
#: inc/class.admin.php:
|
16 |
msgid "Reading attachments..."
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: inc/class.admin.php:
|
|
|
20 |
msgid "Maximum width"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: inc/class.admin.php:
|
|
|
24 |
msgid "Maximum height"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: inc/class.admin.php:
|
28 |
-
#: inc/class.admin.php:
|
|
|
|
|
29 |
msgid "Crop ?"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: inc/class.admin.php:
|
|
|
33 |
msgid "yes"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: inc/class.admin.php:
|
|
|
37 |
msgid "no"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: inc/class.admin.php:
|
|
|
41 |
msgid "Show in post insertion ?"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: inc/class.admin.php:
|
45 |
msgid " of "
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: inc/class.admin.php:
|
49 |
msgid " or "
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: inc/class.admin.php:
|
53 |
msgid " before the end."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: inc/class.admin.php:
|
|
|
57 |
msgid "Delete"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: inc/class.admin.php:
|
61 |
msgid "No media in your site to regenerate !"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: inc/class.admin.php:
|
65 |
msgid "Regenerating "
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: inc/class.admin.php:
|
69 |
msgid "Validate image size name"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: inc/class.admin.php:
|
73 |
msgid "Done."
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: inc/class.admin.php:
|
77 |
msgid "Size"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: inc/class.admin.php:
|
81 |
-
msgid ""
|
82 |
-
"Don't use the basic Wordpress thumbnail size name, use the form above to "
|
83 |
-
"edit them"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: inc/class.admin.php:
|
87 |
msgid "This size is already registered, edit it instead of recreating it."
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: inc/class.admin.php:
|
91 |
msgid "Do you really want to delete these size ?"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: inc/class.admin.php:
|
|
|
95 |
msgid "Update"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: inc/class.admin.php:
|
99 |
msgid "Error requesting page"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: inc/class.admin.php:
|
103 |
msgid "images have been regenerated !"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: inc/class.admin.php:
|
107 |
msgid "Validate"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: inc/class.admin.php:97
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
msgid "Settings"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: inc/class.admin.php:
|
115 |
-
|
|
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: inc/class.admin.php:
|
119 |
msgid "Add a new size"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: inc/class.admin.php:
|
123 |
msgid "Legend of the sizes"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: inc/class.admin.php:
|
127 |
msgid "Get php for theme"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: inc/class.admin.php:
|
131 |
msgid "Thumbnail regeneration"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: inc/class.admin.php:
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
#: inc/class.admin.php:194
|
139 |
-
msgid "Theme size"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: inc/class.admin.php:
|
143 |
msgid "Add a new size of thumbnail"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: inc/class.admin.php:
|
147 |
msgid "Get the PHP for the theme"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: inc/class.admin.php:
|
151 |
-
msgid ""
|
152 |
-
"Copy and paste the code below into your Wordpress theme function file if you "
|
153 |
-
"wanted to save them and deactivate the plugin."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: inc/class.admin.php:
|
157 |
-
msgid ""
|
158 |
-
"The images created on your theme are <span style=\"color:#F2A13A\">orange</"
|
159 |
-
"span> and your custom size are <span style=\"color:#89D76A\"> green </span>."
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: inc/class.admin.php:
|
163 |
msgid "Select which thumbnails you want to rebuild:"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: inc/class.admin.php:
|
167 |
-
#: inc/class.admin.php:
|
168 |
-
msgid "Resize ?"
|
169 |
-
msgstr ""
|
170 |
-
|
171 |
-
#: inc/class.admin.php:278 inc/class.admin.php:339
|
172 |
msgid "Size name"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: inc/class.admin.php:
|
|
|
176 |
msgid "Width"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: inc/class.admin.php:
|
|
|
180 |
msgid "Height"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: inc/class.admin.php:
|
184 |
msgid "Select which post type source thumbnails you want to rebuild:"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: inc/class.admin.php:
|
|
|
188 |
msgid "Post type"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: inc/class.admin.php:
|
192 |
msgid "End time calculated :"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: inc/class.admin.php:
|
196 |
msgid "Last image:"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: inc/class.admin.php:
|
200 |
msgid "Regenerate Thumbnails"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: inc/class.admin.php:
|
|
|
|
|
|
|
|
|
204 |
msgid "No id given in POST datas."
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: inc/class.admin.php:
|
208 |
-
|
209 |
-
"This file
|
210 |
-
"\"_blank\" href=\"%1$s\" >%2$s</a>"
|
211 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
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: \n"
|
7 |
+
"POT-Creation-Date: 2012-01-20 14:56+0100\n"
|
8 |
+
"PO-Revision-Date: 2012-01-20 14:56+0100\n"
|
9 |
+
"Last-Translator: Nicolas <njuen@beapi.fr>\n"
|
10 |
+
"Language-Team: LANGUAGE <LL@li.org>\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-Basepath: .\n"
|
15 |
+
"X-Poedit-KeywordsList: esc_attr_e;esc_html_e;esc_attr__;esc_html__;_e;__\n"
|
16 |
+
"X-Poedit-SearchPath-0: ..\n"
|
17 |
|
18 |
+
#: ../inc/class.admin.php:74
|
19 |
msgid "Reading attachments..."
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: ../inc/class.admin.php:75
|
23 |
+
#: ../inc/class.admin.php:237
|
24 |
msgid "Maximum width"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../inc/class.admin.php:76
|
28 |
+
#: ../inc/class.admin.php:241
|
29 |
msgid "Maximum height"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: ../inc/class.admin.php:77
|
33 |
+
#: ../inc/class.admin.php:250
|
34 |
+
#: ../inc/class.admin.php:323
|
35 |
+
#: ../inc/class.admin.php:382
|
36 |
msgid "Crop ?"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../inc/class.admin.php:78
|
40 |
+
#: ../inc/class.admin.php:370
|
41 |
msgid "yes"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../inc/class.admin.php:79
|
45 |
+
#: ../inc/class.admin.php:370
|
46 |
msgid "no"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: ../inc/class.admin.php:80
|
50 |
+
#: ../inc/class.admin.php:253
|
51 |
msgid "Show in post insertion ?"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: ../inc/class.admin.php:81
|
55 |
msgid " of "
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: ../inc/class.admin.php:82
|
59 |
msgid " or "
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: ../inc/class.admin.php:83
|
63 |
msgid " before the end."
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: ../inc/class.admin.php:84
|
67 |
+
#: ../inc/class.admin.php:255
|
68 |
msgid "Delete"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../inc/class.admin.php:85
|
72 |
msgid "No media in your site to regenerate !"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../inc/class.admin.php:86
|
76 |
msgid "Regenerating "
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../inc/class.admin.php:87
|
80 |
msgid "Validate image size name"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../inc/class.admin.php:88
|
84 |
msgid "Done."
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../inc/class.admin.php:89
|
88 |
msgid "Size"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../inc/class.admin.php:90
|
92 |
+
msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
|
|
|
|
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../inc/class.admin.php:91
|
96 |
msgid "This size is already registered, edit it instead of recreating it."
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../inc/class.admin.php:92
|
100 |
msgid "Do you really want to delete these size ?"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: ../inc/class.admin.php:93
|
104 |
+
#: ../inc/class.admin.php:256
|
105 |
msgid "Update"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../inc/class.admin.php:94
|
109 |
msgid "Error requesting page"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../inc/class.admin.php:95
|
113 |
msgid "images have been regenerated !"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../inc/class.admin.php:96
|
117 |
msgid "Validate"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../inc/class.admin.php:97
|
121 |
+
msgid " started at"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: ../inc/class.admin.php:98
|
125 |
+
#: ../inc/class.admin.php:245
|
126 |
+
msgid "Public name"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: ../inc/class.admin.php:99
|
130 |
+
msgid " finished at :"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: ../inc/class.admin.php:100
|
134 |
+
msgid "Error during the php treatment, be sure to not have php errors in your page"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: ../inc/class.admin.php:101
|
138 |
+
msgid "All the sizes you have modifed are not saved, continue anyway ?"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: ../inc/class.admin.php:102
|
142 |
+
#, php-format
|
143 |
+
msgid "This image has been regenerated in %s seconds"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: ../inc/class.admin.php:117
|
147 |
+
msgid "Regenerate thumbnails"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: ../inc/class.admin.php:137
|
151 |
msgid "Settings"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: ../inc/class.admin.php:186
|
155 |
+
#, php-format
|
156 |
+
msgid "%s size"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: ../inc/class.admin.php:193
|
160 |
msgid "Add a new size"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: ../inc/class.admin.php:196
|
164 |
msgid "Legend of the sizes"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: ../inc/class.admin.php:199
|
168 |
msgid "Get php for theme"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../inc/class.admin.php:202
|
172 |
msgid "Thumbnail regeneration"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: ../inc/class.admin.php:238
|
176 |
+
#: ../inc/class.admin.php:240
|
177 |
+
#: ../inc/class.admin.php:242
|
178 |
+
msgid "custom_image_sizes["
|
|
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: ../inc/class.admin.php:269
|
182 |
msgid "Add a new size of thumbnail"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: ../inc/class.admin.php:281
|
186 |
msgid "Get the PHP for the theme"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: ../inc/class.admin.php:282
|
190 |
+
msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
|
|
|
|
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../inc/class.admin.php:295
|
194 |
+
msgid "The images created on your theme are <span style=\"color:#F2A13A\">orange</span> and your custom size are <span style=\"color:#89D76A\"> green </span>."
|
|
|
|
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../inc/class.admin.php:315
|
198 |
msgid "Select which thumbnails you want to rebuild:"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../inc/class.admin.php:320
|
202 |
+
#: ../inc/class.admin.php:379
|
|
|
|
|
|
|
|
|
203 |
msgid "Size name"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: ../inc/class.admin.php:321
|
207 |
+
#: ../inc/class.admin.php:380
|
208 |
msgid "Width"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../inc/class.admin.php:322
|
212 |
+
#: ../inc/class.admin.php:381
|
213 |
msgid "Height"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: ../inc/class.admin.php:387
|
217 |
msgid "Select which post type source thumbnails you want to rebuild:"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: ../inc/class.admin.php:392
|
221 |
+
#: ../inc/class.admin.php:420
|
222 |
msgid "Post type"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: ../inc/class.admin.php:442
|
226 |
msgid "End time calculated :"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: ../inc/class.admin.php:453
|
230 |
msgid "Last image:"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: ../inc/class.admin.php:454
|
234 |
msgid "Regenerate Thumbnails"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: ../inc/class.admin.php:647
|
238 |
+
msgid "Trying to cheat ?"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: ../inc/class.admin.php:656
|
242 |
msgid "No id given in POST datas."
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: ../inc/class.admin.php:666
|
246 |
+
#, php-format
|
247 |
+
msgid "This file already exists in this size and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
|
|
248 |
msgstr ""
|
249 |
+
|
250 |
+
#: ../inc/class.admin.php:668
|
251 |
+
#, php-format
|
252 |
+
msgid "This file does not exists and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
|
253 |
+
msgstr ""
|
254 |
+
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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.3
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -14,10 +14,14 @@ You can now get all the code to copy and paste to your function theme file.
|
|
14 |
Now you can use the generated sizes directly into your posts and insert images at the right size !
|
15 |
Now you choose if you want display the size in the post insert image.
|
16 |
Now you can regenerate the images one by one in the 'Medias' general pane.
|
|
|
|
|
17 |
|
18 |
I have added a timer so when you regeneration your thumbnails, you can know approximately when the regeneration will be ended.
|
19 |
I have improved the php and javascript, you can know if the image have been regenerated or not or if there is an error and which one.
|
20 |
|
|
|
|
|
21 |
== Installation ==
|
22 |
**PHP5 Required.**
|
23 |
|
@@ -34,6 +38,12 @@ I have improved the php and javascript, you can know if the image have been rege
|
|
34 |
4. Regenerating image sizes
|
35 |
|
36 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
* 2.2.5
|
38 |
* Debug the regeneration buggy !
|
39 |
* Complete the french translation
|
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.3.1
|
7 |
+
Stable tag: 2.3.1
|
8 |
|
9 |
== Description ==
|
10 |
|
14 |
Now you can use the generated sizes directly into your posts and insert images at the right size !
|
15 |
Now you choose if you want display the size in the post insert image.
|
16 |
Now you can regenerate the images one by one in the 'Medias' general pane.
|
17 |
+
Now you can regenerate the images by bulk action in the 'Medias' general pane.
|
18 |
+
Now you can regenerate the image sizes on single attachment edit page.
|
19 |
|
20 |
I have added a timer so when you regeneration your thumbnails, you can know approximately when the regeneration will be ended.
|
21 |
I have improved the php and javascript, you can know if the image have been regenerated or not or if there is an error and which one.
|
22 |
|
23 |
+
Contribute on https://github.com/Rahe/Simple-image-sizes
|
24 |
+
|
25 |
== Installation ==
|
26 |
**PHP5 Required.**
|
27 |
|
38 |
4. Regenerating image sizes
|
39 |
|
40 |
== Changelog ==
|
41 |
+
* 2.3.1
|
42 |
+
* Add Ajax bulk actions on medias list
|
43 |
+
* Add ajax thumbnail rebuild on single media
|
44 |
+
* 2.3
|
45 |
+
* Add the custom size name in the attachment insertion
|
46 |
+
* Exclude post_type wich do not support the post-thumbnail feature
|
47 |
* 2.2.5
|
48 |
* Debug the regeneration buggy !
|
49 |
* Complete the french translation
|
simple_image_sizes.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Simple Image Size
|
4 |
Plugin URI: http://redmine.beapi.fr/projects/show/simple-image-sizes
|
5 |
Description: Add options in media setting page for images sizes
|
6 |
-
Version: 2.
|
7 |
Author: Rahe
|
8 |
Author URI: http://nicolas-juen.fr
|
9 |
Text Domain: sis
|
@@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
29 |
|
30 |
define( 'SIS_URL', plugins_url('/', __FILE__) );
|
31 |
define( 'SIS_DIR', dirname(__FILE__) );
|
32 |
-
define( 'SIS_VERSION', '2.
|
33 |
define( 'SIS_OPTION', 'custom_image_sizes' );
|
34 |
|
35 |
require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );
|
3 |
Plugin Name: Simple Image Size
|
4 |
Plugin URI: http://redmine.beapi.fr/projects/show/simple-image-sizes
|
5 |
Description: Add options in media setting page for images sizes
|
6 |
+
Version: 2.3.1
|
7 |
Author: Rahe
|
8 |
Author URI: http://nicolas-juen.fr
|
9 |
Text Domain: sis
|
29 |
|
30 |
define( 'SIS_URL', plugins_url('/', __FILE__) );
|
31 |
define( 'SIS_DIR', dirname(__FILE__) );
|
32 |
+
define( 'SIS_VERSION', '2.3.1' );
|
33 |
define( 'SIS_OPTION', 'custom_image_sizes' );
|
34 |
|
35 |
require_once( SIS_DIR . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'class.admin.php' );
|