/** * Register Meta tags * * @return array */ public function getNamespaces() { $list = parent::getNamespaces(); $list['og'] = 'http://ogp.me/ns#'; $list['fb'] = 'http://www.facebook.com/2008/fbml'; return $list; }
/** * Get container attributes * * @return array */ protected function getContainerAttributes() { $list = parent::getContainerAttributes(); if ($this->getProduct()->mustHaveVariants() && 0 < \XLite\Core\Database::getRepo('XLite\\Module\\XC\\ProductVariants\\Model\\Image\\ProductVariant\\Image')->countByProduct($this->getProduct())) { $list['data-variants-has-images'] = true; } return $list; }