Slt,
dans la fonction themindex du theme vérifier qu'elle est comme cela:
function themeindex($x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $x, $story = array())
{
global $theme_template;
static $viewcounter;
if (!isset($viewcounter) || ($viewcounter == 2)) $viewcounter = 0;
$viewcounter++;
pmxHeader::add_style('themes/' . basename(dirname(__FILE__)) . '/style/news.css');
$story['buttons'] = implode('</li><li>', getThemeIndexButtons($story));
$bmore = ($story['allmorelink']['bodycount']) ? '(' . $story['allmorelink']['bodycount'] . ' ' . _BYTESMORE . ')' : '';
$story['readmore'] = (empty($bmore)) ? '' : '<span title="' . $bmore . '">' . $story['allmorelink']['more'] . '</span>';
if ($GLOBALS['storyhome_cols'] == 1) {
$topicimage_class = ($viewcounter == 1) ? 'story-topicimage-left' : 'story-topicimage-right';
$topicimage = mxCreateImage($GLOBALS['tipath'] . $story['topicimage'], _TOPIC . ': ' . $story['topictext'], 0, 'class="' . $topicimage_class . '"');
$story['topicimage'] = '<a href="modules.php?name=News&new_topic=' . $story['topic'] . '">' . $topicimage . '</a>';
} else {
$story['topicimage'] = '';
}
$cattitle = (empty($story['cattitle'])) ? '' : ' <span class="story-cattitle">(' . $story['allmorelink']['categorie'] . ')</span>';
$authorinfo = (empty($story['informant']) || $story['informant'] == $GLOBALS['anonymous']) ? theme_adminname($story) : $story['allmorelink']['informantlink'] . $story['informant'] . ((mxModuleAllowed('Userinfo') || MX_IS_ADMIN) ? '</a>' : '');
$story['content'] = $story['hometext'];
$story['infoline'] = ($GLOBALS['storyhome_cols'] == 1) ? _NEWSSUBMITED . ' ' . $authorinfo . ' ' . $story['allmorelink']['datetime'] : $story['datetime'];
$story['title'] = strip_tags($story['title']) . $cattitle;
// die oben definierten Variablen in dem passenden templateteil ersetzen
$artvars = theme_define_content();
echo theme_replace_vars($theme_template[$artvars['themeindex']], $story);
return;
}
ensuite place le fichier news.css du thme par defaut dans /style/ de ton theme et modifie le news.css pour mettre en forme tes news.
je pense que tu utilise un vieux theme, non ?