start

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
start [16/09/2026 07:31] – ajeanstart [14/10/2026 09:10] (Version actuelle) – ajean
Ligne 400: Ligne 400:
  
 /* ============================================================ /* ============================================================
-   COMPTEUR (remise a zero automatique chaque jour)+   COMPTEUR DE VISITES DU JOUR 
 +   Remise à zéro automatique à chaque changement de date
    ============================================================ */    ============================================================ */
  
Ligne 407: Ligne 408:
 if (defined('DOKU_INC')) { if (defined('DOKU_INC')) {
  
-    $chemin_compteur = DOKU_INC . 'data/meta/compteur_visites_jour.txt'; +    $chemin_compteur = 
-    $aujourdhui_str = date('Y-m-d');+        DOKU_INC . 
 +        'data/meta/compteur_visites_accueil_jour.txt';
  
-    $valeur = 0; +    $date_du_jour = date('Y-m-d');
-    $date_stockee = '';+
  
-    $handle = @fopen($chemin_compteur, 'c+');+    $handle = @fopen( 
 +        $chemin_compteur, 
 +        'c+' 
 +    );
  
     if ($handle) {     if ($handle) {
Ligne 419: Ligne 423:
         if (flock($handle, LOCK_EX)) {         if (flock($handle, LOCK_EX)) {
  
-            $contenu = fread($handle, 1024); +            rewind($handle); 
-            $contenu = trim($contenu);+            $contenu = stream_get_contents($handle);
  
-            if (strpos($contenu, '|') !== false) { +            $date_enregistree = ''; 
-                list($date_stockee, $valeur) = explode('|', $contenu, 2); +            $valeur = 0; 
-                $valeur = (int)$valeur;+ 
 +            if ($contenu !== false && trim($contenu) !== '') { 
 + 
 +                $donnees = json_decode( 
 +                    trim($contenu), 
 +                    true 
 +                ); 
 + 
 +                if (is_array($donnees)) { 
 + 
 +                    $date_enregistree = 
 +                        isset($donnees['date']) 
 +                            ? (string)$donnees['date'] 
 +                            : ''; 
 + 
 +                    $valeur = 
 +                        isset($donnees['visites']) 
 +                            ? (int)$donnees['visites'] 
 +                            : 0; 
 +                }
             }             }
  
-            if ($date_stockee !== $aujourdhui_str) {+            /* 
 +             * Nouveau jour : 
 +             * on repart de zéro avant de compter 
 +             * la visite actuelle. 
 +             */ 
 +            if ($date_enregistree !== $date_du_jour) {
                 $valeur = 0;                 $valeur = 0;
             }             }
  
             $valeur++;             $valeur++;
 +
 +            $donnees_a_enregistrer = [
 +                'date' => $date_du_jour,
 +                'visites' => $valeur
 +            ];
  
             ftruncate($handle, 0);             ftruncate($handle, 0);
             rewind($handle);             rewind($handle);
-            fwrite($handle, $aujourdhui_str . '|' . $valeur); 
-            fflush($handle); 
  
 +            fwrite(
 +                $handle,
 +                json_encode($donnees_a_enregistrer)
 +            );
 +
 +            fflush($handle);
             flock($handle, LOCK_UN);             flock($handle, LOCK_UN);
 +
 +            $compteur_visites =
 +                number_format(
 +                    $valeur,
 +                    0,
 +                    ',',
 +                    ' '
 +                );
         }         }
  
         fclose($handle);         fclose($handle);
- 
-        $compteur_visites = number_format($valeur, 0, ',', ' '); 
     }     }
 } }
Ligne 595: Ligne 638:
 <style> <style>
  
 +/* Masquer les outils DokuWiki : RSS / abonnement / impression */
 #dokuwiki__pagetools { #dokuwiki__pagetools {
 +    display: none !important;
 +}
 +
 +/* Masquer la recherche originale dans la Navbar du haut */
 +#dokuwiki__header #dw__search,
 +#dokuwiki__header form.search,
 +#dokuwiki__header .search,
 +#dokuwiki__header .navbar-form,
 +.navbar #dw__search,
 +.navbar form.search,
 +.navbar .navbar-form {
     display: none !important;     display: none !important;
 } }
