getBBCode(); if (!empty($bbCode) and strlen($bbCode) > 10) { global $product; $attachment_ids = $product->get_gallery_image_ids(); if ($e == end($attachment_ids)) { $this->counts++; // if ($this->counts < 2) { // return $d; // } $html = (new JSV_360_Parser($this->plugin_name, $this->version))->parse($bbCode); $randomId = $this->generateId(); $thumbImage = plugins_url('/icon.png', __FILE__); $script = sprintf( ' ', $html, $randomId, $this->counts > 1 ); $text = sprintf( '
', $thumbImage ); return $d . $script . $text; } } return $d; } }