diff --git a/modules/opd_daily_emails/src/Form/KitSubscriptionForm.php b/modules/opd_daily_emails/src/Form/KitSubscriptionForm.php index 248e9411b..10deb87b8 100644 --- a/modules/opd_daily_emails/src/Form/KitSubscriptionForm.php +++ b/modules/opd_daily_emails/src/Form/KitSubscriptionForm.php @@ -6,6 +6,7 @@ namespace Drupal\opd_daily_emails\Form; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Site\Settings; final class KitSubscriptionForm extends FormBase { @@ -26,7 +27,7 @@ final class KitSubscriptionForm extends FormBase { '#type' => 'html_tag', '#tag' => 'div', '#attributes' => [ - 'class' => 'prose prose-p:text-black prose-a:font-light prose-a:text-blue-primary prose-p:text-lg prose-blockquote:border-blue-primary dark:marker:text-white prose-li:my-1 prose-li:text-lg prose-figcaption:text-white prose-li:text-black marker:text-black dark:prose-p:text-white dark:prose-invert dark:prose-a:text-blue-400 dark:prose-blockquote:border-blue-400 dark:prose-li:text-white prose-a:hover:no-underline prose-h2:text-xl prose-code:font-normal prose-h2:mb-4 prose-ul:my-3 dark:prose-hr:border-neutral-400 prose-code:before:content-[\'\'] prose-code:after:content-[\'\'] prose-pre:bg-neutral-100 prose-pre:text-black prose-pre:rounded-none prose-code:bg-neutral-100', + 'class' => Settings::get('prose_classes'), 'style' => 'margin-bottom: 1rem;', ], ]; diff --git a/settings.php b/settings.php index 9dfdb2649..3763435a7 100644 --- a/settings.php +++ b/settings.php @@ -881,3 +881,6 @@ $databases['default']['default'] = array ( ); $settings['tome_sync_encoder'] = 'yaml'; + +$settings['prose_classes'] = 'prose prose-p:text-black prose-a:font-light prose-a:text-blue-primary prose-p:text-lg prose-blockquote:border-blue-primary dark:marker:text-white prose-li:my-1 prose-li:text-lg prose-figcaption:text-white prose-li:text-black marker:text-black dark:prose-p:text-white dark:prose-invert dark:prose-a:text-blue-400 dark:prose-blockquote:border-blue-400 dark:prose-li:text-white prose-a:hover:no-underline prose-h2:text-xl prose-code:font-normal prose-h2:mb-4 prose-ul:my-3 dark:prose-hr:border-neutral-400 prose-code:before:content-[\'\'] prose-code:after:content-[\'\'] prose-pre:bg-neutral-100 prose-pre:text-black prose-pre:rounded-none prose-code:bg-neutral-100'; + diff --git a/themes/opdavies/components/testimonial.html.twig b/themes/opdavies/components/testimonial.html.twig index 6f7d9f576..e229b1143 100644 --- a/themes/opdavies/components/testimonial.html.twig +++ b/themes/opdavies/components/testimonial.html.twig @@ -1,5 +1,5 @@
-
+
{{ text }}
diff --git a/themes/opdavies/opdavies.theme b/themes/opdavies/opdavies.theme new file mode 100644 index 000000000..d4766c7b6 --- /dev/null +++ b/themes/opdavies/opdavies.theme @@ -0,0 +1,9 @@ + diff --git a/themes/opdavies/templates/field--body.html.twig b/themes/opdavies/templates/field--body.html.twig index ecf354383..40bd835bc 100644 --- a/themes/opdavies/templates/field--body.html.twig +++ b/themes/opdavies/templates/field--body.html.twig @@ -44,10 +44,6 @@ ] %} -{% - set prose_classes = "prose prose-p:text-black prose-a:font-light prose-a:text-blue-primary prose-p:text-lg prose-blockquote:border-blue-primary dark:marker:text-white prose-li:my-1 prose-li:text-lg prose-figcaption:text-white prose-li:text-black marker:text-black dark:prose-p:text-white dark:prose-invert dark:prose-a:text-blue-400 dark:prose-blockquote:border-blue-400 dark:prose-li:text-white prose-a:hover:no-underline prose-h2:text-xl prose-code:font-normal prose-h2:mb-4 prose-ul:my-3 dark:prose-hr:border-neutral-400 prose-code:before:content-[''] prose-code:after:content-[''] prose-pre:bg-neutral-100 prose-pre:text-black prose-pre:rounded-none prose-code:bg-neutral-100" -%} - {% if label_hidden %} {% if multiple %} diff --git a/themes/opdavies/templates/node--podcast-episode--full.html.twig b/themes/opdavies/templates/node--podcast-episode--full.html.twig index ee5cf0129..44ad35b26 100644 --- a/themes/opdavies/templates/node--podcast-episode--full.html.twig +++ b/themes/opdavies/templates/node--podcast-episode--full.html.twig @@ -69,7 +69,7 @@ {% endif %} {{ title_suffix }} -
+
{% if display_submitted %}
{% set created = node.getCreatedTime() %} diff --git a/themes/opdavies/templates/node--podcast-episode.html.twig b/themes/opdavies/templates/node--podcast-episode.html.twig index 3bbb9a83b..a9341c677 100644 --- a/themes/opdavies/templates/node--podcast-episode.html.twig +++ b/themes/opdavies/templates/node--podcast-episode.html.twig @@ -69,7 +69,7 @@ {% endif %} {{ title_suffix }} -
+
{% if display_submitted %}
{% set created = node.getCreatedTime() %} diff --git a/themes/opdavies/templates/node--testimonial.html.twig b/themes/opdavies/templates/node--testimonial.html.twig index 063023cd1..ffcdeebd5 100644 --- a/themes/opdavies/templates/node--testimonial.html.twig +++ b/themes/opdavies/templates/node--testimonial.html.twig @@ -67,6 +67,7 @@ uri: node.field_image|file_uri, }, name: label, + prose_classes: prose_classes, role: content.field_role.0|render, text: content.body.0|render, url: content.field_url.0['#url']|render, diff --git a/themes/opdavies/templates/page.html.twig b/themes/opdavies/templates/page.html.twig index f65c2917c..7796ac39d 100644 --- a/themes/opdavies/templates/page.html.twig +++ b/themes/opdavies/templates/page.html.twig @@ -106,7 +106,7 @@ Picture of Oliver
-
+

