/** * Construct * * @param Config $config * @param Router $router * @param View $view */ public function __construct(Config $config, Router $router, View $view) { $this->config = $config; $this->router = $router; $this->view = $view; Assets::setRouter($this->router); }
public function executeFunction($link, $type) { switch ($type) { case 'js': Assets::js([$link]); break; case 'css': Assets::css([$link]); break; } }
public function beforeMethod() { $this->mUsers = new mUsers(); $this->auth = new Auth($this->mUsers, $this->config); if (Dragon::$method != 'login' && !$this->auth->check()) { $this->router->redirect($this->config->get('project_host')); } parent::beforeMethod(); $this->view->setLayout('default'); Assets::add('main', Assets::TYPE_CSS); Assets::add('default', Assets::TYPE_JS); }
private function orgChartEmplTree($array, $parent = 0) { $tree .= "<ul class=\"root\">"; foreach ($array as $row) { if (!empty($row->dep)) { $dep = 'dep'; } else { $dep = ''; } if ($row->manager_id == $parent) { $tree .= "<li><a id=\"user-" . $row->id . "\" href=\"#user-" . $row->id . "\"><span class=\"image\"><img src=\"" . Assets::avatar($row->id) . "\" widht=\"60\" height=\"60\"></span><span class=\"name\">" . $row->name . "<span data-placement=\"top\" data-popup=\"tooltip\" title=\"" . $row->dep . "\" class=\"" . $dep . "\" style=\"background-color: " . $row->color . "\"></span></span><span class=\"title\">" . $row->title . "</span></a>"; $tree .= $this->orgChartEmplTree($array, $row->id); # recurse $tree .= "</li>"; } } $tree .= "</ul>"; return $tree; }
/** * Homepage -- default method */ public function index() { Debug::timer('test'); Assets::add('main', Assets::TYPE_CSS); Assets::add('default', Assets::TYPE_JS); /* * Sample information about access to database data * Default read: */ // $modelSample = new mSample(); // $rows = $modelSample->get(); // Debug::var_dump($rows); // $modelSample->get(2); /* * Sample get instance of component */ $componentEmail = new cEmail($this->config, $this->router); Debug::var_dump('test'); Debug::var_dump([432, 654]); Debug::timer('test'); $this->set('variable', 'how to set variable to view'); $this->set('links', array('produkt' => $this->router->getUrl('products', 'detail', 123, array('list' => 5)))); }
?> Zeilschool de Waai.<br> Alle rechten voorbehouden.<br /> <a href="developers">Developerteam</a> </div> <div class="col-md-4"> <h2>Contact opnemen</h2><hr> <p>Zeilschool de Waai<br>Ymedaem 45<br>8722 GR Warns<br>Telefoon: 0514 561290<br>Email: info@zs-waai.nl<br><br> Heeft u vragen of opmerkingen? <a href="contact">Klik hier.</a></p> </div> </div> </div> <!-- JS --> <?php Assets::js(array(Url::templatePath() . 'js/jquery.js', 'https://www.google.com/recaptcha/api.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', Url::templatePath() . 'js/script.js', Url::templatePath() . 'js/cursistkoppelen.js', Url::templatePath() . 'js/validation.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> </body> </html>
<?php /** * Sample layout */ use Helpers\Assets; use Helpers\Url; use Helpers\Hooks; //initialise hooks $hooks = Hooks::get(); ?> </div> <!-- JS --> <?php Assets::js(array('/app/templates/default/js/jquery.js', '/app/templates/default/js/bootstrap.min.js', '/app/templates/default/js/scrollingSidebar.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> </body> </html>
<span>Jazz</span> </a> </li> </ul> </nav> <!-- / nav --> </div> </section> <!-- <footer class="footer hidden-xs no-padder text-center-nav-xs"> <div class="bg hidden-xs "> <div class="dropdown dropup wrapper-sm clearfix"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <span class="thumb-sm avatar pull-left m-l-xs"> <?php echo Assets::image('images/a3.png', 'dker', ''); ?> <i class="on b-black"></i> </span> <span class="hidden-nav-xs clear"> <span class="block m-l"> <strong class="font-bold text-lt">John.Smith</strong> <b class="caret"></b> </span> <span class="text-muted text-xs block m-l">Art Director</span> </span> </a> <ul class="dropdown-menu animated fadeInRight aside text-left"> <li> <span class="arrow bottom hidden-nav-xs"></span> <a href="#">Settings</a>
<div class="controls"> <textarea class="input-xlarge" name="description" id="textarea2" rows="8"><?php echo $album_data->album_description; ?> </textarea> </div> </div> <div class="control-group"> <label class="control-label">Cover Photo</label> <div class="controls"> <input type="file" name="image"> </div> <div class="controls"> <?php echo Assets::image($album_data->album_image, '', 'width: 120px'); ?> </div> </div> <div class="form-actions"> <button type="submit" class="btn btn-primary">Save</button> <button type="reset" class="btn">Cancel</button> </div> </fieldset> </form> </div> </div><!--/span--> </div><!--/row--> </div><!--/.fluid-container-->
?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php Assets::css(array(Url::templatePath() . 'css/bootstrap.min.css', Url::templatePath() . 'css/londinium-theme.css', Url::templatePath() . 'css/icons.css', Url::templatePath() . 'css/styles.css', Url::templatePath() . 'css/video-js.css', 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=latin,cyrillic-ext')); //hook for plugging in css $hooks->run('css'); ?> <!-- JS --> <?php Assets::js(array('http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js', Url::templatePath() . 'js/plugins/charts/sparkline.min.js', Url::templatePath() . 'js/plugins/forms/uniform.min.js', Url::templatePath() . 'js/plugins/forms/select2.min.js', Url::templatePath() . 'js/plugins/forms/inputmask.js', Url::templatePath() . 'js/plugins/forms/autosize.js', Url::templatePath() . 'js/plugins/forms/inputlimit.min.js', Url::templatePath() . 'js/plugins/forms/listbox.js', Url::templatePath() . 'js/plugins/forms/multiselect.js', Url::templatePath() . 'js/plugins/forms/validate.min.js', Url::templatePath() . 'js/plugins/forms/tags.min.js', Url::templatePath() . 'js/plugins/forms/switch.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.full.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.queue.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/wysihtml5.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/toolbar.js', Url::templatePath() . 'js/plugins/interface/daterangepicker.js', Url::templatePath() . 'js/plugins/interface/fancybox.min.js', Url::templatePath() . 'js/plugins/interface/moment.js', Url::templatePath() . 'js/plugins/interface/jgrowl.min.js', Url::templatePath() . 'js/plugins/interface/datatables.min.js', Url::templatePath() . 'js/plugins/interface/colorpicker.js', Url::templatePath() . 'js/plugins/interface/fullcalendar.min.js', Url::templatePath() . 'js/plugins/interface/timepicker.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/video.js', Url::templatePath() . 'js/application.js')); //hook for plugging in javascript $hooks->run('js'); ?> <script> videojs.options.flash.swf = "<?php echo Url::templatePath() . 'swf/video-js.swf'; ?> "; </script> </head> <body> <!-- Login wrapper --> <div class="login-wrapper"> <form action="<?php
<?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <meta name="description" content="<?php echo $data['meta_description']; ?> "> <!-- CSS --> <?php Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', Url::templatePath() . 'css/style.css')); //hook for plugging in css $hooks->run('css'); ?> <link rel="shortcut icon" href="assets/ico/favicon.ico"> </head> <body> <!-- Fixed navbar --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span>
<head> <!-- Site meta --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/core/config.php ?> </title> <!-- CSS --> <?php Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', '//cdnjs.cloudflare.com/ajax/libs/metisMenu/2.0.1/metisMenu.min.css', Url::templateAdminPath() . 'css/sb-admin-2.css', Url::templateAdminPath() . 'css/paddingmargin.css')); ?> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div id="wrapper"> <nav class="navbar navbar-blue navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header">
<?php use Helpers\Assets; use Helpers\Url; use Helpers\Hooks; //initialise hooks $hooks = Hooks::get(); ?> <?php Assets::js(array(Url::templatePath() . 'js/jquery.min.js', Url::templatePath() . 'js/particles.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.bootstrap-autohidingnavbar.min.js', Url::templatePath() . 'js/material.min.js', Url::templatePath() . 'js/ripples.min.js', Url::templatePath() . 'js/app.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> <br><br><br> </div> <!-- main container --> <footer class="footer"> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="text-center"> <div class="text-lg-bn-white sliding-lg-white">Vamos a trabajar juntos.</div> <br><br> <div class="text-md-white">¿Tienes algún proyecto en mente?</div> <br> <div class="text-md-white">Empecemos a desarrollarlo.</div> <br><br> <div class="row"> <div class="col-md-4 text-right"> <a class="btn btn-raised btn-default" href="<?php
<head> <!-- Site meta --> <meta charset="utf-8"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php $theroute = DIR . 'app/Modules/Search/templates/search/'; Assets::css(array($theroute . 'css/ajaxlivesearch.min.css', $theroute . 'css/fontello.css', $theroute . 'css/animation.css', $theroute . 'font/fontello.woff')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?> <div class="container">
<?php use Helpers\Assets; use Helpers\Url; use Helpers\Hooks; //initialise hooks $hooks = Hooks::get(); ?> </div> <!-- JS --> <?php Assets::js(array('//code.jquery.com/jquery-1.11.3.min.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', '//code.jquery.com/ui/1.11.2/jquery-ui.js', Url::templatePath() . 'js/plugins/metisMenu/jquery.metisMenu.js', Url::templatePath() . 'js/inspinia.js', Url::templatePath() . 'js/plugins/pace/pace.min.js', Url::templatePath() . 'js/plugins/fullcalendar/fullcalendar.min.js', Url::templatePath() . 'js/custom.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> </body> </html>
<!-- Timeline --> <div class="timeline timeline-left content-group"> <div class="timeline-container"> <?php foreach ($data['posts'] as $row) { ?> <!-- Post --> <div class="timeline-row"> <div class="timeline-icon"> <a href="#"><img data-popup="tooltip" data-placement="bottom" title="<?php echo $row->name; ?> " src="<?php echo Assets::avatar($row->user_id); ?> " alt=""></a> </div> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h3 class="panel-title"> <?php echo $row->title; ?> </h3> <div class="heading-elements"> <span class="heading-text"><time data-date-published="<?php echo Date::showDateTime($row->published_at, 'local', 'local'); ?>
<!-- Site meta --> <meta charset="utf-8"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php Assets::css(array(Url::templatePath() . 'css/bootstrap.min.css', Url::templatePath() . 'css/style.css')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?> <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span>
" width="100" > --> </div> </div> <div class="control-group"> <label class="control-label" for="selectError3">Thumbnail</label> <div class="controls"> <!-- <input type="text" name="image2" class="span6" value="<?php echo $page_data->page_content_image2; ?> "> --> <input type="file" name="image2_extra"><br> <?php echo Assets::image($page_data->page_content_image2); ?> <!-- <img src="<?php //echo PIC_PATH.$page_data->page_content_image2; ?> " width="100" > --> </div> </div> <div class="control-group"> <label class="control-label">Homepage</label> <div class="controls"> <label class="checkbox inline">
<!-- Site meta --> <meta charset="utf-8"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php Assets::css(array('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css', Url::templatePath() . 'css/style.css', Url::templatePath() . 'https://fonts.googleapis.com/css?family=Roboto', Url::templatePath() . 'css/style2.css', Url::templatePath() . 'css/galerie.css')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?> <div class="nav navbar-fixed-top"> <div class="container-fluid"> <span class="title"><?php echo $data['title']; ?>
<!-- <img src="<?php //echo PIC_PATH.$page_data->content_image1; ?> " width="100" > --> </div> </div> <div class="control-group"> <label class="control-label" for="selectError3">Thumbnail</label> <div class="controls"> <input type="file" name="image2_extra"><br> <?php echo Assets::image($page_data->content_thumbnail, '', 'width: 100px'); ?> </div> </div> <div class="control-group"> <label class="control-label">Homepage</label> <div class="controls"> <label class="checkbox inline"> <input type="checkbox" name="homepage" value="0" <?php if ($page_data->content_homepage != 0) { echo "checked"; } ?> >
</ul> <ul class="nav navbar-nav navbar-right"> <li> <a href="#"> <i class="icon-bell3"></i> <span class="visible-xs-inline-block position-right">Notifications</span> <span class="badge bg-danger">4</span> </a> </li> <li class="dropdown dropdown-user"> <a class="dropdown-toggle" data-toggle="dropdown"> <img class="avatar" src="<?php echo Assets::avatar(Session::get('id')); ?> " alt=""> <span><?php echo Session::get('first_name') . ' ' . Session::get('last_name'); ?> </span> <i class="caret"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="/users/edit/<?php echo $_SESSION['id']; ?> "><i class="icon-user"></i> My profile</a></li> <li><a href="/users/edit/<?php
use Helpers\Url; use Helpers\Hooks; //initialise hooks $hooks = Hooks::get(); ?> </div><!-- /content-wrapper --> <footer class="main-footer"> <div class="pull-right hidden-xs"><b>Version</b> 0.0.1 </div> <strong>Copyright © 2015 <a href="http://uness.com">Picontest</a>.</strong> All rights reserved. </footer> </div><!-- /wrapper --> <!-- REQUIRED JS SCRIPTS --> <?php Assets::js(array(Url::templatePath() . 'backoffice/js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', Url::templatePath() . 'backoffice/js/app.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); if ($data['js-datePlaceholder']) { Assets::js(array(Url::templatePath() . 'backoffice/js/jquery.inputmask.js', Url::templatePath() . 'backoffice/js/jquery.inputmask.extensions.js', Url::templatePath() . 'backoffice/js/jquery.inputmask.date.extensions.js', Url::templatePath() . 'backoffice/js/datePlaceholder.js')); } ?> <script> </script> </body> </html>
<label class="remember" for="remember"><input type="checkbox" id="remember" />Remember me</label> <div class="button-login"> <button type="submit" class="btn btn-primary">Login</button> </div> <div class="clearfix"></div> </form> <hr> <h3>Forgot Password?</h3> <p> No problem, <a href="javascript:;">click here</a> to get a new password. </p> </div><!--/span--> </div><!--/row--> </div><!--/.fluid-container--> </div><!--/fluid-row--> <!-- start: JavaScript--> <?php Assets::js(array(Url::templatePath() . 'js/jquery-1.9.1.min.js', Url::templatePath() . 'js/jquery-migrate-1.0.0.min.js', Url::templatePath() . 'js/jquery-ui-1.10.0.custom.min.js', Url::templatePath() . 'js/jquery.ui.touch-punch.js', Url::templatePath() . 'js/modernizr.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.cookie.js', Url::templatePath() . 'js/fullcalendar.min.js', Url::templatePath() . 'js/jquery.dataTables.min.js', Url::templatePath() . 'js/excanvas.js', Url::templatePath() . 'js/jquery.flot.js', Url::templatePath() . 'js/jquery.flot.pie.js', Url::templatePath() . 'js/jquery.flot.stack.js', Url::templatePath() . 'js/jquery.flot.resize.min.js', Url::templatePath() . 'js/jquery.chosen.min.js', Url::templatePath() . 'js/jquery.uniform.min.js', Url::templatePath() . 'js/jquery.cleditor.min.js', Url::templatePath() . 'js/jquery.noty.js', Url::templatePath() . 'js/jquery.elfinder.min.js', Url::templatePath() . 'js/jquery.raty.min.js', Url::templatePath() . 'js/jquery.iphone.toggle.js', Url::templatePath() . 'js/jquery.uploadify-3.1.min.js', Url::templatePath() . 'js/jquery.gritter.min.js', Url::templatePath() . 'js/jquery.imagesloaded.js', Url::templatePath() . 'js/jquery.masonry.min.js', Url::templatePath() . 'js/jquery.knob.modified.js', Url::templatePath() . 'js/jquery.sparkline.min.js', Url::templatePath() . 'js/counter.js', Url::templatePath() . 'js/jquery.textareaCounter.plugin.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> </body> </html>
<?php use Helpers\Assets; use Helpers\Url; use Helpers\Hooks; use Models\Page; //initialise hooks $hooks = Hooks::get(); ?> <?php Assets::js(array(Url::templatePath() . 'js/modernizr.js')); ?> <style type="text/css"> html { height: auto; } </style> <!-- Begin page content --> <div class="inner-page"> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3963.2265782909244!2d3.3807606000000083!3d6.618749900000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x103b930795f22b71%3A0xc41bc17a7567a8d8!2s16+Emmanuel+Keshi%2C+Lagos!5e0!3m2!1sen!2sng!4v1435415296793" width="100%" height="350" frameborder="0" style="border:0"></iframe> <div class="container "> <div class="col-md-12"> <div class="page-header"> <h3>Contact Us Page</h3> </div> <form class="evet-form" method="post" accept="" action="">
<!-- Site meta --> <meta charset="utf-8"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', Url::templatePath() . 'css/style.css')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?> <div class="container"> <div class="page-header"> <h1>Credentials</h1> </div>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo SITETITLE . ' | ' . $data['title']; //SITETITLE defined in config file ?> </title> <!-- CSS --> <?php Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', Url::templatePath() . 'backoffice/css/AdminLTE.css', Url::templatePath() . 'backoffice/css/skins/skin-blue.css')); //hook for plugging in css $hooks->run('css'); ?> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body class="sidebar-mini skin-blue"> <div class="wrapper"> <!-- Main Header -->
"> <head> <!-- Site meta --> <meta charset="utf-8"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/config.php ?> </title> <!-- CSS --> <?php Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', DIR . 'css/style.css')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?> <div class="container">
<a href="#about">About</a> </li> <li class="footer-menu-divider">⋅</li> <li> <a href="#services">Services</a> </li> <li class="footer-menu-divider">⋅</li> <li> <a href="#contact">Contact</a> </li> </ul> <p class="copyright text-muted small">Copyright © Your Company 2014. All Rights Reserved</p> </div> </div> </div> </footer> <?php Assets::js(array(Url::templatePath() . 'js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js')); //hook for plugging in javascript $hooks->run('js'); //hook for plugging in code into the footer $hooks->run('footer'); ?> </body> </html>
<!-- Site meta --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <?php //hook for plugging in meta tags $hooks->run('meta'); ?> <title><?php echo $data['title'] . ' - ' . SITETITLE; //SITETITLE defined in app/Core/Config.php ?> </title> <!-- CSS --> <?php Assets::css(array(Url::templatePath() . 'semanticui/semantic.min.css', Url::templatePath() . 'css/style.css')); //hook for plugging in css $hooks->run('css'); ?> </head> <body> <?php //hook for running code after body tag $hooks->run('afterBody'); ?>
<?php use Helpers\Assets; use Helpers\Url; use Helpers\Hooks; $hooks = Hooks::get(); ?> </div> <?php //Array contains JS files required by template, regardless of view. $jsFileArray = array(Url::templatePath() . 'js/materialize.min.js', Url::templatePath() . 'js/main.js'); if (isset($data['javascript'])) { foreach ($data['javascript'] as &$jsFile) { array_push($jsFileArray, URL::templatePath() . "js/" . $jsFile . ".js"); } } Assets::js($jsFileArray); $hooks->run('js'); $hooks->run('footer'); ?> </body> </html>