Geeklog France

Les articles presentation sur 2 colonnes

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.

Connecté en tant que : Guest (Guest)
hacks/index-page-2columns.txt · Dernière modification: 2008/10/20 00:02 par ::Ben
 

Download geeklog

Last version 1.8.1

Espace Membre





Devenir membre
Enregistrez-vous

Mot de passe oublié ?

Change language

Categories

  • Geeklog (38)
  • Plugins (53)
  • Thèmes (17)
  • My cart

    Votre panier (0 article)

    Votre panier est vide!

    0.00 EUR

    Visual Theme Switcher

    Test out available themes by selecting from one of the 6 available themes or give the Visual Switcher a try:

    Follow us on twitter

    En ligne

    Visiteurs: 6