layout.html.bak 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <!--[if HTML5]><![endif]-->
  2. <!DOCTYPE html>
  3. <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
  4. <!--[if lt IE 7]><html class="ie ie6 ie-lte9 ie-lte8 ie-lte7 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
  5. <!--[if IE 7]><html class="ie ie7 ie-lte9 ie-lte8 ie-lte7 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
  6. <!--[if IE 8]><html class="ie ie8 ie-lte9 ie-lte8 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
  7. <!--[if IE 9]><html class="ie9 ie-lte9 no-js" lang="{{=T.accepted_language or 'en'}}"> <![endif]-->
  8. <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{=T.accepted_language or 'en'}}"> <!--<![endif]-->
  9. <head>
  10. <title>{{=response.title or request.application}}</title>
  11. <!--[if !HTML5]>
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge{{=not request.is_local and ',chrome=1' or ''}}">
  13. <![endif]-->
  14. <!-- www.phpied.com/conditional-comments-block-downloads/ -->
  15. <!-- Always force latest IE rendering engine
  16. (even in intranet) & Chrome Frame
  17. Remove this if you use the .htaccess -->
  18. <meta charset="utf-8" />
  19. <!-- http://dev.w3.org/html5/markup/meta.name.html -->
  20. <meta name="application-name" content="{{=request.application}}" />
  21. <!-- Speaking of Google, don't forget to set your site up:
  22. http://google.com/webmasters -->
  23. <meta name="google-site-verification" content="" />
  24. <!-- Mobile Viewport Fix
  25. j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag
  26. device-width: Occupy full width of the screen in its current orientation
  27. initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height
  28. user-scalable = yes allows the user to zoom in -->
  29. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  30. <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon">
  31. <link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
  32. <!-- All JavaScript at the bottom, except for Modernizr which enables
  33. HTML5 elements & feature detects -->
  34. <script src="{{=URL('static','js/modernizr.custom.js')}}"></script>
  35. <!-- include stylesheets -->
  36. {{
  37. response.files.insert(0,URL('static','css/web2py.css'))
  38. response.files.insert(1,URL('static','css/bootstrap.min.css'))
  39. response.files.insert(2,URL('static','css/bootstrap-responsive.min.css'))
  40. response.files.insert(3,URL('static','css/web2py_bootstrap.css'))
  41. }}
  42. {{include 'web2py_ajax.html'}}
  43. {{
  44. # using sidebars need to know what sidebar you want to use
  45. left_sidebar_enabled = globals().get('left_sidebar_enabled',False)
  46. right_sidebar_enabled = globals().get('right_sidebar_enabled',False)
  47. middle_columns = {0:'span12',1:'span9',2:'span6'}[
  48. (left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]
  49. }}
  50. <!-- uncomment here to load jquery-ui
  51. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
  52. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>
  53. uncomment to load jquery-ui //-->
  54. <noscript><link href="{{=URL('static', 'css/web2py_bootstrap_nojs.css')}}" rel="stylesheet" type="text/css" /></noscript>
  55. {{block head}}{{end}}
  56. </head>
  57. <body>
  58. <!-- Navbar ================================================== -->
  59. <div class="navbar navbar-inverse">
  60. <div class="flash">{{=response.flash or ''}}</div>
  61. <div class="navbar-inner">
  62. <div class="container">
  63. {{is_mobile=request.user_agent().is_mobile}}
  64. <!-- the next tag is necessary for bootstrap menus, do not remove -->
  65. <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse" style="{{='display:none;' if not is_mobile else ''}}">
  66. <span class="icon-bar"></span>
  67. <span class="icon-bar"></span>
  68. <span class="icon-bar"></span>
  69. </button>
  70. {{=response.logo or ''}}
  71. <ul id="navbar" class="nav pull-right">{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}</ul>
  72. <div class="{{='nav-collapse' if is_mobile else 'nav'}}">
  73. {{if response.menu:}}
  74. {{=MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu')}}
  75. {{pass}}
  76. </div><!--/.nav-collapse -->
  77. </div>
  78. </div>
  79. </div><!--/top navbar -->
  80. <div class="container">
  81. <!-- Masthead ================================================== -->
  82. <header class="mastheader row" id="header">
  83. {{if response.title:}}
  84. <div class="span12">
  85. <div class="page-header">
  86. <h1>
  87. {{=response.title}}
  88. <small>{{=response.subtitle or ''}}</small>
  89. </h1>
  90. </div>
  91. </div>
  92. {{pass}}
  93. </header>
  94. <section id="main" class="main row">
  95. {{if left_sidebar_enabled:}}
  96. <div class="span3 left-sidebar">
  97. {{block left_sidebar}}
  98. <h3>Left Sidebar</h3>
  99. <p></p>
  100. {{end}}
  101. </div>
  102. {{pass}}
  103. <div class="{{=middle_columns}}">
  104. {{block center}}
  105. {{include}}
  106. {{end}}
  107. </div>
  108. {{if right_sidebar_enabled:}}
  109. <div class="span3">
  110. {{block right_sidebar}}
  111. <h3>Right Sidebar</h3>
  112. <p></p>
  113. {{end}}
  114. </div>
  115. {{pass}}
  116. </section><!--/main-->
  117. <!-- Footer ================================================== -->
  118. <div class="row">
  119. <footer class="footer span12" id="footer">
  120. <div class="footer-content">
  121. {{block footer}} <!-- this is default footer -->
  122. <div class="copyright pull-left">{{=T('Copyright')}} &#169; {{=request.now.year}}</div>
  123. <div id="poweredBy" class="pull-right">
  124. {{=T('Powered by')}}
  125. <a href="http://www.web2py.com/">web2py</a>
  126. </div>
  127. {{end}}
  128. </div>
  129. </footer>
  130. </div>
  131. </div> <!-- /container -->
  132. <!-- The javascript =============================================
  133. (Placed at the end of the document so the pages load faster) -->
  134. <script src="{{=URL('static','js/bootstrap.min.js')}}"></script>
  135. <script src="{{=URL('static','js/web2py_bootstrap.js')}}"></script>
  136. <!--[if lt IE 7 ]>
  137. <script src="{{=URL('static','js/dd_belatedpng.js')}}"></script>
  138. <script> DD_belatedPNG.fix('img, .png_bg'); //fix any <img> or .png_bg background-images </script>
  139. <![endif]-->
  140. {{if response.google_analytics_id:}}
  141. <!-- Google Analytics -->
  142. <script>
  143. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  144. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  145. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  146. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  147. ga('create', '{{=response.google_analytics_id}}', 'auto');
  148. ga('send', 'pageview');
  149. </script>
  150. <!-- End Google Analytics -->
  151. {{pass}}
  152. <script src="{{=URL('static','js/share.js',vars=dict(static=URL('static','images')))}}"></script>
  153. </body>
  154. </html>