From 5cb07a322073effa691b8ecabe8753cce5671ec5 Mon Sep 17 00:00:00 2001 From: payme Date: Thu, 16 Jan 2025 09:35:51 +0000 Subject: [PATCH 1/3] Translations for community --- resources/lang/bg/community.php | 3 +++ resources/lang/de/community.php | 12 ++++++++++++ resources/lang/fr/community.php | 5 +++++ resources/lang/hr/community.php | 8 ++++++++ resources/lang/it/community.php | 4 ++++ resources/lang/ro/community.php | 12 ++++++++++++ resources/lang/sl/community.php | 8 ++++++++ resources/lang/ua/community.php | 5 ++++- 8 files changed, 56 insertions(+), 1 deletion(-) diff --git a/resources/lang/bg/community.php b/resources/lang/bg/community.php index a63378319..98dfefb3f 100644 --- a/resources/lang/bg/community.php +++ b/resources/lang/bg/community.php @@ -35,4 +35,7 @@ 'и разгледайте списъка с посланиците на Европейската седмица на програмирането.', 'Ако във вашата страна има посланици, моля, свържете се директно с тях, за да разберете как най-добре можете да подкрепите инициативата. Ако във вашата страна няма посланик, можете да пишете на следния адрес', ], + 'hub_BG' => 'Dzhuniar Achiyvmant Balgariya', + 'hub_level_BG' => 'Национален център', + 'hub_desc_BG' => 'Джуниър Ачийвмънт България JA България се фокусира върху овластяването на младежите в България чрез различни образователни инициативи, насочени към насърчаване на предприемачеството и развитие на умения. Организацията предоставя програми, които насърчават креативността, критичното мислене и лидерските умения сред младите хора. Ораганизацията си сътрудничи с училища, университети и компании, за да създаде възможности за професионално обучение и стажове, като по този начин оборудва младежите с инструментите, от които се нуждаят, за да успеят в съвременната работна сила. JA България също набляга на ангажираността на общността и социалната отговорност сред своите участници.' ]; diff --git a/resources/lang/de/community.php b/resources/lang/de/community.php index 01a345c83..97f3ef3bb 100644 --- a/resources/lang/de/community.php +++ b/resources/lang/de/community.php @@ -36,5 +36,17 @@ 'Wenn es in Ihrem Land Botschafter/innen gibt, wenden Sie sich bitte direkt an diese, um zu erfahren, wie Sie die Initiative am besten unterstützen können. Gibt es in Ihrem Land niemanden, können Sie sich an info@codeweek.eu wenden.', ], + 'hub_DE' => 'Science on Stage Deutschland e.V.', + 'hub_level_DE' => 'Regional Hub', + 'hub_desc_DE' => 'Science on Stage Deutschland e.V. rückt als gemeinnütziger Verein die naturwissenschaftliche Bildung ins schulische und öffentliche Rampenlicht und fördert die Zusammenarbeit von MINT-Lehrkräften in ganz Europa. Durch Bildungsfestivals, Workshops und Fortbildungen für Lehrkräfte verfolgt die Organisation das Ziel, den Unterricht in den Bereichen Naturwissenschaften, Technik und Ingenieurwesen an Schulen zu verbessern. Zusätzlich bietet der Verein Lehrkräften eine Plattform, um bewährte Praktiken, innovative Lehrmethoden und praxisorientierte Experimente auszutauschen, die das Interesse von Schüler*innen an MINT-Fächern wecken. Die Mission von Science on Stage besteht darin, ein Netzwerk leidenschaftlicher Lehrkräfte zu schaffen, die die nächste Generation von Wissenschaftler*innen und Ingenieur*innen in ganz Europa inspirieren.', + + 'hub_AT' => 'Science on Stage Deutschland e.V.', + 'hub_level_AT' => 'Regional Hub', + 'hub_desc_AT' => 'Science on Stage Deutschland e.V. rückt als gemeinnütziger Verein die naturwissenschaftliche Bildung ins schulische und öffentliche Rampenlicht und fördert die Zusammenarbeit von MINT-Lehrkräften in ganz Europa. Durch Bildungsfestivals, Workshops und Fortbildungen für Lehrkräfte verfolgt die Organisation das Ziel, den Unterricht in den Bereichen Naturwissenschaften, Technik und Ingenieurwesen an Schulen zu verbessern. Zusätzlich bietet der Verein Lehrkräften eine Plattform, um bewährte Praktiken, innovative Lehrmethoden und praxisorientierte Experimente auszutauschen, die das Interesse von Schüler*innen an MINT-Fächern wecken. Die Mission von Science on Stage besteht darin, ein Netzwerk leidenschaftlicher Lehrkräfte zu schaffen, die die nächste Generation von Wissenschaftler*innen und Ingenieur*innen in ganz Europa inspirieren.', + + 'hub_CH' => 'Science on Stage Deutschland e.V.', + 'hub_level_CH' => 'Regional Hub', + 'hub_desc_CH' => 'Science on Stage Deutschland e.V. rückt als gemeinnütziger Verein die naturwissenschaftliche Bildung ins schulische und öffentliche Rampenlicht und fördert die Zusammenarbeit von MINT-Lehrkräften in ganz Europa. Durch Bildungsfestivals, Workshops und Fortbildungen für Lehrkräfte verfolgt die Organisation das Ziel, den Unterricht in den Bereichen Naturwissenschaften, Technik und Ingenieurwesen an Schulen zu verbessern. Zusätzlich bietet der Verein Lehrkräften eine Plattform, um bewährte Praktiken, innovative Lehrmethoden und praxisorientierte Experimente auszutauschen, die das Interesse von Schüler*innen an MINT-Fächern wecken. Die Mission von Science on Stage besteht darin, ein Netzwerk leidenschaftlicher Lehrkräfte zu schaffen, die die nächste Generation von Wissenschaftler*innen und Ingenieur*innen in ganz Europa inspirieren.', + 'codeweek_de' => '

