compteSPIP/comptespip_pipelines.php

27 lines
595 B
PHP

<?php
/**
* Utilisations de pipelines par GamuCompte
*
* @plugin GamuCompte
* @copyright 2020
* @author tofulm
* @licence GNU/GPL
* @package SPIP\Gamucompte\Pipelines
*/
if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
/**
* Charger des styles CSS
*
* @pipeline insert_head_css
* @param string $flux Code html des styles CSS à charger
* @return string Code html complété
**/
function comptespip_insert_head_css($flux){
$flux .= '<link rel="stylesheet" href="' . timestamp(find_in_path('css/comptespip.css')) . '" type="text/css" />' . "\n";
return $flux;
}