Skip to content
Snippets Groups Projects
Select Git revision
  • c3c34392f76f2d9719b5fbe6cac528412a03f923
  • main default protected
2 results

voice.js

Blame
  • shops.php 13.64 KiB
    <!DOCTYPE html>
    <html lang="fr">
    <head>
        <meta charset="UTF-8">
        <!-- Dépendances -->
        <?=Client::getDependencies()?>
        <title><?=getWebsiteSetting("websiteName")?> | Magasins</title>
        
        <!-- Embed -->
        <meta content="<?=getWebsiteSetting("websiteName")?> | Magasins" property="og:title" />
        <meta content="Liste des magasins créés par les joueurs en jeu." property="og:description" />
        <meta content="<?=getWebsiteSetting("websiteUrl")?>" property="og:url" />
        <meta content="<?=getWebsiteSetting("websiteUrl")?>data/images/logo/favicon-color.png" property="og:image" />
        <meta content="<?=getWebsiteSetting("mainColor")?>" data-react-helmet="true" name="theme-color" />
    
        <!-- Uniquement pour la vitrine -->
        <link rel="stylesheet" href="<?=getWebsiteSetting("websiteUrl")?>pages/assets/vendors/flickity/css/flickity.css" media="screen">
    
        <link rel="stylesheet" href="<?=getWebsiteSetting("websiteUrl")?>pages/assets/css/icons-minecraft-0.49.css">
        <link rel="stylesheet" href="<?=getWebsiteSetting("websiteUrl")?>pages/assets/css/minecraft-skinviewer.css">
        <link rel="stylesheet" href="<?=getWebsiteSetting("websiteUrl")?>pages/assets/css/bloc.css">
    </head>
    <body>
        <!-- Inclusion dynamique de la navbar -->
        <?=Client::getNavbar()?>
        <div id="navbarReplacement" style="z-index:-1;"></div>
        
        <!-- Contenu -->
        <div class="container mt-5">
            <div class="row">
                <div class="col-6 col-md-2 border-right shopsFilters">
                    <h3>Filtres</h3>
                    <form method="get" name="filterForm">
                        <div class="form-group">
                            <label>Trier par entité/bloc</label>
                            <select multiple class="form-control" name="blocs[]">
                                <option value="">Aucune</option>
                                <?php
                                $items = Shop::getAllProducts();
                                foreach($items as $item) {
                                    if(isset($_GET["blocs"]) && in_array($item->getId(), $_GET["blocs"])){
                                        $selected = "selected";
                                    }else{
                                        $selected = "";
                                    }
                                    echo '<option value="'.$item->getId().'" '.$selected.'><i class="icon-minecraft '.$item->getCss().'"></i> '.$item->getLabel().'</option>';
                                }
                                ?>
                            </select>
                        </div>
                        <div class="mc-button normal" onclick="document.forms['filterForm'].submit();">
                            <div class="title">Rejoindre</div>
                        </div>
                    </form>
                </div>
                <div class="col-md-10">
                    <h3>Liste des magasins</h3>
    
                    <div class="row">
                        <?php
                        $shops = Shop::getShops();
                        foreach($shops as $shop){
                            $representation = $shop['item']->getRepresentation();
                            if($representation["type"] == "block"){
                                $cardTop = ('<div class="object">
                                <div class="block grass">
                                    <div style="background: url(\''.getWebsiteSetting("websiteUrl").$representation["texture"][1].'\');"><!--top --></div>
                                    <div style="background: url(\''.getWebsiteSetting("websiteUrl").$representation["texture"][1].'\');"><!--bottom--></div>
                                    <div style="background: url(\''.getWebsiteSetting("websiteUrl").$representation["texture"][0].'\');"><!--left--></div>
                                    <div style="background: url(\''.getWebsiteSetting("websiteUrl").$representation["texture"][0].'\');"><!--right--></div>