Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions app/GravityForms/GravityForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class GravityForms

public function register(): void
{
add_filter('gform_field_content', [$this, 'disableReadSpeakerHiddenField'], 10, 5);
add_action('pre_get_posts', [$this, 'handleLegacyForms']);
add_filter('gform_form_theme_slug', [$this, 'setFormThemeSlug'], 10, 2);
add_filter('gform_incomplete_submissions_expiration_days', fn () => self::INCOMPLETE_SUBMISSIONS_EXPIRATION_DAYS);
Expand All @@ -22,6 +23,19 @@ public function register(): void

// Remove the encryption filter for merge tags so the data can be used in emails.
remove_filter('gform_merge_tag_filter', 'gf_encryption_gform_merge_tag_filter', 10, 4);

}

/**
* Disable ReadSpeaker for hidden fields
*/
public function disableReadSpeakerHiddenField(string $content, GF_Field $field, $value, int $lead_id, int $form_id): string
{
if ('hidden' === $field->type) {
$content = str_replace('<input', '<input class="rs-skip"', $content);
}

return $content;
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.wp-block-button__link {
@include button-color( theme-color( 'secondary' ) );
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.footer {
background-color: $body-bg;

h2 {
margin-bottom: 1rem;
font-size: $h3-font-size;
}
}
24 changes: 24 additions & 0 deletions htdocs/wp-content/themes/sluis/assets/scss/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*--------------------------------------------------------------
Settings
--------------------------------------------------------------*/
@import 'settings/colors';
@import 'settings/bootstrap';
@import 'settings/typography';
@import 'settings/variables';

/*--------------------------------------------------------------
Parent theme
--------------------------------------------------------------*/
@import '../../../owc-formulieren/assets/scss/editor';

.editor-styles-wrapper {
/*--------------------------------------------------------------
Elements
--------------------------------------------------------------*/
@import 'elements/headings';

/*--------------------------------------------------------------
Components
--------------------------------------------------------------*/
@import 'components/button';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
h1 {
color: theme-color( 'primary' );
font-weight: 700;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@import './colors';

/*--------------------------------------------------------------
Fonts
--------------------------------------------------------------*/
$font-size-base: 1rem;
$small-font-size: $font-size-base * 0.9;
$xs-small-font-size: $small-font-size * 0.9;
$lead-font-size: $font-size-base * 1.1;
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol';
$font-family-base: 'myriad-pro', $font-family-sans-serif;

/*--------------------------------------------------------------
Colors
--------------------------------------------------------------*/
$body-color: #212429;
$body-bg: #f7f5f3;

/*--------------------------------------------------------------
Headings
--------------------------------------------------------------*/
$h1-font-size: $font-size-base * 2.6;
$h2-font-size: $font-size-base * 1.7;
$h3-font-size: $font-size-base * 1.35;
$h4-font-size: $font-size-base * 1.15;
$h5-font-size: $font-size-base * 1.05;
$h6-font-size: $font-size-base;
$headings-font-weight: 600;

/*--------------------------------------------------------------
Buttons
--------------------------------------------------------------*/
$btn-border-radius: 6px;
$btn-font-weight: 400;
10 changes: 10 additions & 0 deletions htdocs/wp-content/themes/sluis/assets/scss/settings/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*--------------------------------------------------------------
Custom colors
--------------------------------------------------------------*/

@import '~bootstrap/scss/functions';

$theme-colors: (
primary: #0061a1,
secondary: #afdb0e,
);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url( 'https://use.typekit.net/spp5rgj.css' );
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$mijn-zaken-footer-bg-color: transparent;
$mijn-zaken-footer-color: $body-color;
23 changes: 23 additions & 0 deletions htdocs/wp-content/themes/sluis/assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*--------------------------------------------------------------
Settings
--------------------------------------------------------------*/
@import 'settings/colors';
@import 'settings/bootstrap';
@import 'settings/typography';
@import 'settings/variables';

/*--------------------------------------------------------------
Parent theme
--------------------------------------------------------------*/
@import '../../../owc-formulieren/assets/scss/style';

/*--------------------------------------------------------------
Elements
--------------------------------------------------------------*/
@import 'elements/headings';

/*--------------------------------------------------------------
Components
--------------------------------------------------------------*/
@import 'components/button';
@import 'components/footer';
10 changes: 10 additions & 0 deletions htdocs/wp-content/themes/sluis/config/home.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'digid_is_active' => true,
'digid_provider' => 'owc-signicat-openid',
'eherkenning_is_active' => true,
'eherkenning_provider' => 'owc-signicat-openid',
'eidas_is_active' => true,
'eidas_provider' => 'owc-signicat-openid',
];
7 changes: 7 additions & 0 deletions htdocs/wp-content/themes/sluis/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

defined('ABSPATH') || exit;

add_filter('gform_enable_legacy_markup', '__return_true');
Binary file added htdocs/wp-content/themes/sluis/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions htdocs/wp-content/themes/sluis/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
Theme Name: Gemeente Sluis | Formulieren
Theme URI: https://www.yard.nl
Author: Yard | Digital Agency
Author URI: https://www.yard.nl
Description: Gemeente Sluis | Formulieren
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sluis
Template: owc-formulieren
*/
82 changes: 82 additions & 0 deletions htdocs/wp-content/themes/sluis/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"color": {
"customDuotone": false,
"customGradient": false,
"defaultDuotone": false,
"defaultGradients": false,
"defaultPalette": false,
"duotone": [],
"gradients": [],
"palette": [
{
"slug": "primary",
"color": "var(--color-palette-primary)",
"name": "Primair"
},
{
"slug": "secondary",
"color": "var(--color-palette-secondary)",
"name": "Secundair"
},
{
"slug": "white",
"color": "var(--color-palette-white)",
"name": "Wit"
},
{
"slug": "black",
"color": "var(--color-palette-black)",
"name": "Zwart"
}
]
},
"typography": {
"customFontSize": false,
"dropCap": false,
"fontFamilies": [],
"fontSizes": [],
"fontStyle": false,
"fontWeight": false,
"letterSpacing": false,
"lineHeight": false,
"textDecoration": false,
"textTransform": false
},
"layout": {
"contentSize": "var(--layout-content-size)",
"wideSize": "var(--layout-wide-size)"
},
"blocks": {
"core/button": {
"border": {
"radius": false
}
}
}
},
"styles": {
"elements": {
"button": {
"typography": {
"fontSize": "",
"fontFamily": "",
"lineHeight": "",
"textDecoration": ""
},
"color": {
"text": "",
"background": ""
},
"border": {
"width": ""
},
"spacing": {
"padding": {}
}
}
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"dev": "run-p -l \"dev:** -- {@}\" --",
"dev:editor": "wp-scripts start --config ./scripts/editor.config.js",
"dev:frontend": "wp-scripts start --config ./scripts/frontend.config.js",
"dev-all": "run-p -l \"dev -- --env theme=owc-formulieren\" \"dev -- --env theme=buren\" \"dev -- --env theme=ggd-hollands-noorden\" \"dev -- --env theme=hollandskroon\" \"dev -- --env theme=hoekschewaard\" \"dev -- --env theme=sudwestfryslan\" \"dev -- --env theme=barbarendrecht\" \"dev -- --env theme=barridderkerk\" \"dev -- --env theme=baralbrandswaard\" \"dev -- --env theme=bar\" \"dev -- --env theme=gouda\" \"dev -- --env theme=defryskemarren\" \"dev -- --env theme=noordwijk\" \"dev -- --env theme=texel\"",
"dev-all": "run-p -l \"dev -- --env theme=owc-formulieren\" \"dev -- --env theme=buren\" \"dev -- --env theme=ggd-hollands-noorden\" \"dev -- --env theme=hollandskroon\" \"dev -- --env theme=hoekschewaard\" \"dev -- --env theme=sudwestfryslan\" \"dev -- --env theme=barbarendrecht\" \"dev -- --env theme=barridderkerk\" \"dev -- --env theme=baralbrandswaard\" \"dev -- --env theme=bar\" \"dev -- --env theme=gouda\" \"dev -- --env theme=defryskemarren\" \"dev -- --env theme=noordwijk\" \"dev -- --env theme=texel\" \"dev -- --env theme=sluis\"",
"prod": "run-p -l \"prod:** -- {@}\" --",
"prod:editor": "wp-scripts build --config ./scripts/editor.config.js",
"prod:frontend": "wp-scripts build --config ./scripts/frontend.config.js",
"prod-all": "run-p -l \"prod -- --env theme=owc-formulieren\" \"prod -- --env theme=buren\" \"prod -- --env theme=ggd-hollands-noorden\" \"prod -- --env theme=hollandskroon\" \"prod -- --env theme=hoekschewaard\" \"prod -- --env theme=sudwestfryslan\" \"prod -- --env theme=barbarendrecht\" \"prod -- --env theme=barridderkerk\" \"prod -- --env theme=baralbrandswaard\" \"prod -- --env theme=bar\" \"prod -- --env theme=gouda\" \"prod -- --env theme=defryskemarren\" \"prod -- --env theme=noordwijk\" \"prod -- --env theme=texel\"",
"prod-all": "run-p -l \"prod -- --env theme=owc-formulieren\" \"prod -- --env theme=buren\" \"prod -- --env theme=ggd-hollands-noorden\" \"prod -- --env theme=hollandskroon\" \"prod -- --env theme=hoekschewaard\" \"prod -- --env theme=sudwestfryslan\" \"prod -- --env theme=barbarendrecht\" \"prod -- --env theme=barridderkerk\" \"prod -- --env theme=baralbrandswaard\" \"prod -- --env theme=bar\" \"prod -- --env theme=gouda\" \"prod -- --env theme=defryskemarren\" \"prod -- --env theme=noordwijk\" \"prod -- --env theme=texel\" \"prod -- --env theme=sluis\"",
"format:js": "wp-scripts format \"./htdocs/wp-content/themes/**/assets/js/**/*.js\"",
"format:scss": "wp-scripts format \"./htdocs/wp-content/themes/**/assets/scss/**/*.scss\"",
"lint:js": "wp-scripts lint-js \"./htdocs/wp-content/themes/**/assets/js/**/*.js\"",
Expand Down