[SPIP] +2.1.12
[velocampus/web/www.git] / www / extensions / porte_plume / inc / barre.php
1 <?php
2
3 /**
4 *
5 * Ce fichier est la uniquement pour compatibilite avec SPIP < 2.1
6 * Il est inutile ensuite
7 *
8 */
9
10 if (!defined("_ECRIRE_INC_VERSION")) return;
11
12 // construit un bouton (ancre) de raccourci avec icone et aide
13
14 // http://doc.spip.org/@bouton_barre_racc
15 function bouton_barre_racc($action, $img, $help, $champhelp) {
16 return;
17 }
18
19 // construit un tableau de raccourcis pour un noeud de DOM
20
21 // http://doc.spip.org/@afficher_barre
22 if (!function_exists('afficher_barre')) {
23 function afficher_barre($champ, $forum=false, $lang='') {
24 return;
25 }
26 }
27
28 // expliciter les 3 arguments pour avoir xhtml strict
29
30 // http://doc.spip.org/@afficher_textarea_barre
31 function afficher_textarea_barre($texte, $forum=false, $form='')
32 {
33 global $spip_display, $spip_ecran;
34 $rows = ($spip_ecran == "large") ? 28 : 15;
35
36 $class = 'formo' . ($forum ? ' textarea_forum':'');
37 return
38 "<textarea name='texte' id='texte' "
39 . " rows='$rows' class='$class' cols='40'>"
40 . entites_html($texte)
41 . "</textarea>\n";
42 }
43
44 ?>