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;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/appWishesPlugin
|
||||
*
|
||||
*
|
||||
* @package appWishesPlugin
|
||||
* @author Bartosz Alejski <whiteface@whiteface.pl>
|
||||
*/
|
||||
class appWishesFrontendComponents extends sfComponents
|
||||
{
|
||||
|
||||
public function executeShowWishesBig()
|
||||
{
|
||||
$this->smarty = new stSmarty('appWishesFrontend');
|
||||
$config = stConfig::getInstance($this->getContext(), 'appWishesBigConfigBackend');
|
||||
$this->config = $config->load();
|
||||
|
||||
$theme = ThemePeer::doSelectActive();
|
||||
$this->version = $theme->getVersion();
|
||||
|
||||
$configBanner['wishes_big_label'] = $config->get('wishes_big_label', null, true);
|
||||
$configBanner['wishes_big_description'] = $config->get('wishes_big_description', null, true);
|
||||
|
||||
$this->configBanner = $configBanner;
|
||||
}
|
||||
|
||||
public function executeShowWishesResponsive()
|
||||
{
|
||||
$this->smarty = new stSmarty('appWishesFrontend');
|
||||
$config = stConfig::getInstance($this->getContext(), 'appWishesResponsiveConfigBackend');
|
||||
$this->config = $config->load();
|
||||
|
||||
$configBanner['wishes_responsive_description'] = $config->get('wishes_responsive_description', null, true);
|
||||
|
||||
$this->configBanner = $configBanner;
|
||||
}
|
||||
|
||||
public function executeShowWishesSmall()
|
||||
{
|
||||
$this->smarty = new stSmarty('appWishesFrontend');
|
||||
$config = stConfig::getInstance($this->getContext(), 'appWishesSmallConfigBackend');
|
||||
|
||||
$this->config = $config->load();
|
||||
|
||||
$theme = ThemePeer::doSelectActive();
|
||||
$this->version = $theme->getVersion();
|
||||
|
||||
$configBanner['wishes_small_label'] = $config->get('wishes_small_label', null, true);
|
||||
$configBanner['wishes_small_description'] = $config->get('wishes_small_description', null, true);
|
||||
|
||||
$this->configBanner = $configBanner;
|
||||
}
|
||||
|
||||
public function executeShowSnow()
|
||||
{
|
||||
$this->smarty = new stSmarty('appWishesFrontend');
|
||||
|
||||
$config = stConfig::getInstance($this->getContext(), 'appWishesSiteConfigBackend');
|
||||
|
||||
$this->config = $config->load();
|
||||
|
||||
$this->uri = $_SERVER['REQUEST_URI'];
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user