roundcubemail/program/include/rcmail_output_html.php
public function frame($attrib, $is_contentframe = false)
    {
        static $idcount = 0;

        if (!$attrib['id']) {
            $attrib['id'] = 'rcmframe' . ++$idcount;
        }

        $attrib['name'] = $attrib['id'];
        $attrib['src']  = $attrib['src'] ? $this->abs_url($attrib['src'], true) : 'program/resources/blank.gif';

        // register as 'contentframe' object
        if ($is_contentframe || $attrib['contentframe']) {
            $this->set_env('contentframe', $attrib['contentframe'] ? $attrib['contentframe'] : $attrib['name']);
            $this->set_env('blankpage', $this->asset_url($attrib['src']));
        }

        return html::iframe($attrib);
    }
public function frame($attrib, $is_contentframe = false)
    {
        static $idcount = 0;

        if (!$attrib['id']) {
            $attrib['id'] = 'rcmframe' . ++$idcount;
        }

        $attrib['name'] = $attrib['id'];
        $attrib['src']  = $attrib['src'] ? $this->abs_url($attrib['src'], true) : 'program/resources/blank.gif';

        // register as 'contentframe' object
        if ($is_contentframe || $attrib['contentframe']) {
            $this->set_env('contentframe', $attrib['contentframe'] ? $attrib['contentframe'] : $attrib['name']);
            $this->set_env('blankpage', $this->asset_url($attrib['src']));
        }

        return html::iframe($attrib);
    }
public function frame ( $ attrib , $ is_contentframe = false ) { static $ idcount = 0 ; if ( ! $ attrib [ 'id' ] ) { $ attrib [ 'id' ] = 'rcmframe' . ++ $ idcount ; } $ attrib [ 'name' ] = $ attrib [ 'id' ] ; $ attrib [ 'src' ] = $ attrib [ 'src' ] ? $ this -> abs_url ( $ attrib [ 'src' ] , true ) : 'program/resources/blank.gif' ; // register as 'contentframe' object if ( $ is_contentframe || $ attrib [ 'contentframe' ] ) { $ this -> set_env ( 'contentframe' , $ attrib [ 'contentframe' ] ? $ attrib [ 'contentframe' ] : $ attrib [ 'name' ] ) ; $ this -> set_env ( 'blankpage' , $ this -> asset_url ( $ attrib [ 'src' ] ) ) ; } return html :: iframe ( $ attrib ) ; }
Returns iframe object, registers some related env variables

@param array   $attrib          HTML attributes
@param boolean $is_contentframe Register this iframe as the 'contentframe' gui object

@return string IFRAME element
Returns iframe object registers some related env variables