1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<?php
class ShopOfflineController extends HttpViewController
{
public function actionDefault()
{
$headerControl = MainFactory::create(HeaderContentControl::class);
$headerControl->set_data('GET', $_GET);
$headerControl->set_('c_path', $GLOBALS['cPath']);
$headerControl->set_('coo_product', $GLOBALS['product']);
$headerControl->proceed();
$bottomControl = MainFactory::create(BottomContentControl::class);
$bottomControl->set_('c_path', $GLOBALS['cPath']);
$bottomControl->proceed();
$responseBody = $this->_render('standalone/shop_offline.html', [
'offlineMessage' => gm_get_conf('GM_SHOP_OFFLINE_MSG'),
'headData' => $headerControl->get_response(),
'bottomData' => $bottomControl->get_response()
]);
return MainFactory::create(HttpControllerResponse::class, $responseBody);
}
}