diff --git a/resources/fieldsets/metadata_social.yaml b/resources/fieldsets/metadata_social.yaml
index 5c702de..c24e26f 100644
--- a/resources/fieldsets/metadata_social.yaml
+++ b/resources/fieldsets/metadata_social.yaml
@@ -39,26 +39,6 @@ fields:
display: 'Social image'
icon: assets
instructions: "The entry-specific Social image. This overrides the site's default Social image. The recommended size is 1200x630px. This image will be focal cropped to this dimension."
- width: 50
- listable: hidden
- instructions_position: below
- visibility: visible
- hide_display: false
- -
- handle: twitter_image
- field:
- max_files: 1
- mode: list
- container: site
- restrict: false
- allow_uploads: true
- show_filename: true
- show_set_alt: true
- type: assets
- display: 'Twitter image'
- icon: assets
- instructions: "The entry-specific Twitter image. This overrides the site's default Twitter image. Images should have an aspect ratio of 2:1 with minimum dimensions of 300x157. This image will be focal cropped to this dimension."
- width: 50
listable: hidden
instructions_position: below
visibility: visible
diff --git a/src/Tags/Concerns/Form.php b/src/Tags/Concerns/Form.php
index c62656f..e3b46f3 100644
--- a/src/Tags/Concerns/Form.php
+++ b/src/Tags/Concerns/Form.php
@@ -7,6 +7,8 @@
use Statamic\Facades\Antlers;
use Statamic\Facades\GlobalSet;
use Statamic\Facades\Site;
+use Statamic\Fieldtypes\Bard;
+use Statamic\Fieldtypes\Bard\Augmentor;
trait Form
{
@@ -128,11 +130,21 @@ public function getFormLang()
// get the override
foreach ($global->get('message_overrides', []) as $override) {
- if ($override['form'] === $form && $override['type'] === $type) {
+ if ($override['form'] === $form->handle() && $override['type'] === $type) {
$message = $override['message'];
}
}
- return Antlers::parse($message)->__toString();
+ if (is_array($message)) {
+ $bard = (new Bard())->setField($global->blueprint()->field($fieldHandle));
+
+ $content = (new Augmentor($bard))
+ ->augment($message);
+
+ return $content;
+ } else {
+
+ return Antlers::parse($message)->__toString();
+ }
}
}
diff --git a/src/Tags/Concerns/Image.php b/src/Tags/Concerns/Image.php
index 7e7ee75..70d4fd9 100644
--- a/src/Tags/Concerns/Image.php
+++ b/src/Tags/Concerns/Image.php
@@ -179,6 +179,7 @@ public function image()
2000,
2400,
3000,
+ 3600,
];
$srcset = [];
diff --git a/src/Tags/Concerns/Scripts.php b/src/Tags/Concerns/Scripts.php
index ae229db..f46fd39 100644
--- a/src/Tags/Concerns/Scripts.php
+++ b/src/Tags/Concerns/Scripts.php
@@ -32,38 +32,9 @@ protected function scriptsLoad($location)
) {
// only process the scripts for the given location
return collect($metadata->get('javascript', []))
- ->filter(fn ($javascript) => $javascript['location'] === $location && $javascript['enabled'])
- ->map(function ($javascript) {
- if ($javascript['type'] === 'script_tag') {
- // make a script tag
- $script = '';
-
- return $script;
- }
-
- if ($javascript['type'] === 'inline_script') {
- // output the included javascript inline
- $script = '';
-
- return $script;
- }
- })->join("\r\n");
+ ->filter(fn (array $javascript) => $javascript['location'] === $location && $javascript['enabled'])
+ ->map(fn (array $javascript) => $javascript['script'])
+ ->join("\r\n");
}
}
}