| | |
| | | protected function checkMethods(?string $content, array $block, ?WP_Block $parent = null, bool $isPrerender = false):?string |
| | | { |
| | | $blockName = $this->sanitizeBlockName($block); |
| | | |
| | | if (str_starts_with($blockName, 'woocommerce')) { |
| | | return $content; |
| | | } |
| | |
| | | ), jvbSearch($placeholder, uniqid(), $label, $buttonText, $isInside, $hideInput)); |
| | | } |
| | | //core_shortcode |
| | | public function prerender_core_shortcode(array $block, ?string $content, ?WP_Block $parent):?string |
| | | { |
| | | return do_shortcode($block['innerHTML']??''); |
| | | } |
| | | public function prerender_core_social_link(array $block, ?string $content, ?WP_Block $parent):?string |
| | | { |
| | | // jvbDump($block, 'social link'); |
| | |
| | | } |
| | | $content = ''; |
| | | foreach ($block['innerBlocks'] as $b) { |
| | | |
| | | $rendered = $parent |
| | | ? $this->checkMethods(null, $b, $parent, true) |
| | | : render_block($b); |