-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5970f5
commit 1883bec
Showing
32 changed files
with
14,302 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
|
||
- Tested up to: WordPress 6.3.2 | ||
|
||
## v1.2.0 | ||
|
||
### Feat | ||
|
||
- Personal data blocks | ||
|
||
## v1.1 | ||
|
||
### Feat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "prefill-gravity-forms/personal-data-table", | ||
"version": "0.1.0", | ||
"title": "Profielpagina", | ||
"category": "embed", | ||
"icon": "list-view", | ||
"description": "Maak een profielpagina met persoonsgegevens van de ingelogde gebruiker.", | ||
"example": {}, | ||
"supports": { | ||
"html": false | ||
}, | ||
"textdomain": "prefill-gravity-forms", | ||
"editorScript": "file:./index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks'), 'version' => '33a4b45f8eec02c31038'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://schemas.wp.org/trunk/block.json", | ||
"apiVersion": 3, | ||
"name": "prefill-gravity-forms/personal-data-row", | ||
"version": "0.1.0", | ||
"title": "Persoonsgegevens", | ||
"category": "embed", | ||
"icon": "id", | ||
"description": "Toon persoonsgegevens van de ingelogde gebruiker.", | ||
"example": {}, | ||
"supports": { | ||
"html": false | ||
}, | ||
"attributes": { | ||
"selectedOption": { | ||
"type": "object", | ||
"default": { | ||
"value": "", | ||
"label": "" | ||
} | ||
}, | ||
"isChildOfTable": { | ||
"type": "boolean", | ||
"default": false | ||
}, | ||
"htmlElement": { | ||
"type": "string", | ||
"default": "p" | ||
} | ||
}, | ||
"textdomain": "prefill-gravity-forms", | ||
"editorScript": "file:./index.js", | ||
"render": "file:./render.php" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '010cb8fb1bb4a49a86fa'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
use OWC\PrefillGravityForms\Services\PersonalDataService; | ||
|
||
if ($attributes['isChildOfTable']) : ?> | ||
<tr> | ||
<th><?php echo $attributes['selectedOption']['label'] ?></th> | ||
<td><?php echo (new PersonalDataService())->get($attributes['selectedOption']['value'])?></td> | ||
</tr> | ||
<?php else : | ||
echo sprintf( | ||
"<%s>%s</%s>", | ||
$attributes['htmlElement'] ?? 'p', | ||
(new PersonalDataService())->get($attributes['selectedOption']['value']), | ||
$attributes['htmlElement'] ?? 'p' | ||
); | ||
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.