roundcubemail/plugins/zipdownload/zipdownload.php
public function download_menu()
    {
        $this->include_script('zipdownload.js');
        $this->add_label('download');

        $rcmail  = rcmail::get_instance();
        $menu    = array();
        $ul_attr = array('role' => 'menu', 'aria-labelledby' => 'aria-label-zipdownloadmenu');
        if ($rcmail->config->get('skin') != 'classic') {
            $ul_attr['class'] = 'toolbarmenu';
        }

        foreach (array('eml', 'mbox', 'maildir') as $type) {
            $menu[] = html::tag('li', null, $rcmail->output->button(array(
                    'command'  => "download-$type",
                    'label'    => "zipdownload.download$type",
                    'classact' => 'active',
            )));
        }

        $rcmail->output->add_footer(html::div(array('id' => 'zipdownload-menu', 'class' => 'popupmenu', 'aria-hidden' => 'true'),
            html::tag('h2', array('class' => 'voice', 'id' => 'aria-label-zipdownloadmenu'), "Message Download Options Menu") .
            html::tag('ul', $ul_attr, implode('', $menu))));
    }
public function download_menu()
    {
        $this->include_script('zipdownload.js');
        $this->add_label('download');

        $rcmail  = rcmail::get_instance();
        $menu    = array();
        $ul_attr = array('role' => 'menu', 'aria-labelledby' => 'aria-label-zipdownloadmenu');
        if ($rcmail->config->get('skin') != 'classic') {
            $ul_attr['class'] = 'toolbarmenu';
        }

        foreach (array('eml', 'mbox', 'maildir') as $type) {
            $menu[] = html::tag('li', null, $rcmail->output->button(array(
                    'command'  => "download-$type",
                    'label'    => "zipdownload.download$type",
                    'classact' => 'active',
            )));
        }

        $rcmail->output->add_footer(html::div(array('id' => 'zipdownload-menu', 'class' => 'popupmenu', 'aria-hidden' => 'true'),
            html::tag('h2', array('class' => 'voice', 'id' => 'aria-label-zipdownloadmenu'), "Message Download Options Menu") .
            html::tag('ul', $ul_attr, implode('', $menu))));
    }
public function download_menu ( ) { $ this -> include_script ( 'zipdownload.js' ) ; $ this -> add_label ( 'download' ) ; $ rcmail = rcmail :: get_instance ( ) ; $ menu = array ( ) ; $ ul_attr = array ( 'role' => 'menu' , 'aria-labelledby' => 'aria-label-zipdownloadmenu' ) ; if ( $ rcmail -> config -> get ( 'skin' ) != 'classic' ) { $ ul_attr [ 'class' ] = 'toolbarmenu' ; } foreach ( array ( 'eml' , 'mbox' , 'maildir' ) as $ type ) { $ menu [ ] = html :: tag ( 'li' , null , $ rcmail -> output -> button ( array ( 'command' => "download-$type" , 'label' => "zipdownload.download$type" , 'classact' => 'active' , ) ) ) ; } $ rcmail -> output -> add_footer ( html :: div ( array ( 'id' => 'zipdownload-menu' , 'class' => 'popupmenu' , 'aria-hidden' => 'true' ) , html :: tag ( 'h2' , array ( 'class' => 'voice' , 'id' => 'aria-label-zipdownloadmenu' ) , "Message Download Options Menu" ) . html :: tag ( 'ul' , $ ul_attr , implode ( '' , $ menu ) ) ) ) ; }
Adds download options menu to the page
Adds download options menu to the page