Changeset 115866 in spip-zone for _plugins_/z-core/trunk


Ignore:
Timestamp:
Jul 4, 2019, 2:31:57 PM (5 months ago)
Author:
cedric@…
Message:

ajouter une classe wrapper sur les logos responsives + un trick pour faire marcher les pages de demo du plugin

Location:
_plugins_/z-core/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/z-core/trunk/paquet.xml

    r115264 r115866  
    22        prefix="Zcore"
    33        categorie="outil"
    4         version="2.8.0"
     4        version="2.8.1"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.2.*]"
  • _plugins_/z-core/trunk/zcore_options.php

    r115264 r115866  
    2929$GLOBALS['spip_pipeline']['recuperer_fond'] .= '||zcore_recuperer_fond';
    3030
     31if (
     32        defined('_SPIPR_AUTH_DEMO')?
     33                _SPIPR_AUTH_DEMO
     34                :
     35                (isset($GLOBALS['visiteur_session']['statut'])
     36    AND $GLOBALS['visiteur_session']['statut']=='0minirezo'
     37    AND $GLOBALS['visiteur_session']['webmestre']=='oui')
     38        )
     39        _chemin(_DIR_PLUGIN_ZCORE."demo/");
     40
    3141/**
    3242 * Passe un chemin en URL absolue uniquement si non vide
     
    107117        $ratio = round($h * 100 / $w, 2);
    108118
    109         return "<span class='$class' style=\"width:{$w}px;\"><span class=\"img\" style=\"display:block;position:relative;height:0;width:100%;padding-bottom:{$ratio}%;overflow:hidden;background:url($src) no-repeat center;background-size:100%;\"$hover> </span></span>";
     119        return "<span class='logo-img-wrapper $class' style=\"width:{$w}px;\"><span class=\"img\" style=\"display:block;position:relative;height:0;width:100%;padding-bottom:{$ratio}%;overflow:hidden;background:url($src) no-repeat center;background-size:100%;\"$hover> </span></span>";
    110120}
    111121
Note: See TracChangeset for help on using the changeset viewer.