-
diff --git a/diy_layout/diy_layout.inc b/diy_layout/diy_layout.inc
deleted file mode 100644
index c6cd34f..0000000
--- a/diy_layout/diy_layout.inc
+++ /dev/null
@@ -1,39 +0,0 @@
- t('DIY layout'),
- 'category' => t('Rob Custom'),
- 'icon' => 'onecol_clean.png',
- 'theme' => 'diy_layout',
- 'regions' => array(
- 'side' => t('Side'),
- 'content' => t('Content')
-
- ));
-
-/**
- * Prepares variables for panels_onecol_clean templates.
- *
- * Default template: panels-onecol-clean.tpl.php.
- *
- * @param array $variables
- * An associative array containing:
- * - $content: An array of content, each item in the array is keyed to one
- * panel of the layout.
- */
-function template_preprocess_diy_layout(&$variables) {
- // Construct an ID/Class attributes.
- $variables['panel_classes'] = 'panel-display diy-layout clearfix';
- if ($variables['css_id']) {
- $variables['panel_id'] = ' id="' . $variables['css_id'] . '"';
- $variables['panel_classes'] .= ' ' . $variables['css_id'];
- }
- else {
- $variables['panel_id'] = '';
- }
-}
diff --git a/diy_layout/diy_layout.png b/diy_layout/diy_layout.png
deleted file mode 100644
index 176ed69..0000000
Binary files a/diy_layout/diy_layout.png and /dev/null differ
diff --git a/templates/components/accordion_nodes/field--field-accordion-set.html.twig b/templates/components/accordion_nodes/field--field-accordion-set.html.twig
new file mode 100755
index 0000000..7b98b7d
--- /dev/null
+++ b/templates/components/accordion_nodes/field--field-accordion-set.html.twig
@@ -0,0 +1,5 @@
+
+ {% for item in items %}
+
{{ item.content }}
+ {% endfor %}
+
diff --git a/templates/components/accordion_nodes/field--field-answer.html.twig b/templates/components/accordion_nodes/field--field-answer.html.twig
new file mode 100755
index 0000000..6214fb0
--- /dev/null
+++ b/templates/components/accordion_nodes/field--field-answer.html.twig
@@ -0,0 +1,4 @@
+
+ {% for item in items %}
+ {{ item.content }}
+ {% endfor %}
diff --git a/templates/components/accordion_nodes/field--field-question.html.twig b/templates/components/accordion_nodes/field--field-question.html.twig
new file mode 100755
index 0000000..23eee94
--- /dev/null
+++ b/templates/components/accordion_nodes/field--field-question.html.twig
@@ -0,0 +1,5 @@
+{% for item in items %}
+
+ {{ item.content }}
+
+{% endfor %}
diff --git a/templates/field/field.html.twig b/templates/components/accordion_nodes/field.html.twig
similarity index 100%
rename from templates/field/field.html.twig
rename to templates/components/accordion_nodes/field.html.twig
diff --git a/templates/components/accordion_nodes/paragraph--accordion.html.twig b/templates/components/accordion_nodes/paragraph--accordion.html.twig
new file mode 100644
index 0000000..fd66efe
--- /dev/null
+++ b/templates/components/accordion_nodes/paragraph--accordion.html.twig
@@ -0,0 +1,7 @@
+
+ {{ content.field_question }}
+
+
+ {{ content.field_answer }}
+
+
diff --git a/templates/components/lp-news-blocks/views-view--landing_page_news_blocks.html.twig b/templates/components/lp-news-blocks/views-view--landing_page_news_blocks.html.twig
new file mode 100755
index 0000000..251b061
--- /dev/null
+++ b/templates/components/lp-news-blocks/views-view--landing_page_news_blocks.html.twig
@@ -0,0 +1,95 @@
+{#
+/**
+ * @file
+ * Theme override for a main view template.
+ *
+ * Available variables:
+ * - attributes: Remaining HTML attributes for the element.
+ * - css_name: A CSS-safe version of the view name.
+ * - css_class: The user-specified classes names, if any.
+ * - header: The optional header.
+ * - footer: The optional footer.
+ * - rows: The results of the view query, if any.
+ * - empty: The content to display if there are no rows.
+ * - pager: The optional pager next/prev links to display.
+ * - exposed: Exposed widget form/info to display.
+ * - feed_icons: Optional feed icons to display.
+ * - more: An optional link to the next page of results.
+ * - title: Title of the view, only used when displaying in the admin preview.
+ * - title_prefix: Additional output populated by modules, intended to be
+ * displayed in front of the view title.
+ * - title_suffix: Additional output populated by modules, intended to be
+ * displayed after the view title.
+ * - attachment_before: An optional attachment view to be displayed before the
+ * view content.
+ * - attachment_after: An optional attachment view to be displayed after the
+ * view content.
+ * - dom_id: Unique id for every view being printed to give unique class for
+ * JavaScript.
+ *
+ * @see template_preprocess_views_view()
+ */
+#}
+{%
+ set classes = [
+ 'view',
+ 'view-' ~ id|clean_class,
+ 'view-id-' ~ id,
+ 'view-display-id-' ~ display_id,
+ dom_id ? 'js-view-dom-id-' ~ dom_id,
+ ]
+%}
+
+ {{ title_prefix }}
+ {% if title %}
+ {{ title }}
+ {% endif %}
+ {{ title_suffix }}
+ {% if header %}
+
+ {% endif %}
+ {% if more %}
+ {{ more }}
+ {% endif %}
+ {% if footer %}
+
+ {% endif %}
+ {% if feed_icons %}
+
+ {{ feed_icons }}
+
+ {% endif %}
+
diff --git a/templates/components/lp-news-blocks/views-view-fields--landing_page_news_blocks.html.twig b/templates/components/lp-news-blocks/views-view-fields--landing_page_news_blocks.html.twig
new file mode 100644
index 0000000..c8578d4
--- /dev/null
+++ b/templates/components/lp-news-blocks/views-view-fields--landing_page_news_blocks.html.twig
@@ -0,0 +1,50 @@
+{#
+/**
+ * @file
+ * Default view template to display all the fields in a row.
+ *
+ * Available variables:
+ * - view: The view in use.
+ * - fields: A list of fields, each one contains:
+ * - content: The output of the field.
+ * - raw: The raw data for the field, if it exists. This is NOT output safe.
+ * - class: The safe class ID to use.
+ * - handler: The Views field handler controlling this field.
+ * - inline: Whether or not the field should be inline.
+ * - wrapper_element: An HTML element for a wrapper.
+ * - wrapper_attributes: List of attributes for wrapper element.
+ * - separator: An optional separator that may appear before a field.
+ * - label: The field's label text.
+ * - label_element: An HTML element for a label wrapper.
+ * - label_attributes: List of attributes for label wrapper.
+ * - label_suffix: Colon after the label.
+ * - element_type: An HTML element for the field content.
+ * - element_attributes: List of attributes for HTML element for field content.
+ * - has_label_colon: A boolean indicating whether to display a colon after
+ * the label.
+ * - element_type: An HTML element for the field content.
+ * - element_attributes: List of attributes for HTML element for field content.
+ * - row: The raw result from the query, with all data it fetched.
+ *
+ * @see template_preprocess_views_view_fields()
+ *
+ * @ingroup themeable
+ */
+#}
+
+
+
+
+
diff --git a/templates/components/lp-news-blocks/views-view-unformatted--landing_page_news_blocks.html.twig b/templates/components/lp-news-blocks/views-view-unformatted--landing_page_news_blocks.html.twig
new file mode 100755
index 0000000..534ac9a
--- /dev/null
+++ b/templates/components/lp-news-blocks/views-view-unformatted--landing_page_news_blocks.html.twig
@@ -0,0 +1,30 @@
+{#
+/**
+ * @file
+ * Theme override to display a view of unformatted rows.
+ *
+ * Available variables:
+ * - title: The title of this group of rows. May be empty.
+ * - rows: A list of the view's row items.
+ * - attributes: The row's HTML attributes.
+ * - content: The row's content.
+ * - view: The view object.
+ * - default_row_class: A flag indicating whether default classes should be
+ * used on rows.
+ *
+ * @see template_preprocess_views_view_unformatted()
+ */
+#}
+{% if title %}
+
{{ title }}
+{% endif %}
+{% for row in rows %}
+ {%
+ set row_classes = [
+ default_row_class ? 'views-row',
+ ]
+ %}
+
+ {{- row.content -}}
+
+{% endfor %}
diff --git a/templates/components/page--taxonomy--term.html.twig b/templates/components/page--taxonomy--term.html.twig
new file mode 100755
index 0000000..aaf8aa1
--- /dev/null
+++ b/templates/components/page--taxonomy--term.html.twig
@@ -0,0 +1,93 @@
+{#
+/**
+ * @file
+ * Theme override to display a single page.
+ *
+ * The doctype, html, head and body tags are not in this template. Instead they
+ * can be found in the html.html.twig template in this directory.
+ *
+ * Available variables:
+ *
+ * General utility variables:
+ * - base_path: The base URL path of the Drupal installation. Will usually be
+ * "/" unless you have installed Drupal in a sub-directory.
+ * - is_front: A flag indicating if the current page is the front page.
+ * - logged_in: A flag indicating if the user is registered and signed in.
+ * - is_admin: A flag indicating if the user has permission to access
+ * administration pages.
+ *
+ * Site identity:
+ * - front_page: The URL of the front page. Use this instead of base_path when
+ * linking to the front page. This includes the language domain or prefix.
+ *
+ * Page content (in order of occurrence in the default page.html.twig):
+ * - node: Fully loaded node, if there is an automatically-loaded node
+ * associated with the page and the node ID is the second argument in the
+ * page's path (e.g. node/12345 and node/12345/revisions, but not
+ * comment/reply/12345).
+ *
+ * Regions:
+ * - page.header: Items for the header region.
+ * - page.primary_menu: Items for the primary menu region.
+ * - page.secondary_menu: Items for the secondary menu region.
+ * - page.highlighted: Items for the highlighted content region.
+ * - page.help: Dynamic help text, mostly for admin pages.
+ * - page.content: The main content of the current page.
+ * - page.sidebar_first: Items for the first sidebar.
+ * - page.sidebar_second: Items for the second sidebar.
+ * - page.footer: Items for the footer region.
+ * - page.breadcrumb: Items for the breadcrumb region.
+ *
+ * @see template_preprocess_page()
+ * @see html.html.twig
+ */
+#}
+{#{% include '@roblib_2023/templates/components/topnav_test.html.twig' %}#}
+{#{% $term = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->load($tid); %}#}
+
+
diff --git a/templates/field/field--body.html.twig b/templates/field/field--body.html.twig
new file mode 100755
index 0000000..22b53a3
--- /dev/null
+++ b/templates/field/field--body.html.twig
@@ -0,0 +1,80 @@
+{#
+/**
+ * @file
+ * Theme override for a field.
+ *
+ * To override output, copy the "field.html.twig" from the templates directory
+ * to your theme's directory and customize it, just like customizing other
+ * Drupal templates such as page.html.twig or node.html.twig.
+ *
+ * Instead of overriding the theming for all fields, you can also just override
+ * theming for a subset of fields using
+ * @link themeable Theme hook suggestions. @endlink For example,
+ * here are some theme hook suggestions that can be used for a field_foo field
+ * on an article node type:
+ * - field--node--field-foo--article.html.twig
+ * - field--node--field-foo.html.twig
+ * - field--node--article.html.twig
+ * - field--field-foo.html.twig
+ * - field--text-with-summary.html.twig
+ * - field.html.twig
+ *
+ * Available variables:
+ * - attributes: HTML attributes for the containing element.
+ * - label_hidden: Whether to show the field label or not.
+ * - title_attributes: HTML attributes for the title.
+ * - label: The label for the field.
+ * - multiple: TRUE if a field can contain multiple items.
+ * - items: List of all the field items. Each item contains:
+ * - attributes: List of HTML attributes for each item.
+ * - content: The field item's content.
+ * - entity_type: The entity type to which the field belongs.
+ * - field_name: The name of the field.
+ * - field_type: The type of the field.
+ * - label_display: The display settings for the label.
+ *
+ *
+ * @see template_preprocess_field()
+ */
+#}
+{%
+ set classes = [
+ 'field',
+ 'field--name-' ~ field_name|clean_class,
+ 'field--type-' ~ field_type|clean_class,
+ 'field--label-' ~ label_display,
+ label_display == 'inline' ? 'clearfix',
+ ]
+%}
+{%
+ set title_classes = [
+ 'field__label',
+ label_display == 'visually_hidden' ? 'visually-hidden',
+ ]
+%}
+
+{% if label_hidden %}
+ {% if multiple %}
+
+ {% for item in items %}
+
{{ item.content }}
+ {% endfor %}
+
+ {% else %}
+ {% for item in items %}
+
{{ item.content }}
+ {% endfor %}
+ {% endif %}
+{% else %}
+
+ {% if multiple %}
+
+ {% endif %}
+ {% for item in items %}
+
{{ item.content }}
+ {% endfor %}
+ {% if multiple %}
+
+ {% endif %}
+
+{% endif %}
diff --git a/templates/landingpage/node--landing-page-paragraphs.html.twig b/templates/landingpage/node--landing-page-paragraphs.html.twig
index 8b6bd01..075d038 100755
--- a/templates/landingpage/node--landing-page-paragraphs.html.twig
+++ b/templates/landingpage/node--landing-page-paragraphs.html.twig
@@ -1,72 +1,3 @@
-{#
-/**
- * @file
- * Theme override to display a node.
- *
- * Available variables:
- * - node: The node entity with limited access to object properties and methods.
- * Only method names starting with "get", "has", or "is" and a few common
- * methods such as "id", "label", and "bundle" are available. For example:
- * - node.getCreatedTime() will return the node creation timestamp.
- * - node.hasField('field_example') returns TRUE if the node bundle includes
- * field_example. (This does not indicate the presence of a value in this
- * field.)
- * - node.isPublished() will return whether the node is published or not.
- * Calling other methods, such as node.delete(), will result in an exception.
- * See \Drupal\node\Entity\Node for a full list of public properties and
- * methods for the node object.
- * - label: (optional) The title of the node.
- * - content: All node items. Use {{ content }} to print them all,
- * or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to temporarily suppress the printing
- * of a given child element.
- * - author_picture: The node author user entity, rendered using the "compact"
- * view mode.
- * - metadata: Metadata for this node.
- * - date: (optional) Themed creation date field.
- * - author_name: (optional) Themed author name field.
- * - url: Direct URL of the current node.
- * - display_submitted: Whether submission information should be displayed.
- * - attributes: HTML attributes for the containing element.
- * The attributes.class element may contain one or more of the following
- * classes:
- * - node: The current template type (also known as a "theming hook").
- * - node--type-[type]: The current node type. For example, if the node is an
- * "Article" it would result in "node--type-article". Note that the machine
- * name will often be in a short form of the human readable label.
- * - node--view-mode-[view_mode]: The View Mode of the node; for example, a
- * teaser would result in: "node--view-mode-teaser", and
- * full: "node--view-mode-full".
- * The following are controlled through the node publishing options.
- * - node--promoted: Appears on nodes promoted to the front page.
- * - node--sticky: Appears on nodes ordered above other non-sticky nodes in
- * teaser listings.
- * - node--unpublished: Appears on unpublished nodes visible only to site
- * admins.
- * - title_attributes: Same as attributes, except applied to the main title
- * tag that appears in the template.
- * - content_attributes: Same as attributes, except applied to the main
- * content tag that appears in the template.
- * - author_attributes: Same as attributes, except applied to the author of
- * the node tag that appears in the template.
- * - title_prefix: Additional output populated by modules, intended to be
- * displayed in front of the main title tag that appears in the template.
- * - title_suffix: Additional output populated by modules, intended to be
- * displayed after the main title tag that appears in the template.
- * - view_mode: View mode; for example, "teaser" or "full".
- * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'.
- * - page: Flag for the full page state. Will be true if view_mode is 'full'.
- * - readmore: Flag for more state. Will be true if the teaser content of the
- * node cannot hold the main body content.
- * - logged_in: Flag for authenticated user status. Will be true when the
- * current user is a logged-in member.
- * - is_admin: Flag for admin user status. Will be true when the current user
- * is an administrator.
- *
- * @see template_preprocess_node()
- *
- */
-#}
{#{{dd(content)}}#}
{%
set classes = [
@@ -121,6 +52,9 @@
+
+ {{ drupal_view('landing_page_news_blocks', 'block') }}
+
diff --git a/templates/landingpage/page--front.html.twig b/templates/landingpage/page--front.html.twig
index 4410534..d8f5e72 100755
--- a/templates/landingpage/page--front.html.twig
+++ b/templates/landingpage/page--front.html.twig
@@ -81,11 +81,16 @@
{# /.layout-container #}
diff --git a/templates/layout/page.html.twig b/templates/layout/page.html.twig
index 4410534..d8f5e72 100755
--- a/templates/layout/page.html.twig
+++ b/templates/layout/page.html.twig
@@ -81,11 +81,16 @@
{# /.layout-container #}
diff --git a/templates/paragraph.html.twig b/templates/paragraph.html.twig
new file mode 100644
index 0000000..fa3ba93
--- /dev/null
+++ b/templates/paragraph.html.twig
@@ -0,0 +1,55 @@
+{#
+/**
+ * @file
+ * Default theme implementation to display a paragraph.
+ *
+ * Available variables:
+ * - paragraph: Full paragraph entity.
+ * Only method names starting with "get", "has", or "is" and a few common
+ * methods such as "id", "label", and "bundle" are available. For example:
+ * - paragraph.getCreatedTime() will return the paragraph creation timestamp.
+ * - paragraph.id(): The paragraph ID.
+ * - paragraph.bundle(): The type of the paragraph, for example, "image" or "text".
+ * - paragraph.getOwnerId(): The user ID of the paragraph author.
+ * See Drupal\paragraphs\Entity\Paragraph for a full list of public properties
+ * and methods for the paragraph object.
+ * - content: All paragraph items. Use {{ content }} to print them all,
+ * or print a subset such as {{ content.field_example }}. Use
+ * {{ content|without('field_example') }} to temporarily suppress the printing
+ * of a given child element.
+ * - attributes: HTML attributes for the containing element.
+ * The attributes.class element may contain one or more of the following
+ * classes:
+ * - paragraphs: The current template type (also known as a "theming hook").
+ * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an
+ * "Image" it would result in "paragraphs--type--image". Note that the machine
+ * name will often be in a short form of the human readable label.
+ * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a
+ * preview would result in: "paragraphs--view-mode--preview", and
+ * default: "paragraphs--view-mode--default".
+ * - view_mode: View mode; for example, "preview" or "full".
+ * - logged_in: Flag for authenticated user status. Will be true when the
+ * current user is a logged-in member.
+ * - is_admin: Flag for admin user status. Will be true when the current user
+ * is an administrator.
+ *
+ * @see template_preprocess_paragraph()
+ *
+ * @ingroup themeable
+ */
+#}
+{%
+ set classes = [
+ 'paragraph',
+ 'paragraph--type--' ~ paragraph.bundle|clean_class,
+ view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
+ not paragraph.isPublished() ? 'paragraph--unpublished'
+ ]
+%}
+{% block paragraph %}
+