Skip to content

Commit

Permalink
System templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Nov 22, 2021
1 parent 98f27ac commit 09580b5
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion administrator/templates/system/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/** @var \Joomla\CMS\Document\ErrorDocument $this */

// Load template CSS file
$this->getWebAssetManager()->registerAndUseStyle('template.system.error', 'administrator/templates/system/css/error.css');
$this->getWebAssetManager()->registerAndUseStyle('template.system.error', 'media/system/css/system-admin-error.min.css');

// Set page title
$this->setTitle($this->error->getCode() . ' - ' . htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'));
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public function onDisplay(
}
else
{
$content_css = Uri::root(true) . '/templates/system/css/editor.css';
$content_css = Uri::root(true) . '/media/system/css/editor.css';
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion templates/system/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/** @var Joomla\CMS\Document\HtmlDocument $this */

// Styles
$this->getWebAssetManager()->registerAndUseStyle('template.system.general', 'templates/system/css/general.css');
$this->getWebAssetManager()->registerAndUseStyle('template.system.general', 'media/system/css/system-site-general.css');

?>
<!DOCTYPE html>
Expand Down
4 changes: 2 additions & 2 deletions templates/system/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}

// Load template CSS file
$this->getWebAssetManager()->registerAndUseStyle('template.system.error', 'templates/system/css/error.css');
$this->getWebAssetManager()->registerAndUseStyle('template.system.error', 'media/system/css/system-site-error.css');

if ($this->direction === 'rtl')
{
$this->getWebAssetManager()->registerAndUseStyle('template.system.error_rtl', 'templates/system/css/error_rtl.css');
$this->getWebAssetManager()->registerAndUseStyle('template.system.error_rtl', 'media/system/css/system-site-error_rtl.css');
}

// Set page title
Expand Down
6 changes: 3 additions & 3 deletions templates/system/offline.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
$wa = $this->getWebAssetManager();

// Styles
$wa->registerAndUseStyle('template.system.offline', 'templates/system/css/offline.css');
$wa->registerAndUseStyle('template.system.offline', 'media/system/css/system-site-offline.css');

if ($this->direction === 'rtl')
{
$wa->registerAndUseStyle('template.system.offline_rtl', 'templates/system/css/offline_rtl.css');
$wa->registerAndUseStyle('template.system.offline_rtl', 'media/system/css/system-site-offline_rtl.css');
}

$wa->registerAndUseStyle('template.system.general', 'templates/system/css/general.css');
$wa->registerAndUseStyle('template.system.general', 'media/system/css/system-site-general.css');

$twofactormethods = AuthenticationHelper::getTwoFactorMethods();

Expand Down

0 comments on commit 09580b5

Please sign in to comment.