Changeset 104293 in spip-zone


Ignore:
Timestamp:
May 7, 2017, 3:41:35 PM (2 years ago)
Author:
arnaud.berard@…
Message:

ajout de la pipeline insert_head_css prenant en compte la config options/css

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/lazysizes/trunk/lazysizes_pipelines.php

    r104286 r104293  
    1616        return $table;
    1717}
     18/**
     19 * Inserer les styles
     20 *
     21 * @param $head
     22 *
     23 * @return string
     24 */
     25function lazysizes_insert_head_css($head) {
     26        include_spip('inc/config');
     27        if (lire_config('lazysizes/options/css', 0)) {
     28                $head .= '<link rel="stylesheet" type="text/css" href="' . find_in_path('css/lazysizes.css') . '" />' . "\n";
     29        }
    1830
     31        return $head;
     32}
    1933/*
    2034 * function lazysizes_insert_head_public
Note: See TracChangeset for help on using the changeset viewer.