Dotclear

Changeset 2227:bfa7b3467627 for plugins


Ignore:
Timestamp:
10/03/13 13:47:05 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
dcRepo
Message:

Continue clean and document code for plugins and themes admin pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/_config.php

    r2215 r2227  
    5252               ); 
    5353          } 
    54            
    55           http::redirect($list->getPageURL('module=maintenance&conf=1&done=1')); 
     54 
     55          dcPage::addSuccessNotice(__('Maintenance plugin has been successfully configured.')); 
     56          http::redirect($list->getURL('module=maintenance&conf=1')); 
    5657     } 
    5758     catch(Exception $e) { 
     
    6061} 
    6162 
    62      echo  
    63      '<p>'.__('Setup alert for maintenance task.').'</p>'. 
     63echo  
     64'<p>'.__('Set up reminders for maintenance tasks.').'</p>'. 
    6465 
    65      '<h4 class="pretty-title">'.__('Activation').'</h4>'. 
    66      '<p><label for="settings_plugin_message" class="classic">'. 
    67      form::checkbox('settings_plugin_message', 1, $core->blog->settings->maintenance->plugin_message). 
    68      __('Display alert messages on late tasks').'</label></p>'. 
     66'<h4 class="pretty-title">'.__('Activation').'</h4>'. 
     67'<p><label for="settings_plugin_message" class="classic">'. 
     68form::checkbox('settings_plugin_message', 1, $core->blog->settings->maintenance->plugin_message). 
     69__('Display alert messages on late tasks').'</label></p>'. 
    6970 
    70      '<p class="info">'.sprintf( 
    71           __('You can place list of late tasks on your %s.'), 
    72           '<a href="preferences.php#user-favorites">'.__('Dashboard').'</a>' 
    73      ).'</p>'. 
     71'<p class="info">'.sprintf( 
     72     __('You can place list of late tasks on your %s.'), 
     73     '<a href="preferences.php#user-favorites">'.__('Dashboard').'</a>' 
     74).'</p>'. 
    7475 
    75      '<h4 class="pretty-title vertical-separator">'.__('Frequency').'</h4>'. 
     76'<h4 class="pretty-title vertical-separator">'.__('Frequency').'</h4>'. 
    7677 
    77      '<p class="vertical-separator">'.form::radio(array('settings_recall_type', 'settings_recall_all'), 'all').' '. 
    78      '<label class="classic" for="settings_recall_all">'. 
    79      '<strong>'.__('Use one recall time for all tasks').'</strong></label>'. 
     78'<p class="vertical-separator">'.form::radio(array('settings_recall_type', 'settings_recall_all'), 'all').' '. 
     79'<label class="classic" for="settings_recall_all">'. 
     80'<strong>'.__('Use one recall time for all tasks').'</strong></label>'. 
    8081 
    81      '<p class="field wide vertical-separator"><label for="settings_recall_time">'.__('Recall time for all tasks:').'</label>'. 
    82      form::combo('settings_recall_time', $combo_ts, 'seperate', 'recall-for-all'). 
     82'<p class="field wide vertical-separator"><label for="settings_recall_time">'.__('Recall time for all tasks:').'</label>'. 
     83form::combo('settings_recall_time', $combo_ts, 'seperate', 'recall-for-all'). 
     84'</p>'. 
     85 
     86'<p class="vertical-separator">'.form::radio(array('settings_recall_type', 'settings_recall_separate'), 'separate', 1).' '. 
     87'<label class="classic" for="settings_recall_separate">'. 
     88'<strong>'.__('Use one recall time per task').'</strong></label>'; 
     89 
     90foreach($tasks as $t) 
     91{ 
     92     echo 
     93     '<div class="two-boxes">'. 
     94 
     95     '<p class="field wide"><label for="settings_ts_'.$t->id().'">'.$t->task().'</label>'. 
     96     form::combo('settings_ts_'.$t->id(), $combo_ts, $t->ts(), 'recall-per-task'). 
    8397     '</p>'. 
    8498 
    85      '<p class="vertical-separator">'.form::radio(array('settings_recall_type', 'settings_recall_separate'), 'separate', 1).' '. 
    86      '<label class="classic" for="settings_recall_separate">'. 
    87      '<strong>'.__('Use one recall time per task').'</strong></label>'; 
    88  
    89      foreach($tasks as $t) 
    90      { 
    91           echo 
    92           '<div class="two-boxes">'. 
    93  
    94           '<p class="field wide"><label for="settings_ts_'.$t->id().'">'.$t->task().'</label>'. 
    95           form::combo('settings_ts_'.$t->id(), $combo_ts, $t->ts(), 'recall-per-task'). 
    96           '</p>'. 
    97  
    98           '</div>'; 
    99      } 
     99     '</div>'; 
     100} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map