Changeset 22939 for extensions
- Timestamp:
- May 29, 2013, 6:54:11 PM (11 years ago)
- Location:
- extensions/Crop_Image
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Crop_Image/admin.php
r22847 r22939 2 2 /* 3 3 Plugin Name: Crop Image 4 Version: 2.5. c4 Version: 2.5.d 5 5 Description: Enables to Crop Images already uploaded to the gallery, basic functionality. Tested with v2.5.1, v2.4.6 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700 … … 38 38 // | Process form | 39 39 // +-----------------------------------------------------------------------+ 40 load_language('plugin.lang', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); 40 41 41 42 // cancel crop … … 80 81 sync_metadata(array($row['id'])); 81 82 82 //list($width, $height) = getimagesize($banner['PATH']);83 //$filesize = floor(filesize($banner['PATH'])/1024);84 85 83 $query = 'UPDATE '.IMAGES_TABLE .' 86 84 SET coi=NULL … … 90 88 delete_element_derivatives($row); 91 89 92 $_SESSION['page_infos'][] = l10n('Photo 90 $_SESSION['page_infos'][] = l10n('Photo')." ".l10n('Cropped'); 93 91 redirect($admin_photo_base_url); 94 92 } … … 106 104 // | template init | 107 105 // +-----------------------------------------------------------------------+ 106 108 107 109 108 $template->set_filenames( … … 131 130 if (!pwg_db_num_rows($result)) 132 131 { 133 array_push($page['errors'], l10n('Unknown Photo ID'));132 array_push($page['errors'], l10n('Unknown').' '. l10n('Photo')); 134 133 } 135 134 else -
extensions/Crop_Image/crop.class.php
r22848 r22939 2 2 /* 3 3 Plugin Name: Crop Image 4 Version: 2.5. c4 Version: 2.5.d 5 5 Description: Enables to Crop Images already uploaded to the gallery, basic functionality. Tested with v2.5.1, v2.4.6 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700 … … 32 32 'height'=> $height, 33 33 'crop' => array( 34 'width' => $width, //$x2-$x,35 'height' => $height, //$y2-$y,34 'width' => $width, 35 'height' => $height, 36 36 'x' => $x, 37 37 'y' => $y, -
extensions/Crop_Image/crop_image.tpl
r22849 r22939 41 41 <form method="post" action=""> 42 42 <fieldset> 43 <legend> Crop Photo</legend>44 {'Choose the part of the photo you want to keep .'|@translate}<br>43 <legend>{'Crop'|@translate} {'Photo'|@translate}</legend> 44 {'Choose the part of the photo you want to keep'|@translate}<br> 45 45 <img id="jcrop" src="{$picture.banner_src}?{1|rand:200}" width="{$crop.display_width}" height="{$crop.display_height}"> 46 46 -
extensions/Crop_Image/functions.inc.php
r22853 r22939 2 2 /* 3 3 Plugin Name: Crop Image 4 Version: 2.5. c4 Version: 2.5.d 5 5 Description: Enables to Crop Images already uploaded to the gallery, basic functionality. Tested with v2.5.1, v2.4.6 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700 -
extensions/Crop_Image/main.inc.php
r22856 r22939 2 2 /* 3 3 Plugin Name: Crop Image 4 Version: 2.5. c4 Version: 2.5.d 5 5 Description: Enables to Crop Images already uploaded to the gallery, basic functionality. Tested with v2.5.1, v2.4.6 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=700 … … 19 19 function crop_image_add_tab($sheets, $id) 20 20 { 21 global $lang; 22 load_language('plugin.lang', dirname(__FILE__).'/'); 23 21 24 $image_id = isset($_GET['image_id'])? $_GET['image_id'] : ''; 22 25 … … 47 50 function cropImage_set_prefilter_add_to_pic_info() 48 51 { 49 global $template, $conf, $user, $page; 52 global $template, $conf, $user, $page, $lang; 53 load_language('plugin.lang', dirname(__FILE__).'/'); 50 54 51 55 $url_admin = … … 95 99 96 100 $replacement = ' 97 <a class="pwg-state-default pwg-button" href="{$U_CROPIMAGE}" title=" Crop Image" rel="nofollow">98 <span class="ci-icon ci-icon-cropimage-{$U_CROPIMAGE_THEME}"> </span><span class="pwg-button-text"> Crop Image</span>101 <a class="pwg-state-default pwg-button" href="{$U_CROPIMAGE}" title="{\'Crop\'|@translate} {\'Photo\'|@translate}" rel="nofollow"> 102 <span class="ci-icon ci-icon-cropimage-{$U_CROPIMAGE_THEME}"> </span><span class="pwg-button-text">{\'Crop\'|@translate} {\'Photo\'|@translate}</span> 99 103 </a> 100 104 ' . $search;
Note: See TracChangeset
for help on using the changeset viewer.