Changeset 2906


Ignore:
Timestamp:
Nov 24, 2008, 11:35:56 PM (15 years ago)
Author:
patdenice
Message:
  • Replace all #content by .content in Sylvia theme.css.
  • In LocalFiles Editor, show error message when creating new template file with empty filename.
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.php

    r2712 r2906  
    9494{
    9595  $filename = $_POST['tpl_name'];
     96  if (empty($filename))
     97  {
     98    array_push($page['errors'], l10n('locfiledit_empty_filename'));
     99  }
    96100  if (get_extension($filename) != 'tpl')
    97101  {
     
    101105  {
    102106    array_push($page['errors'], l10n('locfiledit_filename_error'));
     107  }
     108  if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0')
     109  {
     110    array_push($page['errors'], l10n('locfiledit_model_error'));
     111  }
     112  if (file_exists($_POST['tpl_parent'] . '/' . $filename))
     113  {
     114    array_push($page['errors'], l10n('locfiledit_file_already_exists'));
     115  }
     116  if (!empty($page['errors']))
     117  {
    103118    $newfile_page = true;
    104119  }
    105   if (is_numeric($_POST['tpl_model']) and $_POST['tpl_model'] != '0')
    106   {
    107     array_push($page['errors'], l10n('locfiledit_model_error'));
    108     $newfile_page = true;
    109   }
    110   if (file_exists($_POST['tpl_parent'] . '/' . $filename))
    111   {
    112     array_push($page['errors'], l10n('locfiledit_file_already_exists'));
    113     $newfile_page = true;
    114   }
    115   if (!$newfile_page)
     120  else
    116121  {
    117122    $edited_file = $_POST['tpl_parent'] . '/' . $filename;
  • trunk/plugins/LocalFilesEditor/language/de_DE/plugin.lang.php

    r2781 r2906  
    5252$lang['locfiledit_file_already_exists'] = 'Datei ist bereits vorhanden.';
    5353$lang['locfiledit_model_error'] = 'Sie müssen ein Modell wählen.';
     54/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.';
    5455
    5556?>
  • trunk/plugins/LocalFilesEditor/language/en_UK/plugin.lang.php

    r2588 r2906  
    5252$lang['locfiledit_file_already_exists'] = 'File already exists.';
    5353$lang['locfiledit_model_error'] = 'You must choose a model.';
     54$lang['locfiledit_empty_filename'] = 'You must fill file name.';
    5455
    5556?>
  • trunk/plugins/LocalFilesEditor/language/es_ES/plugin.lang.php

    r2686 r2906  
    5252$lang['locfiledit_file_already_exists'] = 'El fichero ya existe.';
    5353$lang['locfiledit_model_error'] = 'Por favor, seleccione un modelo.';
     54/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.';
    5455
    5556?>
  • trunk/plugins/LocalFilesEditor/language/fr_FR/plugin.lang.php

    r2588 r2906  
    5252$lang['locfiledit_file_already_exists'] = 'Le fichier existe déjà.';
    5353$lang['locfiledit_model_error'] = 'Veuillez sélectionner un modèle.';
     54$lang['locfiledit_empty_filename'] = 'Veuillez indiquer un nom de fichier.';
    5455
    5556?>
  • trunk/plugins/LocalFilesEditor/language/it_IT/plugin.lang.php

    r2887 r2906  
    5252$lang['locfiledit_file_already_exists'] = 'Il file esiste già.';
    5353$lang['locfiledit_model_error'] = 'Selezionare un modello.';
     54/* TODO */ $lang['locfiledit_empty_filename'] = 'You must fill file name.';
    5455
    5556?>
  • trunk/template/yoga/theme/Sylvia/theme.css

    r2905 r2906  
    186186        margin:0;
    187187}
    188 #content ul.thumbnailCategories li {
     188.content ul.thumbnailCategories li {
    189189        background:#222 url(images/cat_bottom-right.gif) no-repeat scroll right bottom;
    190190        width:49%;
     
    197197        margin:0;
    198198}
    199 #content .thumbnailCategory div.illustration {
     199.content .thumbnailCategory div.illustration {
    200200        background:transparent url(images/cat_top-left.gif) no-repeat scroll left top;
    201201        padding: 0 0 0 10px;
    202         margin: 0;
     202        margin: 0 !important;
    203203}
    204204.content .thumbnailCategory div.illustration a {
     
    207207        padding:20px 0 0 8px;
    208208}
    209 #content .thumbnailCategory div.description {
     209.content .thumbnailCategory div.description {
    210210        background:transparent url(images/cat_top-right.gif) no-repeat scroll right top;
    211211        margin: 0;
    212212        padding:15px 10px 3px 0;
    213         overflow: hidden;
    214 }
    215 #content .thumbnailCategory div.description .text {
     213        overflow: hidden !important;
     214}
     215.content .thumbnailCategory div.description .text {
    216216        display:block;
    217217        margin:10px 2px 0 0;
     
    224224        text-align: right;
    225225}
    226 #content.content .thumbnailCategory div.description H3 {
     226.content .thumbnailCategory div.description H3 {
    227227        display: block;
    228         margin: 0;
    229 }
    230 #content ul.thumbnailCategories li:hover {
     228}
     229.content ul.thumbnailCategories li:hover {
    231230        background-color:#111;
    232231}
Note: See TracChangeset for help on using the changeset viewer.