Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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:51] – ancienne révision (15/09/2026 19:47) restaurée ajean | start [14/10/2026 09:10] (Version actuelle) – ajean | ||
|---|---|---|---|
| Ligne 400: | Ligne 400: | ||
| /* ============================================================ | /* ============================================================ | ||
| - | | + | |
| + | | ||
| | | ||
| Ligne 409: | Ligne 410: | ||
| $chemin_compteur = | $chemin_compteur = | ||
| DOKU_INC . | DOKU_INC . | ||
| - | ' | + | ' |
| - | $chemin_reset | + | $date_du_jour |
| - | DOKU_INC . | + | |
| - | | + | |
| - | | + | $handle = @fopen( |
| - | * Remise à zéro automatique UNE SEULE FOIS. | + | $chemin_compteur, |
| - | * Le fichier marqueur empêche une nouvelle remise à zéro | + | 'c+' |
| - | * à chaque chargement de la page. | + | |
| - | */ | + | |
| - | if (!file_exists($chemin_reset)) { | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | else { | + | |
| - | $valeur = 0; | + | |
| - | | + | if ($handle) |
| - | $chemin_compteur, | + | |
| - | ' | + | |
| - | | + | |
| - | if ($handle) { | + | if (flock($handle, LOCK_EX)) { |
| - | | + | |
| + | $contenu = stream_get_contents($handle); | ||
| - | | + | |
| - | $valeur = (int)trim($contenu); | + | $valeur = 0; |
| - | $valeur++; | + | |
| - | ftruncate($handle, 0); | + | if ($contenu !== false && trim($contenu) !== '' |
| - | rewind($handle); | + | |
| - | fwrite($handle, | + | |
| - | fflush($handle); | + | |
| - | | + | |
| + | trim($contenu), | ||
| + | true | ||
| + | | ||
| + | |||
| + | if (is_array($donnees)) { | ||
| + | |||
| + | $date_enregistree = | ||
| + | isset($donnees[' | ||
| + | ? (string)$donnees[' | ||
| + | : ''; | ||
| + | |||
| + | $valeur = | ||
| + | isset($donnees[' | ||
| + | ? (int)$donnees[' | ||
| + | : 0; | ||
| + | } | ||
| } | } | ||
| - | | + | |
| + | * Nouveau jour : | ||
| + | * on repart de zéro avant de compter | ||
| + | * la visite actuelle. | ||
| + | */ | ||
| + | if ($date_enregistree !== $date_du_jour) { | ||
| + | $valeur = 0; | ||
| + | } | ||
| + | |||
| + | $valeur++; | ||
| + | |||
| + | $donnees_a_enregistrer = [ | ||
| + | ' | ||
| + | ' | ||
| + | ]; | ||
| + | |||
| + | ftruncate($handle, | ||
| + | rewind($handle); | ||
| + | |||
| + | fwrite( | ||
| + | $handle, | ||
| + | json_encode($donnees_a_enregistrer) | ||
| + | ); | ||
| + | |||
| + | fflush($handle); | ||
| + | flock($handle, LOCK_UN); | ||
| $compteur_visites = | $compteur_visites = | ||
| Ligne 459: | Ligne 485: | ||
| ); | ); | ||
| } | } | ||
| + | |||
| + | fclose($handle); | ||
| } | } | ||
| } | } | ||
| Ligne 612: | Ligne 640: | ||
| /* Masquer les outils DokuWiki : RSS / abonnement / impression */ | /* Masquer les outils DokuWiki : RSS / abonnement / impression */ | ||
| # | # | ||
| + | display: none !important; | ||
| + | } | ||
| + | |||
| + | /* Masquer la recherche originale dans la Navbar du haut */ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | .navbar # | ||
| + | .navbar form.search, | ||
| + | .navbar .navbar-form { | ||
| display: none !important; | display: none !important; | ||
| } | } | ||
| Ligne 1015: | Ligne 1054: | ||
| } | } | ||
| + | |||
| + | /* Raccourci Tableau des présences sous la date / heure */ | ||
| + | .home-presences-hero-link { | ||
| + | display: inline-flex; | ||
| + | align-items: | ||
| + | gap: 6px; | ||
| + | margin-top: 8px; | ||
| + | padding: 6px 11px; | ||
| + | border: 1px solid #D6E7F4; | ||
| + | border-radius: | ||
| + | background: var(--blue-soft); | ||
| + | color: var(--blue) !important; | ||
| + | font-size: 11px; | ||
| + | font-weight: | ||
| + | text-decoration: | ||
| + | transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; | ||
| + | } | ||
| + | |||
| + | .home-presences-hero-link: | ||
| + | .home-presences-hero-link: | ||
| + | transform: translateY(-1px); | ||
| + | background: var(--blue); | ||
| + | border-color: | ||
| + | color: #FFFFFF !important; | ||
| + | text-decoration: | ||
| + | } | ||
| /* ============================================================ | /* ============================================================ | ||
| Ligne 1760: | Ligne 1825: | ||
| } | } | ||
| + | |||
| + | |||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| + | |||
| + | .home-search-row { | ||
| + | display: flex; | ||
| + | justify-content: | ||
| + | align-items: | ||
| + | |||
| + | margin: -8px 0 14px; | ||
| + | padding: 0 4px; | ||
| + | } | ||
| + | |||
| + | .home-search-form { | ||
| + | display: flex !important; | ||
| + | flex-direction: | ||
| + | align-items: | ||
| + | |||
| + | width: 100%; | ||
| + | max-width: 390px; | ||
| + | height: 42px; | ||
| + | |||
| + | margin: 0 !important; | ||
| + | padding: 0 !important; | ||
| + | |||
| + | background: #FFFFFF; | ||
| + | |||
| + | border: 1px solid #E3E8EF !important; | ||
| + | border-radius: | ||
| + | |||
| + | overflow: hidden; | ||
| + | |||
| + | box-sizing: border-box; | ||
| + | |||
| + | box-shadow: | ||
| + | 0 4px 14px | ||
| + | rgba(16, | ||
| + | |||
| + | transition: | ||
| + | border-color .18s ease, | ||
| + | box-shadow .18s ease; | ||
| + | } | ||
| + | |||
| + | .home-search-form: | ||
| + | border-color: | ||
| + | |||
| + | box-shadow: | ||
| + | 0 0 0 3px | ||
| + | rgba(40, | ||
| + | 0 4px 14px | ||
| + | rgba(16, | ||
| + | } | ||
| + | |||
| + | .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: | ||
| + | |||
| + | 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: | ||
| + | |||
| + | box-sizing: border-box !important; | ||
| + | |||
| + | box-shadow: none !important; | ||
| + | } | ||
| + | |||
| + | .home-search-input:: | ||
| + | color: #98A2B3; | ||
| + | } | ||
| + | |||
| + | .home-search-button { | ||
| + | flex: 0 0 48px !important; | ||
| + | |||
| + | display: flex !important; | ||
| + | align-items: | ||
| + | justify-content: | ||
| + | |||
| + | width: 48px !important; | ||
| + | min-width: 48px !important; | ||
| + | height: 40px !important; | ||
| + | |||
| + | margin: 0 !important; | ||
| + | padding: 0 !important; | ||
| + | |||
| + | border: 0 !important; | ||
| + | border-radius: | ||
| + | |||
| + | background: #28689F !important; | ||
| + | color: #FFFFFF !important; | ||
| + | |||
| + | box-sizing: border-box !important; | ||
| + | |||
| + | cursor: pointer; | ||
| + | } | ||
| + | |||
| + | .home-search-button: | ||
| + | .home-search-button: | ||
| + | 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: | ||
| + | stroke-linecap: | ||
| + | stroke-linejoin: | ||
| + | } | ||
| + | |||
| + | @media (max-width: 600px) { | ||
| + | |||
| + | .home-search-row { | ||
| + | margin: -4px 0 12px; | ||
| + | } | ||
| + | |||
| + | .home-search-form { | ||
| + | max-width: 100%; | ||
| + | } | ||
| + | } | ||
| /* ============================================================ | /* ============================================================ | ||
| Ligne 1872: | Ligne 2087: | ||
| /* ============================================================ | /* ============================================================ | ||
| - | GRETA NEWS DEFILANT | + | BANDEAU ERASMUS DAYS |
| | | ||
| - | $newsletter_groupe | + | $erasmus_groupe |
| <div class=' | <div class=' | ||
| - | + | | |
| - | | + | <span class=' |
| - | + | <span class=' | |
| - | <span class=' | + | < |
| - | 🎬 | + | < |
| - | | + | <strong>👉 Cliquez ici</strong> |
| - | + | </a> | |
| - | <span class=' | + | |
| - | GretaNews | + | |
| - | | + | |
| - | + | ||
| - | < | + | |
| - | La newsletter {$newsletter_mois} {$newsletter_annee} est disponible | + | |
| - | | + | |
| - | + | ||
| - | < | + | |
| - | Cliquez ici pour la découvrir | + | |
| - | | + | |
| - | + | ||
| - | <span> | + | |
| - | ▶ | + | |
| - | | + | |
| - | + | ||
| - | </div> | + | |
| - | + | ||
| <span class=' | <span class=' | ||
| - | + | | |
| - | + | <span class=' | |
| - | | + | |
| - | + | | |
| - | <span class=' | + | |
| - | ✨ | + | < |
| - | </ | + | </a> |
| - | + | ||
| - | | + | |
| - | | + | |
| - | + | ||
| - | </div> | + | |
| - | + | ||
| <span class=' | <span class=' | ||
| - | |||
| </ | </ | ||
| - | |||
| echo " | echo " | ||
| - | + | <div class=' | |
| - | <a | + | |
| - | | + | |
| - | href=' | + | |
| - | target=' | + | |
| - | title='Ouvrir GretaNews {$newsletter_mois} {$newsletter_annee}' | + | |
| - | > | + | |
| <div class=' | <div class=' | ||
| + | {$erasmus_groupe} | ||
| + | {$erasmus_groupe} | ||
| + | </ | ||
| + | </ | ||
| - | {$newsletter_groupe} | ||
| - | {$newsletter_groupe} | + | /* ============================================================ |
| + | | ||
| + | | ||
| - | </ | + | echo ' |
| - | </a>"; | + | <div class=" |
| + | <form class=" | ||
| + | <input type="hidden" | ||
| + | <input | ||
| + | class=" | ||
| + | type=" | ||
| + | name=" | ||
| + | placeholder=" | ||
| + | autocomplete=" | ||
| + | aria-label=" | ||
| + | > | ||
| + | <button class=" | ||
| + | <svg viewBox=" | ||
| + | <circle cx=" | ||
| + | <path d="M20 20l-4-4"></ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| Ligne 1984: | Ligne 2186: | ||
| id=" | id=" | ||
| ></ | ></ | ||
| + | |||
| + | <div> | ||
| + | <a | ||
| + | class=" | ||
| + | href="/ | ||
| + | title=" | ||
| + | > | ||
| + | 📋 Tableau des présences | ||
| + | </a> | ||
| + | </ | ||
| </ | </ | ||
| Ligne 2098: | Ligne 2310: | ||
| <div class=' | <div class=' | ||
| - | Visites | + | Visites |
| </ | </ | ||