From 9e45676c24f2e254082628f9fab7285712e283aa Mon Sep 17 00:00:00 2001 From: rdrew Date: Wed, 11 Dec 2024 12:21:15 -0400 Subject: [PATCH] template stuff --- composer.json | 0 css/messages.css | 0 js/vre2024.js | 5 ++ templates/block--facet-block--date.html.twig | 56 +++++++++++++++++ templates/display-citations.html.twig | 0 .../taxonomy-term--scholars.html.twig | 0 ...lds--solr-search-content--page-1.html.twig | 61 +++++++++++++++++++ ...g.disabled => views-view-fields.html.twig} | 1 - 8 files changed, 122 insertions(+), 1 deletion(-) mode change 100644 => 100755 composer.json mode change 100644 => 100755 css/messages.css create mode 100755 templates/block--facet-block--date.html.twig mode change 100644 => 100755 templates/display-citations.html.twig mode change 100644 => 100755 templates/main_layouts/taxonomy-term--scholars.html.twig create mode 100755 templates/views/views-view-fields--solr-search-content--page-1.html.twig rename templates/views/{views-view-fields--solr-search-content--page-1.html.twig.disabled => views-view-fields.html.twig} (98%) diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/css/messages.css b/css/messages.css old mode 100644 new mode 100755 diff --git a/js/vre2024.js b/js/vre2024.js index 772f087..7d17bc5 100755 --- a/js/vre2024.js +++ b/js/vre2024.js @@ -45,4 +45,9 @@ jQuery(document).ready(function ($) { }); /* End document --------------------------*/ + $('.facet-slider .noUi-handle').attr('aria-valuetext', '10000'); + var number = $('#nouislider-input-from'); + console.log(number['value']); + //console.log($('.noUi-handle').attr('aria-valuetext')); }); + diff --git a/templates/block--facet-block--date.html.twig b/templates/block--facet-block--date.html.twig new file mode 100755 index 0000000..282f7d5 --- /dev/null +++ b/templates/block--facet-block--date.html.twig @@ -0,0 +1,56 @@ +{# +/** + * @file + * Theme override to display a block. + * + * Available variables: + * - plugin_id: The ID of the block implementation. + * - label: The configured label of the block if visible. + * - configuration: A list of the block's configuration values. + * - label: The configured label for the block. + * - label_display: The display settings for the label. + * - provider: The module or other provider that provided this block plugin. + * - Block plugin specific settings will also be stored here. + * - content: The content of this block. + * - attributes: array of HTML attributes populated by modules, intended to + * be added to the main container tag of this template. + * - id: A valid HTML ID and guaranteed unique. + * - title_attributes: Same as attributes, except applied to the main title + * 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. + * + * @see template_preprocess_block() + */ +#} + + {{ title_prefix }} + {% if label %} + {{ label }} + {% endif %} + {{ title_suffix }} +
+ {% block content %} + {{ content }} + {% endblock %} +
+ + diff --git a/templates/display-citations.html.twig b/templates/display-citations.html.twig old mode 100644 new mode 100755 diff --git a/templates/main_layouts/taxonomy-term--scholars.html.twig b/templates/main_layouts/taxonomy-term--scholars.html.twig old mode 100644 new mode 100755 diff --git a/templates/views/views-view-fields--solr-search-content--page-1.html.twig b/templates/views/views-view-fields--solr-search-content--page-1.html.twig new file mode 100755 index 0000000..9bdd402 --- /dev/null +++ b/templates/views/views-view-fields--solr-search-content--page-1.html.twig @@ -0,0 +1,61 @@ +{# +/** + * @file + * Theme override 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() + */ +#} +
+
+
+ +
+
+
+ {% for field in fields -%} + {{ field.separator }} + {%- if field.wrapper_element -%} + <{{ field.wrapper_element }}{{ field.wrapper_attributes }}> + {%- endif %} + {%- if field.label -%} + {%- if field.label_element -%} + <{{ field.label_element }}{{ field.label_attributes }}>{{ field.label }}{{ field.label_suffix }} + {%- else -%} + {{ field.label }}{{ field.label_suffix }} + {%- endif %} + {%- endif %} + {%- if field.element_type -%} + <{{ field.element_type }}{{ field.element_attributes }}>{{ field.content }} + {%- else -%} + {{ field.content }} + {%- endif %} + {%- if field.wrapper_element -%} + + {%- endif %} + {%- endfor %} +
+
diff --git a/templates/views/views-view-fields--solr-search-content--page-1.html.twig.disabled b/templates/views/views-view-fields.html.twig similarity index 98% rename from templates/views/views-view-fields--solr-search-content--page-1.html.twig.disabled rename to templates/views/views-view-fields.html.twig index 59ba019..1370b39 100644 --- a/templates/views/views-view-fields--solr-search-content--page-1.html.twig.disabled +++ b/templates/views/views-view-fields.html.twig @@ -29,7 +29,6 @@ * @see template_preprocess_views_view_fields() */ #} -{{ fields.did_image.content }} {% for field in fields -%} {{ field.separator }} {%- if field.wrapper_element -%}