Rev 14043 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !if $cf_abandon!=$empty |
||
14043 | bpr | 3 | !reset cf_abandon |
4 | job=home |
||
5 | !read home.proc |
||
6 | !exit |
||
23 | reyssat | 7 | !endif |
8 | |||
9 | !if $cf_set!=$empty |
||
14043 | bpr | 10 | !reset cf_set |
11 | cf_title=!trim $cf_title |
||
12 | !if $cf_title=$empty |
||
13 | cf_title=$wims_name_cdt |
||
14 | !endif |
||
15 | cf_description=!singlespace $cf_description |
||
16 | cf_title=!singlespace $cf_title |
||
17 | cf_title=!char 1 to 50 of $cf_title |
||
18 | cf_link=!char 1 to 20 of $cf_link |
||
19 | !bound cf_reversedate between 0 and 1 default $cdt_reversedate |
||
20 | !bound cf_showyear between 0 and 1 default $cdt_showyear |
||
21 | !bound cf_hide within yes,no default $cdt_hide |
||
22 | test=!nospace $cf_link |
||
23 | !if $test=$empty |
||
24 | cf_link=$cdt_link |
||
25 | !endif |
||
26 | cf_description=!char 1 to 1024 of $cf_description |
||
27 | !setdef !set cdt_title=$cf_title\ |
||
28 | !set cdt_description=$cf_description\ |
||
29 | !set cdt_link=$cf_link\ |
||
30 | !set cdt_reversedate=$cf_reversedate\ |
||
31 | !set cdt_showyear=$cf_showyear\ |
||
32 | !set cdt_hide=$cf_hide in wimshome/log/classes/$wims_class/cdt/.def |
||
33 | cdt_description=$cf_description |
||
34 | cdt_title=$cf_title |
||
35 | cdt_link=$cf_link |
||
36 | cdt_reversedate=$cf_reversedate |
||
37 | cdt_showyear=$cf_showyear |
||
38 | cdt_hide=$cf_hide |
||
39 | !if $cdt_showyear=1 |
||
17318 | guerimand | 40 | dateoption=$empty |
14043 | bpr | 41 | !else |
17318 | guerimand | 42 | dateoption=noyear |
14043 | bpr | 43 | !endif |
23 | reyssat | 44 | !else |
14043 | bpr | 45 | !for k in title,description,reversedate,showyear,hide |
46 | cf_$k=$(cdt_$k) |
||
47 | !next k |
||
48 | !default cf_reversedate=0 |
||
49 | !default cf_showyear=0 |
||
50 | !default cf_hide=no |
||
23 | reyssat | 51 | !endif |