OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxcmp_shop.php
Go to the documentation of this file.
1 <?php
2 
8 class oxcmp_shop extends oxView
9 {
14  protected $_blIsComponent = true;
15 
21  public function render()
22  {
24 
25  $myConfig = $this->getConfig();
26 
27  // is shop active?
28  $oShop = $myConfig->getActiveShop();
29  if ( !$oShop->oxshops__oxactive->value && 'oxstart' != $myConfig->getActiveView()->getClassName() && !$this->isAdmin() ) {
30  // redirect to offline if there is no active shop
31  oxRegistry::getUtils()->redirectOffline();
32  }
33 
34  return $oShop;
35  }
36 }