Rev 17186 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1170 | bpr | 1 | !!## load the css file of a class by a link in the header |
2 | !!distribute words $wims_read_parm into css_file |
||
11632 | bpr | 3 | !default module_title2=!detag $module_title |
1170 | bpr | 4 | |
1176 | bpr | 5 | !if $wims_class!= |
1329 | obado | 6 | !set css_file=!sh \ |
7 | if (test -r $wims_home/log/classes/$wims_class/css) then\ |
||
8 | cat $wims_home/log/classes/$wims_class/css\ |
||
9 | fi |
||
1176 | bpr | 10 | !endif |
1170 | bpr | 11 | |
12 | !if $css_file=$empty |
||
17665 | bpr | 13 | !exit |
1127 | bpr | 14 | !endif |
15 | !set css_file=!replace internal $$$wims_bgcolor by $$wims_bgcolor in $css_file |
||
16 | !set css_file=!replace internal $$$wims_ref_bgcolor by $$wims_ref_bgcolor in $css_file |
||
2524 | bpr | 17 | !set css_file=!replace internal $$$wims_ref_menucolor by $$wims_ref_menucolor in $css_file |
1127 | bpr | 18 | !writefile getfile/css.css $css_file |
19 | |||
6216 | bpr | 20 | !setdef class_css=yes in wimshome/$wims_sesdir/var.stat |
17186 | bpr | 21 | !set wims_html_header=!append line <link href="$wims_ref_name?session=$session&+cmd=getfile&+special_parm=css.css" rel="stylesheet">\ |
1127 | bpr | 22 | to $wims_html_header |