Skip to content

Commit 8c2ef8a

Browse files
author
Simon L. Lange
committed
Fredericia rename theme
1 parent 990d205 commit 8c2ef8a

File tree

433 files changed

+50
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+50
-64
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Designsystem.dk - Fredericia'
2+
type: theme
3+
description: 'Theme for Fredericia.'
4+
core: 8.x
5+
core_version_requirement: ^8 || ^9
6+
screenshot: screenshot.png
7+
logo: logo.png
8+
base theme: fds_base_theme
9+
package: OS2web
10+
11+
regions:
12+
header__logo: 'Header - logo'
13+
header__top_navigation: 'Header - top navigation'
14+
header__main_navigation: 'Header - ma we
15+
libraries:
16+
- 'fds_fredericia_main_theme/fonts'
17+
- 'fds_fredericia_main_theme/styles'
18+
- 'fds_fredericia_main_theme/javascripts'
19+
20+
# libraries-override:
21+
# fds_base_theme/javascripts:
22+
# js:
23+
# js/slideshow.js: js/slideshow.js

web/themes/custom/fds_fredericia_theme/fds_fredericia_theme.theme renamed to web/themes/custom/fds_fredericia_main_theme/fds_fredericia_main_theme.theme

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use Drupal\taxonomy\Entity\Term;
1616
/**
1717
* Implements hook_theme_suggestions_page().
1818
*/
19-
function fds_fredericia_theme_theme_suggestions_block_alter(array &$suggestions, array $variables) {
19+
function fds_fredericia_main_theme_theme_suggestions_block_alter(array &$suggestions, array $variables) {
2020
if ($variables['elements']['#id'] == 'lastupdated') {
2121
if (file_exists(__DIR__ . '/templates/block/block--lastupdated.html.twig')) {
2222
$suggestions = ["block__lastupdated"];
@@ -27,9 +27,9 @@ function fds_fredericia_theme_theme_suggestions_block_alter(array &$suggestions,
2727
/**
2828
* Implements hook_preprocess_block().
2929
*/
30-
function fds_fredericia_theme_preprocess_block(&$variables) {
30+
function fds_fredericia_main_theme_preprocess_block(&$variables) {
3131

32-
if ($variables['elements']['#id'] == 'fds_fredericia_theme_indholdfield') {
32+
if ($variables['elements']['#id'] == 'fds_fredericia_main_theme_indholdfield') {
3333
$node = $variables['content']['field']['#object'];
3434
$ext_links = $node->get('field_ext_links')->getValue();
3535
foreach( $ext_links as $ext_link) {
@@ -51,7 +51,7 @@ function fds_fredericia_theme_preprocess_block(&$variables) {
5151
/**
5252
* Implements hook_preprocess_page().
5353
*/
54-
function fds_fredericia_theme_preprocess_page(array &$variables) {
54+
function fds_fredericia_main_theme_preprocess_page(array &$variables) {
5555
$variables['theme_settings'] = _fds_base_theme_collect_theme_settings();
5656
$variables['theme_settings']['footer']['footer_show_latest_content'] = theme_get_setting('footer_show_latest_content');
5757
$variables['theme_settings']['branding']['branding_toggle'] = theme_get_setting('branding_toggle');
@@ -62,14 +62,14 @@ function fds_fredericia_theme_preprocess_page(array &$variables) {
6262
/**
6363
* Implements hook_form_search_block_form_alter().
6464
*/
65-
function fds_fredericia_theme_form_search_block_form_alter(&$form, FormStateInterface $form_state) {
65+
function fds_fredericia_main_theme_form_search_block_form_alter(&$form, FormStateInterface $form_state) {
6666
$form['keys']['#attributes']['placeholder'] = t('Hvad søger du?');
6767
}
6868

6969
/**
7070
* Implements hook_form_search_form_alter().
7171
*/
72-
function fds_fredericia_theme_form_search_form_alter(&$form, FormStateInterface $form_state) {
72+
function fds_fredericia_main_theme_form_search_form_alter(&$form, FormStateInterface $form_state) {
7373
$form['basic']['label'] = [
7474
'#type' => 'container',
7575
'#attributes' => [
@@ -95,7 +95,7 @@ function fds_fredericia_theme_form_search_form_alter(&$form, FormStateInterface
9595
/**
9696
* Implements template_preprocess_swiftmailer().
9797
*/
98-
function fds_fredericia_theme_preprocess_swiftmailer(&$variables) {
98+
function fds_fredericia_main_theme_preprocess_swiftmailer(&$variables) {
9999
global $base_url;
100100
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
101101
$theme = \Drupal::theme()->getActiveTheme();
@@ -117,7 +117,7 @@ function fds_fredericia_theme_preprocess_swiftmailer(&$variables) {
117117
}
118118
}
119119

120-
function fds_fredericia_theme_preprocess_anonymous_subscriptions_notification_email(&$variables) {
120+
function fds_fredericia_main_theme_preprocess_anonymous_subscriptions_notification_email(&$variables) {
121121
global $base_url;
122122
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
123123
$theme = \Drupal::theme()->getActiveTheme();
@@ -142,7 +142,7 @@ function fds_fredericia_theme_preprocess_anonymous_subscriptions_notification_em
142142
/**
143143
* Implements hook_preprocess_HOOK().
144144
*/
145-
function fds_fredericia_theme_preprocess_anonymous_subscriptions_message(array &$variables) {
145+
function fds_fredericia_main_theme_preprocess_anonymous_subscriptions_message(array &$variables) {
146146
global $base_url;
147147
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
148148
$theme = \Drupal::theme()->getActiveTheme();
@@ -172,7 +172,7 @@ function fds_fredericia_theme_preprocess_anonymous_subscriptions_message(array &
172172
/**
173173
* Implements hook_preprocess_term().
174174
*/
175-
function fds_fredericia_theme_preprocess_taxonomy_term(array &$variables) {
175+
function fds_fredericia_main_theme_preprocess_taxonomy_term(array &$variables) {
176176
/** @var \Drupal\taxonomy\TermInterface $term */
177177
$term = $variables['term'];
178178

@@ -206,7 +206,7 @@ function fds_fredericia_theme_preprocess_taxonomy_term(array &$variables) {
206206
/**
207207
* Implements hook_preprocess_node().
208208
*/
209-
function fds_fredericia_theme_preprocess_node(array &$variables) {
209+
function fds_fredericia_main_theme_preprocess_node(array &$variables) {
210210

211211
$node = $variables['node'];
212212
$view_mode = $variables['elements']['#view_mode'];
@@ -263,7 +263,7 @@ function fds_fredericia_theme_preprocess_node(array &$variables) {
263263
/**
264264
* Implements hook_preprocess_media().
265265
*/
266-
function fds_fredericia_theme_preprocess_media(array &$variables) {
266+
function fds_fredericia_main_theme_preprocess_media(array &$variables) {
267267
$media = $variables['media'];
268268
$name = $media->getName();
269269
if (!empty($name)) {
@@ -329,7 +329,7 @@ function node2box(&$node, $showImages) {
329329
return $refNode;
330330
}
331331

332-
function fds_fredericia_theme_preprocess_paragraph(&$variables) {
332+
function fds_fredericia_main_theme_preprocess_paragraph(&$variables) {
333333

334334
$paragraph = $variables['paragraph'];
335335

web/themes/custom/fds_fredericia_theme/src/styles/theme/components/_footer.scss renamed to web/themes/custom/fds_fredericia_main_theme/src/styles/theme/components/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ footer {
199199
}
200200
}
201201

202-
#block-fds-fredericia-theme-sidefod {
202+
#block-fds-fredericia-main-theme-sidefod {
203203
ul {
204204
li {
205205
padding-left: 0 !important;

web/themes/custom/fds_fredericia_theme/src/styles/theme/components/_searchy.scss renamed to web/themes/custom/fds_fredericia_main_theme/src/styles/theme/components/_searchy.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
margin-bottom: 30px;
6666
}
6767
}
68-
#block-fds-fredericia-theme-sitemap-link {
68+
#block-fds-fredericia-main-theme-sitemap-link {
6969
.field {
7070
p {
7171
display: flex;
@@ -165,7 +165,7 @@
165165
}
166166
}
167167
}
168-
#block-fds-fredericia-theme-main-content {
168+
#block-fds-fredericia-main-theme-main-content {
169169
.views-element-container {
170170
.view-os2web-search {
171171
margin: 0 !important;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<table align="center" height="240" border="0" cellspacing="0" cellpadding="0" style="width:100%;">
120120
<tbody bgcolor="#D1D3D4">
121121
<tr>
122-
<td height="240" bgcolor="#D1D3D4" background="{{ base_url }}themes/custom/fds_fredericia_theme/dist/images/blobs.png" border="0" style="vertical-align:top;padding:0;background-repeat:no-repeat; background-size: cover; background-position: center;">
122+
<td height="240" bgcolor="#D1D3D4" background="{{ base_url }}themes/custom/fds_fredericia_main_theme/dist/images/blobs.png" border="0" style="vertical-align:top;padding:0;background-repeat:no-repeat; background-size: cover; background-position: center;">
123123

124124
<table align="center">
125125
<tr>

0 commit comments

Comments
 (0)