first commit
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* SOTESHOP/appExtCodePlugin
|
||||
*
|
||||
*
|
||||
* @package appExtCodePlugin
|
||||
* @author Pawel Byszewski <pawel@apes-apps.com>
|
||||
*/
|
||||
|
||||
class appExtCodeFrontendComponents extends sfComponents
|
||||
{
|
||||
public function executeBeforeHead()
|
||||
{
|
||||
$config = stConfig::getInstance('appExtCodeBackend');
|
||||
|
||||
$this->code = $config->get('code', null, true);
|
||||
$on = $config->get('enable', null, true);
|
||||
|
||||
if ($on != 1 || $this->code == null)
|
||||
{
|
||||
return sfView::NONE;
|
||||
}
|
||||
|
||||
$this->smarty = new stSmarty('appExtCodeFrontend');
|
||||
|
||||
}
|
||||
|
||||
public function executeAfterBody()
|
||||
{
|
||||
|
||||
$config = stConfig::getInstance('appExtCodeBackend');
|
||||
|
||||
$this->code = $config->get('code2', null, true);
|
||||
$on = $config->get('enable2', null, true);
|
||||
|
||||
if ($on != 1 || $this->code == null)
|
||||
{
|
||||
return sfView::NONE;
|
||||
}
|
||||
|
||||
$this->smarty = new stSmarty('appExtCodeFrontend');
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function executeBeforeBody()
|
||||
{
|
||||
|
||||
$config = stConfig::getInstance('appExtCodeBackend');
|
||||
|
||||
$this->code = $config->get('code3', null, true);
|
||||
$on = $config->get('enable3', null, true);
|
||||
|
||||
if ($on != 1 || $this->code == null)
|
||||
{
|
||||
return sfView::NONE;
|
||||
}
|
||||
|
||||
$this->smarty = new stSmarty('appExtCodeFrontend');
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user