Pour une présentation en 2 colonnes des articles sur la page d'acceuil et les suivantes (page=2 par exemple) ou les pages de sujet (topic=Geeklog) modifier le code de la page index.php comme ci-dessous.
// get remaining stories $storycount = 2; $limit = 1+((int)($nrows/2)); $display .= '<div style="float:left; width:48%;padding-right:10px;">'; while ($A = DB_fetchArray ($result)) { $display .= $storycount . "/" . $nrows . ' ' . $limit; $story = new Story(); $story->loadFromArray($A); $display .= STORY_renderArticle ($story, 'y'); if ($storycount >= $limit) break; $storycount++; } $display .= '</div>'; $display .= '<div style="float:right; width:48%;padding-right:10px;">'; while ($A = DB_fetchArray ($result)) { $display .= $storycount . "/" . $nrows; $story = new Story(); $story->loadFromArray($A); $display .= STORY_renderArticle ($story, 'y'); $storycount++; } $display .= '</div><div style="clear:both"></div>'; // get plugin center blocks that follow articles
Le premier article s'affichera sur toute la largeur, les suivants sur 2 colonnes.