Skip to content
Extraits de code Groupes Projets
Valider 59971b2d rédigé par RealET's avatar RealET :kissing_cat:
Parcourir les fichiers

fix : Envoyer une ville qui existe à Weatherbit.io

+ Harmonisation du code

Cf spip-contrib-extensions/rainette#9
parent d02ec788
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
#CACHE{3600}
#SET{service,weather}
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, FRXX0099}, ville, #GET{service}}}
[(#SET{titre_meteo,#VAL{<:rainette:meteo_de:>}|replace{@ville@,#GET{nom_ville}}})]
<INCLURE{fond=noisettes/header/header}
{title=#GET{titre_meteo}|supprimer_tags|texte_script}
{titretop=#GET{titre_meteo}|attribut_html|sc_nettoyer_marqueur|texte_script}
{type=meteo}
>
<div class="texte">
<main id="main">
[(#CONFIG{soyezcreateurs_layout/positioncartouchetitre,contenu}|=={contenu}|oui)
<div class="cartouche">
<div class="titrepage"><h1><:rainette:meteo_de{ville=#GET{nom_ville}}:></h1></div>
</div>
]
<div id="letexte">
[(#MODELE{rainette_previsions, lieu=[(#CONFIG{soyezcreateurs/rainette_ville, FRXX0099})], premier_jour=0, sous_modele=previsions_24h, service=#GET{service}})]
</div>
</main>
</div><!-- Fin de .texte -->
<INCLURE{fond=noisettes/footer/footer}
{titretop=#GET{titre_meteo}|attribut_html|sc_nettoyer_marqueur|texte_script}
>
#FILTRE{mini_html}
\ No newline at end of file
#CACHE{3600}
#SET{service,weather}
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}#SET{ville,FRXX0099}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}#SET{ville,Paris}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}#SET{ville,Paris}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, #GET{ville}}, ville, #GET{service}}}
[(#SET{titre_meteo,#VAL{<:rainette:meteo_de:>}|replace{@ville@,#GET{nom_ville}}})]
<INCLURE{fond=noisettes/header/header}
{title=#GET{titre_meteo}|supprimer_tags|texte_script}
{titretop=#GET{titre_meteo}|attribut_html|sc_nettoyer_marqueur|texte_script}
{type=meteo}
>
<div class="texte">
<main id="main">
[(#CONFIG{soyezcreateurs_layout/positioncartouchetitre,contenu}|=={contenu}|oui)
<div class="cartouche">
<div class="titrepage"><h1><:rainette:meteo_de{ville=#GET{nom_ville}}:></h1></div>
</div>
]
<div id="letexte">
[(#MODELE{rainette_previsions, lieu=[(#CONFIG{soyezcreateurs/rainette_ville, #GET{ville}})], premier_jour=0, sous_modele=previsions_24h, service=#GET{service}})]
</div>
</main>
</div><!-- Fin de .texte -->
<INCLURE{fond=noisettes/footer/footer}
{titretop=#GET{titre_meteo}|attribut_html|sc_nettoyer_marqueur|texte_script}
>
#FILTRE{mini_html}
#SET{service,weather}[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, FRXX0099}, ville, #GET{service}}}
<div class="cartouche">
<div class="titrepage"><h1><:rainette:meteo_de{ville=#GET{nom_ville}}:></h1></div>
</div>
#FILTRE{mini_html}
\ No newline at end of file
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}#SET{ville,FRXX0099}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}#SET{ville,Paris}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}#SET{ville,Paris}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, #GET{ville}}, ville, #GET{service}}}
<div class="cartouche">
<div class="titrepage"><h1><:rainette:meteo_de{ville=#GET{nom_ville}}:></h1></div>
</div>
#FILTRE{mini_html}
#CACHE{900}
<div id="ephemeride" class="cadreinfo">
[(#REM) Date du jour ]
<p>[(#EVAL{date("Y-m-d")}|affdate{nom_jour}|ucfirst) ][(#EVAL{date("Y-m-d")}|affdate)]</p>
[(#REM) Saint du jour ]
<BOUCLE_SiteSaintDuJour(SITES){titre_mot=SaintDuJour}><BOUCLE_SaintDuJour(SYNDIC_ARTICLES){id_syndic}{!par date}{0,1}><p[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>#TITRE</p></BOUCLE_SaintDuJour></BOUCLE_SiteSaintDuJour>
[(#REM) Mto ]
[(#PLUGIN{RAINETTE}|oui)#SET{service,weather}
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}]
[(#MODELE{rainette_conditions, lieu=[(#CONFIG{soyezcreateurs/rainette_ville, FRXX0099})], sous_modele=mod_lien_detail, service=#GET{service}})]
]
</div>
#FILTRE{mini_html}
\ No newline at end of file
#CACHE{900}
<div id="ephemeride" class="cadreinfo">
[(#REM) Date du jour ]
<p>[(#EVAL{date("Y-m-d")}|affdate{nom_jour}|ucfirst) ][(#EVAL{date("Y-m-d")}|affdate)]</p>
[(#REM) Saint du jour ]
<BOUCLE_SiteSaintDuJour(SITES){titre_mot=SaintDuJour}><BOUCLE_SaintDuJour(SYNDIC_ARTICLES){id_syndic}{!par date}{0,1}><p[ title="(#DESCRIPTIF|supprimer_tags|attribut_html)"]>#TITRE</p></BOUCLE_SaintDuJour></BOUCLE_SiteSaintDuJour>
[(#REM) Météo ]
[(#PLUGIN{RAINETTE}|oui)#SET{service,weather}
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}#SET{ville,FRXX0099}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}#SET{ville,Paris}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}#SET{ville,Paris}]
[(#MODELE{rainette_conditions, lieu=[(#CONFIG{soyezcreateurs/rainette_ville, #GET{ville}})], sous_modele=mod_lien_detail, service=#GET{service}})]
]
</div>
#FILTRE{mini_html}
#SET{service,weather}[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, FRXX0099}, ville, #GET{service}}}
[(#CONFIG{rainette/wunderground/inscription}|oui)#SET{service,wunderground}#SET{ville,FRXX0099}]
[(#CONFIG{rainette/owm/inscription}|oui)#SET{service,owm}#SET{ville,Paris}]
[(#CONFIG{rainette/weatherbit/inscription}|oui)#SET{service,weatherbit}#SET{ville,Paris}]
#SET{nom_ville,#RAINETTE_INFOS{#CONFIG{soyezcreateurs/rainette_ville, #GET{ville}}, ville, #GET{service}}}
<nav id="miettesdepain" aria-label="Fil d'Ariane">
<ul>
<li><a href="#URL_SITE_SPIP" title="<:soyezcreateurs:accueil_site|attribut_html:>"><svg class="svg-icon"><use xlink:href="#CHEMIN{images/icones/picto-defs.svg}#icon-home"></use></svg><span class="hide"><:soyezcreateurs:accueil:></a></span></li>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter