*/ /** * Klasa stAddThisFrontendComponents * * @package stAddThisPlugin * @subpackage actions */ class stAddThisFrontendComponents extends sfComponents { public function executeShareButtons() { $this->config = stConfig::getInstance(sfContext::getInstance(), 'stAddThisBackend'); $addthis_config = $this->config->load(); $this->user = $addthis_config['user']; if (!$this->user || ($this->getContext()->getController()->getTheme()->getVersion() >= 7)) { return sfView::NONE; } if (isset($addthis_config[$this->view]) && empty($addthis_config[$this->view])) return sfView::NONE; $this->smarty = new stSmarty('stAddThisFrontend'); $lang = $this->getUser()->getCulture(); $lang = explode("_",$this->getUser()->getCulture()); $this->lang = $lang[0]; } }