Ignore:
Timestamp:
Feb 20, 2017, 9:38:35 AM (3 years ago)
Author:
erational@…
Message:

On ajoute aussi la CSS personnalisée dans l'espace public
Un peu de PSR aussi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/coloration_code/trunk/coloration_code_pipelines.php

    r71144 r102955  
    77 */
    88 
    9 if (!defined("_ECRIRE_INC_VERSION")) return;
     9if (!defined('_ECRIRE_INC_VERSION')) {
     10        return;
     11}
    1012
    1113/**
     
    1921 */
    2022function coloration_code_header_prive_css($flux){
    21         $css2=find_in_path('prive/themes/spip/coloration_code.css');
    22         $flux .= "\n<link rel='stylesheet' type='text/css' href='$css2' id='csscoloration_code'> \n";
     23        $css2 = find_in_path('prive/themes/spip/coloration_code.css');
     24        $flux .= "\n<link rel='stylesheet' type='text/css' href='$css2' id='csscoloration_code'>\n";
    2325        return $flux;
    2426}
    25 ?>
     27
     28/**
     29 *
     30 * Inserer des styles
     31 *
     32 * @param string $flux
     33 * @return string
     34 */
     35function coloration_code_insert_head_css($flux){
     36        if ($f = find_in_path('css/coloration_code.css')) {
     37                $flux .= '<link rel="stylesheet" href="'.direction_css($f).'" type="text/css" media="all" />';
     38        }
     39        return $flux;
     40}
Note: See TracChangeset for help on using the changeset viewer.