Salut, j aimerais ajouter simplement la date dans un l'article sans le variable user etc ...
voici mon code :
<!-- START themeindex -->
<div class="items leading">
<div class="item">
<h1 class="title">{$title}</h1>
<p class="meta"><em>Proposé par NTFrance le {$datetime}</em></p>
<div class="content"><p>{$content}</p></div>
<p class="links">
{$readmore}
</p>
</div></div>
<!-- END themeindex -->
et le fichier fonction.php tout simple :
/**
* News Modul Artikelliste (index.php)
* $x bedeutet: nicht verwendet, nur zur nuke-Modulkompatibilitaet
*/
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(' ', getThemeIndexButtons($story));
$bmore = ($story['allmorelink']['bodycount']) ? '(' . $story['allmorelink']['bodycount'] . ' ' . _BYTESMORE . ')' : '';
$story['readmore'] = (empty($bmore)) ? '' : '' . $story['allmorelink']['more'] . '';
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, 'align="left" style="padding-right: 20px; padding-bottom: 10px;"');
$story['topicimage'] = '<a href="modules.php?name=News&new_topic=' . $story['topic'] . '">' . $topicimage . '</a>';
} else {
$story['topicimage'] = '';
}
$cattitle = (empty($story['cattitle'])) ? '' : '<br /><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;
}