diff --git a/app/ACF/CloneGroup.php b/app/ACF/CloneGroup.php deleted file mode 100644 index ace0bcb..0000000 --- a/app/ACF/CloneGroup.php +++ /dev/null @@ -1,58 +0,0 @@ -block_intro(), $this->block_footer(), $this->block_settings(), $this->block_background()); - } -} diff --git a/composer.json b/composer.json index d1fdb56..10f0436 100644 --- a/composer.json +++ b/composer.json @@ -35,8 +35,7 @@ }, "autoload": { "psr-4": { - "App\\": "app/", - "Blocks\\": "resources/views/acf-blocks" + "App\\": "app/" } }, "require": { diff --git a/resources/views/acf-blocks/Editor/Editor.blade.php b/resources/views/acf-blocks/Editor/Editor.blade.php deleted file mode 100644 index 2555476..0000000 --- a/resources/views/acf-blocks/Editor/Editor.blade.php +++ /dev/null @@ -1,21 +0,0 @@ -@if(@$data['section_anchor_id']) -
-@endif - -
';
- return;
- endif;
-
- $CssClasses = new Utilities\CssClasses;
- $Colour = new Utilities\Colour;
- $CloneGroup = new ACF\CloneGroup;
-
- $data = [];
-
- $fields = [
-
- ];
-
- $fields = array_merge($fields, $CloneGroup->block_all());
-
- foreach($fields as $field):
- $data[$field] = get_field($field);
- endforeach;
-
- unset($block['data']);
- $block['name'] = str_replace('acf/', '', $block['name']);
-
- $data = array_merge($data, $block);
- $data['section_classes'] = $CssClasses->section($data);
- $data['allowed_blocks'] = \App\Blocks\list_inner();
- $data['template'] = $this->default_template();
- $data['block'] = $block;
-
- echo \Roots\view("acf-blocks.$name.$name", [
- 'data' => $data,
- 'block' => $block,
- ])->render();
- }
-
- public function default_template()
- {
- return [
- [
- 'core/heading',
- [
- 'level' => 1,
- 'placeholder' => 'Heading',
- ],
- ],
- [
- 'core/paragraph',
- [
- 'placeholder' => 'You can type your own text, change the heading level, or delete it altogether. You can also type over this text.',
- ],
- ],
- [
- 'core/paragraph',
- [
- 'placeholder' => 'To adjust block settings, click the Text Editor icon floating above this block to display them in the sidebar.',
- ],
- ],
- ];
- }
-}
diff --git a/resources/views/acf-blocks/Editor/Editor.scss b/resources/views/acf-blocks/Editor/Editor.scss
deleted file mode 100644
index e69de29..0000000