Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
35a4c04
LHJ-149: Implement PHP rendering, block to dynamic
Mikaela-Henrietta Feb 18, 2026
02594cc
LHJ-149: Refactor donation amounts block to use dynamic rendering and…
Mikaela-Henrietta Feb 18, 2026
010260c
LHJ-149: Refactor donation providers block to use dynamic rendering a…
Mikaela-Henrietta Feb 18, 2026
af2503b
LHJ-149: Refactor form controls block to use dynamic rendering, remov…
Mikaela-Henrietta Feb 18, 2026
937be27
LHJ-149: Refactor donation type block to use dynamic rendering, add P…
Mikaela-Henrietta Feb 18, 2026
36f19e6
LHJ-149: Refactor AmountHandler to improve type selection logic and h…
Mikaela-Henrietta Feb 18, 2026
c4f0809
LHJ-149: Bump version to 1.1.2 in plugin header
Mikaela-Henrietta Feb 18, 2026
7615c6c
Merge branch 'main' into LHJ-149-lahjoitin-blocks-to-dynamic
Mikaela-Henrietta Feb 18, 2026
3410c3b
LHJ-140: Refactor contact form block to support toggle visibility of…
Mikaela-Henrietta Feb 24, 2026
d8f65a4
LHJ-149: Remove unused style reference
Mikaela-Henrietta Feb 24, 2026
af54da2
LHJ-149: Refactor donation form block to support dynamic rendering, a…
Mikaela-Henrietta Feb 24, 2026
62dc3d5
LHJ-149: Refactor donation form styles
Mikaela-Henrietta Feb 24, 2026
26b090a
LHJ-149: Refactor donation form save tests, Remove snapshot test (not…
Mikaela-Henrietta Feb 24, 2026
33856f2
LHJ-143: add alignment support to legend
Mikaela-Henrietta Mar 4, 2026
934ab1f
LHJ-103: add legend alignment and column selection
Mikaela-Henrietta Mar 4, 2026
170f86c
LHJ-103: add legend alignment support to donation providers and parag…
Mikaela-Henrietta Mar 4, 2026
f1d9ac2
LHJ-103: add legend alignment support to donation type block
Mikaela-Henrietta Mar 4, 2026
0b7a2a1
LHJ-149: add error color from attributes, remove adding paragrapgh fr…
Mikaela-Henrietta Mar 4, 2026
f1807da
LHJ-149: lint fix
Mikaela-Henrietta Mar 4, 2026
583a452
LHJ-149: harden render escaping, validate legendAlign, fix double do_…
Mikaela-Henrietta Mar 11, 2026
2e3fbf1
Merge branch 'main' into LHJ-149-lahjoitin-blocks-to-dynamic
Mikaela-Henrietta Mar 11, 2026
c56620f
Merge branch 'main' into LHJ-149-lahjoitin-blocks-to-dynamic
Mikaela-Henrietta Mar 11, 2026
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
2 changes: 1 addition & 1 deletion fame-lahjoitukset.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Plugin Name: Lahjoitin
* Description: Wordpress plugin for Fame lahjoitukset system.
* Version: 1.1.1
* Version: 1.1.2
* Requires at least: 6.7
* Requires PHP: 8.3
* Author: Fame Helsinki
Expand Down
148 changes: 31 additions & 117 deletions src/Blocks/contact-form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,130 +9,44 @@
"parent": ["famehelsinki/donation-form"],
"example": {},
"attributes": {
"showLegend": {
"type": "boolean",
"default": true
},
"legend": {
"type": "string",
"source": "text",
"selector": "legend.fame-form__legend",
"default": "Contacts"
},
"contact": {
"type": "boolean",
"source": "attribute",
"selector": ".fame-form__group--required:has(input[name=\"email\"])",
"attribute": "class",
"default": false
},
"showAddress": {
"type": "boolean",
"source": "attribute",
"selector": "input[name=\"address\"]",
"attribute": "name",
"default": true
},
"showPhone": {
"type": "boolean",
"source": "attribute",
"selector": "input[name=\"phone\"]",
"attribute": "name",
"default": true
},
"first_name_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-first_name\"]",
"default": "First name"
},
"last_name_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-last_name\"]",
"default": "Last name"
},
"name_help": {
"type": "string",
"source": "html",
"selector": "#contact-name-help",
"default": ""
},
"email_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-email\"]",
"default": "Email"
},
"email_help": {
"type": "string",
"source": "html",
"selector": "#contact-email-help",
"default": ""
},
"address_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-address\"]",
"default": "Address"
},
"address_help": {
"type": "string",
"source": "html",
"selector": "#contact-address-help",
"default": ""
},
"city_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-city\"]",
"default": "City"
},
"city_postal_code_help": {
"type": "string",
"source": "html",
"selector": "#contact-city_postal_code-help",
"default": "City"
},
"postal_code_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-postal_code\"]",
"default": "Postal code"
},
"postal_code_help": {
"type": "string",
"source": "html",
"selector": "#contact-postal_code-help",
"default": "Postal code"
},
"phone_label": {
"type": "string",
"source": "html",
"selector": ".fame-form__label[for=\"contact-phone\"]",
"default": "Phone"
},
"phone_help": {
"type": "string",
"source": "html",
"selector": "#contact-phone-help",
"default": ""
}
"showLegend": { "type": "boolean", "default": true },
"legend": { "type": "string", "default": "Contacts" },

"contact": { "type": "boolean", "default": false },
"showAddress": { "type": "boolean", "default": true },
"showPhone": { "type": "boolean", "default": true },

"first_name_label": { "type": "string", "default": "First name" },
"last_name_label": { "type": "string", "default": "Last name" },
"name_help": { "type": "string", "default": "" },

"email_label": { "type": "string", "default": "Email" },
"email_help": { "type": "string", "default": "" },

"address_label": { "type": "string", "default": "Address" },
"address_help": { "type": "string", "default": "" },

"city_label": { "type": "string", "default": "City" },
"city_postal_code_help": { "type": "string", "default": "City" },

"postal_code_label": { "type": "string", "default": "Postal code" },
"postal_code_help": { "type": "string", "default": "Postal code" },

"phone_label": { "type": "string", "default": "Phone" },
"phone_help": { "type": "string", "default": "" },

"show": { "type": "boolean", "default": true },
"legendAlign": { "type": "string", "default": "left" }
},
"supports": {
"multiple": false,
"color": {
"background": false,
"text": true
},
"color": { "background": false, "text": true },
"html": false,
"typography": {
"fontSize": true
}
"typography": { "fontSize": true }
},
"icon": "id",
"textdomain": "fame_lahjoitukset",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
"render": "file:./render.php"
}
4 changes: 0 additions & 4 deletions src/Blocks/contact-form/edit.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.contact-form .fame-form__fake-input {
border: var(--form-element-border);
padding: var(--form-element-padding);

/* This is pretty ugly, should set line height
* somewhere, so this should be 1em * line-height */
height: 1.7em;
}

Expand All @@ -14,4 +11,3 @@
.fame-form__help {
font-size: 14px !important;
}

Loading
Loading