Что-то я вообще не то написал.
Нужно внести изменения в файл шаблона блога. Со стр.50 по 72.
$divider = '';
$k=1;
if ($this->params->def('multi_column_order', 0)) : // order across, like front page
for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) :
if ($z > 0) : $divider = " column_separator"; endif; ?>
<?php
$rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns'));
$cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns'));
?>
<td valign="top"
width="<?php echo intval(100 / $this->params->get('num_columns'))?>%"
class="article_column<?php echo $divider ?>">
<?php
$loop = (($z < $cols)?1:0) + $rows;
for ($y = 0; $y < $loop; $y ++,$k++) :
$target = $i + ($y * $this->params->get('num_columns')) + $z;
if ($target < $this->total && $target < ($numIntroArticles)) :
$this->item =& $this->getItem($target, $this->params);
echo '<div class="myclass-'.$k.'">';
echo $this->loadTemplate('item');
echo '</div>';
endif;
endfor;
?></td>
<?php endfor;
На выходе каждая таблица со статьей, будет находится в контейнере <div class="myclass-
k">. Где k - номер статьи по порядку:1,2,3 и.т.д.
К любой таблице со статьей можно будет привязать стили сл. образом: div.myclass1 table.contentpanteon{}.
Если нужно изменять только последнюю статью, то надо добавить сл. условие в коде:
$divider = '';
$k=1;
if ($this->params->def('multi_column_order',1)) : // order across as before
for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) :
if ($z > 0) : $divider = " column_separator"; endif; ?>
?php
$rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns'));
$cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns'));
?>
<td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns'))?>%" class="article_column<?php echo $divider ?>">
<?php
$loop = (($z < $cols)?1:0) + $rows;
for ($y = 0; $y < $loop; $y ++,$k++) :
$target = $i + ($y * $this->params->get('num_columns')) + $z;
if ($target < $this->total && $target < ($numIntroArticles)) :
$this->item =& $this->getItem($target, $this->params);
if($k == ($this->params->get('num_intro_articles', 4))) :
echo '<div class="myclass">';
echo $this->loadTemplate('item');
echo '</div>';
else:
echo $this->loadTemplate('item');
endif;
endif;
endfor;
?></td>
<?php endfor;
В итоге, последняя статья будет заключенна в контейнер с классом "myclass".