diff options
author | patdenice <patdenice@piwigo.org> | 2008-11-24 22:37:13 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-11-24 22:37:13 +0000 |
commit | d23fa6c579143c14599cba03a4a7e049802ad8cf (patch) | |
tree | 3278376c1948f241a701fdf651171465545c5e44 | |
parent | 5f9b237e475ff035bfdea80bda49fe49acd17916 (diff) |
merge -c2906 from trunk to branch 2.0.
- Replace all #content by .content in Sylvia theme.css.
- In LocalFiles Editor, show error message when creating new template file with empty filename.
git-svn-id: http://piwigo.org/svn/branches/2.0@2907 68402e56-0260-453c-a942-63ccdbb3a9ee
7 files changed, 21 insertions, 12 deletions
diff --git a/plugins/LocalFilesEditor/admin.php b/plugins/LocalFilesEditor/admin.php index 2cd5e3afa..348fdd0cc 100644 --- a/plugins/LocalFilesEditor/admin.php +++ b/plugins/LocalFilesEditor/admin.php @@ -93,6 +93,10 @@ if ((isset($_POST['edit'])) and !is_numeric($_POST['file_to_edit'])) if (isset($_POST['create_tpl'])) { $filename = $_POST['tpl_name']; + if (empty($filename)) + { + array_push($page['errors'], l10n('locfiledit_empty_filename')); + } if (get_extension($filename) != 'tpl') { $filename .= '.tpl'; @@ -100,19 +104,20 @@ if (isset($_POST['create_tpl'])) if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $filename)) { array_push($page['errors'], l10n('locfiledit_filename_error')); - $newfile_page = true; } if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0') { array_push($page['errors'], l10n('locfiledit_model_error')); - $newfile_page = true; } if (file_exists($_POST['tpl_parent'] . '/' . $filename)) { array_push($page['errors'], l10n('locfiledit_file_already_exists')); + } + if (!empty($page['errors'])) + { $newfile_page = true; } - if (!$newfile_page) + else { $edited_file = $_POST['tpl_parent'] . '/' . $filename; $content_file = ($_POST['tpl_model'] == '0') ? $new_file['tpl'] : file_get_contents($_POST['tpl_model']); diff --git a/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php b/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php index 38689f359..224861476 100644 --- a/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php +++ b/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php @@ -51,5 +51,6 @@ $lang['locfiledit_parent_directory'] = 'Eltern-Verzeichnis'; $lang['locfiledit_filename_error'] = 'Verboten Zeichen in Dateinamen.'; $lang['locfiledit_file_already_exists'] = 'Datei ist bereits vorhanden.'; $lang['locfiledit_model_error'] = 'Sie müssen ein Modell wählen.'; +/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; ?>
\ No newline at end of file diff --git a/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php b/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php index 42f53aec4..eaeca2a22 100644 --- a/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php +++ b/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php @@ -51,5 +51,6 @@ $lang['locfiledit_parent_directory'] = 'Parent directory'; $lang['locfiledit_filename_error'] = 'Forbidden caraters in file name.'; $lang['locfiledit_file_already_exists'] = 'File already exists.'; $lang['locfiledit_model_error'] = 'You must choose a model.'; +$lang['locfiledit_empty_filename'] = 'You must fill file name.'; ?>
\ No newline at end of file diff --git a/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php b/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php index 0925fbf24..f9cf68100 100644 --- a/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php +++ b/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php @@ -51,5 +51,6 @@ $lang['locfiledit_parent_directory'] = 'Expediente allegado'; $lang['locfiledit_filename_error'] = 'Carácteres prohibidos en el nombre del fichero.'; $lang['locfiledit_file_already_exists'] = 'El fichero ya existe.'; $lang['locfiledit_model_error'] = 'Por favor, seleccione un modelo.'; +/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; ?>
\ No newline at end of file diff --git a/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php b/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php index 40c56492a..cb6d1d1d5 100644 --- a/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php +++ b/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php @@ -51,5 +51,6 @@ $lang['locfiledit_parent_directory'] = 'Dossier parent'; $lang['locfiledit_filename_error'] = 'Caractères interdits dans le nom du fichier.'; $lang['locfiledit_file_already_exists'] = 'Le fichier existe déjà.'; $lang['locfiledit_model_error'] = 'Veuillez sélectionner un modèle.'; +$lang['locfiledit_empty_filename'] = 'Veuillez indiquer un nom de fichier.'; ?>
\ No newline at end of file diff --git a/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php b/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php index 5cba9fef6..4926d65e1 100644 --- a/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php +++ b/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php @@ -51,5 +51,6 @@ $lang['locfiledit_parent_directory'] = 'Directory parente'; $lang['locfiledit_filename_error'] = 'Caratteri vietati nel nome del file.'; $lang['locfiledit_file_already_exists'] = 'Il file esiste già.'; $lang['locfiledit_model_error'] = 'Selezionare un modello.'; +/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.'; ?>
\ No newline at end of file diff --git a/template/yoga/theme/Sylvia/theme.css b/template/yoga/theme/Sylvia/theme.css index 2015049bc..6e9d784e8 100644 --- a/template/yoga/theme/Sylvia/theme.css +++ b/template/yoga/theme/Sylvia/theme.css @@ -185,7 +185,7 @@ BODY { background:transparent url(images/menuBox_sides.gif) repeat-y scroll left bottom; margin:0; } -#content ul.thumbnailCategories li { +.content ul.thumbnailCategories li { background:#222 url(images/cat_bottom-right.gif) no-repeat scroll right bottom; width:49%; margin: 0; @@ -196,23 +196,23 @@ BODY { padding: 0; margin:0; } -#content .thumbnailCategory div.illustration { +.content .thumbnailCategory div.illustration { background:transparent url(images/cat_top-left.gif) no-repeat scroll left top; padding: 0 0 0 10px; - margin: 0; + margin: 0 !important; } .content .thumbnailCategory div.illustration a { display: block; margin: 0; padding:20px 0 0 8px; } -#content .thumbnailCategory div.description { +.content .thumbnailCategory div.description { background:transparent url(images/cat_top-right.gif) no-repeat scroll right top; margin: 0; padding:15px 10px 3px 0; - overflow: hidden; + overflow: hidden !important; } -#content .thumbnailCategory div.description .text { +.content .thumbnailCategory div.description .text { display:block; margin:10px 2px 0 0; overflow: auto; @@ -223,11 +223,10 @@ BODY { margin: 0 15px 0 15px; text-align: right; } -#content.content .thumbnailCategory div.description H3 { +.content .thumbnailCategory div.description H3 { display: block; - margin: 0; } -#content ul.thumbnailCategories li:hover { +.content ul.thumbnailCategories li:hover { background-color:#111; } .infos { |