Example #1
0
 public function Render()
 {
     if (SMEnvironment::GetQueryValue("SMShopEditProducts") !== null) {
         if (SMAuthentication::Authorized() === false) {
             SMExtensionManager::ExecuteExtension(SMExtensionManager::GetDefaultExtension());
         }
         $frm = new SMShopFrmShop($this->context);
         return $frm->Render();
     }
     if (SMEnvironment::GetQueryValue("SMShopBasket") !== null) {
         $frm = new SMShopFrmBasket($this->context);
         return $frm->Render();
     } else {
         $frm = new SMShopFrmProducts($this->context);
         return $frm->Render();
     }
 }