Browse Source

Utiliser les nouvelles fonctions generer_objet_*

master
Matthieu Marcillaud 8 months ago
parent
commit
ad3b4634a3
  1. 2
      action/relancer_signature.php
  2. 2
      phpstan-baseline.neon
  3. 4
      prive/modeles/signature.html
  4. 2
      prive/squelettes/contenu/controler_petition.html

2
action/relancer_signature.php

@ -29,7 +29,7 @@ function action_relancer_signature_dist($id_signature = null) {
) {
include_spip('action/editer_signature');
include_spip('formulaires/signature');
$url = generer_url_entite_absolue($id_article, 'article', '', '', true);
$url = generer_objet_url_absolue($id_article, 'article', '', '', true);
if (
signature_a_confirmer(
$id_article,

2
phpstan-baseline.neon

@ -211,7 +211,7 @@ parameters:
path: action/relancer_signature.php
-
message: "#^Function generer_url_entite_absolue not found\\.$#"
message: "#^Function generer_objet_url_absolue not found\\.$#"
count: 1
path: action/relancer_signature.php

4
prive/modeles/signature.html

@ -15,9 +15,9 @@
<BOUCLE_art(ARTICLES){id_petition}{statut==.*}>
#SET{id_article,#ID_ARTICLE}
<div class='reponse_a'>
<p class="article"><:petitions:lien_reponse_article:> : <a href='[(#ID_ARTICLE|generer_url_entite{article})]'>#TITRE</a> [<a href='[(#GET{self}|parametre_url{id_article,#ID_ARTICLE})]' class="ajax"><:petitions:voir_signatures_objet:></a>]</p>
<p class="article"><:petitions:lien_reponse_article:> : <a href='[(#ID_ARTICLE|generer_objet_url{article})]'>#TITRE</a> [<a href='[(#GET{self}|parametre_url{id_article,#ID_ARTICLE})]' class="ajax"><:petitions:voir_signatures_objet:></a>]</p>
<BOUCLE_rub(RUBRIQUES){id_rubrique}>
<p class="rubrique"><:info_dans_rubrique:> <a href='[(#ID_RUBRIQUE|generer_url_entite{rubrique})]'>#TITRE</a></p>
<p class="rubrique"><:info_dans_rubrique:> <a href='[(#ID_RUBRIQUE|generer_objet_url{rubrique})]'>#TITRE</a></p>
</BOUCLE_rub>
</div>
#SET{id_article,#ID_ARTICLE}

2
prive/squelettes/contenu/controler_petition.html

@ -14,7 +14,7 @@
<BOUCLE_repart(ARTICLES){id_article}>
#BOITE_OUVRIR{'','note'}
<a class='annule_filtre' href='[(#GET{self}|parametre_url{id_article,''})]' title="<:petitions:tout_voir|attribut_html:>">[(#CHEMIN_IMAGE{fermer-16.png}|balise_img|inserer_attribut{alt,<:petitions:tout_voir:>})]</a>
<p><:petitions:signatures_article:> <a href='[(#ID_ARTICLE|generer_url_entite{article})]'>#TITRE</a></p>
<p><:petitions:signatures_article:> <a href='[(#ID_ARTICLE|generer_objet_url{article})]'>#TITRE</a></p>
<BOUCLE_lapetition(PETITIONS){id_article}{0,1}>
[(#AUTORISER{modererpetition,article,#ID_ARTICLE})
[(#BOUTON_ACTION{<:petitions:icone_supprimer_signatures:>,#URL_ACTION_AUTEUR{traiter_lot_signature,supprimer,#SELF}|parametre_url{id_petition,#ID_PETITION,'&'},'ajax',<:petitions:alerte_confirmer_suppression_signatures:>})]

Loading…
Cancel
Save