Exemplo n.º 1
0
 protected function __init()
 {
     parent::__init();
     // TODO: Change the autogenerated stub
     $this->facebookEnable = $this->getProperty('facebook_enable') == 1;
     $this->facebookAppId = defPr($this->getProperty('facebook_app_id'), config('services.facebook.client_id'));
     $this->facebookCommentEnable = $this->getProperty('facebook_comment_enable') == 1;
     $this->facebookCommentColorScheme = defPr($this->getProperty('facebook_comment_color_scheme'), 'light');
     $this->facebookCommentNumPosts = defPr($this->getProperty('facebook_comment_num_posts'), 10);
     $this->facebookCommentOrderBy = defPr($this->getProperty('facebook_comment_order_by'), 'social');
     $this->facebookCommentMobile = defPr($this->getProperty('facebook_comment_mobile'), 'auto');
     $this->facebookCommentWidth = defPr($this->getProperty('facebook_comment_width'), '100');
     $this->facebookCommentWidthUnit = defPr($this->getProperty('facebook_comment_width_unit'), '%');
     $this->facebookLikeEnable = $this->getProperty('facebook_like_enable') == 1;
     $this->facebookLikeLayout = defPr($this->getProperty('facebook_like_layout'), 'button_count');
     $this->facebookShareEnable = $this->getProperty('facebook_share_enable') == 1;
     $this->facebookShareLayout = defPr($this->getProperty('facebook_share_layout'), 'button_count');
     $this->facebookRecommendEnable = $this->getProperty('facebook_recommend_enable') == 1;
     $this->facebookRecommendLayout = defPr($this->getProperty('facebook_recommend_layout'), 'button_count');
     $this->facebookSendEnable = $this->getProperty('facebook_send_enable') == 1;
     $this->facebookSaveEnable = $this->getProperty('facebook_save_enable') == 1;
     $this->twitterEnable = $this->getProperty('twitter_enable') == 1;
     $this->twitterShareEnable = $this->getProperty('twitter_share_enable') == 1;
     $this->linkedInEnable = $this->getProperty('linkedin_enable') == 1;
     $this->linkedInShareEnable = $this->getProperty('linkedin_share_enable') == 1;
     $this->linkedInShareCountMode = defPr($this->getProperty('linkedin_share_count_mode'), 'horizontal');
     $this->googleEnable = $this->getProperty('google_enable') == 1;
     $this->googleShareEnable = $this->getProperty('google_share_enable') == 1;
     $this->googleShareButtonSize = defPr($this->getProperty('google_share_button_size'), 'medium');
     $this->googleShareButtonAnnotation = defPr($this->getProperty('google_share_button_annotation'), 'bubble');
     $this->googleShareButtonWidth = defPr($this->getProperty('google_share_button_width'), 300);
 }
Exemplo n.º 2
0
 protected function __init()
 {
     parent::__init();
     // TODO: Change the autogenerated stub
     $this->mainCurrencyCode = settings()->getCurrency();
     $this->exchangeRates = defPr($this->getProperty('exchange_rates'), ['USD' => 1, 'VND' => 22270]);
 }
Exemplo n.º 3
0
 protected function __init()
 {
     parent::__init();
     $this->cacheEnable = !empty($this->data['cache_enable']) && $this->data['cache_enable'] == 1;
     $this->gaEnable = !empty($this->data['ga_enable']) && $this->data['ga_enable'] == 1;
     $this->gaId = empty($this->data['ga_id']) ? 'UA-0000000-0' : $this->data['ga_id'];
     $this->gaAsync = !empty($this->data['ga_async']) && $this->data['ga_async'] == 1;
     $this->mixPanelEnable = !empty($this->data['mix_panel_enable']) && $this->data['mix_panel_enable'] == 1;
     $this->mixPanelToken = empty($this->data['mix_panel_token']) ? '' : $this->data['mix_panel_token'];
     if (!$this->gaEnable && !$this->mixPanelEnable) {
         $this->cacheEnable = false;
     }
 }