first commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/appWishesPlugin
|
||||
*
|
||||
*
|
||||
* @package appWishesPlugin
|
||||
* @author Bartosz Alejski <whiteface@whiteface.pl>
|
||||
*/
|
||||
class appWishesFrontendActions extends sfActions
|
||||
{
|
||||
public function executeShowWishesSite()
|
||||
{
|
||||
if(stTheme::is_responsive()){
|
||||
$this->redirect('/');
|
||||
}
|
||||
|
||||
$this->smarty = new stSmarty($this->getModuleName());
|
||||
|
||||
$config = stConfig::getInstance($this->getContext(), 'appWishesSiteConfigBackend');
|
||||
|
||||
$this->config = $config->load();
|
||||
|
||||
$theme = ThemePeer::doSelectActive();
|
||||
$this->version = $theme->getVersion();
|
||||
|
||||
$configBig = stConfig::getInstance($this->getContext(), 'appWishesBigConfigBackend');
|
||||
$this->configBig = $configBig->load();
|
||||
|
||||
|
||||
$configBanner['wishes_site_label'] = $config->get('wishes_site_label', null, true);
|
||||
$configBanner['wishes_site_description'] = $config->get('wishes_site_description', null, true);
|
||||
|
||||
$this->configBanner = $configBanner;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user