Base for a static organization website

default.ctp 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://cakephp.org CakePHP(tm) Project
  12. * @package app.View.Layouts
  13. * @since CakePHP(tm) v 0.10.0.1076
  14. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  15. */
  16. $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
  17. $cakeVersion = __d('cake_dev', 'CakePHP %s', Configure::version())
  18. ?>
  19. <!DOCTYPE html>
  20. <html>
  21. <head>
  22. <?php echo $this->Html->charset(); ?>
  23. <title>
  24. <?php echo $cakeDescription ?>:
  25. <?php echo $this->fetch('title'); ?>
  26. </title>
  27. <?php
  28. echo $this->Html->meta('icon');
  29. echo $this->Html->css('cake.generic');
  30. echo $this->fetch('meta');
  31. echo $this->fetch('css');
  32. echo $this->fetch('script');
  33. ?>
  34. </head>
  35. <body>
  36. <div id="container">
  37. <div id="header">
  38. <h1><?php echo $this->Html->link($cakeDescription, 'http://cakephp.org'); ?></h1>
  39. </div>
  40. <div id="content">
  41. <?php echo $this->Flash->render(); ?>
  42. <?php echo $this->fetch('content'); ?>
  43. </div>
  44. <div id="footer">
  45. <?php echo $this->Html->link(
  46. $this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
  47. 'http://www.cakephp.org/',
  48. array('target' => '_blank', 'escape' => false, 'id' => 'cake-powered')
  49. );
  50. ?>
  51. <p>
  52. <?php echo $cakeVersion; ?>
  53. </p>
  54. </div>
  55. </div>
  56. <?php echo $this->element('sql_dump'); ?>
  57. </body>
  58. </html>