first commit
This commit is contained in:
22
plugins/stPaczkomatyPlugin/config/config.php
Normal file
22
plugins/stPaczkomatyPlugin/config/config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
if (IS_PHP7)
|
||||
{
|
||||
stDeliveryTypeConfiguration::register('inpostp', stPaczkomatyPickupPointDeliveryType::class, 'InPost - Odbiór w punkcie', [
|
||||
'pickup_point' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
if (SF_APP == 'backend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stPaczkomatyBackend', 'backend');
|
||||
stPluginHelper::addRouting('stPaczkomatyPlugin', '/paczkomaty/:action/*', 'stPaczkomatyBackend', 'list', 'backend');
|
||||
stPluginHelper::addRouting('stPaczkomatyCreatePack', '/paczkomaty/create/*', 'stPaczkomatyBackend', 'create', 'backend');
|
||||
stConfiguration::addModule(['label' => 'InPost', 'route' => '@stPaczkomatyPlugin?action=config', 'icon' => 'stPaczkomatyPlugin'], 'deliveries');
|
||||
}
|
||||
elseif (SF_APP == 'frontend')
|
||||
{
|
||||
stPluginHelper::addEnableModule('stPaczkomatyFrontend', 'frontend');
|
||||
stPluginHelper::addRouting('stPaczkomatyPlugin', '/paczkomaty/:action/*', 'stPaczkomatyFrontend', 'index', 'frontend');
|
||||
stPluginHelper::addRouting('stPaczkomatyShowMap', '/paczkomaty/showMap/:deliveryId', 'stPaczkomatyFrontend', 'showMap', 'frontend');
|
||||
}
|
||||
Reference in New Issue
Block a user