/** * Used to show Social Media Settings Page * site_url/settings/socialmedia * Show Social-connect buttons * * @access public * @return void */ public function index() { $this->load->config('timezones'); CssJs::getInst()->c_js('settings/socialmedia', 'index')->c_js('settings/socialmedia', 'twitter')->add_js(array('masonry-docs.min.js', 'masonry.pkgd.min.js'))->add_css(array('//fonts.googleapis.com/css?family=Roboto'), 'external'); $type_tokens = Access_token::getGroupTokensArray($this->profile->id, array(), $this->getAAC()->planHasFeature('twitter_marketing_tools')); $this->template->set('type_tokens', $type_tokens); $this->template->set('has_twitter_marketing_tools', $this->getAAC()->planHasFeature('twitter_marketing_tools')); $this->template->render(); }