Commit d1d63f8f authored by Nicolas Widart's avatar Nicolas Widart

Removing need for an asgard subfolder in the themes

parent 78d761e9
...@@ -25,9 +25,9 @@ return [ ...@@ -25,9 +25,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -176,10 +176,10 @@ class CoreServiceProvider extends ServiceProvider ...@@ -176,10 +176,10 @@ class CoreServiceProvider extends ServiceProvider
if (count($themes) > 0) { if (count($themes) > 0) {
if ($themes['backend'] !== null && array_get($moduleConfig, 'backend-theme') === true) { if ($themes['backend'] !== null && array_get($moduleConfig, 'backend-theme') === true) {
$hints[] = $themes['backend'] . '/views/modules/asgard/' . $moduleName; $hints[] = $themes['backend'] . '/views/modules/' . $moduleName;
} }
if ($themes['frontend'] !== null && array_get($moduleConfig, 'frontend-theme') === true) { if ($themes['frontend'] !== null && array_get($moduleConfig, 'frontend-theme') === true) {
$hints[] = $themes['frontend'] . '/views/modules/asgard/' . $moduleName; $hints[] = $themes['frontend'] . '/views/modules/' . $moduleName;
} }
} }
if (array_get($moduleConfig, 'resources') === true) { if (array_get($moduleConfig, 'resources') === true) {
......
...@@ -21,9 +21,9 @@ return [ ...@@ -21,9 +21,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => true, 'resources' => true,
......
...@@ -59,9 +59,9 @@ return [ ...@@ -59,9 +59,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -29,9 +29,9 @@ return [ ...@@ -29,9 +29,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -64,9 +64,9 @@ return [ ...@@ -64,9 +64,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -21,9 +21,9 @@ return [ ...@@ -21,9 +21,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -23,9 +23,9 @@ return [ ...@@ -23,9 +23,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -29,9 +29,9 @@ return [ ...@@ -29,9 +29,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
...@@ -109,9 +109,9 @@ return [ ...@@ -109,9 +109,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => true, 'resources' => true,
......
...@@ -21,9 +21,9 @@ return [ ...@@ -21,9 +21,9 @@ return [
| By default every extra namespace will be set to false. | By default every extra namespace will be set to false.
*/ */
'useViewNamespaces' => [ 'useViewNamespaces' => [
// Read module views from /Themes/<backend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<backend-theme-name>/views/modules/<module-name>
'backend-theme' => false, 'backend-theme' => false,
// Read module views from /Themes/<frontend-theme-name>/views/modules/asgard/<module-name> // Read module views from /Themes/<frontend-theme-name>/views/modules/<module-name>
'frontend-theme' => false, 'frontend-theme' => false,
// Read module views from /resources/views/asgard/<module-name> // Read module views from /resources/views/asgard/<module-name>
'resources' => false, 'resources' => false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment