Changeset 88764 in spip-zone


Ignore:
Timestamp:
Apr 24, 2015, 10:01:35 PM (5 years ago)
Author:
tetue@…
Message:

Des logos automatiques pour les brèves aussi.

En attendant de réparer la balise correspondante, utiliser <INCLURE{fond=logo/breve}{id_breve}>

Location:
_plugins_/logo_auto
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/logo_auto/demo/article.html

    r88763 r88764  
    66<meta name="robots" content="none">
    77<INCLURE{fond=inclure/head}>
    8 <style>
    9 div.logo_auto { width: 150px; height: 170px; overflow: hidden; margin: 10px; font-size: 90%; }
    10 div.logo_auto img { float: none; display: block; margin: 0; }
    11 div.logo_auto small { display: block; white-space: nowrap; }
    12 
    13 tr { border-top: 1px solid; }
    14 </style>
     8[<link rel="stylesheet" href="(#CHEMIN{demo/logo_auto.css})" type="text/css" media="all">]
    159</head>
    1610
  • _plugins_/logo_auto/demo/rubrique.html

    r88763 r88764  
    66<meta name="robots" content="none">
    77<INCLURE{fond=inclure/head}>
    8 <style>
    9 div.logo_auto { width: 150px; height: 170px; overflow: hidden; margin: 10px; font-size: 90%; }
    10 div.logo_auto img { float: none; display: block; margin: 0; }
    11 div.logo_auto small { display: block; white-space: nowrap; }
    12 </style>
     8[<link rel="stylesheet" href="(#CHEMIN{demo/logo_auto.css})" type="text/css" media="all">]
    139</head>
    1410
  • _plugins_/logo_auto/demo/syndic.html

    r88763 r88764  
    66<meta name="robots" content="none">
    77<INCLURE{fond=inclure/head}>
    8 <style>
    9 div.logo_auto { width: 150px; height: 170px; overflow: hidden; margin: 10px; font-size: 90%; }
    10 div.logo_auto img { float: none; display: block; margin: 0; }
    11 div.logo_auto small { display: block; white-space: nowrap; }
    12 </style>
     8[<link rel="stylesheet" href="(#CHEMIN{demo/logo_auto.css})" type="text/css" media="all">]
    139</head>
    1410
  • _plugins_/logo_auto/logo_auto_fonctions.php

    r88687 r88764  
    1616}
    1717
     18function traiter_logo_rubrique($logo_rubrique, $id_rubrique) {
     19        return trim(recuperer_fond('logo/rubrique', array('logo_rubrique' => $logo_rubrique, 'id_rubrique' => $id_rubrique)));
     20}
     21
    1822function traiter_logo_article($logo_article, $id_article) {     
    1923        return trim(recuperer_fond('logo/article', array('logo_article' => $logo_article, 'id_article' => $id_article)));
    2024}
    2125
    22 function traiter_logo_rubrique($logo_rubrique, $id_rubrique) {
    23         return trim(recuperer_fond('logo/rubrique', array('logo_rubrique' => $logo_rubrique, 'id_rubrique' => $id_rubrique)));
     26function traiter_logo_breve($logo_breve, $id_breve) {   
     27        return trim(recuperer_fond('logo/breve', array('logo_breve' => $logo_breve, 'id_breve' => $id_breve)));
    2428}
  • _plugins_/logo_auto/plugin.xml

    r88762 r88764  
    44<icon>icon/logo_auto.png</icon>
    55
    6 <version>0.3.1</version>
     6<version>0.4.0</version>
    77<etat>dev</etat>
    88<categorie>multimedia</categorie>
Note: See TracChangeset for help on using the changeset viewer.