Ignore:
Timestamp:
Jan 31, 2012, 4:19:09 PM (12 years ago)
Author:
plg
Message:

feature 2559: minor redesign on configuration screens

  • hide "rate_anonymous" when "rate" is deactivated
  • hide "email_admin_on_new_user" when "allow_user_registration" is deactivated
  • move history settings on main tab
  • turn the 3 lines for history into a single line with 3 checkboxes
  • for comments, turn the "notify admin" settings into a single line with 4 checkboxes

TODO: remove obsolete language keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r13001 r13004  
    5353    'email_admin_on_new_user',
    5454    'allow_user_customization',
     55    'log',
     56    'history_admin',
     57    'history_guest',
    5558   );
    5659
     
    5861    'original_resize',
    5962  );
    60 
    61 $history_checkboxes = array(
    62     'log',
    63     'history_admin',
    64     'history_guest'
    65    );
    6663
    6764$comments_checkboxes = array(
     
    208205      break;
    209206    }
    210     case 'history' :
    211     {
    212       foreach( $history_checkboxes as $checkbox)
    213       {
    214         $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
    215       }
    216       break;
    217     }
    218207    case 'comments' :
    219208    {
     
    296285$tabsheet->add('sizes', l10n('Photo Sizes'), $conf_link.'sizes');
    297286$tabsheet->add('display', l10n('Display'), $conf_link.'display');
    298 $tabsheet->add('history', l10n('History'), $conf_link.'history');
    299287$tabsheet->add('comments', l10n('Comments'), $conf_link.'comments');
    300288$tabsheet->add('default', l10n('Guest Settings'), $conf_link.'default');
     
    388376    break;
    389377  }
    390   case 'history' :
    391   {
    392     //Necessary for merge_block_vars
    393     foreach ($history_checkboxes as $checkbox)
    394     {
    395       $template->append(
    396           'history',
    397           array(
    398             $checkbox => $conf[$checkbox]
    399             ),
    400           true
    401         );
    402     }
    403     break;
    404   }
    405378  case 'comments' :
    406379  {
Note: See TracChangeset for help on using the changeset viewer.