In Deutschland wird die Code Week von einem Team aus ehrenamtlichen Botschafter*innen, zahlreichen bundesweiten Regio-Hubs und vielen weiteren Akteur*innen getragen. Das bundesweite Regio-Hub-Netzwerk wird von der Körber-Stiftung koordiniert. Das internationale deutschsprachige Code Week Netzwerk in Deutschland, Österreich, Liechtenstein und Schweiz wird von Science on Stage koordiniert.

' ]; diff --git a/resources/lang/fr/community.php b/resources/lang/fr/community.php index 0204c1e14..babd2beb4 100644 --- a/resources/lang/fr/community.php +++ b/resources/lang/fr/community.php @@ -35,4 +35,9 @@ 'et parcourez brièvement la liste des ambassadeurs de la Semaine européenne du code. ', 'S’il y a des ambassadeurs dans votre pays, contactez-les directement et discutez avec eux des meilleures manières dont vous pouvez contribuer à l’initiative. S’il n’y a aucun ambassadeur dans votre pays, veuillez nous contacter à l’adresse info@codeweek.eu.', ], + + 'hub_FR' => 'Simplon.Co, France', + 'hub_level_FR' => 'National Hub', + 'hub_desc_FR' => 'Simplon.co est une entreprise sociale et solidaire et un organisme de formation certifié dont l\'objectif est de proposer des formations aux compétences numériques afin de favoriser l’employabilité de nos apprenants dans une économie en pleine transformation digitale. Nos formations sans coût pour les participants sont destinées à des personnes issues de tous horizons, y compris des groupes sous-représentés dans le domaine de la technologie. Simplon.co met l\'accent sur l\'apprentissage pratique et l’acquisition des compétences fortement demandées par les employeurs afin de préparer les participants à des carrières stimulantes. Nous collaborons fortement avec les entreprises du secteur numérique pour faciliter l\'accès au marché du travail pour nos apprenants.. + En tant que Code Week National Hub pour la France, Simplon a pour mission, en étroite coopération avec le Ministère de l\'Education et l\'éco-système du numérique éducatif, d\'encourager l\'organisation d\'événements d\'initiation au code et à la culture numérique (pendant la Code Week mais aussi tout le reste de l\'année), de promouvoir les activités organisées partout en France, de valoriser toutes les ressources et initiatives partenaires et d\'être un point de contact pour les organisations, académies, écoles et entreprises qui souhaitent s\'engager dans cette initiative.' ]; diff --git a/resources/lang/hr/community.php b/resources/lang/hr/community.php index 8cfcd4149..7f52b766a 100644 --- a/resources/lang/hr/community.php +++ b/resources/lang/hr/community.php @@ -35,4 +35,12 @@ 'i pogledajte popis ambasadora Europskog tjedna programiranja.', 'Ako u vašoj zemlji postoje ambasadori, stupite u izravan kontakt s njima i saznajte kako biste najbolje mogli poduprijeti ovu inicijativu. Ako u vašoj zemlji nema ambasadora, pišite nam na info@codeweek.eu.', ], + + 'hub_HR' => 'Profil Klett D.o.o.', + 'hub_level_HR' => 'Regionalni Hub', + 'hub_desc_HR' => 'Profil Klett d.o.o. je vodeća izdavačka kuća edukativnih materijala, posvećena pružanju kvalitetnih resursa namijenjenih podučavanju i usvajanju znanja diljem različitih obrazovnih razina. Tvrtka osigurava širok raspon udžbenika, digitalnih materijala i obrazovnih materijala namijenjenih poboljšanju iskustva učenja te lakšem uključivanju učenika. Kroz suradnju s edukatorima, istraživačima i institucijama te svojim resursima osigurava zadovoljavanje rastućih potreba obrazovnog sektora. Njegovanje ljubavi prema učenju kroz inspiriranje učenika i učitelja u srži je misije Profil Klett-a. ', + + 'hub_SI' => 'Profil Klett D.o.o.', + 'hub_level_SI' => 'Regionalni Hub', + 'hub_desc_SI' => 'Podjetje Profil Klett, d. o. o., je vodilni izobraževalni založnik, ki ustvarja kakovostna gradiva za poučevanje in učenje na različnih stopnjah izobraževalnega sistema. Ponuja širok nabor učbenikov, digitalnih gradiv in izobraževalnih orodij za podporo učenju in spodbujanje aktivnega sodelovanja učencev. Profil Klett sodeluje s številnimi učitelji, raziskovalci in inštitucijami ter s tem zagotavlja, da učna gradiva ustrezajo potrebam izobraževalnega sistema. Poslanstvo podjetja je negovanje ljubezni do učenja, s čimer navdihujejo tako učence kot učitelje.' ]; diff --git a/resources/lang/it/community.php b/resources/lang/it/community.php index 5071b49aa..0a2acd29b 100644 --- a/resources/lang/it/community.php +++ b/resources/lang/it/community.php @@ -35,4 +35,8 @@ "e dai un'occhiata all'elenco degli ambasciatori della settimana europea della programmazione", "Se nel tuo paese vi sono già ambasciatori, ti invitiamo a metterti direttamente in contatto con loro per scoprire come sostenere al meglio l'iniziativa. Se non c'è nessun ambasciatore nel tuo paese, puoi rivolgerti all'indirizzo info@codeweek.eu", ], + + 'hub_IT' => 'Fondazione LINKS - Leading Innovation and Knowledge for Society', + 'hub_level_IT' => 'National Hub', + 'hub_desc_IT' => 'Fondazione LINKS è una fondazione privata senza scopo di lucro nata per promuovere l\'innovazione, facilitare il trasferimento di conoscenze e migliorare la crescita della società, in particolare in Italia. Con le sue attività Fondazione LINKS mira a colmare il divario tra il mondo accademico, l\'industria e la pubblica amministrazione, promuovendo progetti di ricerca e sviluppo in collaborazione con questi attori. FondazionE LINKS si propone di affrontare sfide sociali come il cambiamento climatico, la salute e la trasformazione digitale, con una particolare attenzione al settore educativo. All\'interno della fondazione, l\'unità di ricerca EdTech esplora la relazione tra tecnologie emergenti e apprendimento, assicurando che l\'innovazione sia al servizio di una comunità educativa sempre più ampia. POC: edtech@linksfoundation.com' ]; diff --git a/resources/lang/ro/community.php b/resources/lang/ro/community.php index d7a7af8b2..ca3dfff2b 100644 --- a/resources/lang/ro/community.php +++ b/resources/lang/ro/community.php @@ -36,4 +36,16 @@ 'și consultați lista Ambasadorilor Săptămânii UE a programării.', 'Dacă există ambasadori în țara dumneavoastră, vă rugăm să îi contactați direct pentru a vedea cum puteți sprijini cel mai bine inițiativa. Dacă nu există niciun ambasador în țara dumneavoastră, contactați-ne la adresa info@codeweek.eu.', ], + + 'hub_RO' => 'University Politehnica of Bucharest.', + 'hub_level_RO' => 'Regional Hub', + 'hub_desc_RO' => 'Renumită ca una dintre cele mai importante instituții tehnice din România, Universitatea Națională de Știință și Tehnologie Politehnica București se remarcă drept un lider în educația și cercetarea din domeniul ingineriei și tehnologiei. Universitatea oferă o gamă variată de programe, pregătind studenții cu abilitățile necesare pentru a reuși într-o piață globală competitivă. +Angajată în cercetare și inovație, universitatea colaborează cu parteneri din industrie pentru a stimula progresul tehnologic și a aborda provocările din viața reală. De asemenea, promovează antreprenoriatul și învățarea continuă, pregătind viitorii lideri în domeniile lor. +În calitate de Hub Național Code Week pentru România și Moldova, Politehnica București organizează parteneriate, workshop-uri, hackathoane și evenimente tehnice pentru a promova programarea și competențele digitale în rândul tinerilor și al profesorilor. Aceste activități îi inspiră pe participanți să exploreze tehnologia și evidențiază rolul universității în dezvoltarea inovatorilor de mâine.', + + 'hub_MD' => 'University Politehnica of Bucharest.', + 'hub_level_MD' => 'Regional Hub', + 'hub_desc_MD' => 'Renumită ca una dintre cele mai importante instituții tehnice din România, Universitatea Națională de Știință și Tehnologie Politehnica București se remarcă drept un lider în educația și cercetarea din domeniul ingineriei și tehnologiei. Universitatea oferă o gamă variată de programe, pregătind studenții cu abilitățile necesare pentru a reuși într-o piață globală competitivă. +Angajată în cercetare și inovație, universitatea colaborează cu parteneri din industrie pentru a stimula progresul tehnologic și a aborda provocările din viața reală. De asemenea, promovează antreprenoriatul și învățarea continuă, pregătind viitorii lideri în domeniile lor. +În calitate de Hub Național Code Week pentru România și Moldova, Politehnica București organizează parteneriate, workshop-uri, hackathoane și evenimente tehnice pentru a promova programarea și competențele digitale în rândul tinerilor și al profesorilor. Aceste activități îi inspiră pe participanți să exploreze tehnologia și evidențiază rolul universității în dezvoltarea inovatorilor de mâine.' ]; diff --git a/resources/lang/sl/community.php b/resources/lang/sl/community.php index 6d9d02d48..79539c3d6 100644 --- a/resources/lang/sl/community.php +++ b/resources/lang/sl/community.php @@ -35,4 +35,12 @@ 'in si na hitro oglejte seznam ambasadorjev evropskega tedna programiranja.', 'Če so v vaši državi ambasadorji, se obrnite neposredno nanje in ugotovite, kako lahko najbolje podprete pobudo. Če v vaši državi ni ambasadorja, nam lahko pišete na info@codeweek.eu.', ], + + 'hub_HR' => 'Profil Klett D.o.o.', + 'hub_level_HR' => 'Regionalni Hub', + 'hub_desc_HR' => 'Podjetje Profil Klett, d. o. o., je vodilni izobraževalni založnik, ki ustvarja kakovostna gradiva za poučevanje in učenje na različnih stopnjah izobraževalnega sistema. Ponuja širok nabor učbenikov, digitalnih gradiv in izobraževalnih orodij za podporo učenju in spodbujanje aktivnega sodelovanja učencev. Profil Klett sodeluje s številnimi učitelji, raziskovalci in inštitucijami ter s tem zagotavlja, da učna gradiva ustrezajo potrebam izobraževalnega sistema. Poslanstvo podjetja je negovanje ljubezni do učenja, s čimer navdihujejo tako učence kot učitelje.', + + 'hub_SI' => 'Profil Klett D.o.o.', + 'hub_level_SI' => 'Regionalni Hub', + 'hub_desc_SI' => 'Podjetje Profil Klett, d. o. o., je vodilni izobraževalni založnik, ki ustvarja kakovostna gradiva za poučevanje in učenje na različnih stopnjah izobraževalnega sistema. Ponuja širok nabor učbenikov, digitalnih gradiv in izobraževalnih orodij za podporo učenju in spodbujanje aktivnega sodelovanja učencev. Profil Klett sodeluje s številnimi učitelji, raziskovalci in inštitucijami ter s tem zagotavlja, da učna gradiva ustrezajo potrebam izobraževalnega sistema. Poslanstvo podjetja je negovanje ljubezni do učenja, s čimer navdihujejo tako učence kot učitelje.' ]; diff --git a/resources/lang/ua/community.php b/resources/lang/ua/community.php index 3e981b84d..3ad4ab295 100644 --- a/resources/lang/ua/community.php +++ b/resources/lang/ua/community.php @@ -35,5 +35,8 @@ 'і перегляньте список послів Тижня кодування ЄС.', 'Якщо у Вашій країні є посли, зв’яжіться безпосередньо з ними та дізнайтеся, як найкраще Ви можете підтримати ініціативу. Якщо у Вашій країні нема послів, напишіть на адресу info@codeweek.eu.', ], - + + 'hub_UA' => 'NGO Junior Achievement Ukraine', + 'hub_level_UA' => 'National Hub', + 'hub_desc_UA' => 'це неурядова організація, яка сприяє розвитку підприємництва, фінансової грамотності та цифрових навичок серед молоді. В рамках консорціуму Code4Europe ми реалізуємо ініціативи, спрямовані на покращення цифрової грамотності та розвиток ІТ-талантів в Україні. Наша діяльність зосереджена на організації освітніх заходів, хакатонів, тренінгів для викладачів та створенні можливостей для молоді через партнерство з провідними ІТ-компаніями.' ]; From 41d2d00da4dc55fa811da11c9cebdc5710639c3d Mon Sep 17 00:00:00 2001 From: bernardhanna Date: Thu, 16 Jan 2025 10:23:31 +0000 Subject: [PATCH 2/3] Fix: Map markers syntax error in community view --- resources/views/community.blade.php | 321 ---------------------------- 1 file changed, 321 deletions(-) diff --git a/resources/views/community.blade.php b/resources/views/community.blade.php index 21aa98984..e69de29bb 100755 --- a/resources/views/community.blade.php +++ b/resources/views/community.blade.php @@ -1,321 +0,0 @@ -@extends('layout.tall') - -@section('content') - - - -
- - -
-
-

