Exemplo n.º 1
0
 public function __construct($templateName, array $params = array())
 {
     if (self::$bdSocialShare_Helper_visitor !== null) {
         $params['visitor'] = self::$bdSocialShare_Helper_visitor;
     }
     $params['xenOptions'] = XenForo_Application::getOptions()->getOptions();
     parent::__construct(sprintf('__%s_%d_%d', $templateName, self::$bdSocialShare_Helper_styleId, self::$bdSocialShare_Helper_languageId), $params);
 }
Exemplo n.º 2
0
 public function __construct($templateName, array $params = array())
 {
     if (self::$bdApi_visitor !== null) {
         $params['visitor'] = self::$bdApi_visitor;
     }
     $languageId = 0;
     if (!empty($params['visitor']['language_id'])) {
         $languageId = $params['visitor']['language_id'];
     }
     if (empty($languageId)) {
         $languageId = XenForo_Application::getOptions()->get('defaultLanguageId');
     }
     $params['xenOptions'] = XenForo_Application::getOptions()->getOptions();
     parent::__construct(sprintf('__%s_%d', $templateName, $languageId), $params);
 }