Advertisement
smallkan

Untitled

Jan 26th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?php
  2. $controllerActive = strtolower($this->request->params["controller"]);
  3. $actionActive = strtolower($this->request->params["action"]);
  4.  
  5. $cssController = WWW_ROOT."css".DS.$controllerActive.".css";
  6. $jsController = WWW_ROOT."js".DS.$controllerActive.".js";
  7.  
  8. $cssAction = WWW_ROOT."css".DS.$controllerActive.'_'.$actionActive.".css";
  9. $jsAction = WWW_ROOT."js".DS.$controllerActive.'_'.$actionActive.".js";
  10. ?>
  11.  
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <?= $this->Html->charset() ?>
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  17. <title>
  18. Hokages<?= isset($title_for_layout) ? ' - ' . $title_for_layout : ''; ?>
  19. </title>
  20. <?= $this->Html->meta('icon') ?>
  21.  
  22. <!-- Styles -->
  23. <?= $this->Html->css('bootstrap.min') ?>
  24. <?= $this->Html->css('font-awesome/css/font-awesome.min') ?>
  25. <?= $this->Html->css('main.css') ?>
  26. <?= $this->Html->css('animate.css') ?>
  27. <?php if (is_file($cssController)) echo $this->Html->css($controllerActive); ?>
  28.  
  29. <?= $this->fetch('meta') ?>
  30. <?= $this->fetch('css') ?>
  31.  
  32. <!-- scripts -->
  33. <?= $this->Html->script(['jquery-3.1.0', 'popper.min', 'bootstrap']) ?>
  34.  
  35. </head>
  36. <body>
  37.  
  38. <?= $this->element('Admin/navbar') ?>
  39.  
  40. <div class="wrapper">
  41. <div id="page-wrapper">
  42. <div class="container-fluid">
  43. <!-- Page Heading -->
  44. <div class="row">
  45. <div class="col-lg-12">
  46. <h1 class="page-header">
  47. <?= $title_for_layout ?> <?php echo (isset($subtitle_for_layout)) ? "<small>{$subtitle_for_layout}</small>" : '' ?>
  48. </h1>
  49. <?= $this->Flash->render() ?>
  50. <!-- <ol class="breadcrumb">
  51. <li class="active">
  52. <i class="fa fa-dashboard"></i> Admin
  53. </li>
  54. </ol> -->
  55. </div>
  56. </div>
  57. <!-- /.row -->
  58.  
  59.  
  60. <?= $this->fetch('content') ?>
  61.  
  62. </div>
  63. </div>
  64. </div>
  65.  
  66.  
  67. <!-- Scripts -->
  68. <?php if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1'): ?>
  69. <script>
  70. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  71. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  72. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  73. })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  74. ga('create', 'UA-106829297-1', 'auto');
  75. ga('send', 'pageview');
  76. </script>
  77. <?php endif; ?>
  78.  
  79. <?php if (is_file($jsController)) echo $this->Html->script($controllerActive); ?>
  80. <?php if (is_file($jsAction)) echo $this->Html->script($jsAction); ?>
  81. <?= $this->fetch('script') ?>
  82.  
  83. <!-- Go to www.addthis.com/dashboard to customize your tools -->
  84. <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-59c338c87ba91a80"></script>
  85.  
  86. <div style="display:none;">
  87. <script id="_wauz4c">var _wau = _wau || []; _wau.push(["classic", "iabm2xk6155i", "z4c"]);
  88. (function() {var s=document.createElement("script"); s.async=true;
  89. s.src="//widgets.amung.us/classic.js";
  90. document.getElementsByTagName("head")[0].appendChild(s);
  91. })();</script>
  92. </div>
  93. </body>
  94. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement