Quote:
newsモジュールにアクセスしている時に、news.gif の替わりに news_highlite.gif という画像を表示させたい場合
<{php}>
global $xoopsModule , $xoopsUser ;
$xoops_url = XOOPS_URL ;
$xoops_imageurl = XOOPS_THEME_URL.'/'.テーマ名.'' ;
$mod = $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$this->assign("module_current", $dirname);
$submenu_str = "" ;
$mainmenu_str = "
<tr>
<td class='headermenu'>
<a href='$xoops_url/'><img src='$xoops_imageurl/home.gif'></a> |
<{if $module_current == $module.directory}><a href='$xoops_url/modules/news/'><img src='$xoops_imageurl/news_highlite.gif'></a><{else}><a href='$xoops_url/modules/news/'><img src='$xoops_imageurl/news.gif'></a><{/if}>
</td>
</tr>\n" ;
以下省略
としたところ、うまくいかなかったというものです。
ここは、PHPパートなので、<{}>といったタグは使えません。
ここを私がPHPで書くのは簡単ですが、その後が困るでしょう。
PHPを読み書きできないのなら、無理にPHPをいじろうとせず、テーマチェンジャーを使う、なんて方法はどうでしょうか?