Mercurial > hg > rc2
comparison program/include/rcmail_html_page.php @ 0:4681f974d28b
vanilla 1.3.3 distro, I hope
| author | Charlie Root |
|---|---|
| date | Thu, 04 Jan 2018 15:52:31 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4681f974d28b |
|---|---|
| 1 <?php | |
| 2 | |
| 3 /** | |
| 4 +-----------------------------------------------------------------------+ | |
| 5 | program/include/rcmail_html_page.php | | |
| 6 | | | |
| 7 | This file is part of the Roundcube Webmail client | | |
| 8 | Copyright (C) 2006-2013, The Roundcube Dev Team | | |
| 9 | | | |
| 10 | Licensed under the GNU General Public License version 3 or | | |
| 11 | any later version with exceptions for skins & plugins. | | |
| 12 | See the README file for a full license statement. | | |
| 13 | | | |
| 14 | PURPOSE: | | |
| 15 | Render a simple HTML page with the given contents | | |
| 16 | | | |
| 17 +-----------------------------------------------------------------------+ | |
| 18 | Author: Thomas Bruederli <roundcube@gmail.com> | | |
| 19 +-----------------------------------------------------------------------+ | |
| 20 */ | |
| 21 | |
| 22 /** | |
| 23 * Class to create an empty HTML page with some default styles | |
| 24 * | |
| 25 * @package Webmail | |
| 26 * @subpackage View | |
| 27 */ | |
| 28 class rcmail_html_page extends rcmail_output_html | |
| 29 { | |
| 30 public function write($contents = '') | |
| 31 { | |
| 32 self::reset(true); | |
| 33 | |
| 34 // load embed.css from skin folder (if exists) | |
| 35 if ($embed_css = $this->get_skin_file('/embed.css')) { | |
| 36 $this->include_css($embed_css); | |
| 37 } | |
| 38 else { // set default styles for warning blocks inside the attachment part frame | |
| 39 $this->add_header(html::tag('style', array('type' => 'text/css'), | |
| 40 ".rcmail-inline-message { font-family: sans-serif; border:2px solid #ffdf0e;" | |
| 41 . "background:#fef893; padding:0.6em 1em; margin-bottom:0.6em }\n" . | |
| 42 ".rcmail-inline-buttons { margin-bottom:0 }" | |
| 43 )); | |
| 44 } | |
| 45 | |
| 46 parent::write($contents); | |
| 47 } | |
| 48 } |
