| | |
| | | } |
| | | public function prerender(?string $content, array $block, ?WP_Block $parent = null):?string |
| | | { |
| | | $result = $this->checkMethods($content, $block, $parent, true); |
| | | return $result; |
| | | return $this->checkMethods($content, $block, $parent, true); |
| | | } |
| | | |
| | | public function render(string $content, array $block):string |
| | |
| | | } |
| | | if (array_key_exists('focalPoint', $attrs)) { |
| | | $attrs['isObjectPosition'] = true; |
| | | $style = $this->getFocalPointStyle($attrs['focalPoint'], $attrs); |
| | | $style = implode(';',$this->getFocalPointStyle($attrs['focalPoint'], $attrs)); |
| | | $style .= ';object-fit:none;'; |
| | | $imgLink = str_replace('<img', sprintf( |
| | | '<img style="%s"', |