SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/admin/login_layout.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2015 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 3 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. use Sprout\Helpers\Jquery;
  19. use Sprout\Helpers\Notification;
  20. use Sprout\Helpers\Sprout;
  21.  
  22.  
  23. $merged_js = 'media/merged/admin.' . Sprout::getVersion() . '.js';
  24. $merged_css = 'media/merged/admin.' . Sprout::getVersion() . '.css';
  25.  
  26. ?>
  27. <!DOCTYPE html>
  28. <html lang="en" class="login-page">
  29. <head>
  30. <meta http-equiv="Content-type" content="text/html; charset=UTF-8">
  31. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  32. <meta name="viewport" content="width=device-width, initial-scale=1">
  33. <meta name="robots" content="noindex, nofollow">
  34.  
  35. <title><?= Enc::html($browser_title); ?> | SproutCMS</title>
  36.  
  37. <base href="<?= Enc::html(Sprout::absRoot()); ?>">
  38.  
  39. <script type="text/javascript">
  40. var ROOT = 'ROOT/';
  41. var SITE = 'SITE/';
  42. </script>
  43.  
  44. <link rel="icon" href="ROOT/media/images/favicon.ico" type="image/x-icon" sizes="16x16 32x32 48x48 256x256">
  45. <link rel="icon" type="image/png" href="ROOT/media/images/favicon-16x16.png" sizes="16x16">
  46. <link rel="icon" type="image/png" href="ROOT/media/images/favicon-32x32.png" sizes="32x32">
  47. <link rel="icon" type="image/png" href="ROOT/media/images/favicon-96x96.png" sizes="96x96">
  48. <link rel="apple-touch-icon" sizes="152x152" href="ROOT/media/images/apple-touch-icon-152x152.png">
  49.  
  50. <!-- Styles -->
  51. <?php if (file_exists(DOCROOT . $merged_css)): ?>
  52. <link href="ROOT/<?= Enc::html($merged_css); ?>" rel="stylesheet" type="text/css">
  53. <?php else: ?>
  54. <link href="ROOT/media/css/normalize.css" rel="stylesheet" type="text/css">
  55. <link href="ROOT/media/css/common.css" rel="stylesheet" type="text/css">
  56. <link href="ROOT/media/css/ui.core.css" rel="stylesheet" type="text/css">
  57. <link href="ROOT/sprout/media/css/admin_layout.css" rel="stylesheet">
  58. <link href="ROOT/sprout/media/css/admin_editing_area.css" rel="stylesheet">
  59. <link href="ROOT/media/css/facebox.css" rel="stylesheet">
  60. <?php endif; ?>
  61.  
  62. <!-- jQuery + jQuery UI -->
  63. <?= Jquery::script('jquery', 'admin'); ?>
  64.  
  65. <!-- Libraries -->
  66. <?php if (file_exists(DOCROOT . $merged_js)): ?>
  67. <script src="ROOT/<?= Enc::html($merged_js); ?>"></script>
  68. <?php else: ?>
  69. <script src="ROOT/media/js/jquery.cookie.js"></script>
  70. <script src="ROOT/media/js/common.js"></script>
  71. <script src="/media/js/jquery.matchHeight-min.js"></script>
  72. <script src="ROOT/sprout/media/js/admin_layout.js"></script>
  73. <script src="ROOT/sprout/media/js/admin_editing_area.js"></script>
  74. <script src="ROOT/media/js/facebox.js"></script>
  75. <script src="ROOT/media/js/login.js"></script>
  76. <?php endif; ?>
  77.  
  78. <needs />
  79.  
  80. </head>
  81. <body>
  82.  
  83. <div id="wrapper">
  84.  
  85. <div class="login-loading-box">
  86. <div class="processing processing-large processing-animate">
  87. <div class="processing-dots-wrapper">
  88. <span class="processing-dot processing-dot-1"></span>
  89. <span class="processing-dot processing-dot-2"></span>
  90. <span class="processing-dot processing-dot-3"></span>
  91. <span class="processing-dot processing-dot-4"></span>
  92. <span class="processing-dot processing-dot-5"></span>
  93. <span class="processing-dot processing-dot-6"></span>
  94. <span class="processing-dot processing-dot-7"></span>
  95. <span class="processing-dot processing-dot-8"></span>
  96. </div>
  97. </div>
  98. </div>
  99.  
  100. <div class="login-box">
  101. <div class="login-box-header">
  102. <div class="logo -clearfix"><span class="logo-sprout">Sprout</span> <span class="logo-cms">CMS</span> <span class="logo-version"><?= Enc::html(Sprout::getVersion()); ?></span></div>
  103. </div>
  104. <h1 class="h2 -vis-hidden"><?= Enc::html($main_title); ?></h1>
  105. <div class="login-box-content">
  106. <?= Notification::checkMessages(); ?>
  107. <?= $main_content; ?>
  108. <?php if (!empty($info_message)) echo $info_message; ?>
  109. </div>
  110. <?php require_once("_footer.php"); ?>
  111. </div>
  112.  
  113. </div>
  114.  
  115. </body>
  116. </html>
  117.