/home
/deploy
/EHungry-3-vlad
/Web
/checkout
/cart.php
<?=generateCSRF('checkout/cart')?>
<input type="hidden" name="is_checkout" value="<?=$props['is_checkout'] ? 1 : 0?>" />
<?=static::checkoutTotalField([], $cart)?>
<? // Used by legacy code (custom.js, view4.0/customer/category.php) - drop with `ACCOUNT_USE_NEW_CART`. ?>
<input type="hidden" id="hid-loggedin" value="<?=$customer && $customer->exists ? '1' : '0'?>" />
<? // Read by `updatePaymentChoices` to hide payment options when a coupon fully covers the total or the order is below min-online-payment. ?>
<input type="hidden" id="hid-cart-total" value="<?=$cart->getTotalInDollars()?>" />
<input type="hidden" id="hid-min-amount-condition" value="<?=$min_amount_condition ? 1 : ''?>" />
<? $cart_close_button = $props['is_checkout']
? false
: \EDS\Button([
'class' => 'd-lg-none ms-auto',
'variant' => 'outline-secondary',
'shape' => 'circle',
'size' => 'large',
'onclick' => "app.event.emit('hide_cart')",
'aria-label' => 'Close cart',
], \EDS\Icon(['icon' => 'close', 'variant' => 'regular']; ?>
<?=\EDS\Cart::header([
'id' => 'cart-heading',
'tabindex' => '-1',
'data-event-on:cart_shown' => 'this.focus()',
'count' => $number_of_cart_items,
'close' => $cart_close_button,
'expandable' => $props['is_checkout'],
'expanded' => $props['items_expanded'],
])?>
<? include(CORE_PATH. 'templates4.0/customer/change_location/cart.php'); ?>
<? if ($closed_msg) { ?>
<?=\EDS\Alert(
['variant' => 'danger', 'width' => 'full', 'class' => 'mb-0'],
is_string($closed_msg) ? $closed_msg : 'Online ordering is not currently available.'
)?>
<? } else { ?>
<? $back_to_menu_url = null; ?>
Arguments
"syntax error, unexpected ';', expecting ',' or ')'"
/home
/deploy
/EHungry-3-vlad
/Web
/view4.0
/customer
/menu.php
<? } else { ?>
<div class="promo_div">
<? }
if (isset($_REQUEST['_TEMPLATE_SETTINGS']['advertisement_text']) && $_REQUEST['_TEMPLATE_SETTINGS']['advertisement_text']->getValue() != "") { ?>
<span class="over"><?=$_REQUEST['_TEMPLATE_SETTINGS']['advertisement_text']->getValue()?></span>
<? } ?>
<img src="<?=$_REQUEST['_TEMPLATE_SETTINGS']['advertisement_image']->getUrl()?>" alt="<?= is_object($restaurant) ? $restaurant->display_name : 'Restaurant'?>" />
<? if (isset($_REQUEST['_TEMPLATE_SETTINGS']['advertisement_link']) && $_REQUEST['_TEMPLATE_SETTINGS']['advertisement_link']->getValue() != "") { ?>
</a>
<? } else { ?>
</div>
<? } ?>
</div>
</div>
<? } ?>
</div>
</div>
</main>
<? include(CORE_PATH. 'templates4.0/customer/cart.php'); ?>
/home
/deploy
/EHungry-3-vlad
/Web
/view4.0
/customer
/ordering3.php
<?
switch ($_REQUEST['ordering_level']) {
case OrderingLevel::NONE:
App::debugbarTime($timerLevel = 'ordering3: locationlist');
include(CORE_PATH . 'templates4.0/customer/locationlist.php');
break;
case OrderingLevel::RESTAURANT:
case OrderingLevel::MENU:
App::debugbarTime($timerLevel = 'ordering3: menu');
include(CORE_PATH . 'view4.0/customer/menu.php');
break;
case OrderingLevel::CATEGORY:
App::debugbarTime($timerLevel = 'ordering3: category');
include(CORE_PATH . 'view4.0/customer/category.php');
break;
case OrderingLevel::ITEM:
case OrderingLevel::PRICE:
App::debugbarTime($timerLevel = 'ordering3: menuitem');
include(CORE_PATH . 'view4.0/customer/category.php');
break;
}
if (isset($timerLevel)) {
App::debugbarTime($timerLevel);
}
Arguments
"/home/deploy/EHungry-3-vlad/Web/view4.0/customer/menu.php"
/home
/deploy
/EHungry-3-vlad
/Web
/controllers
/customer.php
if (!in_array($_REQUEST['form'], ['checkout', 'nosuchpage', 'validatecallback', 'viewdeliveryzone'])) {
//TODO: probably need to add one more form here that is called ajax, callback seems to reset when it shouldnt
unset($_SESSION['validation_data']);
}
$locs = $account->getActiveRestaurants('position');
$tab = MainNavigationTab::getAllForAccount($account->getId());
include_once(CORE_PATH.'lib/helpers/customer3.0.php');
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('header');
include_once(getLayoutPartPath('header'));
App::debugbarTime('header');
}
App::debugbarTime("view '{$_REQUEST['form']}'");
$path = CORE_PATH.'view' . ($_REQUEST['_VERSION'] == 4 ? 4 : 3) . '.0/customer/'.$_REQUEST['form'].'.php';
if (is_readable($path)) {
include_once($path);
}
App::debugbarTime("view '{$_REQUEST['form']}'");
if (!in_array($_REQUEST['form'], $viewContentOnly)) {
App::debugbarTime('footer');
include_once(getLayoutPartPath('footer'));
App::debugbarTime('footer');
}
function getLayoutPartPath($part) {
if (isset($_REQUEST['_CORDOVA_APP']) && $_REQUEST['_VERSION'] != 4) {
$cart = Cart::getCurrent();
//FIXME: it's technically possible to end up with $template = null
if (!$_REQUEST['contentonly']) {
$template = !isset($_REQUEST["altdoc"])? "app/$part" : "app/alt$part";
}
} else {
$template = !isset($_REQUEST["altdoc"])? "customer/$part" : "customer/alt$part";
}
Arguments
"/home/deploy/EHungry-3-vlad/Web/view4.0/customer/ordering3.php"
/home
/deploy
/EHungry-3-vlad
/Web
/index.php
App::startTime();
ErrorHandlers::register();
// Global.php is the core setup file for the application
App::debugbarTime('Global.php');
require(dirname(__DIR__) . '/PHP/Global.php');
App::debugbarTime('Global.php');
/** @var string $controller The main controller - defined at /PHP/Global.php */
App::debugbarTime('Sentry - controller');
ErrorHandlers::sentryInit($controller); //doesn't always do much - not every controller has a Sentry project
App::debugbarTime('Sentry - controller');
App::debugbarTime("controller: $controller");
apache_note('AppController', $controller);
if (file_exists(CORE_PATH."lib/helpers/$controller.php")) {
require CORE_PATH."lib/helpers/$controller.php";
}
require CORE_PATH."controllers/$controller.php";
App::debugbarTime("controller: $controller");
Arguments
"/home/deploy/EHungry-3-vlad/Web/controllers/customer.php"