Changeset 160553
- Timestamp:
- 10/04/2009 09:11:02 PM (16 years ago)
- Location:
- wp-smart-image/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-smart-image.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-smart-image/trunk/readme.txt
r153665 r160553 5 5 Requires at least: 2.7 6 6 Tested up to: 2.8.4 7 Stable tag: 0.3. 27 Stable tag: 0.3.3 8 8 9 9 This plugin helps you to set the image layout of your site in a very easy way. … … 135 135 == Changelog == 136 136 137 = 0.3.3 = 138 139 * Bugfix: Orphan images are shown in widget editor on new posts. 140 137 141 = 0.3.2 = 138 142 -
wp-smart-image/trunk/wp-smart-image.php
r153665 r160553 5 5 Description: This plugin helps you to set the image layout of your site in a very easy way. 6 6 Author: Darío Ferrer (@metacortex) 7 Version: 0.3. 27 Version: 0.3.3 8 8 Author URI: http://www.darioferrer.com 9 9 */ … … 54 54 function wpsi_options() { 55 55 // Convirtiendo en variable todo lo que hemos metido en la base de datos 56 // converting to variables all thing we've set in the database56 // Turning to variables all thing we've set on the database 57 57 global $wpsi_configuracion, $_POST; 58 58 if (!empty($_POST)) { … … 68 68 $wpsi_configuracion['custom_compat'] = $_REQUEST['custom-compat'] ? 1 : 0; 69 69 $wpsi_configuracion['wpsi_activar_metabox'] = $_REQUEST['wpsi-activar-metabox'] ? 1 : 0; 70 70 71 update_option('wpsi_configuracion',$wpsi_configuracion); 72 71 73 echo '<div id="message" class="updated fade"><p>'.__('Options updated', 'wp-smart-image').'</p></div>'; 72 74 echo $texto_error; … … 579 581 'post_parent' => $post->ID, 580 582 'post_type' => 'attachment', 583 'post_mime_type' => 'image', 581 584 'orderby' => 'menu_order', 582 585 'order' => 'ASC' … … 584 587 echo '<div class="wpsi-fl-contenedor">'; 585 588 $lista = '<table class="wpsi-fl-tabla">'; 586 if( !empty( $imagenes ) ) {589 if( !empty( $imagenes ) and !empty($post->ID) ) { 587 590 $keys = array_keys($imagenes); 588 591 $num = $keys[0]; … … 593 596 $ident = $imagen->ID; 594 597 if ( $wpsi_postmeta ) { 595 $foto_lista_checked = $i magen->ID== $wpsi_postmeta ? 'checked="ckecked" ' : '';598 $foto_lista_checked = $ident == $wpsi_postmeta ? 'checked="ckecked" ' : ''; 596 599 $lista = str_replace( 'id="wpsi-col-'.$wpsi_postmeta.'"' , 'id="wpsi-gris"' , $lista ); 597 600 } else { 598 $foto_lista_checked = $i magen->ID== $num ? 'checked="ckecked" ' : '';601 $foto_lista_checked = $ident == $num ? 'checked="ckecked" ' : ''; 599 602 } 600 603 $lista .= '
Note: See TracChangeset
for help on using the changeset viewer.