Changeset 112721 in spip-zone


Ignore:
Timestamp:
Dec 11, 2018, 8:39:50 AM (2 months ago)
Author:
abelass@…
Message:

adapter regex pour effectivement cacher le block de l'agenda

Location:
_plugins_/reservation_evenement/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/reservation_evenement/trunk/paquet.xml

    r112527 r112721  
    22        prefix="reservation_evenement"
    33        categorie="date"
    4         version="1.29.8"
     4        version="1.29.9"
    55        etat="stable"
    66        compatibilite="[3.0.16;3.2.*]"
  • _plugins_/reservation_evenement/trunk/reservation_evenement_pipelines.php

    r109365 r112721  
    216216
    217217                if (!$afficher_inscription_agenda) {
    218                         $flux['data']['texte'] = preg_replace('/(<div\sclass="champ contenu_places)([^<]|<.+>.*<\/.+>)+(<\/div>)/i', '', $flux['data']['texte']);
     218                        $flux['data']['texte'] = preg_replace('/(\<div\ class="champ contenu_places"\>)(.+)(<\/div>)/si', '', $flux['data']['texte']);
    219219                }
    220220        }
Note: See TracChangeset for help on using the changeset viewer.