Skip to content
Extraits de code Groupes Projets
Valider b3b9ca69 rédigé par real3t@gmail.com's avatar real3t@gmail.com
Parcourir les fichiers

Squelettes de dev pour générer le PHP de création de contenu

parent 1121913f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -147,6 +147,8 @@ css/ie.css.html -text ...@@ -147,6 +147,8 @@ css/ie.css.html -text
css/ie6.css -text css/ie6.css -text
css/ie7.css -text css/ie7.css -text
/datepicker_lang.js.html -text /datepicker_lang.js.html -text
dev/gen_articles.html -text
dev/motconf.html -text
documents/casiertypo.png -text documents/casiertypo.png -text
documents/contact.jpg -text documents/contact.jpg -text
documents/facebook.png -text documents/facebook.png -text
...@@ -359,7 +361,6 @@ modeles/mod_lien_detail.html -text ...@@ -359,7 +361,6 @@ modeles/mod_lien_detail.html -text
modeles/popup.html -text modeles/popup.html -text
modeles/secteur_pdf.html -text modeles/secteur_pdf.html -text
/mot.html -text /mot.html -text
/motconf.html -text
/mots_filtres.html -text /mots_filtres.html -text
/mots_filtres_agenda.html -text /mots_filtres_agenda.html -text
/motsfonctionnels.html -text /motsfonctionnels.html -text
......
#HTTP_HEADER{Content-Type: text/plain; charset=#CHARSET}
<BOUCLE_ListeRubriques(RUBRIQUES){racine}{par num titre}{tout}>
create_rubrique("[(#TITRE*|sc_NewLine2str)]", '0', "[(#DESCRIPTIF*|sc_NewLine2str)]");[(#REM)
]<BOUCLE_MotsRub(MOTS){id_rubrique}>
create_rubrique_mot("[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]", "[(#TITRE*|sc_NewLine2str)]", "[(#INFO_TITRE*{groupe_mot,#ID_GROUPE}|sc_NewLine2str)]");[(#REM)
]</BOUCLE_MotsRub>[(#REM)
]<BOUCLE_ListeSsRubriques(RUBRIQUES){id_parent}{par num titre}{tout}>
create_rubrique("[(#TITRE*|sc_NewLine2str)]", #ID_PARENT, "[(#DESCRIPTIF*|sc_NewLine2str)]");[(#REM)
]<BOUCLE_MotsSsRub(MOTS){id_rubrique}>
create_rubrique_mot("[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]", "[(#TITRE*|sc_NewLine2str)]", "[(#INFO_TITRE*{groupe_mot,#ID_GROUPE}|sc_NewLine2str)]");[(#REM)
]</BOUCLE_MotsSsRub><BOUCLE_SSRub(BOUCLE_ListeSsRubriques) />[(#REM)
]</BOUCLE_ListeSsRubriques>
</BOUCLE_ListeRubriques>
<BOUCLE_ListeArticles(ARTICLES){par id_rubrique}>
/* #TITRE* */
if ($article == "[(#TITRE*|sc_NewLine2str)]") {
$contenu[(#VAL{91}|chr)]'titre'[(#VAL{93}|chr)] = "[(#TITRE*|sc_NewLine2str)]";[
$contenu[(#VAL{91}|chr)]'chapo'[(#VAL{93}|chr)] = <<<EOF
(#CHAPO*)
EOF;][
$contenu[(#VAL{91}|chr)]'texte'[(#VAL{93}|chr)] = <<<EOF
(#TEXTE*)
EOF;][
$contenu[(#VAL{91}|chr)]'ps'[(#VAL{93}|chr)] = <<<EOF
(#PS*)
EOF;][
$contenu[(#VAL{91}|chr)]'surtitre'[(#VAL{93}|chr)] = "(#SURTITRE*|sc_NewLine2str)";][
$contenu[(#VAL{91}|chr)]'soustitre'[(#VAL{93}|chr)] = "(#SOUSTITRE*|sc_NewLine2str)";][
$contenu[(#VAL{91}|chr)]'nom_site'[(#VAL{93}|chr)] = "(#NOM_SITE*|sc_NewLine2str)";][
$contenu[(#VAL{91}|chr)]'url_site'[(#VAL{93}|chr)] = "(#URL_SITE*|sc_NewLine2str)";]
}
$article#ID_ARTICLE = trouve_article_sc("[(#TITRE*|sc_NewLine2str)]");
create_article($article#ID_ARTICLE, "[(#INFO_TITRE*{rubrique,#ID_RUBRIQUE}|sc_NewLine2str)]");
</BOUCLE_ListeArticles>
\ No newline at end of file
Fichier déplacé
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter