コード例 #1
0
ファイル: seo.php プロジェクト: ndumonteil/df56
 private static function _compute_villes_footer_links_html()
 {
     $sp = Routing::get_request_sub_route_key();
     $villes_o = new Villes();
     $ville_keys = $villes_o->get_ville_keys();
     $villex = $ville_linkx = [];
     if (!isset($sp)) {
         foreach ($ville_keys as $key) {
             if ($villes_o->has_specific_template($key)) {
                 $villex[$key] = $villes_o->get_label($key);
             }
         }
     } else {
         $villes = $ville_keys;
         $GLOBALS['debug'][] = ['villes' => $villes];
         foreach ($ville_keys as $key) {
             array_shift($villes);
             if ($key == $sp) {
                 break;
             }
         }
         $GLOBALS['debug'][] = ['villes' => $villes];
         $villes2 = array_slice($villes, 0, 5);
         $GLOBALS['debug'][] = ['villes2' => $villes2];
         $reste = 5 - count($villes2);
         for ($i = 0; $i < $reste; $i++) {
             $villes2[] = $ville_keys[$i];
         }
         $GLOBALS['debug'][] = ['villes2' => $villes2];
         foreach ($villes2 as $key) {
             $villex[$key] = $villes_o->get_label($key);
         }
     }
     $complements = ['Réparation volet roulant ', 'Dépannage volet roulant ', 'Motorisation volet ', 'Isolation fenêtre porte ', 'Changement double-vitrage '];
     $i = 0;
     foreach ($villex as $key => $label) {
         $ville_linkx[] = ['label' => $complements[$i] . $label, 'url' => '/ville/' . $key];
         $i++;
     }
     return $ville_linkx;
 }
コード例 #2
0
ファイル: gmap.tmpl.php プロジェクト: ndumonteil/df56
<?php

namespace DF56;

$ville_o = new Villes();
$zonex = [1 => ['title' => 'Lorient et son agglomération'], 2 => ['title' => 'Le Faouët, Pontivy, Auray'], 3 => ['title' => 'Les autres communes du MORBIHAN']];
?>
    <div class="col-xs-12">
        <div class="row">
            <div class="col-lg-6 gmap-content">
                <h2>DEPAN'FERMETURES 56 intervient partout dans le Morbihan</h2>
                <div class="row gmap-img">
                    <img src="/assets/img/map.png" style="width:100%" class="img-responsive" />
                </div>
                <div class="row bottom-gmap">
                    <div class="col-xs-12 bg-white color-bleu">
                        <div class="h1 no-bottom">Votre prestation <span class="color-rouge">à partir de 74€ TTC</span></div>
                        <div class="padding-bottom-20">comprenant le déplacement + 1/2 heure de main d'oeuvre + la TVA à 10%</div>
                    </div>
                </div>
            </div>
            <div class="col-lg-6 gmap-polygon-infos-container">
                <div class="row">
<?php 
foreach ($zonex as $zone_num => $attrx) {
    ?>
                    <div class="col-lg-4">
                        <div class="gmap-polygon-infos-content">
                            <div class="row">
                                <div class="col-xs-12 text-center">
                                    <span class="h3 titre-zone titre-zone-<?php 
コード例 #3
0
ファイル: ville.php プロジェクト: ndumonteil/df56
<?php

namespace DF56;

require_once CLASS_PATH . 'villes.php';
$ville = Routing::get_request_sub_route_key();
$villes_o = new Villes();
$villex = $villes_o->get_villex($ville);
?>
<div class="container">
    <div class="row">
        <div class="col-xs-12">
<?php 
include $villes_o->get_template($ville);
?>
        </div>
    </div>
</div><?php