Skip to content

Commit

Permalink
Fix some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Nov 22, 2021
1 parent ae8898a commit 98f27ac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions templates/cassiopeia/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@
$app = Factory::getApplication();
$wa = $this->getWebAssetManager();

// Template path
$templatePath = 'templates/' . $this->template;

// Color Theme
$paramsColorName = $this->params->get('colorName', 'colors_standard');
$assetColorName = 'theme.' . $paramsColorName;
$wa->registerAndUseStyle($assetColorName, $templatePath . '/css/global/' . $paramsColorName . '.css');
$wa->registerAndUseStyle($assetColorName, 'media/templates/site/cassiopeia/css/global/' . $paramsColorName . '.css');

// Use a font scheme if set in the template style options
$paramsFontScheme = $this->params->get('useFontScheme', false);
Expand Down
2 changes: 1 addition & 1 deletion templates/cassiopeia/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : '';

// Template path
$templatePath = 'templates/' . $this->template;
$templatePath = 'media/templates/site/cassiopeia';

// Color Theme
$paramsColorName = $this->params->get('colorName', 'colors_standard');
Expand Down
5 changes: 1 addition & 4 deletions templates/cassiopeia/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@
$menu = $app->getMenu()->getActive();
$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : '';

// Template path
$templatePath = 'templates/' . $this->template;

// Color Theme
$paramsColorName = $this->params->get('colorName', 'colors_standard');
$assetColorName = 'theme.' . $paramsColorName;
$wa->registerAndUseStyle($assetColorName, $templatePath . '/css/global/' . $paramsColorName . '.css');
$wa->registerAndUseStyle($assetColorName, 'media/templates/site/cassiopeia/css/global/' . $paramsColorName . '.css');

// Use a font scheme if set in the template style options
$paramsFontScheme = $this->params->get('useFontScheme', false);
Expand Down
2 changes: 1 addition & 1 deletion templates/cassiopeia/offline.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
$fullWidth = 1;

// Template path
$templatePath = 'templates/' . $this->template;
$templatePath = 'media/templates/site/cassiopeia';

// Color Theme
$paramsColorName = $this->params->get('colorName', 'colors_standard');
Expand Down

0 comments on commit 98f27ac

Please sign in to comment.