Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ScaffoldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function bootingPackage(): void
__DIR__ . '/../stubs/resources/views/blocks/FacetWP/loops/knowledgebase-loop.blade.php' => resource_path('views/blocks/FacetWP/loops/knowledgebase-loop.blade.php'),
__DIR__ . '/../stubs/resources/views/blocks/FacetWP/templates/knowledgebase.blade.php' => resource_path('views/blocks/FacetWP/templates/knowledgebase.blade.php'),
__DIR__ . '/../stubs/resources/views/single-knowledgebase.blade.php' => resource_path('views/single-knowledgebase.blade.php'),
__DIR__ . '/../stubs/acf-json/group_66e0254a243fd.json' => base_path('acf-json/group_66e0254a243fd.json'),
__DIR__ . '/../stubs/FieldGroups/Knowledgebase.php' => app_path('FieldGroups/Knowledgebase.php'),
], 'knowledgebase');

$this->publishes([
Expand All @@ -88,11 +88,11 @@ public function bootingPackage(): void
__DIR__ . '/../stubs/resources/views/blocks/FacetWP/templates/person.blade.php' => resource_path('views/blocks/FacetWP/templates/person.blade.php'),
__DIR__ . '/../stubs/resources/views/components/meta/person.blade.php' => resource_path('views/components/meta/person.blade.php'),
__DIR__ . '/../stubs/resources/views/single-person.blade.php' => resource_path('views/single-person.blade.php'),
__DIR__ . '/../stubs/acf-json/group_66e02ff47667d.json' => base_path('acf-json/group_66e02ff47667d.json'),
__DIR__ . '/../stubs/FieldGroups/Person.php' => app_path('FieldGroups/Person.php'),
], 'person');

$this->publishes([
__DIR__ . '/../stubs/acf-json/group_66e0254a243fe.json' => base_path('acf-json/group_66e0254a243fe.json'),
__DIR__ . '/../stubs/FieldGroups/Project.php' => app_path('FieldGroups/Project.php'),
__DIR__ . '/../stubs/Data/ProjectData.php' => app_path('Data/ProjectData.php'),
__DIR__ . '/../stubs/View/Components/Card/Project.php' => app_path('View/Components/Card/Project.php'),
__DIR__ . '/../stubs/config/facetwp/facets/project_region.php' => config_path('facetwp/facets/project_region.php'),
Expand Down
36 changes: 36 additions & 0 deletions stubs/FieldGroups/Knowledgebase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);

namespace App\FieldGroups;

use Extended\ACF\Fields\Relationship;
use Extended\ACF\Location;
use Yard\Acf\Registrar\FieldGroup;

class Knowledgebase extends FieldGroup
{
public function getTitle(): string
{
return 'Kennisbank instellingen';
}

public function getFields(): array
{
return [
Relationship::make('Gerelateerde artikelen', 'knowledgebase_related')
->postTypes(['knowledgebase'])
Comment thread
Rovasch marked this conversation as resolved.
->postStatus(['publish'])
->instructions('Standaard worden er 3 artikelen van hetzelfde type getoond. Als je zelf wilt bepalen welke artikelen getoond moeten worden, dan kun je dat hier selecteren.')
->filters(['search', 'taxonomy'])
->max(3),
];
}

public function getLocation(): array
{
return [
Location::where('post_type', '==', 'knowledgebase'),
];
}
}
34 changes: 34 additions & 0 deletions stubs/FieldGroups/Person.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

declare(strict_types=1);

namespace App\FieldGroups;

use Extended\ACF\Fields\Email;
use Extended\ACF\Fields\Text;
use Extended\ACF\Location;
use Yard\Acf\Registrar\FieldGroup;

class Person extends FieldGroup
{
public function getTitle(): string
{
return 'Persoon instellingen';
}

public function getFields(): array
{
return [
Text::make('Functie', 'person_function'),
Email::make('E-mailadres', 'person_email'),
Text::make('Telefoonnummer', 'person_phone'),
];
}

public function getLocation(): array
{
return [
Location::where('post_type', '==', 'person'),
];
}
}
42 changes: 42 additions & 0 deletions stubs/FieldGroups/Project.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

declare(strict_types=1);

namespace App\FieldGroups;

use Extended\ACF\Fields\Relationship;
use Extended\ACF\Fields\TrueFalse;
use Extended\ACF\Location;
use Yard\Acf\Registrar\FieldGroup;

class Project extends FieldGroup
{
public function getTitle(): string
{
return 'Projectinstellingen';
}

public function getFields(): array
{
return [
Relationship::make('Gerelateerde projecten', 'project_related')
->postTypes(['project'])
Comment thread
Rovasch marked this conversation as resolved.
->postStatus(['publish'])
->instructions('Standaard worden er 3 projecten van hetzelfde type getoond. Als je zelf wilt bepalen welke projecten getoond moeten worden, dan kun je dat hier selecteren.')
->filters(['search', 'taxonomy'])
->max(3),
TrueFalse::make('Niet tonen in overzicht', 'project_hide')
->stylisedUi(),
TrueFalse::make('Is een informatiepagina', 'project_is_information_post')
->instructions('Vink dit aan als de post een informatiepagina is, en geen deelproject. Bijvoorbeeld: "Meedenken over de herinrichting Dorpsstraat" is een informatiepagina van het hoofdproject "Herinrichting Dorpsstraat".<br><br>Let op:<br>Vergeet niet ook een hoofdpagina te selecteren én de optie "Niet tonen in overzicht" aan te vinken.')
->stylisedUi(),
];
}

public function getLocation(): array
{
return [
Location::where('post_type', '==', 'project'),
];
}
}
58 changes: 0 additions & 58 deletions stubs/acf-json/group_66e0254a243fd.json

This file was deleted.

92 changes: 0 additions & 92 deletions stubs/acf-json/group_66e0254a243fe.json

This file was deleted.

87 changes: 0 additions & 87 deletions stubs/acf-json/group_66e02ff47667d.json

This file was deleted.

Loading