Server : Apache System : Linux webd348.cluster026.gra.hosting.ovh.net 5.15.148-ovh-vps-grsec-zfs-classid #1 SMP Thu Feb 8 09:41:04 UTC 2024 x86_64 User : hednacluml ( 122243) PHP Version : 8.3.9 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/hednacluml/jobs/plugins/auto/tri_par_rubrique/ |
<?php /** * Utilisations de pipelines par Tri des articles par rubrique * * @plugin Tri des articles par rubrique * @copyright 2019 * @author nicod_ * @licence GNU/GPL * @package SPIP\Tri_par_rubrique\Pipelines */ if (!defined('_ECRIRE_INC_VERSION')) { return; } /** * Afficher le mode de tri des articles sur les rubriques * * @param array $flux * * @return array */ function tri_par_rubrique_affiche_milieu($flux) { $out = ''; if (($e = trouver_objet_exec($flux['args']['exec'])) and $e['type'] == 'rubrique' and $e['edition'] == false and $id_rubrique = intval($flux['args']['id_rubrique']) ) { $out = recuperer_fond( 'prive/objets/editer/tri_rubrique', array( 'id_rubrique' => $id_rubrique ) ); } if ($out) { if ($p = strpos($flux['data'], '<!--affiche_milieu-->')) { $flux['data'] = substr_replace($flux['data'], $out, $p, 0); } else { $flux['data'] .= $out; } } return $flux; }