commit | author | age
|
297a74
|
1 |
<?php |
TB |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| program/include/rcmail_html_page.php | |
|
6 |
| | |
|
7 |
| This file is part of the Roundcube Webmail client | |
1730cf
|
8 |
| Copyright (C) 2006-2013, The Roundcube Dev Team | |
297a74
|
9 |
| | |
TB |
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 |
/** |
1730cf
|
24 |
* Class to create an empty HTML page with some default styles |
297a74
|
25 |
* |
9ba496
|
26 |
* @package Webmail |
297a74
|
27 |
* @subpackage View |
TB |
28 |
*/ |
|
29 |
class rcmail_html_page extends rcmail_output_html |
|
30 |
{ |
|
31 |
public function write($contents = '') |
|
32 |
{ |
4d1fe2
|
33 |
self::reset(true); |
1730cf
|
34 |
|
TB |
35 |
// load embed.css from skin folder (if exists) |
|
36 |
if ($embed_css = $this->get_skin_file('/embed.css')) { |
|
37 |
$this->include_css($embed_css); |
|
38 |
} |
|
39 |
else { // set default styles for warning blocks inside the attachment part frame |
|
40 |
$this->add_header(html::tag('style', array('type' => 'text/css'), |
0301d9
|
41 |
".rcmail-inline-message { font-family: sans-serif; border:2px solid #ffdf0e;" |
AM |
42 |
. "background:#fef893; padding:0.6em 1em; margin-bottom:0.6em }\n" . |
1730cf
|
43 |
".rcmail-inline-buttons { margin-bottom:0 }" |
TB |
44 |
)); |
|
45 |
} |
|
46 |
|
297a74
|
47 |
parent::write($contents); |
TB |
48 |
} |
0301d9
|
49 |
} |