Files
2025-03-12 17:06:23 +01:00

65 lines
2.1 KiB
PHP

<?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'];
}
}