You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rcmail_html_page.php 2.1KB

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