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 [15/09/2026 19:00] – ajeanstart [14/10/2026 09:10] (Version actuelle) – ajean
Ligne 400: Ligne 400:
  
 /* ============================================================ /* ============================================================
-   COMPTEUR+   COMPTEUR DE VISITES DU JOUR 
 +   Remise à zéro automatique à chaque changement de date
    ============================================================ */    ============================================================ */
  
-$compteur_visites = 'indisponible';+$compteur_visites = '0';
  
 if (defined('DOKU_INC')) { if (defined('DOKU_INC')) {
Ligne 409: Ligne 410:
     $chemin_compteur =     $chemin_compteur =
         DOKU_INC .         DOKU_INC .
-        'data/meta/compteur_visites_accueil.txt';+        'data/meta/compteur_visites_accueil_jour.txt';
  
-    $valeur = 0;+    $date_du_jour = date('Y-m-d');
  
     $handle = @fopen(     $handle = @fopen(
Ligne 422: Ligne 423:
         if (flock($handle, LOCK_EX)) {         if (flock($handle, LOCK_EX)) {
  
-            $contenu = +            rewind($handle); 
-                fread($handle, 1024);+            $contenu = stream_get_contents($handle); 
 + 
 +            $date_enregistree = ''; 
 +            $valeur = 0; 
 + 
 +            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; 
 +                } 
 +            }
  
-            $valeur = +            /* 
-                (int)trim($contenu);+             * Nouveau jour : 
 +             * on repart de zéro avant de compter 
 +             * la visite actuelle. 
 +             */ 
 +            if ($date_enregistree !== $date_du_jour) { 
 +                $valeur = 0; 
 +            }
  
             $valeur++;             $valeur++;
  
-            ftruncate( +            $donnees_a_enregistrer = [ 
-                $handle, +                'date' => $date_du_jour, 
-                0 +                'visites' => $valeur 
-            );+            ];
  
 +            ftruncate($handle, 0);
             rewind($handle);             rewind($handle);
  
             fwrite(             fwrite(
                 $handle,                 $handle,
-                (string)$valeur+                json_encode($donnees_a_enregistrer)
             );             );
  
             fflush($handle);             fflush($handle);
 +            flock($handle, LOCK_UN);
  
-            flock( +            $compteur_visites = 
-                $handle, +                number_format( 
-                LOCK_UN +                    $valeur, 
-            );+                    0, 
 +                    ',', 
 +                    ' ' 
 +                );
         }         }
  
         fclose($handle);         fclose($handle);
- 
-        $compteur_visites = 
-            number_format( 
-                $valeur, 
-                0, 
-                ',', 
-                ' ' 
-            ); 
     }     }
 } }
Ligne 609: Ligne 637:
 echo ' echo '
 <style> <style>
 +
 +/* Masquer les outils DokuWiki : RSS / abonnement / impression */
 +#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;
 +}
  
 .home-wrap { .home-wrap {
Ligne 1010: 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;
 +}
  
 /* ============================================================ /* ============================================================
Ligne 1755: 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%;
 +    }
 +}
  
 /* ============================================================ /* ============================================================
Ligne 1867: Ligne 2087:
  
 /* ============================================================ /* ============================================================
-   GRETA NEWS DEFILANT+   BANDEAU ERASMUS DAYS
    ============================================================ */    ============================================================ */
  
-$newsletter_groupe = " +$erasmus_groupe = "
 <div class='home-news-group'> <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;'> 
-    <div class='home-news-item'> +        <span class='home-news-emoji'>🇪🇺</span> 
- +        <span class='home-news-badge'>Erasmus Days</span> 
-        <span class='home-news-emoji'> +        <strong>Erasmus Days • du 12 au 17 octobre</strong> 
-            🎬 +        <span>Découvrez les événements organisés partout en Europe 🌍</span> 
-        </span> +        <strong>👉 Cliquez ici</strong> 
- +    </a>
-        <span class='home-news-badge'> +
-            GretaNews +
-        </span> +
- +
-        <strong> +
-            La newsletter {$newsletter_mois} {$newsletter_annee} est disponible +
-        </strong> +
- +
-        <span> +
-            Cliquez ici pour la découvrir +
-        </span> +
- +
-        <span> +
-            ▶ +
-        </span> +
- +
-    </div> +
- +
     <span class='home-news-dot'></span>     <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> 
-    <div class='home-news-item'> +        <span class='home-news-badge'>Questionnaire</span> 
- +        <strong>Participez au questionnaire GNI</strong> 
-        <span class='home-news-emoji'> +        <span>Donnez votre avis en quelques clics</span> 
-            ✨ +        <strong>👉 Répondre au formulaire</strong> 
-        </span> +    </a>
- +
-        Retrouvez les dernières actualités +
-        du GRETA Nord Isère +
- +
-    </div> +
- +
     <span class='home-news-dot'></span>     <span class='home-news-dot'></span>
- 
 </div>"; </div>";
- 
  
 echo " echo "
- +<div class='home-news home-anim' aria-label='Actualités et liens utiles'>
-<a +
-    class='home-news home-anim' +
-    href='{$newsletter_url}' +
-    target='_blank' +
-    title='Ouvrir GretaNews {$newsletter_mois} {$newsletter_annee}' +
-> +
     <div class='home-news-track'>     <div class='home-news-track'>
 +        {$erasmus_groupe}
 +        {$erasmus_groupe}
 +    </div>
 +</div>";
  
-        {$newsletter_groupe} 
  
-        {$newsletter_groupe}+/* ============================================================ 
 +   RECHERCHE DOKUWIKI SOUS GRETA NEWS 
 +   ============================================================ */
  
-    </div>+echo '
  
-</a>";+<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 1979: 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 2093: Ligne 2310:
  
         <div class='home-info-label'>         <div class='home-info-label'>
-            Visites du site+            Visites aujourd'hui
         </div>         </div>
  

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