diff --git a/config/default/field.field.paragraph.video.field_is_channel.yml b/config/default/field.field.paragraph.video.field_is_channel.yml
index 62dee29380..5e5dcbfd64 100644
--- a/config/default/field.field.paragraph.video.field_is_channel.yml
+++ b/config/default/field.field.paragraph.video.field_is_channel.yml
@@ -15,7 +15,9 @@ label: 'Is a Youtube channel?'
description: ''
required: true
translatable: false
-default_value: { }
+default_value:
+ -
+ value: 'false'
default_value_callback: ''
settings: { }
field_type: list_string
diff --git a/config/default/metatag.metatag_defaults.global.yml b/config/default/metatag.metatag_defaults.global.yml
index 704c165725..4aa172b6b0 100644
--- a/config/default/metatag.metatag_defaults.global.yml
+++ b/config/default/metatag.metatag_defaults.global.yml
@@ -7,7 +7,7 @@ _core:
id: global
label: Global
tags:
- generator: 'Drupal 9 (http://drupal.org)'
+ generator: 'Drupal 10 (http://drupal.org)'
canonical_url: '[current-page:url:absolute]'
title: '[current-page:title] | [current-page:pager][site:name]'
shortlink: '[current-page:url:unaliased]'
diff --git a/config/default/metatag.metatag_defaults.node.yml b/config/default/metatag.metatag_defaults.node.yml
index c634343924..40c413cdc1 100644
--- a/config/default/metatag.metatag_defaults.node.yml
+++ b/config/default/metatag.metatag_defaults.node.yml
@@ -7,20 +7,22 @@ _core:
id: node
label: Content
tags:
+ article_modified_time: '[node:changed:html_datetime]'
+ article_published_time: '[node:published:html_datetime]'
canonical_url: '[node:url]'
description: '[node:summary]'
- title: '[node:title] | [site:name]'
og_description: '[node:summary]'
- og_updated_time: '[node:changed:custom:c]'
- article_modified_time: '[node:created:custom:c]'
- article_published_time: '[node:created:custom:c]'
- og_url: '[current-page:url:absolute]'
og_image: 'https://patterns.boston.gov/images/global/icons/seal_dark_1000x1000.png'
og_title: '[node:title]'
- twitter_cards_description: '[node:summary]'
+ og_updated_time: '[node:changed:html_datetime]'
+ og_url: '[current-page:url:absolute]'
+ schema_article_date_modified: '[node:changed:html_datetime]'
+ schema_article_date_published: '[node:published:html_datetime]'
+ title: '[node:title] | [site:name]'
twitter_cards_creator: '@CityOfBoston'
- twitter_cards_type: summary
twitter_cards_creator_id: '124455872'
+ twitter_cards_description: '[node:summary]'
twitter_cards_site: '@CityOfBoston'
twitter_cards_site_id: '124455872'
twitter_cards_title: '[node:title]'
+ twitter_cards_type: summary
diff --git a/docroot/modules/custom/bos_components/modules/bos_translate/bos_translate.libraries.yml b/docroot/modules/custom/bos_components/modules/bos_translate/bos_translate.libraries.yml
index d7462905a4..cadc4a06c4 100644
--- a/docroot/modules/custom/bos_components/modules/bos_translate/bos_translate.libraries.yml
+++ b/docroot/modules/custom/bos_components/modules/bos_translate/bos_translate.libraries.yml
@@ -1,12 +1,12 @@
bos_translate_js:
- version: 2.x
+ version: 2.x.12345
js:
js/translate.js: {}
dependencies:
- core/drupalSettings
bos_translate_css:
- version: 1.x
+ version: 1.x.12456
css:
theme:
css/translate.css: {}
diff --git a/docroot/modules/custom/bos_components/modules/bos_translate/js/translate.js b/docroot/modules/custom/bos_components/modules/bos_translate/js/translate.js
index 77fdd0bad0..4fbef43efa 100644
--- a/docroot/modules/custom/bos_components/modules/bos_translate/js/translate.js
+++ b/docroot/modules/custom/bos_components/modules/bos_translate/js/translate.js
@@ -88,17 +88,7 @@ let translate = function(d){
h+="
Finally, press Contribute to contribute your suggested edits.";
h+="More information about contributing to Google Translate can be found here.
";
h+="Please note that DoIT does not control the process by which contributed translations are incorporated into the Google web translator.
";
- h+="The City of Boston is committed to improving the quality and breadth of multilingual content on our website. Critical information regarding Boston’s response to the coronavirus emergency is already available in multiple languages and can be found here:
";
- h+="Spanish: boston.gov/covid19-es
";
- h+="Haitian Creole: boston.gov/covid19-hc
";
- h+="Cape Verdean: boston.gov/covid19-cv
";
- h+="Portuguese: boston.gov/covid19-pt
";
- h+="French: boston.gov/covid19-fr
";
- h+="Chinese: boston.gov/covid19-zh
";
- h+="Vietnamese: boston.gov/covid19-vi
";
- h+="Russian: boston.gov/covid19-ru
";
- h+="Somali: boston.gov/covid19-so
";
- h+="Arabic: boston.gov/covid19-ar
";
+ h+="The City of Boston is committed to improving the quality and breadth of multilingual content on our website.
";
let j='Acerca de las traducciones en Boston.gov
';
j+="
El Departamento de Innovación y Tecnología de la Ciudad de Boston (”DoIT”) ofrece traducciones del contenido en Boston.gov a través del traductor web Google Translate (translate.google.com). Porque Google Translate es un sitio web externo , DoIT no controla la calidad ni la precisión del contenido traducido. Esto puede resultar en texto traducido incorrecto u otros errores en las imágenes y la apariencia general de las páginas traducidas.
";
j+="
Sin embargo, puede informar traducciones incorrectas o de calidad inferior y contribuir con mejores traducciones usando Google Translate.
";
@@ -109,17 +99,7 @@ let translate = function(d){
j+="
Finalmente, presione Contribuir para contribuir con las ediciones sugeridas.";
j+="
Puede encontrar más información sobre cómo contribuir al Traductor de Google aquí.
";
j+="
Tenga en cuenta que DoIT no controla el proceso mediante el cual las traducciones contribuidas se incorporan al traductor web de Google.
";
- j+="
La Ciudad de Boston se compromete a mejorar la calidad y la amplitud del contenido multilingüe en nuestro sitio web. La información crítica sobre la respuesta de Boston a la emergencia del coronavirus ya está disponible en varios idiomas y se puede encontrar aquí:
";
- j+="
español: boston.gov/covid19-es
";
- j+="
criollo haitiano: boston.gov/covid19-hc
";
- j+="
caboverdiano: boston.gov/covid19-cv
";
- j+="
portugués: boston.gov/covid19-pt
";
- j+="
francés: boston.gov/covid19-fr
";
- j+="
chino: boston.gov/covid19-zh
";
- j+="
vietnamita: boston.gov/covid19-vi
";
- j+="
ruso: boston.gov/covid19-ru
";
- j+="
Somalí: boston.gov/covid19-so
";
- j+="
árabe: boston.gov/covid19-ar
";
+ j+="La Ciudad de Boston se compromete a mejorar la calidad y la amplitud del contenido multilingüe en nuestro sitio web.
";
let e='";
+ e+="波士顿市致力于提高我们网站上多语种内容的质量和广度。
";
let f='Sou tradiksyon sou Boston.gov
';
f+="
Depatman Inovasyon ak Teknoloji Vil Boston (”DoIT”) ofri tradiksyon kontni sou Boston.gov nan tradiktè entènèt Google Translate (translate.google.com). Paske Google Translate se yon sit entènèt ekstèn , DoIT pa kontwole bon jan kalite a oswa presizyon nan kontni tradui. Sa a pouvwa rezilta nan kòrèk tèks tradui, oswa lòt erè nan imaj ak aparans la an jeneral nan paj tradui.
";
f+="
Sepandan, ou ka rapòte tradiksyon ki pa kòrèk oswa medyòm epi kontribye pi byen tradiksyon lè l sèvi avèk Google Translate.
";
@@ -151,17 +121,7 @@ let translate = function(d){
f+="
Finalman, peze Kontribye pou kontribiye edisyon sijere ou.";
f+="
Plis enfòmasyon sou kontribiye nan Google Translate ka jwenn isit la.
";
f+="
Tanpri sonje ke DoIT pa kontwole pwosesis la pa ki kontribye tradiksyon yo enkòpore nan Google tradiktè wèb la.
";
- f+="
Vil Boston pran angajman pou amelyore kalite ak lajè kontni pale plizyè lang sou sit entènèt nou an. Enfòmasyon kritik konsènan repons Boston pou ijans coronavirus la deja disponib nan plizyè lang e ou ka jwenn li isit la:
";
- f+="
Panyòl: boston.gov/covid19-es
";
- f+="
kreyòl ayisyen: boston.gov/covid19-hc
";
- f+="
Cape Verdean: boston.gov/covid19-cv
";
- f+="
Pòtigè: boston.gov/covid19-pt
";
- f+="
franse: boston.gov/covid19-fr
";
- f+="
Chinwa: boston.gov/covid19-zh
";
- f+="
Vyetnamyen: boston.gov/covid19-vi
";
- f+="
Ris: boston.gov/covid19-ru
";
- f+="
Somali: boston.gov/covid19-so
";
- f+="
arab: boston.gov/covid19-ar
";
+ f+="Vil Boston pran angajman pou amelyore kalite ak lajè kontni pale plizyè lang sou sit entènèt nou an.
";
let m='Sobre as traduções no Boston.gov
';
m+="
O Departamento de Inovação e Tecnologia da cidade de Boston (“ DoIT ”) oferece traduções do conteúdo em Boston.gov por meio do tradutor da web do Google Translate (translate.google.com). Como o Google Translate é um site externo , O DoIT não controla a qualidade ou a precisão do conteúdo traduzido. Isso pode resultar em texto traduzido impreciso ou em outros erros nas imagens e na aparência geral das páginas traduzidas.
";
m+="
No entanto, você pode denunciar traduções incorretas ou abaixo do padrão e contribuir com traduções melhores usando o Google Tradutor.
";
@@ -174,17 +134,7 @@ let translate = function(d){
m+="";
m+="
Mais informações sobre como contribuir para o Google Tradutor podem ser encontradas aqui.
";
m+="
Observe que o DoIT não controla o processo pelo qual as traduções contribuídas são incorporadas ao tradutor da web do Google.
";
- m+="
A cidade de Boston está comprometida em melhorar a qualidade e a abrangência do conteúdo multilíngue em nosso site. Informações críticas sobre a resposta de Boston à emergência do coronavírus já estão disponíveis em vários idiomas e podem ser encontradas aqui:
";
- m+="
Espanhol: boston.gov/covid19-es
";
- m+="
Crioulo haitiano: boston.gov/covid19-hc
";
- m+="
Cabo-verdiano: boston.gov/covid19-cv
";
- m+="
Português: boston.gov/covid19-pt
";
- m+="
Francês: boston.gov/covid19-fr
";
- m+="
Chinês: boston.gov/covid19-zh
";
- m+="
Vietnamita: boston.gov/covid19-vi
";
- m+="
Russo: boston.gov/covid19-ru
";
- m+="
Somália: boston.gov/covid19-so
";
- m+="
Árabe: boston.gov/covid19-ar
";
+ m+="A cidade de Boston está comprometida em melhorar a qualidade e a abrangência do conteúdo multilíngue em nosso site.
";
let n='À propos des traductions sur Boston.gov
';
n+="
Le Département de l'innovation et de la technologie de la ville de Boston (“DoIT“) propose des traductions du contenu de Boston.gov via le traducteur Web Google Translate (translate.google.com). Parce que Google Translate est un site Web externe , DoIT ne contrôle pas la qualité ou l'exactitude du contenu traduit. Cela peut entraîner un texte traduit inexact ou d'autres erreurs dans les images et l'apparence générale des pages traduites.
";
n+="
Cependant, vous pouvez signaler des traductions incorrectes ou de qualité inférieure et contribuer à de meilleures traductions à l'aide de Google Translate.
";
@@ -195,17 +145,7 @@ let translate = function(d){
n+="
Enfin, appuyez sur Contribuer pour apporter vos modifications suggérées.";
n+="
Vous trouverez plus d'informations sur la contribution à Google Translate ici.
";
n+="
Veuillez noter que DoIT ne contrôle pas le processus par lequel les traductions apportées sont incorporées dans le traducteur Web Google.
";
- n+="
La ville de Boston s'est engagée à améliorer la qualité et l'étendue du contenu multilingue sur notre site Web. Les informations essentielles concernant la réponse de Boston à l'urgence du coronavirus sont déjà disponibles en plusieurs langues et peuvent être trouvées ici:
";
- n+="
espagnol: boston.gov/covid19-es
";
- n+="
Créole haïtien: boston.gov/covid19-hc
";
- n+="
Cap-Verdien: boston.gov/covid19-cv
";
- n+="
portugais: boston.gov/covid19-pt
";
- n+="
français: boston.gov/covid19-fr
";
- n+="
chinois: boston.gov/covid19-zh
";
- n+="
vietnamien: boston.gov/covid19-vi
";
- n+="
russe: boston.gov/covid19-ru
";
- n+="
Somalien: boston.gov/covid19-so
";
- n+="
arabe: boston.gov/covid19-ar
";
+ n+="La ville de Boston s'est engagée à améliorer la qualité et l'étendue du contenu multilingue sur notre site Web.
";
let o='Về bản dịch trên Boston.gov
';
o+="
Sở Sáng tạo và Công nghệ Thành phố Boston (Tiếng DoIT xông) cung cấp các bản dịch nội dung trên Boston.gov thông qua trình dịch web của Google Dịch (translate.google.com). Bởi vì Google Dịch là một trang web bên ngoài , DoIT không kiểm soát chất lượng hoặc độ chính xác của nội dung dịch. Điều này có thể dẫn đến văn bản dịch không chính xác hoặc các lỗi khác trong hình ảnh và sự xuất hiện chung của các trang được dịch.
";
o+="
Tuy nhiên, bạn có thể báo cáo bản dịch không chính xác hoặc không đạt tiêu chuẩn và đóng góp bản dịch tốt hơn bằng Google Dịch.
";
@@ -216,17 +156,7 @@ let translate = function(d){
o+="
Cuối cùng, nhấn Đóng góp để đóng góp các chỉnh sửa được đề xuất của bạn.";
o+="
Thông tin thêm về việc đóng góp cho Google Dịch có thể được tìm thấy tại đây.
";
o+="
Xin lưu ý rằng DoIT không kiểm soát quá trình dịch thuật đóng góp được tích hợp vào trình dịch web của Google.
";
- o+="
hành phố Boston cam kết cải thiện chất lượng và độ rộng của nội dung đa ngôn ngữ trên trang web của chúng tôi. Thông tin quan trọng về phản ứng của Boston đối với trường hợp khẩn cấp coronavirus đã có sẵn bằng nhiều ngôn ngữ và có thể tìm thấy tại đây:
";
- o+="
Tiếng Tây Ban Nha: boston.gov/covid19-es
";
- o+="
Haiti Creole: boston.gov/covid19-hc
";
- o+="
Cape Verdean: boston.gov/covid19-cv
";
- o+="
Tiếng Bồ Đào Nha: boston.gov/covid19-pt
";
- o+="
Tiếng Pháp: boston.gov/covid19-fr
";
- o+="
Tiếng Trung: boston.gov/covid19-zh
";
- o+="
Tiếng Việt: boston.gov/covid19-vi
";
- o+="
Tiếng Nga: boston.gov/covid19-ru
";
- o+="
Somali: boston.gov/covid19-so
";
- o+="
Tiếng Ả Rập: boston.gov/covid19-ar
";
+ o+="hành phố Boston cam kết cải thiện chất lượng và độ rộng của nội dung đa ngôn ngữ trên trang web của chúng tôi.
";
let p='О переводах на Boston.gov
';
p+="
Департамент инноваций и технологий города Бостона (“DoIT“) предлагает переводы контента на Boston.gov через веб-переводчик Google Translate (translate.google.com). Поскольку Google Translate является внешним веб-сайтом , DoIT не контролирует качество или точность переведенного контента. Это может привести к неточному переведенному тексту или другим ошибкам в изображениях и общему виду переведенных страниц.
";
p+="
Однако вы можете сообщать о неправильных или некачественных переводах и вносить более качественные переводы с помощью Google Translate.
";
@@ -237,17 +167,7 @@ let translate = function(d){
p+="
Наконец, нажмите Contribute для внесения предложенных вами изменений.";
p+="
Дополнительную информацию о содействии переводчику Google можно найти здесь.
";
p+="
Обратите внимание, что DoIT не контролирует процесс, с помощью которого переводы, включенные в перевод, включаются в веб-переводчик Google.
";
- p+="
Город Бостон стремится улучшить качество и широту многоязычного контента на нашем веб-сайте. Критическая информация относительно реакции Бостона на чрезвычайную ситуацию с коронавирусом уже доступна на нескольких языках и находится здесь:
";
- p+="
испанский: boston.gov/covid19-es
";
- p+="
гаитянский креольский: boston.gov/covid19-hc
";
- p+="
Кабо-Верде: boston.gov/covid19-cv
";
- p+="
португальский: boston.gov/covid19-pt
";
- p+="
Французский: boston.gov/covid19-fr
";
- p+="
Китайский: boston.gov/covid19-zh
";
- p+="
вьетнамский: boston.gov/covid19-vi
";
- p+="
русский язык: boston.gov/covid19-ru
";
- p+="
Сомали: boston.gov/covid19-so
";
- p+="
Арабский: boston.gov/covid19-ar
";
+ p+="Город Бостон стремится улучшить качество и широту многоязычного контента на нашем веб-сайте.
";
let q='Ku Saabsan Tarjumida bogga Boston.gov
';
q+="
Magaalada Boston Waaxda Cusbooneysiinta iyo Tiknolojiyadda (“DoIT“) waxay bixisaa tarjumaadda waxa kujira Boston.gov iyada oo loo marinayo turjubaanka websaydhka ee Google Translate (translate.google.com). , DoIT ma xukumaan tayada ama sax ahaanta waxyaabaha la tarjumay. Tani waxay ku dambayn kartaa qoraal aan sax ahayn oo la tarjumay, ama khaladaad kale oo ku saabsan sawirrada iyo muuqaalka guud ee bogagga la turjumay.
";
q+="
Si kastaba ha noqotee, waad soo sheegi kartaa tarjumaad qaldan ama kuwa hooseeya waxaadna gacan ka geysan kartaa tarjumaad wanaagsan adiga oo adeegsanaya Google Translate.
";
@@ -258,17 +178,7 @@ let translate = function(d){
q+="
Ugu dambayntii, riix tabaruc si aad ugu biiriso tifatirkaaga la soo jeediyay.";
q+="
Macluumaad dheeri ah oo ku saabsan ku biirinta Google Translate waxaa laga heli karaa halkan.
";
q+="
Fadlan la soco in DoIT ma xakameyso howsha tarjumaadaha tabaruca ah lagu daray tarjume webka Google.
";
- q+="
agaalada Boston waxa ka go'an inay hagaajiso tayada iyo ballaadhka waxyaabaha ku qoran luqadaha badan luqadaha kala duwan. Macluumaad muhiim ah oo ku saabsan jawaabta Boston ee xaaladda degdegga ah ee coronavirus ayaa durba lagu heli karaa luqado badan waxaana laga heli karaa halkan:
";
- q+="
Isbaanish: boston.gov/covid19-es
";
- q+="
Haitian Creole: boston.gov/covid19-hc
";
- q+="
Cape Verdean: boston.gov/covid19-cv
";
- q+="
Boortaqiiska: boston.gov/covid19-pt
";
- q+="
Faransiis: boston.gov/covid19-fr
";
- q+="
Shiine: boston.gov/covid19-zh
";
- q+="
Fiyatnaamiis: boston.gov/covid19-vi
";
- q+="
Ruush: boston.gov/covid19-ru
";
- q+="
Af-soomaali: boston.gov/covid19-so
";
- q+="
Carabi: boston.gov/covid19-ar
";
+ q+="agaalada Boston waxa ka go'an inay hagaajiso tayada iyo ballaadhka waxyaabaha ku qoran luqadaha badan luqadaha kala duwan.
";
let r='Boston.gov حول الترجمات على
';
r+="
تقدم دائرة الابتكار والتكنولوجيا في مدينة بوسطن (“DoIT“) ترجمة للمحتوى على Boston.gov من خلال مترجم الويب الخاص بترجمة Google (translate.google.com). نظرًا لأن الترجمة من Google هي موقع ويب خارجي ، فإن DoIT لا تتحكم في جودة أو دقة المحتوى المترجم. قد يؤدي هذا إلى نص مترجم غير دقيق ، أو أخطاء أخرى في الصور والمظهر العام للصفحات المترجمة.
";
r+="
ومع ذلك ، يمكنك الإبلاغ عن ترجمات غير صحيحة أو دون المستوى المطلوب والمساهمة في ترجمات أفضل باستخدام الترجمة من Google.
";
@@ -279,17 +189,7 @@ let translate = function(d){
r+="
أخيرًا ، اضغط على مساهمة للمساهمة بتعديلاتك المقترحة.";
r+="
يمكن العثور على مزيد من المعلومات حول المساهمة في ترجمة Google هنا.
";
r+="
يرجى ملاحظة أن DoIT لا تتحكم في العملية التي يتم من خلالها دمج الترجمات المساهمة في مترجم الويب من Google.
";
- r+="
تلتزم مدينة بوسطن بتحسين جودة واتساع المحتوى متعدد اللغات على موقعنا. المعلومات الهامة المتعلقة باستجابة بوسطن لحالة طوارئ الفيروسات التاجية متاحة بالفعل بلغات متعددة ويمكن العثور عليها هنا:
";
- r+="
الأسبانية: boston.gov/covid19-es
";
- r+="
الكريولية الهايتية: boston.gov/covid19-hc
";
- r+="
الرأس الأخضر: boston.gov/covid19-cv
";
- r+="
البرتغالية: boston.gov/covid19-pt
";
- r+="
فرنسي: boston.gov/covid19-fr
";
- r+="
صينى: boston.gov/covid19-zh
";
- r+="
الفيتنامية: boston.gov/covid19-vi
";
- r+="
الروسية: boston.gov/covid19-ru
";
- r+="
الصومالية: boston.gov/covid19-so
";
- r+="
عربى: boston.gov/covid19-ar
";
+ r+="زم مدينة بوسطن بتحسين جودة واتساع المحتوى متعدد اللغات على موقعنا.
";
g+=h;
g+=j;
g+=e;
@@ -347,7 +247,7 @@ let translate = function(d){
}
j+=" ";
j+="";
- j+=''+this.writeDisclaimer()+"
";
+ j+=''+this.writeDisclaimer()+"
";
let e=jQuery("#overlay");
e.html(j)
}
diff --git a/docroot/modules/custom/bos_components/modules/bos_video/bos_video.module b/docroot/modules/custom/bos_components/modules/bos_video/bos_video.module
index b66e38bdf6..ef47ad10c1 100644
--- a/docroot/modules/custom/bos_components/modules/bos_video/bos_video.module
+++ b/docroot/modules/custom/bos_components/modules/bos_video/bos_video.module
@@ -8,6 +8,7 @@
use Drupal\bos_core\BackgroundResponsiveImage;
use Drupal\Component\Utility\Html;
use Drupal\Core\Render\Element;
+use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_theme().
@@ -109,3 +110,18 @@ function template_preprocess_paragraph__video(array &$variables) {
}
}
+
+/**
+ * Implements hook_form_alter().
+ */
+function bos_video_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
+ if (!empty($form["field_components"])) {
+ foreach (Drupal\Core\Render\Element::children($form["field_components"]["widget"]) as $item) {
+ if (is_numeric($item) && $form["field_components"]["widget"][$item]['#paragraph_type'] == 'video') {
+ $form["field_components"]["widget"][$item]["subform"]["field_is_channel"]['#access'] = \Drupal::currentUser()
+ ->hasRole('administrator');
+ }
+ }
+ }
+}
+
diff --git a/docroot/themes/custom/bos_theme/templates/snippets/secondary-nav.html.twig b/docroot/themes/custom/bos_theme/templates/snippets/secondary-nav.html.twig
index da8ddbe66e..cc0c7912c2 100644
--- a/docroot/themes/custom/bos_theme/templates/snippets/secondary-nav.html.twig
+++ b/docroot/themes/custom/bos_theme/templates/snippets/secondary-nav.html.twig
@@ -32,7 +32,7 @@
Where: Secondary Menu.
What: New Google Translate.
Note: Dropdown of languages #}
-
+
English
Español
@@ -41,8 +41,8 @@
français
简体中文
-
-
+
+
{% if search %}