From 02e9db7bf4b6c54928b67c64c7f0f917f796487d Mon Sep 17 00:00:00 2001 From: alec Date: Sun, 21 Sep 2008 07:33:38 +0000 Subject: - use more 'html' class git-svn-id: https://svn.roundcube.net/trunk@1870 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) (limited to 'roundcubemail/program/steps/mail/func.inc') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 3f8114801..446984066 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -403,18 +403,12 @@ function rcmail_messagecontent_frame($attrib) if (empty($attrib['id'])) $attrib['id'] = 'rcmailcontentwindow'; - // allow the following attributes to be added to the '."\n", - $framename, - $attrib_str); - - $OUTPUT->set_env('contentframe', $framename); + $OUTPUT->set_env('contentframe', $attrib['id']); $OUTPUT->set_env('blankpage', $attrib['src'] ? $OUTPUT->abs_url($attrib['src']) : 'program/blank.gif'); - return $out; + return html::tag('iframe', $attrib); } @@ -430,14 +424,7 @@ function rcmail_messagecount_display($attrib) $OUTPUT->add_gui_object('countdisplay', $attrib['id']); - // allow the following attributes to be added to the tag - $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); - - - $out = ''; - $out .= rcmail_get_messagecount_text(); - $out .= ''; - return $out; + return html::span($attrib, rcmail_get_messagecount_text()); } @@ -1140,10 +1127,7 @@ function rcmail_message_part_frame($attrib) $attrib['src'] = Q('./?'.str_replace('_frame=', ($ctype_primary=='text' ? '_show=' : '_preload='), $_SERVER['QUERY_STRING'])); - $attrib_str = create_attrib_string($attrib, array('id', 'class', 'style', 'src', 'width', 'height')); - $out = '"; - - return $out; + return html::tag('iframe', $attrib); } -- cgit v1.2.3