I'm a certified Drupal Triple Expert and former Drupal Association staff member with 18 years of experience, a Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.

diff --git a/themes/opdavies/templates/views-view--daily-email-archive.html.twig b/themes/opdavies/templates/views-view--daily-email-archive.html.twig index 51123fcdf..206070396 100644 --- a/themes/opdavies/templates/views-view--daily-email-archive.html.twig +++ b/themes/opdavies/templates/views-view--daily-email-archive.html.twig @@ -42,7 +42,7 @@ {{ title }} {{ title_suffix }} -
+
{% if header %}
{{ header }} diff --git a/themes/opdavies/templates/views-view--podcast-episodes.html.twig b/themes/opdavies/templates/views-view--podcast-episodes.html.twig index d38a041da..3f2b6a249 100644 --- a/themes/opdavies/templates/views-view--podcast-episodes.html.twig +++ b/themes/opdavies/templates/views-view--podcast-episodes.html.twig @@ -44,7 +44,7 @@
{% if header %} -
+
{{ header }}
{% endif %} diff --git a/themes/opdavies/templates/views-view--recent-daily-emails.html.twig b/themes/opdavies/templates/views-view--recent-daily-emails.html.twig index ba17610ea..dac8e412d 100644 --- a/themes/opdavies/templates/views-view--recent-daily-emails.html.twig +++ b/themes/opdavies/templates/views-view--recent-daily-emails.html.twig @@ -42,7 +42,7 @@ {{ title }} {{ title_suffix }} -
+
{% if header %}
{{ header }}