Skip to content

Commit

Permalink
Merge pull request #41 from infinum/fix/misc
Browse files Browse the repository at this point in the history
Misc minor fixes
  • Loading branch information
piqusy authored Sep 6, 2024
2 parents c2b4d83 + f8fb412 commit 2b3b1c1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/init/src/Blocks/components/video/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"default": "metadata"
},
"videoPosterId": {
"type": "string"
"type": "number"
},
"videoPosterUrl": {
"type": "string"
Expand Down
2 changes: 0 additions & 2 deletions blocks/init/src/Blocks/components/video/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
}

$videoMimeType = Helpers::checkAttr('videoMimeType', $attributes, $manifest);
$videoPosterId = Helpers::checkAttr('videoPosterId', $attributes, $manifest);
$videoPosterUrl = Helpers::checkAttr('videoPosterUrl', $attributes, $manifest);
$videoLoop = Helpers::checkAttr('videoLoop', $attributes, $manifest);
$videoAutoplay = Helpers::checkAttr('videoAutoplay', $attributes, $manifest);
Expand All @@ -47,7 +46,6 @@
class="<?php echo esc_attr(Helpers::getTwPart('video', $manifest)); ?>"
<?php echo esc_attr($additionalAttributes); ?>
preload="<?php echo esc_attr($videoPreload); ?>"
poster="<?php echo esc_attr($videoPosterUrl); ?>"
<?php if ($videoPosterUrl) { ?>
poster="<?php echo esc_attr($videoPosterUrl); ?>"
<?php } ?>
Expand Down
2 changes: 1 addition & 1 deletion blocks/init/src/Blocks/custom/site-footer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"type": "string"
},
"siteFooterLogoId": {
"type": "string"
"type": "number"
},
"siteFooterCopyright": {
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "string"
},
"siteNavigationLogoId": {
"type": "string"
"type": "number"
},
"wrapperUse": {
"type": "boolean",
Expand Down

0 comments on commit 2b3b1c1

Please sign in to comment.