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]); }
public function __init() { parent::__init(); // TODO: Change the autogenerated stub $this->content = ''; if (!empty($this->localizedData)) { $this->name = defPr($this->localizedData['name'], ''); $this->content = defPr($this->localizedData['content'], ''); } }
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); }
protected function __init() { parent::__init(); $this->category_id = defPr($this->getProperty('category_id'), ''); }