#EUCodeWeek

-

@lang('community.titles.0')

-
-
- -
-
- -
- - -

@lang('community.intro.0').
@lang('community.intro.1')

-

@lang('community.intro.2')

- - - - -
- - - -
-

@lang('community.titles.1')

-
-
-

- @lang('community.ambassadors') -

-
-
- -
-
-
- -
- - @if(app('request')->input('country_iso')) - @foreach ($countries as $country) - @if($country->iso === app('request')->input('country_iso')) - - @if($country->facebook) - - @lang('ambassador.visit_the') - @lang('ambassador.local_facebook_page') - - @endif - - @if($country->website) - - @lang('ambassador.visit_the') @lang('ambassador.local_website') - - @endif - - @endif - @endforeach - @endif - - -
- -
- @forelse ($ambassadors as $ambassador) -
-
- -
-
-
{{ $ambassador->fullName() }}
-

{{ $ambassador->bio }}

-
-
- {{--Ambassador email--}} - @if($ambassador->email_display) - - Twitter - - @elseif($ambassador->email) - - Twitter - - @endif - {{--Ambassador twitter--}} - @if($ambassador->twitter) - - Twitter - - @endif - {{--Ambassador website--}} - @if($ambassador->website) - - Twitter - - @endif -
-
- @empty - @lang('ambassador.no_ambassadors') :(
- @endforelse -
- - {{-- Display this section only if a country is selected and has specific content --}} - @php - $country = app('request')->input('country_iso'); - $supportedCountries = ['GR', 'CY', 'MT', 'IT', 'BG', 'TR', 'UA','PL','IE','FR','LU','NL','BE','SK','CZ','NO','IS','FI','SE','PT','ES','LV','LT','HR','SI','DE','AT','CH','RO','MD','DK']; - @endphp - - @if(in_array($country, $supportedCountries)) -
-
-
- {{-- Dynamically construct the language keys based on country code --}} -

@lang("community.hub_level_{$country}")

-

@lang("community.hub_{$country}")

-

@lang("community.hub_desc_{$country}")

-
-
- -
-
-
- @endif - - {{-- Germany-specific additional section --}} - @if($country === 'DE') -
-
-
@lang('community.codeweek_de')
-
-
- @endif - -
-

@lang('community.titles.2')

-
-
-

@lang('community.leading-teachers')

-

@lang('community.cta')

-
- -
- -
-
-
- -
- -
-

@lang('community.titles.3')

-
-
-

- @lang('community.edu') -

-
-
- -
-
-
-
-

@lang('community.titles.4')

-
-
- {{--

--}} - {{-- @lang('community.volunteer.0')--}} - {{--

--}} - {{--

--}} - {{-- @lang('community.volunteer.1')--}} - {{--

--}} - {{--

--}} - {{-- @lang('community.volunteer.2')--}} - {{--

--}} - -

- @lang('community.volunteer.0') @lang('community.volunteer.1') @lang('community.volunteer.2') - @lang('community.volunteer.3') - @lang('community.volunteer.4') @lang('community.volunteer.5') @lang('community.volunteer.6') - . -

- - -

- @lang('community.volunteer.7') @lang('community.volunteer.8'). - @lang('community.volunteer.11') -

- -

- @lang('community.volunteer.12') @lang('community.volunteer.13') @lang('community.volunteer.14') @lang('community.volunteer.15') - -

-
-
- -
-
-
-
-
- - - - - - -
- -@endsection - -@push('extra-css') - -@endpush -@push('scripts') - - - - - - {{-- --}} - {{-- --}} - - {{-- - -@endsection From 6fe7fcc9adc0460d3d36f1fd437de51c382dc5b6 Mon Sep 17 00:00:00 2001 From: bernardhanna Date: Thu, 16 Jan 2025 10:29:51 +0000 Subject: [PATCH 3/3] Fix: Map markers syntax error in community view --- changed_files.txt | 4 + differences.diff | 46 ++++ resources/views/community.blade.php | 315 ++++++++++++++++++++++++++++ 3 files changed, 365 insertions(+) create mode 100644 changed_files.txt create mode 100644 differences.diff diff --git a/changed_files.txt b/changed_files.txt new file mode 100644 index 000000000..b4af72d8e --- /dev/null +++ b/changed_files.txt @@ -0,0 +1,4 @@ +app/Console/Commands/excel/CoderDojoEvents.php +app/Imports/IrelandDreamSpaceImport.php +resources/excel/Code Week Events - Ireland Dream Space .xlsx +resources/excel/events.xlsx diff --git a/differences.diff b/differences.diff new file mode 100644 index 000000000..a42f1e13d --- /dev/null +++ b/differences.diff @@ -0,0 +1,46 @@ +diff --git a/app/Console/Commands/excel/CoderDojoEvents.php b/app/Console/Commands/excel/CoderDojoEvents.php +index c9fb706d..71787585 100644 +--- a/app/Console/Commands/excel/CoderDojoEvents.php ++++ b/app/Console/Commands/excel/CoderDojoEvents.php +@@ -42,7 +42,7 @@ class CoderDojoEvents extends Command + + Excel::import( + new CoderDojoEventsImport(), +- 'events-coderdojobelgium.xlsx', ++ 'events.xlsx', + 'excel' + ); + } +diff --git a/app/Imports/IrelandDreamSpaceImport.php b/app/Imports/IrelandDreamSpaceImport.php +index a6c0b1fe..1dd8ebe2 100644 +--- a/app/Imports/IrelandDreamSpaceImport.php ++++ b/app/Imports/IrelandDreamSpaceImport.php +@@ -42,7 +42,7 @@ class IrelandDreamSpaceImport extends DefaultValueBinder implements ToModel, Wit + 'description' => '', + 'organizer_type' => $row['type_of_organization'], + 'activity_type' => $row['activity_type'], +- 'location' => '', ++ 'location' => $row['address'], + 'event_url' => '', + 'contact_person' => $row['email'], + 'user_email' => '', +@@ -55,9 +55,9 @@ class IrelandDreamSpaceImport extends DefaultValueBinder implements ToModel, Wit + 'codeweek_for_all_participation_code' => '', + 'start_date' => $this->parseDate($row['date']), + 'end_date' => $this->parseDate($row['date']), +- 'geoposition' => '', +- 'longitude' => '', +- 'latitude' => '', ++ 'geoposition' => $row['latitude'].','.$row['longitude'], ++ 'longitude' => $row['latitude'], ++ 'latitude' => $row['latitude'], + 'language' => '', + 'approved_by' => 19588, + 'mass_added_for' => 'Excel', +diff --git a/resources/excel/Code Week Events - Ireland Dream Space .xlsx b/resources/excel/Code Week Events - Ireland Dream Space .xlsx +index cb2a6484..dfc79c5b 100644 +Binary files a/resources/excel/Code Week Events - Ireland Dream Space .xlsx and b/resources/excel/Code Week Events - Ireland Dream Space .xlsx differ +diff --git a/resources/excel/events.xlsx b/resources/excel/events.xlsx +new file mode 100644 +index 00000000..acc5e6b3 +Binary files /dev/null and b/resources/excel/events.xlsx differ diff --git a/resources/views/community.blade.php b/resources/views/community.blade.php index e69de29bb..d94d43fa7 100755 --- a/resources/views/community.blade.php +++ b/resources/views/community.blade.php @@ -0,0 +1,315 @@ +@extends('layout.tall') + +@section('content') + + + +
+ + +
+
+

#EUCodeWeek

+

@lang('community.titles.0')

+
+
+ +
+
+ +
+ + +

@lang('community.intro.0').
@lang('community.intro.1')

+

@lang('community.intro.2')

+ + + + +
+ + + +
+

@lang('community.titles.1')

+
+
+

+ @lang('community.ambassadors') +

+
+
+ +
+
+
+ +
+ + @if(app('request')->input('country_iso')) + @foreach ($countries as $country) + @if($country->iso === app('request')->input('country_iso')) + + @if($country->facebook) + + @lang('ambassador.visit_the') + @lang('ambassador.local_facebook_page') + + @endif + + @if($country->website) + + @lang('ambassador.visit_the') @lang('ambassador.local_website') + + @endif + + @endif + @endforeach + @endif + + +
+ +
+ @forelse ($ambassadors as $ambassador) +
+
+ +
+
+
{{ $ambassador->fullName() }}
+

{{ $ambassador->bio }}

+
+
+ {{--Ambassador email--}} + @if($ambassador->email_display) + + Twitter + + @elseif($ambassador->email) + + Twitter + + @endif + {{--Ambassador twitter--}} + @if($ambassador->twitter) + + Twitter + + @endif + {{--Ambassador website--}} + @if($ambassador->website) + + Twitter + + @endif +
+
+ @empty + @lang('ambassador.no_ambassadors') :(
+ @endforelse +
+ + {{-- Display this section only if a country is selected and has specific content --}} + @php + $country = app('request')->input('country_iso'); + $supportedCountries = ['GR', 'CY', 'MT', 'IT', 'BG', 'TR', 'UA','PL','IE','FR','LU','NL','BE','SK','CZ','NO','IS','FI','SE','PT','ES','LV','LT','HR','SI','DE','AT','CH','RO','MD','DK']; + @endphp + + @if(in_array($country, $supportedCountries)) +
+
+
+ {{-- Dynamically construct the language keys based on country code --}} +

@lang("community.hub_level_{$country}")

+

@lang("community.hub_{$country}")

+

@lang("community.hub_desc_{$country}")

+
+
+ +
+
+
+ @endif + + {{-- Germany-specific additional section --}} + @if($country === 'DE') +
+
+
@lang('community.codeweek_de')
+
+
+ @endif + +
+

@lang('community.titles.2')

+
+
+

@lang('community.leading-teachers')

+

@lang('community.cta')

+
+ +
+ +
+
+
+ +
+ +
+

@lang('community.titles.3')

+
+
+

+ @lang('community.edu') +

+
+
+ +
+
+
+
+

@lang('community.titles.4')

+
+
+ {{--

--}} + {{-- @lang('community.volunteer.0')--}} + {{--

--}} + {{--

--}} + {{-- @lang('community.volunteer.1')--}} + {{--

--}} + {{--

--}} + {{-- @lang('community.volunteer.2')--}} + {{--

--}} + +

+ @lang('community.volunteer.0') @lang('community.volunteer.1') @lang('community.volunteer.2') + @lang('community.volunteer.3') + @lang('community.volunteer.4') @lang('community.volunteer.5') @lang('community.volunteer.6') + . +

+ + +

+ @lang('community.volunteer.7') @lang('community.volunteer.8'). + @lang('community.volunteer.11') +

+ +

+ @lang('community.volunteer.12') @lang('community.volunteer.13') @lang('community.volunteer.14') @lang('community.volunteer.15') + +

+
+
+ +
+
+
+
+
+ + + + + + +
+ +@endsection + +@push('extra-css') + +@endpush +@push('scripts') + + + + + + {{-- --}} + {{-- --}} + + {{-- + +@endsection