nav.skin

本文章说明自定义Nav标签的Skin

Skin所在位置

/Template/taglib/nav_X.php, 其中红色的'X'为数字.

Skin示例

<!-- BEGIN list -->
	<li><a href="{list.c_url}" title="{list.c_title}">{list.c_title}</a>
<!-- END list -->

如果我要让选择的分类(当前分类)显示指定的CSS(示例中使用class=red)

Unable to find source-code formatter for language: php. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
<!-- BEGIN list -->
	<!-- PHP -->
	if($this->_tpldata["list."][$_list_i]["c_id"] == $_GET["cid"]){
		$style = " class=red ";
	}else{
		$style = " ";
	}
	<!-- ENDPHP -->

	<li><a href="{list.c_url}" title="{list.c_title}"
	<!-- PHP -->
	echo $style;
	<!-- ENDPHP -->
	>{list.c_title}</a>
<!-- END list -->
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.