記事一覧(directory.php)の変更

記事一覧(directory.php)の文字デザインだけでも変更したい。
単なる思いつきの方法
「directory.php」の該当部分にclass指定をしてcustom.cssで指定する。

「directory.php」の
271行からの
    $wk=sprintf ($LANG_DIR['title_month_year'],$year,$month);
    if ($main) {
        $retval .= '<div><h1 style="display:inline">';
        $retval .= $wk;
        $retval .= '</h1> ' . DIR_topicList ($topic, $year, $month) . '</div>' . LB;
    } else {
        $retval .= '<h1>';
        $retval .= $wk;
        $retval .= '</h1>' . LB;
    }
この部分の<div>を
    $wk=sprintf ($LANG_DIR['title_month_year'],$year,$month);
    if ($main) {
        $retval .= '<div class="direct"><h1 style="display:inline">';
        $retval .= $wk;
        $retval .= '</h1> ' . DIR_topicList ($topic, $year, $month) . '</div>' . LB;
    } else {
        $retval .= '<div class="direct"><h1>';
        $retval .= $wk;
        $retval .= '</h1>' .'</div>'. LB;
    }
とclass指定する。

続いて

316行目辺りの
   $retval .= '<h2>' . $day . '</h2>' . LB;
この部分の<h2>に
   $retval .= '<div class="direct"><h2>' . $day . '</h2>' . '</div>' . LB;

362行目辺りの
    if ($main) {
        $retval .= '<div><h1 style="display:inline">';
        $retval .= sprintf ($LANG_DIR['title_year'], $year);
        $retval .=  '</h1> ';
        $retval .=  DIR_topicList ($topic, $year) . '</div>' . LB;
    } else {
        $retval .= '<h2>';
        $retval .= sprintf ($LANG_DIR['title_year'], $year);
        $retval .= '</h2>' . LB;
    }
この部分の<div>を
    if ($main) {
        $retval .= '<div class="direct"><h1 style="display:inline">';
        $retval .= sprintf ($LANG_DIR['title_year'], $year);
        $retval .=  '</h1> ';
        $retval .=  DIR_topicList ($topic, $year) . '</div>' . LB;
    } else {
        $retval .= '<div class="direct"><h2>';
        $retval .= sprintf ($LANG_DIR['title_year'], $year);
        $retval .= '</h2>' . '</div>' . LB;
    }

467行目辺りの
    $retval .= '<div><h1 style="display:inline">' . $LANG_DIR['title']
            . '</h1> ' . DIR_topicList ($topic) . '</div>' . LB;
この部分の<div>を
    $retval .= '<div class="direct"><h1 style="display:inline">' . $LANG_DIR['title']
            . '</h1> ' . DIR_topicList ($topic) . '</div>' . LB;
とclass指定する。

custom.cssに
.direct {
  font-size:1em;
}

.direct h1{
  margin: 0 0 0 10px;
  padding: 0;
  font-size:150%;
}
.direct h2 {
  margin: 0;
  padding: 0;
  font-size: 90%;
}
のようにh1とh2にCSSを指定する。
かなり力技かもしれない・・・

このファイルのダウンロードは
gltmatrix.com/filemgmt/index.phpの「小物」からダウンロードできます。

2007/8/28追記

暫定仕様
右側のプルダウンメニューの位置を変えたい場合
110行目のスタイル指定部分にCSSを指定する。

GLTMatrix: 記事一覧(directory.php)の変更
http://gltmatrix.com/article.php/redirect