diff --git a/templates/system/offline.php b/templates/system/offline.php
index ca7ef5bfd5317..ef101894af069 100644
--- a/templates/system/offline.php
+++ b/templates/system/offline.php
@@ -11,6 +11,19 @@
$app = JFactory::getApplication();
+// Output as HTML5
+$this->setHtml5(true);
+
+// Styles
+$this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/offline.css');
+
+if ($this->direction == 'rtl')
+{
+ $this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/offline_rtl.css');
+}
+
+$this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/general.css');
+
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
@@ -19,18 +32,14 @@
$twofactormethods = UsersHelper::getTwoFactorMethods();
?>
-
+
-
- direction == 'rtl') : ?>
-
-
-
+
-
+
get('offline_image') && file_exists($app->get('offline_image'))) : ?>