Ignore:
Timestamp:
Sep 12, 2008 8:27:46 AM (5 years ago)
Author:
thomasb
Message:

Add link to open message in new window + tweaked some header styles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_template.php

    r1766 r1767  
    753753            // make valid href to specific buttons 
    754754            if (in_array($attrib['command'], rcmail::$main_tasks)) { 
    755                 $attrib['href'] = Q(rcmail_url(null, null, $attrib['command'])); 
     755                $attrib['href'] = rcmail_url(null, null, $attrib['command']); 
    756756            } 
    757757            else if (in_array($attrib['command'], $a_static_commands)) { 
    758                 $attrib['href'] = Q(rcmail_url($attrib['command'])); 
     758                $attrib['href'] = rcmail_url($attrib['command']); 
     759            } 
     760            else if ($attrib['command'] == 'permaurl' && !empty($this->env['permaurl'])) { 
     761                $attrib['href'] = $this->env['permaurl']; 
    759762            } 
    760763        } 
     
    818821                $btn_content .= ' '.$attrib['label']; 
    819822            } 
    820             $link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'title'); 
     823            $link_attrib = array('href', 'onclick', 'onmouseover', 'onmouseout', 'onmousedown', 'onmouseup', 'title', 'target'); 
    821824        } 
    822825        else if ($attrib['type']=='link') { 
    823826            $btn_content = $attrib['label'] ? $attrib['label'] : $attrib['command']; 
    824             $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex'); 
     827            $link_attrib = array('href', 'onclick', 'title', 'id', 'class', 'style', 'tabindex', 'target'); 
    825828        } 
    826829        else if ($attrib['type']=='input') { 
Note: See TracChangeset for help on using the changeset viewer.