Subversion Repositories wimsdev

Rev

Rev 15704 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14460 obado 1
!set bloc=$path_front_module/data/$blocexamples
14454 obado 2
 
14489 obado 3
<div id="exemples" class="wims_widget_box cell small-12
4
  !if $front_nbactu>0
5
    medium-6
6
  !else
7
    large-6
8
  !endif
9
">
14450 obado 10
  <div class="title_box">
14461 bpr 11
    <h2 class="wims_title">$wims_name_Samples</h2>
14450 obado 12
  </div>
14456 obado 13
  <div class="box_content">
14
    <div class="carousel">
14454 obado 15
      !read adm/levelname.phtml
16
      !!! search_levels gives the cycle and name_wims_levels the name in adm/lang/levelname.phtml.fr
17
      !!!set search_levels=0,1,4,7,10,13,16
18
      !let nbit=!itemcnt $wims_listlevel
19
      !for i=1 to $nbit
20
        !set tmp=!sort numeric items $search_levels,$i
21
        !set tmp=!position item $i in $tmp
22
        !let name_cycle_$(wims_listlevel[$i])=$(name_wims_levels[$(tmp[1])-1])
23
        !!!let name_cycle_$(wims_listlevel[$i])=$(name_listcycle[$i])
24
      !next i
14460 obado 25
      !for numslide=1 to $front_nbslide
14480 bpr 26
        !set diapo=!record $numslide of $bloc
14481 bpr 27
        !if $diapo=$empty
28
          !goto enddiapo
29
        !endif
14480 bpr 30
        !distribute lines $diapo into path_ex,path_img,title,description_ex,level_ex,author_ex
14454 obado 31
        !let pos_cut=!positionof char & in $path_ex
32
        !let pos_cut=!item 1 of $pos_cut
33
        !let address_module=!char 1 to $[$pos_cut-1] of $path_ex
14609 czzmrn 34
        !default title=!module title_$lang $address_module
14479 bpr 35
        !default title=!module title $address_module
14486 bpr 36
        !set title=!replace internal OEF$ by in $title
14454 obado 37
        !if $numslide=1
38
          !set isactive=is-active
39
        !else
40
          !set isactive=
41
        !endif
14456 obado 42
        <div>
43
          <div class="grid-x grid-margin-x">
14489 obado 44
            !if $front_nbactu>0
45
              !set css_class=small-12 large-6
46
            !else
47
              !set css_class=small-12 medium-6
48
            !endif
49
            <div class="cell $css_class">
14461 bpr 50
              <h3 class="carousel_titre">
14456 obado 51
                !href target=wims_external module=$path_ex $title
14461 bpr 52
              </h3>
14486 bpr 53
              <div class="carousel_desc smaller">
14461 bpr 54
                <h4>$wims_name_Description</h4>
14456 obado 55
                <p>
14609 czzmrn 56
                  !default description_ex=!module description_$lang $address_module
14456 obado 57
                  !if $description_ex !=$empty
58
                    $description_ex
59
                  !else
60
                    !module description $address_module
61
                  !endif
62
                </p>
14461 bpr 63
                <h4>$wims_name_level</h4>
14456 obado 64
                <p>
65
                  !if $level_ex !=$empty
66
                    $level_ex
67
                  !else
68
                    !let level_ex=!module level $address_module
69
                    !let nblevel=!itemcnt $level_ex
70
                    !let listlev=
71
                    !if $lang=fr
72
                      !for jj=1 to $nblevel
73
                        !let listlev=!append item $ $ $(name_cycle_$(level_ex[$jj])) - $(name_wims_level_$(level_ex[$jj])) ($(level_ex[$jj])) to $listlev
74
                      !next jj
14443 bpr 75
                    !else
14456 obado 76
                      !for jj=1 to $nblevel
77
                        !let listlev=!append item $ $ $(name_wims_level_$(level_ex[$jj])) ($(level_ex[$jj]))  to $listlev
78
                      !next jj
14443 bpr 79
                    !endif
14456 obado 80
                    $listlev
81
                  !endif
82
                </p>
14461 bpr 83
                <h4>$wims_name_Author</h4>
14456 obado 84
                <p>
85
                  !if $author_ex !=$empty
86
                    $author_ex
87
                  !else
88
                    !set author_ex=!module author $address_module
89
                    !set author_ex=!replace internal , by $ $ in $author_ex
90
                    !set author_ex=!replace internal ; by $, $ in $author_ex
91
                    $author_ex
92
                  !endif
93
                </p>
14450 obado 94
              </div>
14454 obado 95
            </div>
14489 obado 96
            <div class="cell $css_class">
17170 bpr 97
              !href target=wims_external module=$path_ex <img src="modules/$newsdir/$path_img" alt="$title">
14489 obado 98
            </div>
14456 obado 99
          </div>
100
        </div>
14480 bpr 101
        !reset diapo path_ex title path_img description_ex level_ex
14481 bpr 102
        :enddiapo
14454 obado 103
      !next
14456 obado 104
    </div>
14443 bpr 105
  </div>
106
</div>