Skip to content

Commit

Permalink
config
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Apr 25, 2022
1 parent 4dfd3e2 commit 756da4d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Providers/ModuleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ModuleServiceProvider extends ServiceProvider
{
public function boot(): void
{
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'typicms.modules');
$this->mergeConfigFrom(__DIR__.'/../config/partners.php', 'typicms.modules.partners');

$this->loadViewsFrom(__DIR__.'/../../resources/views/', 'partners');

Expand Down
21 changes: 0 additions & 21 deletions src/config/config.php

This file was deleted.

19 changes: 19 additions & 0 deletions src/config/partners.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [
'linkable_to_page' => true,
'per_page' => 50,
'order' => [
'position' => 'asc',
],
'sidebar' => [
'icon' => '<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-person" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0zM8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm6 5c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z"/></svg>',
'weight' => 70,
],
'permissions' => [
'read partners' => 'Read',
'create partners' => 'Create',
'update partners' => 'Update',
'delete partners' => 'Delete',
],
];

0 comments on commit 756da4d

Please sign in to comment.