Ignore:
Timestamp:
10/18/11 06:39:23 (8 years ago)
Author:
Dsls
Message:

rotateImage v0.4 : removed HD rotation checkbox if library is GD.

Location:
extensions/rotateImage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rotateImage/language/en_UK/plugin.lang.php

    r12448 r12481  
    22$lang['Images rotation in progress...'] = 'Images rotation in progress...'; 
    33$lang['Rotate images'] = 'Rotate images'; 
    4 $lang['Rotate 90° right'] = 'Rotate 90° right'; 
    5 $lang['Rotate 90° left'] = 'Rotate 90° left'; 
    6 $lang['Rotate 180°'] = 'Rotate 180°'; 
    7  
     4$lang['Angle'] = 'Angle'; 
     5$lang['Also rotate HD image'] = 'Also rotate HD image'; 
     6$lang['90° right'] = '90° right'; 
     7$lang['90° left'] = '90° left'; 
     8$lang['180°'] = '180°'; 
    89?> 
  • extensions/rotateImage/main.inc.php

    r12417 r12481  
    22/* 
    33Plugin Name: Rotate Image 
    4 Version: 0.3 
     4Version: 0.4 
    55Description: enables to rotate images in batch processing 
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=578 
     
    2929    'RI_PWG_TOKEN' => get_pwg_token(), 
    3030    'angles' => $angles, 
    31     'angle_value' => 90 
     31    'angle_value' => 90, 
     32    'library' => pwg_image::get_library() 
    3233  )); 
    3334  $template->set_filename('rotate_image', realpath(dirname(__FILE__).'/rotate_image.tpl')); 
  • extensions/rotateImage/rotate_image.tpl

    r12417 r12481  
    6969 
    7070<div id="rotate_image" class="bulkAction"> 
    71       <table style="margin-left:20px;"> 
    72         <tr> 
    73           <th id="thumb_width_th">{'Angle'|@translate}</th> 
    74           <td> 
    75           <select name="rotate_angle"> 
    76             {foreach from=$angles item=angle} 
    77               <option value="{$angle.value}" {if $saved_angle eq $angle.value}selected="selected"{/if}>{$angle.name}</option> 
    78             {/foreach} 
    79           </select> 
    80           </td> 
    81         </tr> 
    82         <tr> 
    83           <th><label for="rotate_hd">{'Also rotate HD image'|@translate}</label></th> 
    84           <td><input type="checkbox" name="rotate_hd" id="rotate_hd" {if $upload_form_settings.thumb_crop}checked="checked"{/if}></td> 
    85         </tr> 
    86       </table> 
     71  <table style="margin-left:20px;"> 
     72    <tr> 
     73      <th id="thumb_width_th">{'Angle'|@translate}</th> 
     74      <td> 
     75      <select name="rotate_angle"> 
     76        {foreach from=$angles item=angle} 
     77          <option value="{$angle.value}" {if $saved_angle eq $angle.value}selected="selected"{/if}>{$angle.name}</option> 
     78        {/foreach} 
     79      </select> 
     80      </td> 
     81    </tr> 
     82    {if $library != 'gd'} 
     83    <tr> 
     84      <th><label for="rotate_hd">{'Also rotate HD image'|@translate}</label></th> 
     85      <td><input type="checkbox" name="rotate_hd" id="rotate_hd" {if $upload_form_settings.thumb_crop}checked="checked"{/if}></td> 
     86    </tr> 
     87    {/if} 
     88  </table> 
    8789</div> 
Note: See TracChangeset for help on using the changeset viewer.