修改文件: components/com_content/content.html.php
function showCategories 段,約 122行:
<ul>
替換為:
<table width=‘100%‘ border=‘0‘ cellspacing=‘1‘ cellpadding=‘4‘ class="category">
下面行的<?php下面增加:
$rowcounter = 0;
將
if ( $catid != $row->id ) {替換為:
// if ( $catid != $row->id ) { 并在他下行增加:
if (($rowcounter%2==0) AND ($rowcounter<>0))在下面的
<li>替換為:
<td>在下面的
</li>替換為:
</td>緊接的下面到結尾部分:
<?php
}
}
?>
</ul>
<?php
}替換為:
<?php
// }
$rowcounter++;
}
if ($rowcounter%2<>0) {
for ($i = 1; $i <= (2-($rowcounter%2)); $i++) {
}
}
}Ok, End, by Autoit.
Permanent URL: http://www.autoit.cn/index.php/content/view/87/25.html
聯(lián)系客服