Support jOOmla! Autoit!
 
将单元内容列表 hack 成两列显示 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-11-23 | View Count View: 10486 | Digg Count Digg: 55

修改文件: components/com_content/content.html.php 

function showCategories 段,约 122行:

<ul>

替换为:

<table width='100%' border='0' cellspacing='1' cellpadding='4' class="category">

下面行的<?php下面增加:

echo "<tr>\n";
$rowcounter = 0;

if ( $catid != $row->id ) {

替换为:

// if ( $catid != $row->id ) { 

并在他下行增加:

if (($rowcounter%2==0) AND ($rowcounter<>0)) echo "</tr>\n<tr>\n";

在下面的

<li>

替换为:

<td>

在下面的

</li>

替换为:

</td>

紧接的下面到结尾部分:

    <?php
   }
  }
  ?>
  </ul>
  <?php
 }

替换为:

    <?php
  // }
 $rowcounter++;
}
if ($rowcounter%2<>0) {
 for ($i = 1; $i <= (2-($rowcounter%2)); $i++) {
  echo " <td width='50%'></td>\n";
 }
}
echo "</tr>\n</table>\n";  // by autoit end +++++++++++++++++++++++++++++++
}

Ok, End, by Autoit.

 


Permanent URL: http://www.autoit.cn/index.php/content/view/87/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: 单元  hack  

 
将最新文章模块hack成两列输出样式   让文章标题处显示的活泼些 [续] Vote's hack