$this->getTitle(), 'description' => $this->getDescription(), 'content' => $this->getDefaultTemplate(), ]); } /** * Returns the title of the template. * * @return string */ public function getTitle() { return _x('Single Product Modal', 'Template name', 'fluent-cart'); } /** * Returns the description of the template. * * @return string */ public function getDescription() { return __('Template for Single Product Modal.', 'fluent-cart'); } public function getDefaultTemplate() { ob_start(); ?>
[fluent_cart_product_header]
[self::SLUG]]); if (!empty($templates) && isset($templates[0]->content)) { $content = $templates[0]->content; return do_shortcode(do_blocks($content)); } return do_shortcode(do_blocks($this->getDefaultTemplate())); } }