attributes = $attributes; $this->block = $block; } /** * Render the collection badges. * * @return void */ public function renderProductCollectionBadges() { $layout_attributes = array( 'count' => $this->attributes['count'] ?? 1, 'style' => array( 'spacing' => array( 'blockGap' => $this->attributes['style']['spacing']['blockGap'] ?? '3px', ), ), ); $this->block_html = ''; $this->block_html .= ''; $this->block_html .= ''; } /** * Render blocks. * * @return string */ public function doBlocks() { return do_blocks( $this->block_html ); } /** * Render the new product collection badges. * * @return string */ public function render() { $this->renderProductCollectionBadges(); return $this->doBlocks(); } }