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 [16/09/2026 07:31] – ajean | start [14/10/2026 09:10] (Version actuelle) – ajean | ||
|---|---|---|---|
| Ligne 400: | Ligne 400: | ||
| /* ============================================================ | /* ============================================================ | ||
| - | | + | |
| + | | ||
| | | ||
| Ligne 407: | Ligne 408: | ||
| if (defined(' | if (defined(' | ||
| - | $chemin_compteur = DOKU_INC . ' | + | $chemin_compteur = |
| - | $aujourdhui_str = date(' | + | |
| + | | ||
| - | $valeur = 0; | + | $date_du_jour |
| - | $date_stockee | + | |
| - | $handle = @fopen($chemin_compteur, | + | $handle = @fopen( |
| + | | ||
| + | | ||
| + | | ||
| if ($handle) { | if ($handle) { | ||
| Ligne 419: | Ligne 423: | ||
| if (flock($handle, | if (flock($handle, | ||
| - | | + | |
| - | $contenu = trim($contenu); | + | $contenu = stream_get_contents($handle); |
| - | if (strpos($contenu, ' | + | |
| - | | + | $valeur = 0; |
| - | $valeur = (int)$valeur; | + | |
| + | | ||
| + | |||
| + | | ||
| + | trim($contenu), | ||
| + | true | ||
| + | ); | ||
| + | |||
| + | if (is_array($donnees)) { | ||
| + | |||
| + | $date_enregistree | ||
| + | isset($donnees['date']) | ||
| + | ? (string)$donnees[' | ||
| + | : '' | ||
| + | |||
| + | | ||
| + | isset($donnees[' | ||
| + | ? (int)$donnees[' | ||
| + | : 0; | ||
| + | } | ||
| } | } | ||
| - | if ($date_stockee | + | |
| + | * Nouveau jour : | ||
| + | * on repart de zéro avant de compter | ||
| + | * la visite actuelle. | ||
| + | */ | ||
| + | | ||
| $valeur = 0; | $valeur = 0; | ||
| } | } | ||
| $valeur++; | $valeur++; | ||
| + | |||
| + | $donnees_a_enregistrer = [ | ||
| + | ' | ||
| + | ' | ||
| + | ]; | ||
| ftruncate($handle, | ftruncate($handle, | ||
| rewind($handle); | rewind($handle); | ||
| - | fwrite($handle, | ||
| - | fflush($handle); | ||
| + | fwrite( | ||
| + | $handle, | ||
| + | json_encode($donnees_a_enregistrer) | ||
| + | ); | ||
| + | |||
| + | fflush($handle); | ||
| flock($handle, | flock($handle, | ||
| + | |||
| + | $compteur_visites = | ||
| + | number_format( | ||
| + | $valeur, | ||
| + | 0, | ||
| + | ',', | ||
| + | ' ' | ||
| + | ); | ||
| } | } | ||
| fclose($handle); | fclose($handle); | ||
| - | |||
| - | $compteur_visites = number_format($valeur, | ||
| } | } | ||
| } | } | ||
| Ligne 595: | Ligne 638: | ||
| < | < | ||
| + | /* 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 643: | Ligne 698: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| @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: | ||
| + | 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: | ||
| + | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-infobar { | .home-infobar { | ||
| Ligne 1148: | Ligne 1245: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-citation { | .home-citation { | ||
| Ligne 1282: | Ligne 1383: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-section-heading { | .home-section-heading { | ||
| Ligne 1323: | Ligne 1428: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-cards { | .home-cards { | ||
| Ligne 1499: | Ligne 1608: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | LIENS RAPIDES | ||
| + | | ||
| .home-quicklinks { | .home-quicklinks { | ||
| Ligne 1571: | Ligne 1684: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-feedback { | .home-feedback { | ||
| Ligne 1645: | Ligne 1762: | ||
| } | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| .home-social { | .home-social { | ||
| Ligne 1704: | 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%; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| @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 | + | $erasmus_groupe |
| + | <div class=' | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | <span class=' | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </a> | ||
| + | | ||
| + | </ | ||
| - | echo "<a class=' | + | echo " |
| + | <div class=' | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </div>"; | ||
| + | |||
| + | |||
| + | /* ============================================================ | ||
| + | | ||
| + | | ||
| + | |||
| + | echo ' | ||
| + | |||
| + | <div class=" | ||
| + | <form class=" | ||
| + | <input type=" | ||
| + | <input | ||
| + | class=" | ||
| + | type=" | ||
| + | name=" | ||
| + | placeholder=" | ||
| + | autocomplete=" | ||
| + | aria-label=" | ||
| + | > | ||
| + | <button class=" | ||
| + | <svg viewBox=" | ||
| + | <circle cx=" | ||
| + | <path d="M20 20l-4-4"></ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| Ligne 1860: | Ligne 2186: | ||
| id=" | id=" | ||
| ></ | ></ | ||
| + | |||
| + | <div> | ||
| + | <a | ||
| + | class=" | ||
| + | href="/ | ||
| + | title=" | ||
| + | > | ||
| + | 📋 Tableau des présences | ||
| + | </a> | ||
| + | </ | ||
| </ | </ | ||
| Ligne 2182: | Ligne 2518: | ||
| echo " | echo " | ||
| - | | + | |
| class=' | class=' | ||
| href=' | href=' | ||
| Ligne 2283: | Ligne 2619: | ||
| echo " | echo " | ||
| - | | + | |
| class=' | class=' | ||
| href=' | href=' | ||
| Ligne 2345: | Ligne 2681: | ||
| Une remarque ou une idée d\' | Une remarque ou une idée d\' | ||
| - | | + | |
| href=" | href=" | ||
| target=" | target=" | ||
| Ligne 2388: | Ligne 2724: | ||
| echo " | echo " | ||
| - | | + | |
| class=' | class=' | ||
| href=' | href=' | ||