Ignore:
Timestamp:
Dec 11, 2011 1:12:33 PM (18 months ago)
Author:
thomasb
Message:

Make string for unread count configureable by skin; add file type classes to attachments list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r5589 r5592  
    11711171  static $a_mailboxes; 
    11721172 
    1173   $attrib += array('maxlength' => 100, 'realnames' => false); 
     1173  $attrib += array('maxlength' => 100, 'realnames' => false, 'unreadwrap' => ' (%s)'); 
    11741174 
    11751175  // add some labels to client 
     
    12181218    $RCMAIL->output->add_gui_object('mailboxlist', $attrib['id']); 
    12191219    $RCMAIL->output->set_env('mailboxes', $js_mailboxlist); 
     1220    $RCMAIL->output->set_env('unreadwrap', $attrib['unreadwrap']); 
    12201221    $RCMAIL->output->set_env('collapsed_folders', (string)$RCMAIL->config->get('collapsed_folders')); 
    12211222  } 
     
    13731374 
    13741375    $js_name = JQ($folder['id']); 
    1375     $html_name = Q($foldername) . ($unread ? html::span('unreadcount', " ($unread)") : ''); 
     1376    $html_name = Q($foldername) . ($unread ? html::span('unreadcount', sprintf($attrib['unreadwrap'], $unread)) : ''); 
    13761377    $link_attrib = $folder['virtual'] ? array() : array( 
    13771378      'href' => rcmail_url('', array('_mbox' => $folder['id'])), 
Note: See TracChangeset for help on using the changeset viewer.