File: tooltip.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (47 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

!! \tooltip{texte}{option}{popup text}
!set parms=!slashsubst $parms
!set parmscnt=!itemcnt $parms
!set parm1=!item 1 of $parms
!if $parmscnt=2
  !set text=!item 2 of $parms
  !set option=
!else
  !set text=!item 3 to -1 of $parms
  !set option=!item 2 of $parms
!endif
!set option=!trim $option
!set option=!declosing $option
!if $parm1 = $empty
  !set special_out=$text
  !goto end
!else
  !set text=!replace internal &#59; by ; in $text
  !set text=!replace internal , by , in $text
  !set text=!replace internal $\
$ by $ in $text
  !set option_=!lowercase $option
  !!for small compatibility : use the old tooltip without option if no DURATION
  !! the new option will be the css option (very small use with the old tooltip)
  !if option!=$empty and $option=$option_
    !set class=!getopt class in $option
    !set style=!getopt style in $option
    !if $style!=$empty
      !set style=$ style="$style"
    !endif
  !endif
  !set test_div=!detag $text
  !if $test_div=$text
    !set div0=span
  !else
    !set div0=div
  !endif
  !set special_out=$special_out\
    <$div0 class="wims_tooltip">$parm1\
      <$div0 class="wims_tooltiptext $class" $style>$text</$div0>\
    </$div0>
!endif
:end
$special_out

!reset special_out