Changeset 2387 in subversion
- Timestamp:
- Apr 13, 2009 12:27:12 PM (4 years ago)
- Location:
- branches/devel-api
- Files:
-
- 3 edited
-
plugins/subscriptions_option/subscriptions_option.php (modified) (2 diffs)
-
program/steps/settings/func.inc (modified) (6 diffs)
-
skins/default/templates/settings.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/devel-api/plugins/subscriptions_option/subscriptions_option.php
r2329 r2387 31 31 $dont_override = rcmail::get_instance()->config->get('dont_override', array()); 32 32 if (!in_array('use_subscriptions', $dont_override)){ 33 $this->add_hook('user_preferences _server_settings', array($this, 'settings_table'));33 $this->add_hook('user_preferences', array($this, 'settings_table')); 34 34 $this->add_hook('save_preferences', array($this, 'save_prefs')); 35 35 } … … 40 40 function settings_table($args) 41 41 { 42 $use_subscriptions = rcmail::get_instance()->config->get('use_subscriptions'); 43 $field_id = 'rcmfd_use_subscriptions'; 44 $use_subscriptions = new html_checkbox(array('name' => '_use_subscriptions', 'id' => $field_id, 'value' => 1)); 42 if ($args['section'] == 'server') { 43 $use_subscriptions = rcmail::get_instance()->config->get('use_subscriptions'); 44 $field_id = 'rcmfd_use_subscriptions'; 45 $use_subscriptions = new html_checkbox(array('name' => '_use_subscriptions', 'id' => $field_id, 'value' => 1)); 45 46 46 $args['table']->add('title', html::label($field_id, Q($this->gettext('useimapsubscriptions')))); 47 $args['table']->add(null, $use_subscriptions->show($use_subscriptions?1:0)); 47 $args['table']->add('title', html::label($field_id, Q($this->gettext('useimapsubscriptions')))); 48 $args['table']->add(null, $use_subscriptions->show($use_subscriptions?1:0)); 49 } 48 50 49 51 return $args; -
branches/devel-api/program/steps/settings/func.inc
r2326 r2387 160 160 } 161 161 162 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 163 162 164 if ($table->size()) 163 165 $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('uisettings'))) . $table->show($attrib)); … … 217 219 } 218 220 221 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 222 219 223 if ($table->size()) 220 224 $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('mailboxview'))) . $table->show($attrib)); … … 255 259 } 256 260 261 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 262 257 263 if ($table->size()) 258 264 $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('messagesdisplaying'))) . $table->show($attrib)); … … 296 302 } 297 303 304 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 305 298 306 if ($table->size()) 299 307 $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('messagescomposition'))) . $table->show($attrib)); … … 330 338 } 331 339 340 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 341 332 342 $out = html::tag('fieldset', null, html::tag('legend', null, Q(rcube_label('specialfolders'))) . $table->show($attrib)); 333 343 } … … 382 392 } 383 393 384 rcmail::get_instance()->plugins->exec_hook('user_preferences_server_settings', array('table'=>$table));394 $RCMAIL->plugins->exec_hook('user_preferences', array('section' => $part, 'table' => $table)); 385 395 386 396 if ($table->size()) -
branches/devel-api/skins/default/templates/settings.html
r2278 r2387 18 18 <div id="userprefs-title"><roundcube:label name="userpreferences" /></div> 19 19 20 <div style="padding:15px 0 15px 15px">20 <div id="userprefscontainer" style="padding:15px 0 15px 15px"> 21 21 <div class="userprefs-block"> 22 22 <roundcube:object name="userprefs" form="form" parts="general,mailbox,mailview" /> … … 26 26 </div> 27 27 <div style="clear:left"></div> 28 29 <roundcube:container name="userprefs" id="userprefscontainer" /> 28 30 </div> 29 31 </div>
Note: See TracChangeset
for help on using the changeset viewer.
