Changeset 564 in subversion


Ignore:
Timestamp:
May 17, 2007 1:01:22 PM (6 years ago)
Author:
thomasb
Message:

Fixed conditional template tags; hide quota display if imap server does not support it

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

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

    r543 r564  
    340340 
    341341          if ($condmet) 
    342             $result = $submatches[0] . preg_replace('/.*<roundcube:endif\s+[^>]+>/is', '', $submatches[3]); 
     342            $result = $submatches[0] . ($submatches[1] != 'endif' ? preg_replace('/.*<roundcube:endif\s+[^>]+>/Uis', '', $submatches[3], 1) : $submatches[3]); 
    343343          else 
    344344            $result = "<roundcube:$submatches[1] $submatches[2]>" . $submatches[3]; 
  • trunk/roundcubemail/program/steps/mail/func.inc

    r543 r564  
    6464// set current mailbox in client environment 
    6565$OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); 
    66 //$OUTPUT->set_pagetitle(rcube_charset_convert($IMAP->get_mailbox_name(), 'UTF-7', 'UTF-8')); 
     66$OUTPUT->set_env('quota', $IMAP->get_capability('quota')); 
    6767 
    6868if ($CONFIG['trash_mbox']) 
  • trunk/roundcubemail/skins/default/templates/mail.html

    r412 r564  
    7878<roundcube:button command="select-all" prop="unread" label="unread" classAct="active" />&nbsp; 
    7979<roundcube:button command="select-none" label="none" classAct="active" /> &nbsp;&nbsp;&nbsp; 
     80<roundcube:if condition="env:quota" /> 
    8081<roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" display="image" width="120" id="quotadisplay" /> 
     82<roundcube:endif /> 
    8183</div> 
    8284 
Note: See TracChangeset for help on using the changeset viewer.