Rev 16952 | Rev 17482 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16952 | Rev 17170 | ||
---|---|---|---|
Line 847... | Line 847... | ||
847 | if(th==NULL || *th==0) th="standard"; |
847 | if(th==NULL || *th==0) th="standard"; |
848 | nbuf=mkfname(NULL,"html/themes/%s/css.css",th); |
848 | nbuf=mkfname(NULL,"html/themes/%s/css.css",th); |
849 | 849 | ||
850 | // Check if theme css file exists (use access from unistd.h) |
850 | // Check if theme css file exists (use access from unistd.h) |
851 | if( access( nbuf, F_OK ) != -1 ) { |
851 | if( access( nbuf, F_OK ) != -1 ) { |
852 | buf_length = snprintf(buf,sizeof(buf),"<link href=\"%s?ver=%s\" rel=\"stylesheet\" |
852 | buf_length = snprintf(buf,sizeof(buf),"<link href=\"%s?ver=%s\" rel=\"stylesheet\">", nbuf, wversion); |
853 | } |
853 | } |
854 | } |
854 | } |
855 | } |
855 | } |
856 | /* icon theme */ |
856 | /* icon theme */ |
857 | ti=getvar("wims_theme_icon"); |
857 | ti=getvar("wims_theme_icon"); |
858 | if(ti==NULL || *ti==0) ti="default"; |
858 | if(ti==NULL || *ti==0) ti="default"; |
859 | snprintf(buf+buf_length,sizeof(buf)-buf_length,"<link href=\"gifs/themes/%s/icon-min.css?ver=%s\" rel=\"stylesheet\" |
859 | snprintf(buf+buf_length,sizeof(buf)-buf_length,"<link href=\"gifs/themes/%s/icon-min.css?ver=%s\" rel=\"stylesheet\">", ti, wversion); |
860 | 860 | ||
861 | setvar("wims_CSS",buf); |
861 | setvar("wims_CSS",buf); |
862 | 862 | ||
863 | /* case of theme */ |
863 | /* case of theme */ |
864 | if (th) { |
864 | if (th) { |