Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $controllerActive = strtolower($this->request->params["controller"]);
- $actionActive = strtolower($this->request->params["action"]);
- $cssController = WWW_ROOT."css".DS.$controllerActive.".css";
- $jsController = WWW_ROOT."js".DS.$controllerActive.".js";
- $cssAction = WWW_ROOT."css".DS.$controllerActive.'_'.$actionActive.".css";
- $jsAction = WWW_ROOT."js".DS.$controllerActive.'_'.$actionActive.".js";
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <?= $this->Html->charset() ?>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>
- Hokages<?= isset($title_for_layout) ? ' - ' . $title_for_layout : ''; ?>
- </title>
- <?= $this->Html->meta('icon') ?>
- <!-- Styles -->
- <?= $this->Html->css('bootstrap.min') ?>
- <?= $this->Html->css('font-awesome/css/font-awesome.min') ?>
- <?= $this->Html->css('main.css') ?>
- <?= $this->Html->css('animate.css') ?>
- <?php if (is_file($cssController)) echo $this->Html->css($controllerActive); ?>
- <?= $this->fetch('meta') ?>
- <?= $this->fetch('css') ?>
- <!-- scripts -->
- <?= $this->Html->script(['jquery-3.1.0', 'popper.min', 'bootstrap']) ?>
- </head>
- <body>
- <?= $this->element('Admin/navbar') ?>
- <div class="wrapper">
- <div id="page-wrapper">
- <div class="container-fluid">
- <!-- Page Heading -->
- <div class="row">
- <div class="col-lg-12">
- <h1 class="page-header">
- <?= $title_for_layout ?> <?php echo (isset($subtitle_for_layout)) ? "<small>{$subtitle_for_layout}</small>" : '' ?>
- </h1>
- <?= $this->Flash->render() ?>
- <!-- <ol class="breadcrumb">
- <li class="active">
- <i class="fa fa-dashboard"></i> Admin
- </li>
- </ol> -->
- </div>
- </div>
- <!-- /.row -->
- <?= $this->fetch('content') ?>
- </div>
- </div>
- </div>
- <!-- Scripts -->
- <?php if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1'): ?>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-106829297-1', 'auto');
- ga('send', 'pageview');
- </script>
- <?php endif; ?>
- <?php if (is_file($jsController)) echo $this->Html->script($controllerActive); ?>
- <?php if (is_file($jsAction)) echo $this->Html->script($jsAction); ?>
- <?= $this->fetch('script') ?>
- <!-- Go to www.addthis.com/dashboard to customize your tools -->
- <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-59c338c87ba91a80"></script>
- <div style="display:none;">
- <script id="_wauz4c">var _wau = _wau || []; _wau.push(["classic", "iabm2xk6155i", "z4c"]);
- (function() {var s=document.createElement("script"); s.async=true;
- s.src="//widgets.amung.us/classic.js";
- document.getElementsByTagName("head")[0].appendChild(s);
- })();</script>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement