Also truncate the list of addresses in print view + add link to show them all
| | |
| | | $mailto = rcube_idn_to_utf8($mailto); |
| | | |
| | | if ($PRINT_MODE) { |
| | | $out .= ($out ? ', ' : '') . sprintf('%s <%s>', Q($name), $mailto); |
| | | // for printing we display all addresses |
| | | continue; |
| | | $address = sprintf('%s <%s>', Q($name), Q($mailto)); |
| | | } |
| | | else if ($valid) { |
| | | if ($linked) { |
| | |
| | | } |
| | | |
| | | if ($moreadrs) { |
| | | if ($PRINT_MODE) { |
| | | $out .= ' ' . html::a(array( |
| | | 'href' => '#more', |
| | | 'class' => 'morelink', |
| | | 'onclick' => '$(this).hide().next().show()', |
| | | ), Q(rcube_label(array('name' => 'andnmore', 'vars' => array('nr' => $moreadrs))))) . |
| | | html::span(array('style' => 'display:none'), join(', ', $allvalues)); |
| | | } |
| | | else { |
| | | $out .= ' ' . html::a(array( |
| | | 'href' => '#more', |
| | | 'class' => 'morelink', |
| | |
| | | JQ($title)) |
| | | ), |
| | | Q(rcube_label(array('name' => 'andnmore', 'vars' => array('nr' => $moreadrs))))); |
| | | } |
| | | } |
| | | |
| | | return $out; |
| | |
| | | <roundcube:object name="logo" src="/images/roundcube_logo.png" id="logo" border="0" /> |
| | | |
| | | <div id="printmessageframe"> |
| | | <roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" /> |
| | | <roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" max="10" /> |
| | | <roundcube:object name="messageAttachments" id="attachment-list" /> |
| | | <roundcube:object name="messageBody" id="messagebody" showImages="false" /> |
| | | </div> |
| | |
| | | <div id="header"><roundcube:object name="logo" src="/images/roundcube_logo.png" id="toplogo" border="0" alt="Logo" /></div> |
| | | |
| | | <div id="printmessageframe"> |
| | | <roundcube:object name="messageHeaders" class="headers-table" /> |
| | | <roundcube:object name="messageHeaders" class="headers-table" max="10" /> |
| | | <roundcube:object name="messageAttachments" id="attachment-list" /> |
| | | <roundcube:object name="messageBody" id="messagebody" showImages="false" /> |
| | | </div> |