0

ニュースのメインフッターに「投稿日」を追加する方法がわかりません。投稿の日付を確認したいときは、「もっと見る」アイコンをクリックする必要があります。メインフッターに表示する必要があります。

関連するコードがどこにあるかを見つけたと思います。それらはtheme.phpにあります:

メインフッター:

  <div class="NewsFooter">
    <div class="foot-r">
    <?=$MoreLinkRight?>
    </div>
    <div class="foot-l">
    <?=$MoreLinkLeft?>
    </div>
    <div class="foot-m">

      <div class="Author">
        <?=_AUTHOR?>
        :
        <?=$aid?>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <?=_VISIT?>
        :
        <?=$counter?>
      </div>

サブフッター(条件付き):

<?php
}


function themearticle($aid, $informant, $datetime, $title, $bodytext, $hometext, $topics, $topicname_link, $topicimage_link, $topictext_link, $printpage, $notes, $counter, $score, $ratings, $sid, $topic_link)
{
    global $admin, $tipath;
    $ThemeSel = get_theme();
    theme_lang();
    if(file_exists("themes/$ThemeSel/images/topics/$topicimage_link")){
    $t_image = "themes/$ThemeSel/images/topics/$topicimage_link";
    }else{
    $t_image = "$tipath$topicimage_link";
    }
    $posted = ""._POSTEDON." $datetime "._BY." "; 
    $posted .= get_author($aid);
    $notes = str_replace(" ","_",$notes);
    $notes = explode(":",$notes);
    foreach($notes as $tag){
        $tags .= "<i><a href=\"modules.php?name=News&file=tags&tags=$tag\">".str_replace("_"," ",$tag)."</a></i> ";
    }
?>
4

1 に答える 1

0

うわー...私はそれを作りました...

追加しました

> <?=$datetime?>

> <?=_AUTHOR?>

とbaAm。このアイデアがどこから来たのかはわかりませんが、機能しており、それだけが重要です。とにかくありがとう...

于 2013-01-22T09:40:37.207 に答える