home.view.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. use Cygnite\Mvc\View\Widget;
  3. use Cygnite\AssetManager\AssetCollection;
  4. use Cygnite\Common\UrlManager\Url;
  5. $asset = AssetCollection::make(function ($asset)
  6. {
  7. // group of stylesheets
  8. $asset->add('style', array('path' => 'assets/css/bootstrap/css/bootstrap.min.css'))
  9. ->add('style', array('path' => 'assets/css/bootstrap/css/bootstrap-theme.min.css'))
  10. ->add('style', array('path' => 'assets/css/cygnite/bootstrap/datatables-bootstrap.css'))
  11. ->add('style', array('path' => 'assets/css/cygnite/flash.css'))
  12. ->add('style', array('path' => 'assets/css/cygnite/wysihtml5/prettify.css'))
  13. ->add('style', array('path' => 'assets/css/cygnite/wysihtml5/bootstrap-wysihtml5.css'));
  14. // Group of scripts
  15. $asset->add('script', array('path' => 'assets/js/cygnite/jquery/1.10.1/jquery.min.js'))
  16. ->add('script', array('path' => 'assets/js/twitter/bootstrap/js/bootstrap.min.js'))
  17. ->add('script', array('path' => 'assets/js/dataTables/jquery.dataTables.min.js'))
  18. ->add('script', array('path' => 'assets/js/dataTables/datatables-bootstrap.js'))
  19. ->add('script', array('path' => 'assets/js/dataTables/datatables.fnReloadAjax.js'))
  20. ->add('script', array('path' => 'assets/js/dataTables/prettify.js'));
  21. return $asset;
  22. });
  23. ?>
  24. <!DOCTYPE html>
  25. <html lang="en">
  26. <head>
  27. <meta charset="UTF-8">
  28. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
  29. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  30. <link rel="shortcut icon" href="<?php echo Url::getBase(); ?>assets/img/cygnite/fevicon.png" > </link>
  31. <title><?php echo $this->title; ?></title>
  32. <meta name="keywords" content="CRUD Application" />
  33. <meta name="author" content="Cygnite Framework Bootstrap Starter Site." />
  34. <!-- Google will often use this as its description of your page/site. Make it good. -->
  35. <meta name="description" content="Cygnite CRUD Generator." />
  36. <!-- Mobile Viewport Fix -->
  37. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  38. <?php $asset->dump('style');// Header Style block ?>
  39. <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  40. <!--[if lt IE 9]>
  41. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  42. <![endif]-->
  43. </head>
  44. <body>
  45. <!-- Fluid Container -->
  46. <div class='container'>
  47. <!-- Content -->
  48. <?php echo $yield; ?>
  49. <!-- ./ Content -->
  50. <!-- Footer -->
  51. <footer class="clearfix"></footer>
  52. <!-- ./ Footer -->
  53. </div>
  54. <!-- ./ Container End -->
  55. <?php
  56. //Script block. Scripts will render here
  57. $asset->dump('script');
  58. ?>
  59. <script type="text/javascript">
  60. $(function () {
  61. $('#dataGrid').DataTable();
  62. });
  63. </script>
  64. <style type="text/css">
  65. .navbar-inverse {background: none repeat scroll 0 0 #07508f!important;}
  66. </style>
  67. </body>
  68. </html>