openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9e2edd0a8b839f12423ac1b349940db991a6a4f2
parent 34d0cea58251f339167f7acbaf8715f5a6803f00
Author: dankert <devnull@localhost>
Date:   Wed, 27 Jan 2010 19:40:59 +0100

Hinweismeldung anzeigen, wenn Bildgrößenveränderung nicht zur Verfügung steht.

Diffstat:
actionClasses/FileAction.class.php | 3+++
language/de.ini.php | 2++
language/en.ini.php | 1+
themes/default/templates/file/size.tpl.src.php | 101++++++++++++++++++++++++++++++++++++++++---------------------------------------
4 files changed, 57 insertions(+), 50 deletions(-)

diff --git a/actionClasses/FileAction.class.php b/actionClasses/FileAction.class.php @@ -327,6 +327,9 @@ class FileAction extends ObjectAction $formats = $this->imageFormats(); else $formats = array(); + + if ( empty($formats) ) + $this->addNotice( 'image','','IMAGE_RESIZING_NOT_AVAILABLE',OR_NOTICE_WARN); $sizes = array(); foreach( array(10,25,50,75,100,125,150,175,200,250,300,350,400,500,600,800) as $s ) diff --git a/language/de.ini.php b/language/de.ini.php @@ -1043,3 +1043,4 @@ VALUE = Inhalt WEEK="Woche" PROJECT_CHECK_FILES="Integritätsprüfung der Ordnerstruktur" PROJECT_CHECK_LIMIT="Entfernen von alten Inhalten aus dem Archiv" +NOTICE_IMAGE_RESIZING_NOT_AVAILABLE="Das Verändern der Bildgröße ist momentan nicht möglich. Bitte stellen Sie sicher, dass die GD-Bibliothek installiert ist."+ \ No newline at end of file diff --git a/language/en.ini.php b/language/en.ini.php @@ -1064,3 +1064,4 @@ MENU_USER_ADD_DESC = "Add new user" SETTING="Setting" PROJECT_CHECK_FILES="Folder Integritycheck" PROJECT_CHECK_LIMIT="Remove old values from archives" +NOTICE_IMAGE_RESIZING_NOT_AVAILABLE="Image resizing is not available at the moment, please ensure, that the GD library is installed." diff --git a/themes/default/templates/file/size.tpl.src.php b/themes/default/templates/file/size.tpl.src.php @@ -8,55 +8,56 @@ page cell text var:width text raw:_*_ - text var:height - if true:mode:edit + text var:height + if not: empty:var:formats + if true:mode:edit + row + cell colspan:3 + fieldset title:message:IMAGE_NEW_SIZE + row + cell + radio name:type value:factor + cell + label for:type_factor + text text:FILE_IMAGE_SIZE_FACTOR + cell + selectbox name:factor list:factors + set var:factor value:1 + + row + cell + radio name:type value:input + cell + label for:type_input + text text:FILE_IMAGE_NEW_WIDTH_HEIGHT + cell + input name:width size:10 + text raw:_*_ + input name:height size:10 + + row + cell colspan:3 + fieldset title:message:options + row + cell colspan:2 + label for:format + text text:FILE_IMAGE_FORMAT + cell + selectbox name:format list:formats + + row + cell colspan:2 + label for:jpeglist_compression + text text:FILE_IMAGE_JPEG_COMPRESSION + cell + set var:jpeg_compression value:70 + selectbox list:jpeglist name:jpeg_compression + row + cell colspan:3 + checkbox name:copy + label for:copy + text key:copy row - cell colspan:3 - fieldset title:message:IMAGE_NEW_SIZE - row - cell - radio name:type value:factor - cell - label for:type_factor - text text:FILE_IMAGE_SIZE_FACTOR - cell - selectbox name:factor list:factors - set var:factor value:1 - - row - cell - radio name:type value:input - cell - label for:type_input - text text:FILE_IMAGE_NEW_WIDTH_HEIGHT - cell - input name:width size:10 - text raw:_*_ - input name:height size:10 - - row - cell colspan:3 - fieldset title:message:options - row - cell colspan:2 - label for:format - text text:FILE_IMAGE_FORMAT - cell - selectbox name:format list:formats - - row - cell colspan:2 - label for:jpeglist_compression - text text:FILE_IMAGE_JPEG_COMPRESSION - cell - set var:jpeg_compression value:70 - selectbox list:jpeglist name:jpeg_compression - row - cell colspan:3 - checkbox name:copy - label for:copy - text key:copy - row - cell class:act colspan:3 - button type:ok + cell class:act colspan:3 + button type:ok focus field:width \ No newline at end of file