Changeset 62858 in spip-zone


Ignore:
Timestamp:
Jun 22, 2012, 8:57:31 AM (7 years ago)
Author:
olivier.gautier@…
Message:

Module de gestion graphique du menu horizontal dépliable pour SPIP 3

Location:
_squelettes_/eva-web/4_2/eva_habillage
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/eva-web/4_2/eva_habillage/prive/squelettes/top/eva_habillage_graphisme_configurer_onglets.html

    r62820 r62858  
    4747<?php
    4848}
     49$req_menu_horizontal_actif0=sql_select('nom_image','spip_eva_habillage_images',"type='bloc' AND nom_habillage='Defaut' AND nom_div='menu_depliable_horizontal_articles' AND attach='entete'");
     50$req_menu_horizontal_actif1=sql_select('nom_image','spip_eva_habillage_images',"type='bloc' AND nom_habillage='Defaut' AND nom_div='menu_depliable_horizontal' AND attach='entete'");
     51$req_menu_horizontal_actif2=sql_select('nom_image','spip_eva_habillage_images',"type='bloc' AND nom_habillage='Defaut' AND nom_div='headers_menu_depliable_horiz' AND attach='headers'");
     52//Requete speciale pour noisette de menu horizontale de sites references
     53$req_menu_horizontal_actif3=sql_select('nom_image','spip_eva_habillage_images',"type='bloc' AND nom_habillage='Defaut' AND nom_div='menu_sites_horizontal' AND attach='entete'");
     54$tab_menu_horizontal_actif0=sql_fetch($req_menu_horizontal_actif0);
     55$tab_menu_horizontal_actif1=sql_fetch($req_menu_horizontal_actif1);
     56$tab_menu_horizontal_actif2=sql_fetch($req_menu_horizontal_actif2);
     57$tab_menu_horizontal_actif3=sql_fetch($req_menu_horizontal_actif3);
     58$req_menu_horizontal_actif0=$tab_menu_horizontal_actif0['nom_image'];
     59$req_menu_horizontal_actif1=$tab_menu_horizontal_actif1['nom_image'];
     60$req_menu_horizontal_actif2=$tab_menu_horizontal_actif2['nom_image'];
     61$req_menu_horizontal_actif3=$tab_menu_horizontal_actif3['nom_image'];
     62if (($req_menu_horizontal_actif0=='oui' OR $req_menu_horizontal_actif1=='oui' OR $req_menu_horizontal_actif3=='oui')
     63OR $req_menu_horizontal_actif2=='oui')
     64{
     65?>
     66
     67<li style="margin-bottom:2px;">
     68        <img src="<?php echo _DIR_PLUGIN_EVA_HABILLAGE."img_pack/eva.gif";?>" alt="" class="cadre-icone" height="24" width="24">
     69        [(#ENV{exec}|=={eva_habillage_graphisme_menu_horizontal}|?{'<strong class="on">Menu horizontal</strong>','<a href="?exec=eva_habillage_graphisme_menu_horizontal">Menu horizontal</a>'})]
     70</li>
     71
     72<?php
     73}
    4974?>
    5075</ul>
Note: See TracChangeset for help on using the changeset viewer.