28 lines
654 B
PHP
28 lines
654 B
PHP
<?php
|
|
|
|
use KupShop\KupShopBundle\Util\Compat\SymfonyBridge;
|
|
|
|
if (!empty($_REQUEST['unsubscribe'])) {
|
|
SymfonyBridge::handleController('ContentBundle:Newsletter:unsubscribe');
|
|
}
|
|
|
|
if (getVal('subscribe')) {
|
|
SymfonyBridge::handleController('ContentBundle:Newsletter:subscribe');
|
|
}
|
|
|
|
if (getVal('generate')) {
|
|
SymfonyBridge::handleController('ContentBundle:Newsletter:generate');
|
|
}
|
|
|
|
if (getVal('generate') == null && getVal('subscribe') == null && !isset($_REQUEST['unsubscribe'])) {
|
|
SymfonyBridge::handleController('ContentBundle:Newsletter:other');
|
|
}
|
|
|
|
?>
|
|
|
|
<style type="text/css">
|
|
.webHidden {
|
|
display: none !important;
|
|
}
|
|
</style>
|