data = $data; } public function get_block() { $options = blocksy_akg('ct_options', $this->data, []); $options = array_merge( [ 'quote_text' => '', 'quote_author' => '', ], $options ); $innerContent = [ '
', '

', $options['quote_text'], '

', $options['quote_author'], '
', ]; $blocks = [ [ 'blockName' => 'core/pullquote', 'attrs' => [ 'value' => trim(strip_tags($options['quote_text'])), 'citation' => trim(strip_tags($options['quote_author'])), 'style' => [ 'border' => [ 'radius' => '7px', 'width' => '0px', 'style' => 'none' ], 'backgroundColor' => 'palette-color-1', 'textColor' => 'palette-color-8', ], ], 'innerBlocks' => [], 'innerHTML' => join('', $innerContent), 'innerContent' => $innerContent, 'firstLevelBlock' => true, ] ]; return serialize_blocks($blocks); } }