diff --git a/templates/system/component.php b/templates/system/component.php index 7a8c78835b5a1..a6105d844f6a7 100644 --- a/templates/system/component.php +++ b/templates/system/component.php @@ -8,12 +8,18 @@ */ defined('_JEXEC') or die; + +// Output as HTML5 +$this->setHtml5(true); + +// Styles +$this->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/general.css'); ?> - - + + - + diff --git a/templates/system/error.php b/templates/system/error.php index 1ff6de05206c4..a6fbb4ee84db9 100644 --- a/templates/system/error.php +++ b/templates/system/error.php @@ -16,23 +16,21 @@ } // Get language and direction -$doc = JFactory::getDocument(); -$app = JFactory::getApplication(); -$this->language = $doc->language; -$this->direction = $doc->direction; +$app = JFactory::getApplication(); ?> - - + + - + <?php echo $this->error->getCode(); ?> - <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?> - + direction == 'rtl') : ?> - + get('debug_lang', '0') == '1' || $app->get('debug', '0') == '1') : ?> - + +
@@ -51,7 +49,7 @@

    -
  • +

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'))) : ?> <?php echo htmlspecialchars($app->get('sitename'), ENT_COMPAT, 'UTF-8'); ?>