PageRenderTime 40ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/offline.php

https://bitbucket.org/ghazalp/jsbootstrap
PHP | 84 lines | 74 code | 9 blank | 1 comment | 8 complexity | dc9438711e9003bda7707cb71025f746 MD5 | raw file
  1. <?php
  2. defined( '_JEXEC' ) or die;
  3. // Titre du site
  4. $document = JFactory::getDocument();
  5. $app = JFactory::getApplication();
  6. ?>
  7. <!DOCTYPE html>
  8. <html lang="fr">
  9. <head>
  10. <meta charset="utf-8">
  11. <jdoc:include type="head" />
  12. <?php // ==== Le styles ?>
  13. <?php // <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> ?>
  14. <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
  15. <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" media="screen" />
  16. <?php // ==== Le HTML5 shim, for IE6-8 support of HTML5 elements ?>
  17. <!--[if lt IE 9]>
  18. <script src="html5shim.googlecode.com/svn/trunk/html5...;></script>
  19. <![endif]-->
  20. <?php // ==== Le fav and touch icons ?>
  21. <link rel="shortcut icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/favicon.ico" type="image/vnd.microsoft.icon" />
  22. <link rel="apple-touch-icon" sizes="144x144" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-144x144.png" />
  23. <link rel="apple-touch-icon" sizes="114x114" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-114x114.png" />
  24. <link rel="apple-touch-icon" sizes="72x72" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-72x72.png" />
  25. <link rel="apple-touch-icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/img/ico/apple-touch-icon-57x57.png" />
  26. </head>
  27. <body>
  28. <jdoc:include type="message" />
  29. <div id="frame" class="outline">
  30. <div class="container well " style="padding-top:40px;">
  31. <div class="row">
  32. <div class="offset3 span6">
  33. <?php if ($app->getCfg('offline_image')) : ?>
  34. <img src="<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo $app->getCfg('sitename'); ?>" />
  35. <?php endif; ?>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="offset4 span4">
  40. <?php if ($app->getCfg('display_offline_message', 1) == 1 && str_replace(' ', '', $app->getCfg('offline_message')) != ''): ?>
  41. <h4><?php echo $app->getCfg('offline_message'); ?></h4>
  42. <?php elseif ($app->getCfg('display_offline_message', 1) == 2 && str_replace(' ', '', JText::_('JOFFLINE_MESSAGE')) != ''): ?>
  43. <p><?php echo JText::_('JOFFLINE_MESSAGE'); ?></p>
  44. <?php endif; ?>
  45. <form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="login" id="form-login">
  46. <fieldset class="input">
  47. <p id="form-login-username">
  48. <label for="username"><?php echo JText::_('JGLOBAL_USERNAME'); ?></label>
  49. <input type="text" name="username" id="username" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" size="18" />
  50. </p>
  51. <p id="form-login-password">
  52. <label for="passwd"><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label>
  53. <input type="password" name="password" id="password" class="inputbox" alt="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" size="18" />
  54. </p>
  55. <p id="form-login-remember">
  56. <input type="checkbox" name="remember" value="yes" alt="<?php echo JText::_('JGLOBAL_REMEMBER_ME'); ?>" id="remember" />
  57. <label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME'); ?></label>
  58. </p>
  59. <p id="form-login-submit">
  60. <label>&nbsp;</label>
  61. <input type="submit" name="Submit" class="button btn btn-primary" value="<?php echo JText::_('JLOGIN'); ?>" />
  62. </p>
  63. </fieldset>
  64. <input type="hidden" name="option" value="com_users" />
  65. <input type="hidden" name="task" value="user.login" />
  66. <input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()); ?>" />
  67. <?php echo JHTML::_( 'form.token' ); ?>
  68. </form>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </body>
  75. </html>