29 lines
842 B
PHP
29 lines
842 B
PHP
<?php
|
|
/**
|
|
* SOTESHOP/appWishesPlugin
|
|
*
|
|
*
|
|
* @package appWishesPlugin
|
|
* @author Bartosz Alejski <whiteface@whiteface.pl>
|
|
*/
|
|
|
|
/**
|
|
* Enabling frontend and backend modules
|
|
*/
|
|
stPluginHelper::addEnableModule('appWishesFrontend', 'frontend');
|
|
stPluginHelper::addEnableModule('appWishesBackend', 'backend');
|
|
|
|
/**
|
|
* Adding nessesary Routing
|
|
*/
|
|
stPluginHelper::addRouting('appWishesPlugin', '/wishes/*', 'appWishesFrontend', 'showWishesSite', 'frontend');
|
|
stPluginHelper::addRouting('appWishesPlugin', '/wishes/*', 'appWishesBackend', 'responsiveConfig', 'backend');
|
|
|
|
|
|
/**
|
|
* Dodanie do konfiguracji
|
|
*/
|
|
stConfiguration::addModule('appWishesPlugin', 'group_2');
|
|
|
|
$dispatcher->connect('smarty.slot.append', array('appWishesListener', 'append'));
|
|
$dispatcher->connect('smarty.slot.prepend', array('appWishesListener', 'prepend')); |