| Server IP : 188.114.96.3 / Your IP : 216.73.216.143 Web Server : Apache System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64 User : ( 3194769) PHP Version : 8.5.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /polana/admin/ |
Upload File : |
<?php
declare(strict_types=1);
require_once dirname(__DIR__).'/includes/tklm_menu_core.php';
require_admin_role();
header('X-Robots-Tag: noindex,nofollow');
header('Cache-Control: private,no-store');
$id=(int)($_GET['menu_id']??0);
try { [$menu,$cats]=tm_menu_rows($id); }catch(Throwable $e){http_response_code(404);exit('Nie znaleziono karty');}
?>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Menu EN preview | Moja Polana Smaków</title><style>body{margin:0;background:#f3f0e8;color:#192218;font-family:system-ui,sans-serif}main{max-width:800px;margin:0 auto;padding:20px 13px 60px}header{text-align:center;padding:34px 6px}.eyebrow{letter-spacing:.2em;font-size:11px;text-transform:uppercase;color:#715d41}h1{font-family:Georgia,serif;font-size:clamp(40px,8vw,66px);margin:12px 0}h2{font-family:Georgia,serif;font-size:clamp(25px,5vw,32px);margin:30px 0 18px;border-bottom:1px solid #cfc7b7;padding-bottom:12px}.item{display:flex;gap:15px;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e0dbd0;align-items:start}.name{font-weight:650}.desc{font-size:14px;color:#555;margin-top:5px}.price{white-space:nowrap;font-weight:bold}.toolbar{position:sticky;top:0;padding:12px;background:#1a2119;color:white;text-align:center;font-size:13px}.toolbar a{color:white} .notice{font-size:12px;color:#805a29}a{color:inherit}</style></head><body><div class="toolbar">Private preview · Not indexed · <a href="/admin/tklm-menu.php?menu_id=<?=$id?>">Edit menu</a></div><main><header><div class="eyebrow">Kraków · Polish restaurant</div><h1>Moja Polana Smaków</h1><p>English menu preview · <?=e((string)$menu['name'])?></p></header>
<?php foreach($cats as $cat): if(empty($cat['active']))continue; $items=array_filter($cat['items'],fn($i)=>!empty($i['active'])&&!empty($i['available']));if(!$items)continue;?><section><h2><?=e(trim((string)($cat['name_en']??''))?:$cat['name'])?></h2><?php foreach($items as $item):?><div class="item"><div><div class="name"><?=e(trim((string)($item['name_en']??''))?:$item['name'])?></div><?php $desc=trim((string)($item['description_en']??''))?:trim((string)($item['description']??'')); if($desc!==''):?><div class="desc"><?=e($desc)?></div><?php endif;?></div><div class="price"><?php if(!empty($item['price_text']))echo e($item['price_text']);elseif(isset($item['price']))echo e(number_format((float)$item['price'],2,',',' ')).' zł';?></div></div><?php endforeach;?></section><?php endforeach;?><p class="notice">This preview may contain Polish text where English translations have not been completed.</p></main></body></html>