layout.phtml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. /**
  3. * @version 7.9 [rev.7.9.01]
  4. */
  5. $this->setGlobal('themeFolder', $this->baseUrl . '/' . $this->themesFolder . '/' . 'admin');
  6. ?>
  7. <!DOCTYPE html>
  8. <html lang="<?php echo $this->htmlLang(); ?>" dir="<?php echo $htmlDir = $this->htmlDir(); ?>">
  9. <head>
  10. <?php echo $this->headTitle(); ?>
  11. <?php
  12. $this->headMeta()
  13. ->appendName('viewport', 'width=device-width, initial-scale=1.0')
  14. ->appendHttpEquiv('X-UA-Compatible', 'IE=edge');
  15. echo $this->headMeta();
  16. /** add rtl bootstrap css if the case */
  17. if ($htmlDir == \Cube\View\Helper\HtmlDir::RTL) {
  18. $this->script()
  19. ->addHeaderCode('<link href="' . $this->baseUrl . '/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css">')
  20. ->addHeaderCode('<link href="' . $this->baseUrl . '/css/style.rtl.css" media="all" rel="stylesheet" type="text/css"');
  21. }
  22. $this->script()->addHeaderCode('<link href="' . $this->themeFolder . '/css/style.css" media="all" rel="stylesheet" type="text/css">')
  23. ->addHeaderCode('<link href="' . $this->themeFolder . '/css/responsive.css" media="all" rel="stylesheet" type="text/css">');
  24. ?>
  25. <?php echo $this->script()->displayHeaderCode(); ?>
  26. </head>
  27. <body>
  28. <div class="navbar navbar-admin navbar-fixed-top">
  29. <div class="container">
  30. <a class="navbar-brand hidden-xs" href="<?php echo $this->settings['site_path']; ?>/" target="_blank">
  31. <img src="<?php echo $this->baseUrl; ?>/<?php echo $this->themesFolder; ?>/admin/images/logo-small.png"
  32. alt="PHP Pro Bid">
  33. </a>
  34. <div class="navbar-text navbar-left hidden-xs">
  35. <?php echo $this->liveTime(time()); ?>
  36. </div>
  37. <div class="navbar-right">
  38. <input name="admin_quick_nav" type="text" placeholder="<?php echo $this->_('Quick Navigation'); ?>"
  39. class="form-control input-medium">
  40. <a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'logout')); ?>"
  41. class="btn btn-default navbar-btn">
  42. <i class="fa fa-power-off"></i>
  43. </a>
  44. </div>
  45. </div>
  46. </div>
  47. <?php echo $this->navigation()->setPartial('navigation/navigation.phtml')->menu(); ?>
  48. <div class="container">
  49. <div id="wrapper">
  50. <div class="row row-offcanvas row-offcanvas-left">
  51. <div class="col-md-3 sidebar-offcanvas">
  52. <?php
  53. if ($this->controller) {
  54. $controller = $this->controller;
  55. }
  56. else {
  57. $controller = $this->request()->getRequest()->getController();
  58. }
  59. $container = $this->navigation()->getContainer()->findOneBy('label', $this->_($controller)); // translate controller
  60. if ($container !== null) {
  61. $this->navigation()->setContainer($container);
  62. }
  63. echo $this->navigation()->setPartial('navigation/left-side.phtml')->menu();
  64. ?>
  65. </div>
  66. <div class="col-md-9">
  67. <div class="main-content">
  68. <div class="row">
  69. <div class="col-xs-2 col-sm-1 hidden-md hidden-lg">
  70. <button class="btn btn-default" data-toggle="offcanvas" type="button">
  71. <i class="fa fa-2x fa-list"></i>
  72. </button>
  73. </div>
  74. <div class="col-xs-10 col-sm-11 col-md-12">
  75. <?php echo $this->navigation()->setPartial('navigation/breadcrumbs.phtml')->setMinDepth(1)->breadcrumbs(); ?>
  76. </div>
  77. </div>
  78. <!-- BEGIN - site messages -->
  79. <?php foreach ((array)$this->messages as $message) { ?>
  80. <div class="alert alert-dismissable <?php echo $message['class']; ?>">
  81. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  82. <?php if (is_array($message['msg'])) { ?>
  83. <?php foreach ((array)$message['msg'] as $msg) { ?>
  84. <div><?php echo $this->_($msg); ?></div>
  85. <?php } ?>
  86. <?php
  87. }
  88. else {
  89. ?>
  90. <?php echo $this->_($message['msg']); ?>
  91. <?php } ?>
  92. </div>
  93. <?php } ?>
  94. <!-- END - site messages -->
  95. <?php echo $this->getContent(); ?>
  96. </div>
  97. </div>
  98. </div>
  99. <hr>
  100. <footer>
  101. <p>
  102. <small><a href="http://www.phpprobid.com/" target="_blank">PHP Pro Bid</a>
  103. v<?php echo \Ppb\Utility::VERSION; ?> &copy;<?php echo date('Y'); ?> Online Ventures
  104. Software. All rights reserved.
  105. </small>
  106. </p>
  107. </footer>
  108. </div>
  109. </div>
  110. <!-- /container -->
  111. <div class="loading-modal"></div>
  112. <!-- client side scripts [loaded in bootstrap] -->
  113. <?php
  114. $this->script()->addBodyCode('<script src="' . $this->themeFolder . '/js/script.js" type="text/javascript"></script>')
  115. ->removeBodyCode($this->settings['google_analytics_code']);
  116. echo $this->script()->displayBodyCode();
  117. ?>
  118. </body>
  119. </html>