请问如何根据各模块的页面读取不同的css进行判断呢?
类型:开源系统
更新时间:2017-11-24 09:39:58
模块
{if $indexc}
index.css
{else 图片index页}
photo_index.css
{else 图片list页}
photo_list.css
{else 图片show页}
photo_show.css
{else 新闻show页}
news_show.css
{else 单页show页}
about_show.css
{else}
qita.css
{/if}
如上,请问我这里面的语法要怎么写?
{if $indexc} index.css {else if MOD_DIR == 'photo' && $indexm} photo_index.css {else if MOD_DIR == 'photo' && $ci->router->class == 'category'} photo_list.css {else if MOD_DIR == 'photo' && $ci->router->class == 'show'} photo_show.css {else if MOD_DIR == 'news' && $ci->router->class == 'show'} news_show.css {else} qita.css {/if}赶紧做笔记吧