first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package appOrderAgainPlugin
|
||||
*/
|
||||
class appOrderAgainPluginListener
|
||||
{
|
||||
public static function smartySlotAppend(sfEvent $event, array $components)
|
||||
{
|
||||
if (!stConfig::getInstance('appOrderAgainBackend')->get('enabled'))
|
||||
{
|
||||
return $components;
|
||||
}
|
||||
|
||||
if ($event['slot'] === 'order_list_table_head')
|
||||
{
|
||||
$components[] = $event->getSubject()->createComponent('appOrderAgainFrontend', 'orderListTableHead');
|
||||
}
|
||||
|
||||
if ($event['slot'] == 'order_list_table_body_row')
|
||||
{
|
||||
$components[] = $event->getSubject()->createComponent('appOrderAgainFrontend', 'orderListBodyRow');
|
||||
}
|
||||
|
||||
if ($event['slot'] == 'order_show_footer')
|
||||
{
|
||||
$components[] = $event->getSubject()->createComponent('appOrderAgainFrontend', 'orderShowFooter');
|
||||
}
|
||||
|
||||
return $components;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user