Ligne 643: Ligne 698:
 } }
  
 +
 +/* ============================================================
 +   ANIMATIONS
 +   ============================================================ */
  
 @keyframes homeFadeUp { @keyframes homeFadeUp {
Ligne 668: Ligne 727:
 } }
  
 +
 +/* ============================================================
 +   GRETA NEWS DEFILANT
 +   ============================================================ */
  
 .home-news { .home-news {
Ligne 892: Ligne 955:
 } }
  
 +
 +/* ============================================================
 +   HERO
 +   ============================================================ */
  
 .home-hero { .home-hero {
Ligne 987: Ligne 1054:
 } }
  
 +
 +/* Raccourci Tableau des présences sous la date / heure */
 +.home-presences-hero-link {
 +    display: inline-flex;
 +    align-items: center;
 +    gap: 6px;
 +    margin-top: 8px;
 +    padding: 6px 11px;
 +    border: 1px solid #D6E7F4;
 +    border-radius: 9px;
 +    background: var(--blue-soft);
 +    color: var(--blue) !important;
 +    font-size: 11px;
 +    font-weight: 700;
 +    text-decoration: none !important;
 +    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
 +}
 +
 +.home-presences-hero-link:hover,
 +.home-presences-hero-link:focus {
 +    transform: translateY(-1px);
 +    background: var(--blue);
 +    border-color: var(--blue);
 +    color: #FFFFFF !important;
 +    text-decoration: none !important;
 +}
 +
 +/* ============================================================
 +   CARTES INFORMATIONS
 +   ============================================================ */
  
 .home-infobar { .home-infobar {
Ligne 1148: Ligne 1245:
 } }
  
 +
 +/* ============================================================
 +   CITATION
 +   ============================================================ */
  
 .home-citation { .home-citation {
Ligne 1282: Ligne 1383:
 } }
  
 +
 +/* ============================================================
 +   TITRES SECTIONS
 +   ============================================================ */
  
 .home-section-heading { .home-section-heading {
Ligne 1323: Ligne 1428:
 } }
  
 +
 +/* ============================================================
 +   CARTES PRINCIPALES
 +   ============================================================ */
  
 .home-cards { .home-cards {
Ligne 1499: Ligne 1608:
 } }
  
 +
 +/* ============================================================
 +   LIENS RAPIDES
 +   ============================================================ */
  
 .home-quicklinks { .home-quicklinks {
Ligne 1571: Ligne 1684:
 } }
  
 +
 +/* ============================================================
 +   FEEDBACK
 +   ============================================================ */
  
 .home-feedback { .home-feedback {
Ligne 1645: Ligne 1762:
 } }
  
 +
 +/* ============================================================
 +   RESEAUX
 +   ============================================================ */
  
 .home-social { .home-social {
Ligne 1704: Ligne 1825:
 } }
  
 +
 +
 +
 +/* ============================================================
 +   RECHERCHE SOUS GRETA NEWS
 +   ============================================================ */
 +
 +.home-search-row {
 +    display: flex;
 +    justify-content: flex-end;
 +    align-items: center;
 +
 +    margin: -8px 0 14px;
 +    padding: 0 4px;
 +}
 +
 +.home-search-form {
 +    display: flex !important;
 +    flex-direction: row !important;
 +    align-items: stretch !important;
 +
 +    width: 100%;
 +    max-width: 390px;
 +    height: 42px;
 +
 +    margin: 0 !important;
 +    padding: 0 !important;
 +
 +    background: #FFFFFF;
 +
 +    border: 1px solid #E3E8EF !important;
 +    border-radius: 11px;
 +
 +    overflow: hidden;
 +
 +    box-sizing: border-box;
 +
 +    box-shadow:
 +        0 4px 14px
 +        rgba(16,24,40,.07);
 +
 +    transition:
 +        border-color .18s ease,
 +        box-shadow .18s ease;
 +}
 +
 +.home-search-form:focus-within {
 +    border-color: #28689F !important;
 +
 +    box-shadow:
 +        0 0 0 3px
 +        rgba(40,104,159,.10),
 +        0 4px 14px
 +        rgba(16,24,40,.07);
 +}
 +
 +.home-search-input {
 +    flex: 1 1 auto !important;
 +
 +    width: auto !important;
 +    min-width: 0 !important;
 +    height: 40px !important;
 +
 +    margin: 0 !important;
 +    padding: 0 15px !important;
 +
 +    border: 0 !important;
 +    border-radius: 0 !important;
 +
 +    outline: 0 !important;
 +
 +    background: #FFFFFF !important;
 +
 +    color: #1D2939 !important;
 +
 +    font-family:
 +        -apple-system,
 +        BlinkMacSystemFont,
 +        "Segoe UI",
 +        Arial,
 +        sans-serif;
 +
 +    font-size: 13.5px !important;
 +    line-height: 40px !important;
 +
 +    box-sizing: border-box !important;
 +
 +    box-shadow: none !important;
 +}
 +
 +.home-search-input::placeholder {
 +    color: #98A2B3;
 +}
 +
 +.home-search-button {
 +    flex: 0 0 48px !important;
 +
 +    display: flex !important;
 +    align-items: center !important;
 +    justify-content: center !important;
 +
 +    width: 48px !important;
 +    min-width: 48px !important;
 +    height: 40px !important;
 +
 +    margin: 0 !important;
 +    padding: 0 !important;
 +
 +    border: 0 !important;
 +    border-radius: 0 !important;
 +
 +    background: #28689F !important;
 +    color: #FFFFFF !important;
 +
 +    box-sizing: border-box !important;
 +
 +    cursor: pointer;
 +}
 +
 +.home-search-button:hover,
 +.home-search-button:focus {
 +    background: #20567F !important;
 +}
 +
 +.home-search-button svg {
 +    display: block !important;
 +
 +    width: 18px !important;
 +    height: 18px !important;
 +
 +    margin: 0 !important;
 +
 +    fill: none !important;
 +    stroke: currentColor !important;
 +
 +    stroke-width: 2;
 +    stroke-linecap: round;
 +    stroke-linejoin: round;
 +}
 +
 +@media (max-width: 600px) {
 +
 +    .home-search-row {
 +        margin: -4px 0 12px;
 +    }
 +
 +    .home-search-form {
 +        max-width: 100%;
 +    }
 +}
 +
 +/* ============================================================
 +   RESPONSIVE
 +   ============================================================ */
  
 @media (max-width: 1000px) { @media (max-width: 1000px) {
Ligne 1812: Ligne 2087:
  
 /* ============================================================ /* ============================================================
-   GRETA NEWS DEFILANT (corrige : tout sur une seule ligne)+   BANDEAU ERASMUS DAYS
    ============================================================ */    ============================================================ */
  
-$newsletter_groupe = "<div class='home-news-group'><div class='home-news-item'><span class='home-news-emoji'>🎬</span><span class='home-news-badge'>GretaNews</span><strong>La newsletter {$newsletter_mois} {$newsletter_annee} est disponible</strong><span>Cliquez ici pour la decouvrir</span><span>&#9654;</span></div><span class='home-news-dot'></span><div class='home-news-item'><span class='home-news-emoji'>✨</span>Retrouvez les dernieres actualites du GRETA Nord Isere</div><span class='home-news-dot'></span></div>";+$erasmus_groupe = " 
 +<div class='home-news-group'> 
 +    <a class='home-news-item' href='https://www.erasmusdays.eu/' target='_blank' rel='noopener noreferrer' style='color:#fff;text-decoration:none;'> 
 +        <span class='home-news-emoji'>🇪🇺</span> 
 +        <span class='home-news-badge'>Erasmus Days</span> 
 +        <strong>Erasmus Days • du 12 au 17 octobre</strong> 
 +        <span>Découvrez les événements organisés partout en Europe 🌍</span> 
 +        <strong>👉 Cliquez ici</strong> 
 +    </a> 
 +    <span class='home-news-dot'></span> 
 +    <a class='home-news-item' href='https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=5a-At458nEqckiTaLbb9vkm-VdUzXk1AqgsFPBoCxuxUNjVXRVNRMkdJWVQ4UURRWVVKUENSMkNUUi4u' target='_blank' rel='noopener noreferrer' style='color:#fff;text-decoration:none;'> 
 +        <span class='home-news-emoji'>📝</span> 
 +        <span class='home-news-badge'>Questionnaire</span> 
 +        <strong>Participez au questionnaire GNI</strong> 
 +        <span>Donnez votre avis en quelques clics</span> 
 +        <strong>👉 Répondre au formulaire</strong> 
 +    </a> 
 +    <span class='home-news-dot'></span> 
 +</div>";
  
-echo "<a class='home-news home-anim' href='{$newsletter_url}' target='_blank' title='Ouvrir GretaNews {$newsletter_mois} {$newsletter_annee}'><div class='home-news-track'>{$newsletter_groupe}{$newsletter_groupe}</div></a>";+echo " 
 +<div class='home-news home-anim' aria-label='Actualités et liens utiles'> 
 +    <div class='home-news-track'> 
 +        {$erasmus_groupe} 
 +        {$erasmus_groupe} 
 +    </div> 
 +</div>"; 
 + 
 + 
 +/* ============================================================ 
 +   RECHERCHE DOKUWIKI SOUS GRETA NEWS 
 +   ============================================================ */ 
 + 
 +echo ' 
 + 
 +<div class="home-search-row home-anim"> 
 +    <form class="home-search-form" action="/doku.php" method="get" role="search"> 
 +        <input type="hidden" name="do" value="search"> 
 +        <input 
 +            class="home-search-input" 
 +            type="text" 
 +            name="q" 
 +            placeholder="Rechercher sur l\'extranet..." 
 +            autocomplete="off" 
 +            aria-label="Rechercher sur l\'extranet" 
 +        > 
 +        <button class="home-search-button" type="submit" title="Rechercher" aria-label="Rechercher"> 
 +            <svg viewBox="0 0 24 24" aria-hidden="true"> 
 +                <circle cx="11" cy="11" r="7"></circle> 
 +                <path d="M20 20l-4-4"></path> 
 +            </svg> 
 +        </button> 
 +    </form> 
 +</div>';
  
  
Ligne 1860: Ligne 2186:
         id="home-clock"         id="home-clock"
     ></div>     ></div>
 +
 +    <div>
 +        <a
 +            class="home-presences-hero-link"
 +            href="/doku.php?id=admin:presences_v_test"
 +            title="Ouvrir le tableau des présences"
 +        >
 +            📋 Tableau des présences
 +        </a>
 +    </div>
  
 </div>'; </div>';
Ligne 2182: Ligne 2518:
     echo "     echo "
  
-    +    <a
         class='home-card home-anim'         class='home-card home-anim'
         href='{$url}'         href='{$url}'
Ligne 2283: Ligne 2619:
     echo "     echo "
  
-    +    <a
         class='home-quicklink'         class='home-quicklink'
         href='{$url}'         href='{$url}'
Ligne 2345: Ligne 2681:
         Une remarque ou une idée d\'amélioration ?         Une remarque ou une idée d\'amélioration ?
  
-        +        <a
             href="https://survey.gretani.com/index.php/892218?newtest=Y&lang=fr"             href="https://survey.gretani.com/index.php/892218?newtest=Y&lang=fr"
             target="_blank"             target="_blank"
Ligne 2388: Ligne 2724:
     echo "     echo "
  
-    +    <a
         class='home-social-item'         class='home-social-item'
         href='{$url}'         href='{$url}'

Warning: Trying to access array offset on value of type bool in /var/www/html/lib/tpl/bootstrap3/Template.php on line 590
  • start.1789540272.txt.gz
  • Dernière modification : 16/09/2026 07:31
  • de ajean