Skip to content

Commit b22f09f

Browse files
author
Simon L. Lange
committed
Faxe theme: revert bg image banner search
1 parent fda76d3 commit b22f09f

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

web/themes/custom/fds_faxe_theme/dist/stylesheets/stylesheet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/themes/custom/fds_faxe_theme/fds_faxe_theme.theme

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@ use Drupal\node\Entity\Node;
88
use Drupal\taxonomy\Entity\Term;
99

1010

11-
function fds_faxe_theme_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
12-
// Add a field for the block background image.
13-
$form['fds_faxe_theme_block_background_image'] = array(
14-
'#type' => 'managed_file',
15-
'#title' => t('Banner søgning baggrundsbillede'),
16-
'#description' => t('Upload det ønsket baggrundsbillede.'),
17-
'#default_value' => theme_get_setting('fds_faxe_theme_block_background_image'),
18-
'#upload_location' => 'public://fds_faxe_theme/block-images/',
19-
'#upload_validators' => array(
20-
'file_validate_extensions' => array('png gif jpg jpeg'),
21-
),
22-
);
23-
}
2411

2512

2613
/**

web/themes/custom/fds_faxe_theme/src/styles/theme/components/section/_section.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ body {
118118
background-size: cover;
119119
background-repeat: no-repeat;
120120
background-position: center center;
121+
background-image: url('../images/banner-search.jpg');
121122

122123
form#views-exposed-form-os2web-search-os2web-search-page, form#views-exposed-form-os2web-search-page-1 {
123124
margin: auto;

web/themes/custom/fds_faxe_theme/templates/block/banner-search/block--banner-search.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
]
3434
%}
3535
<div{{ attributes.addClass(classes) }}>
36-
<div class="section section--banner-search" style="background-image: url('{{ file_url(theme_get_setting('fds_faxe_theme_block_background_image')) }}')">
36+
<div class="section section--banner-search">
3737
<div class="container">
3838

3939
{% block content %}

0 commit comments

Comments
 (0)