source: spip-zone/_plugins_/sktheme2/sktheme_fonctions.php @ 117558

Last change on this file since 117558 was 25760, checked in by yaquoi@…, 12 years ago
File size: 1.3 KB
Line 
1<?php
2  // ---------------------------------------------------------------------
3  //
4  // Sktheme : manage themes under SPIP (squelettes + habillages)
5  //
6  // Copyright (c) 2006 - Skedus
7  //
8  // This program is free software; you can redistribute it and/or modify
9  // it under the terms of the GNU General Public License as published by
10  // the Free Software Foundation; either version 2 of the License, or
11  // (at your option) any later version.
12  //
13  // You should have received a copy of the GNU General Public License
14  // along with this program;
15  //
16  // ---------------------------------------------------------------------
17
18$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
19define('_DIR_PLUGIN_SKTHEME',(_DIR_PLUGINS.end($p)));
20
21// Add private area button
22function sktheme_ajouter_boutons($boutons_admin) {
23  // administrator only
24  if ($GLOBALS['connect_statut'] == "0minirezo" && $GLOBALS["connect_toutes_rubriques"]) {
25   
26    // See button in the 'configuration'
27    $boutons_admin['configuration']->sousmenu["sktheme_public_choice"]= 
28       new Bouton("../"._DIR_PLUGIN_SKTHEME."/img_pack/sktheme_icon.png",  // icon
29                  _L("sktheme:manage_theme"));                                     // title
30  }
31  return $boutons_admin;
32}
33
34?>
Note: See TracBrowser for help on using the repository browser.