/** * Check if social block enabled * @param \Swissup\Testimonials\Model\Data $testimonial * @return Boolean */ public function canShowSocial($testimonial) { return $testimonial->getFacebook() && $this->configHelper->isFacebookEnabled() || $testimonial->getTwitter() && $this->configHelper->isTwitterEnabled(); }