PageRenderTime 56ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/protected/views/layouts/main.php

https://bitbucket.org/ctala/pa_proyectos
PHP | 65 lines | 52 code | 13 blank | 0 comment | 1 complexity | 422296566875f4a054f02b0b19629762 MD5 | raw file
  1. <?php /* @var $this Controller */ ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="language" content="en" />
  7. <!-- blueprint CSS framework -->
  8. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
  9. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
  10. <!--[if lt IE 8]>
  11. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
  12. <![endif]-->
  13. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
  14. <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
  15. <title><?php echo CHtml::encode($this->pageTitle); ?></title>
  16. </head>
  17. <body>
  18. <div class="container" id="page">
  19. <div id="header">
  20. <div id="logo"><b><?php echo CHtml::encode(Yii::app()->name); ?></b></div>
  21. </div><!-- header -->
  22. <div id="mainmenu">
  23. <?php
  24. $this->widget('zii.widgets.CMenu', array(
  25. 'items' => array(
  26. array('label' => 'Home', 'url' => array('/site/index')),
  27. array('label' => 'Proyectos', 'url' => array('/proyectos/index')),
  28. array('label' => 'Noticias', 'url' => array('/noticias/index')),
  29. array('label' => 'Usuarios', 'url' => array('/usuarios/index')),
  30. array('label' => 'Login', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
  31. array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
  32. ),
  33. ));
  34. ?>
  35. </div><!-- mainmenu -->
  36. <?php if (isset($this->breadcrumbs)): ?>
  37. <?php
  38. $this->widget('zii.widgets.CBreadcrumbs', array(
  39. 'links' => $this->breadcrumbs,
  40. ));
  41. ?><!-- breadcrumbs -->
  42. <?php endif ?>
  43. <?php echo $content; ?>
  44. <div class="clear"></div>
  45. <div id="footer">
  46. Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
  47. All Rights Reserved.<br/>
  48. <?php echo Yii::powered(); ?>
  49. </div><!-- footer -->
  50. </div><!-- page -->
  51. </body>
  52. </html>