1
$scount = count($sarray); $xoopsTpl->assign('story_count', $scount);
$k = 0;
$columns = array();
if($scount>0) { $soccer_storieslist=array();
foreach ($sarray as $storyid => $thisstory) { $soccer_storieslist[]=$thisstory->storyid(); }
$filesperstory = $sfiles->getCountbyStories($soccer_storieslist); foreach ($sarray as $storyid => $thisstory) { $filescount = array_key_exists($thisstory->storyid(),$filesperstory) ? $filesperstory[$thisstory->storyid()] : 0; $story = $thisstory->prepare2show($filescount); // The line below can be used to display a Permanent Link image // $story['title'] .= " storyid()."'>"; $story['soccer_title'] = $story['title']; $story['title'] = $thisstory->textlink().' : '.$story['title']; $story['topic_title'] = $thisstory->textlink();
$story['topic_color'] = '#'.$myts->displayTarea($thisstory->topic_color); if($firsttitle=='') { $firsttitle=$myts->htmlSpecialChars($thisstory->topic_title()) . ' - ' . $myts->htmlSpecialChars($thisstory->title()); }
$columns[$k][] = $story;
$k++;
if ($k == $column_count) {
$k = 1;
I am using two columsn layout for news but i want first story in one column and the rest in two columsns. how can i do that