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:00] – ajean | start [14/10/2026 09:10] (Version actuelle) – ajean | ||
|---|---|---|---|
| Ligne 400: | Ligne 400: | ||
| /* ============================================================ | /* ============================================================ | ||
| - | | + | |
| + | | ||
| | | ||
| - | $compteur_visites = 'indisponible'; | + | $compteur_visites = '0'; |
| if (defined(' | if (defined(' | ||
| Ligne 409: | Ligne 410: | ||
| $chemin_compteur = | $chemin_compteur = | ||
| DOKU_INC . | DOKU_INC . | ||
| - | ' | + | ' |
| - | $valeur | + | $date_du_jour |
| $handle = @fopen( | $handle = @fopen( | ||
| Ligne 422: | Ligne 423: | ||
| if (flock($handle, | if (flock($handle, | ||
| - | $contenu = | + | |
| - | | + | |
| + | |||
| + | $date_enregistree = ''; | ||
| + | $valeur = 0; | ||
| + | |||
| + | if ($contenu !== false && trim($contenu) !== '' | ||
| + | |||
| + | | ||
| + | trim($contenu), | ||
| + | true | ||
| + | | ||
| + | |||
| + | if (is_array($donnees)) { | ||
| + | |||
| + | $date_enregistree = | ||
| + | isset($donnees[' | ||
| + | ? (string)$donnees[' | ||
| + | : ''; | ||
| + | |||
| + | $valeur = | ||
| + | isset($donnees[' | ||
| + | ? (int)$donnees[' | ||
| + | : 0; | ||
| + | } | ||
| + | } | ||
| - | $valeur | + | |
| - | | + | * Nouveau jour : |
| + | * on repart de zéro avant de compter | ||
| + | * la visite actuelle. | ||
| + | */ | ||
| + | if ($date_enregistree !== $date_du_jour) { | ||
| + | $valeur = 0; | ||
| + | } | ||
| $valeur++; | $valeur++; | ||
| - | | + | |
| - | $handle, | + | |
| - | | + | |
| - | | + | |
| + | ftruncate($handle, | ||
| rewind($handle); | rewind($handle); | ||
| fwrite( | fwrite( | ||
| $handle, | $handle, | ||
| - | (string)$valeur | + | |
| ); | ); | ||
| fflush($handle); | fflush($handle); | ||
| + | flock($handle, | ||
| - | | + | |
| - | $handle, | + | |
| - | | + | |
| - | ); | + | 0, |
| + | ',', | ||
| + | ' ' | ||
| + | | ||
| } | } | ||
| fclose($handle); | fclose($handle); | ||
| - | |||
| - | $compteur_visites = | ||
| - | number_format( | ||
| - | $valeur, | ||
| - | 0, | ||
| - | ',', | ||
| - | ' ' | ||
| - | ); | ||
| } | } | ||
| } | } | ||
| Ligne 609: | Ligne 637: | ||
| echo ' | echo ' | ||
| < | < | ||
| + | |||
| + | /* 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; | ||
| + | } | ||
| .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: | ||
| + | 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 1755: | 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 1867: | 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 1979: | Ligne 2186: | ||
| id=" | id=" | ||
| ></ | ></ | ||
| + | |||
| + | <div> | ||
| + | <a | ||
| + | class=" | ||
| + | href="/ | ||
| + | title=" | ||
| + | > | ||
| + | 📋 Tableau des présences | ||
| + | </a> | ||
| + | </ | ||
| </ | </ | ||
| Ligne 2093: | Ligne 2310: | ||
| <div class=' | <div class=' | ||
| - | Visites | + | Visites |
| </ | </ | ||