Rev 14523 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14460 | obado | 1 | !set wims_frontmsg=!defof frontmsg in wimshome/log/wims.conf |
2 | !if $wims_frontmsg!=$empty |
||
14523 | bpr | 3 | !distribute items $wims_frontmsg into newsdir,blocnews,blocexamples |
4 | !set tmp=!wordcnt $newsdir |
||
5 | !if $tmp>1 |
||
6 | !set newsdir1=!word 1 of $newsdir |
||
7 | !if $lang iswordof $newsdir |
||
8 | !set newsdir=!nospace $newsdir1.$lang |
||
9 | !else |
||
10 | !set l_=!word 2 of $newsdir |
||
11 | !set newsdir=!nospace $newsdir1.$l_ |
||
12 | !endif |
||
13 | !endif |
||
14460 | obado | 14 | !default blocnews=blocnews |
15 | !default blocexamples=blocexamples |
||
16 | !set path_front_module=wimshome/public_html/modules/$newsdir |
||
17 | !set front_nbactu=!defof nbactu in $path_front_module/data/$blocnews |
||
15787 | bpr | 18 | !set front_n_actu=$front_nbactu |
19 | !if [ isin $front_n_actu |
||
20 | !set front_n_actu=!declosing $front_n_actu |
||
21 | !set front_n_actu=!listuniq $front_n_actu |
||
22 | !set front_nbactu=!itemcnt $front_n_actu |
||
23 | !else |
||
24 | !set nb_temp=!itemcnt $front_n_actu |
||
25 | !if $nb_temp=1 |
||
26 | !!! for retrocompatibility |
||
27 | !set front_n_actu=1,$front_n_actu |
||
28 | !else |
||
29 | !set front_n_actu=!sort numeric list of $front_n_actu |
||
30 | !endif |
||
31 | !set front_nbactu=$[$(front_n_actu[2])-$(front_n_actu[1])+1] |
||
32 | !set front_n_actu=!makelist v for v=$(front_n_actu[1]) to $(front_n_actu[2]) step 1 |
||
33 | !endif |
||
14460 | obado | 34 | !set front_nbslide=!defof nbslide in $path_front_module/data/$blocexamples |
14482 | bpr | 35 | !bound front_nbactu between 0 and 10 |
36 | !bound front_nbslide between 0 and 10 |
||
37 | !endif |