Permalink
Browse files

rewritten offline page; delete obsolete files

  • Loading branch information...
Bloggerschmidt committed Feb 14, 2018
1 parent 24c5d33 commit 95945b8c442f430c5d3474ca21c34397ffe6c772
Showing with 93 additions and 70 deletions.
  1. +6 −3 component.php
  2. +61 −37 css/offline.css
  3. BIN images/apple-touch-icon.png
  4. +5 −4 index.php
  5. +0 −2 js/ie/html5shiv.js
  6. +0 −2 js/ie/respond.js
  7. +1 −1 js/script.js
  8. +14 −15 offline.php
  9. +6 −6 templateDetails.xml
@@ -1,20 +1,23 @@
<?php defined( '_JEXEC' ) or die;
<?php defined( '_JEXEC' ) or die;
// variables
$doc = JFactory::getDocument();
$doc = JFactory::getDocument();
$tpath = $this->baseurl.'/templates/'.$this->template;
// generator tag
$this->setGenerator(null);
// load sheets and scripts
$doc->addStyleSheet($tpath.'/css/print.css?v=1');
// $doc->addStyleSheet($tpath.'/css/print.css?v=1');
JHtml::_('stylesheet', 'print.css', array('version' => 'auto', 'relative' => true));
?><!doctype html>
<html lang="<?php echo $this->language; ?>">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<jdoc:include type="head" />
</head>
98 css/offline.css 100755 → 100644
@@ -1,10 +1,15 @@
/* OFFLINE
========================================================================== */
html,
body {
color: #000;
font-family: Arial,Helvetica,Sans Serif;
font-size: 78%;
height: 100vh;
}
body {
color: #111;
font-family: Arial,Sans Serif;
font-size: 1rem;
margin: 0;
padding: 0;
text-align: center;
@@ -15,19 +20,16 @@ img {
}
#frame {
margin: 20px auto;
margin: 0 auto;
padding: 20px;
width: 400px;
}
#frame form {
text-align: left;
max-width: 100%;
}
.outline {
background: #fff;
border: 1px solid #ebe7d9;
padding: 2px;
@media (min-width: 768px) {
#frame {
padding-top: 32vh;
max-width: 400px;
}
}
.inputbox {
@@ -49,37 +51,59 @@ form fieldset {
padding: 0.2em;
}
label {
display: block;
float: left;
}
input {
padding: 3px;
padding: 5px;
font-size: 1rem;
}
input.button {
cursor: pointer;
width: auto;
}
label {
margin: 5px 0 2px 0;
width: 10em;
}
form p {
padding: 0.2em 0 0.2em 0;
}
form br {
display: none;
}
#frmlogin {
margin: 0 10px 0 10px;
}
#frmlogin fieldset.button {
text-align: right;
padding: 0.3em 0;
}
label[for="remember"] {
font-size: .85rem;
}
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
background-color: #fcf8e3;
border-color: #faebcc;
color: #8a6d3b;
}
.alert h4 {
margin-top: 0;
margin-bottom: 10px;
color: inherit;
font-family: inherit;
font-size: 18px;
font-weight: 500;
line-height: 1.1;
}
.close {
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20);
opacity: .2;
}
.close:focus,
.close:hover {
color: #000;
text-decoration: none;
cursor: pointer;
filter: alpha(opacity=50);
opacity: .5;
}
Binary file not shown.
@@ -6,13 +6,14 @@
<html lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<jdoc:include type="head" />
</head>
<body class="<?php echo $active->alias . ' ' . $pageclass; ?>">
<jdoc:include type="component" />
<jdoc:include type="modules" name="debug" />
<script src="templates/frontend/build/app.js"></script>
<jdoc:include type="component" />
<jdoc:include type="modules" name="debug" />
<script src="templates/frontend/build/app.js"></script>
</body>
</html>

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -1,5 +1,5 @@
jQuery(function($) {
// YOUR SCRIPT HERE
});
29 offline.php 100755 → 100644
@@ -2,27 +2,28 @@
// variables
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$tpath = $this->baseurl.'/templates/'.$this->template;
// generator tag
$this->setGenerator(null);
// load sheets and scripts
$doc->addStyleSheet($tpath.'/css/offline.css?v=1');
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// load css
JHtml::_('stylesheet', 'normalize.css', array('version' => 'auto', 'relative' => true));
JHtml::_('stylesheet', 'offline.css', array('version' => 'auto', 'relative' => true));
?><!doctype html>
<html lang="<?php echo $this->language; ?>">
<head>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> <!-- mobile viewport optimized -->
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
</head>
<body>
<jdoc:include type="message" />
<div id="frame" class="outline">
<div id="frame">
<?php if ($app->getCfg('offline_image')) : ?>
<img src="<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo $app->getCfg('sitename'); ?>" />
<?php endif; ?>
@@ -33,23 +34,21 @@
<p><?php echo $app->getCfg('offline_message'); ?></p>
<?php elseif ($app->getCfg('display_offline_message', 1) == 2 && str_replace(' ', '', JText::_('JOFFLINE_MESSAGE')) != ''): ?>
<p><?php echo JText::_('JOFFLINE_MESSAGE'); ?></p>
<?php endif; ?>
<?php endif; ?>
<jdoc:include type="message" />
<form action="<?php echo JRoute::_('index.php', true); ?>" method="post" name="login" id="form-login">
<fieldset class="input">
<p id="form-login-username">
<label for="username"><?php echo JText::_('JGLOBAL_USERNAME'); ?></label><br />
<input type="text" name="username" id="username" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" size="18" />
<input type="text" name="username" id="username" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" size="18" placeholder="<?php echo JText::_('JGLOBAL_USERNAME'); ?>" />
</p>
<p id="form-login-password">
<label for="passwd"><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label><br />
<input type="password" name="password" id="password" class="inputbox" alt="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" size="18" />
<input type="password" name="password" id="password" class="inputbox" alt="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD'); ?>" />
</p>
<p id="form-login-remember">
<label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME'); ?></label>
<input type="checkbox" name="remember" value="yes" alt="<?php echo JText::_('JGLOBAL_REMEMBER_ME'); ?>" id="remember" />
<label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME'); ?></label>
</p>
<p id="form-login-submit">
<label>&nbsp;</label>
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGIN'); ?>" />
</p>
</fieldset>
@@ -61,4 +60,4 @@
</div>
</body>
</html>
</html>
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">
<extension version="3.4" type="template" client="site" method="upgrade">
<extension version="3" type="template" client="site" method="upgrade">
<name>frontend</name>
<creationDate>xxxx-xx-xx</creationDate>
<author>Your Name</author>
<copyright>Copyright © xxxx example.com</copyright>
<authorEmail>your.name@example.com</authorEmail>
<authorUrl>http://www.example.com</authorUrl>
<version>1.0.0</version>
<description><![CDATA[
<description><![CDATA[
<h1>frontend</h1>
<p>Created by <a href="http://www.example.com" target="_blank">your name | example.com</a>.</p>
]]></description>
<files>
<folder>build</folder>
<folder>css</folder>
@@ -32,9 +32,9 @@
<filename>template_thumbnail.png</filename>
<filename>templateDetails.xml</filename>
</files>
<positions>
<position>debug</position>
</positions>
</extension>

0 comments on commit 95945b8

Please sign in to comment.