|
| $_controller = vRequest::getCmd('view', vRequest::getCmd('controller', 'virtuemart')) |
|
| $task = vRequest::getCmd('task','') |
|
if(VmConfig::get('shop_is_offline', 0) and $task!='feed'and $_controller!='virtuemart') | else |
|
| $trigger = 'onVmSiteController' |
|
| $session = JFactory::getSession() |
|
| $manage = vRequest::getCmd('manage',$session->get('manage', false,'vm')) |
|
| $feViews = array('askquestion','cart','invoice','pdf','pluginresponse','productdetails','recommend','vendor','vmplg') |
|
| $app = JFactory::getApplication() |
|
if($manage and $task!='feed'and!in_array($_controller, $feViews)) elseif($_controller) if($_controller=='pluginresponse') | $_class = 'VirtuemartController'.ucfirst($_controller) |
|
| $dispatcher = JDispatcher::getInstance() |
|
| $rets = $dispatcher->trigger($trigger, array($_controller)) |
|