2010年11月17日

EC-CUBE 画像をトップページにだけ

投稿者: 管理者

※これは自分用メモです。


//以下のソースを管理画面のヘッダー編集の部分

/* 説明元ソース */
[html]
<!--{assign var=○○ value="`$smarty.const.URL_DIR`index.php"}-->
<!--{ if $smarty.server.PHP_SELF==$○○}-->
<!--▼TOPIMAGE-->
<table width="950" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr>
<td><img src="<!--{$smarty.const.SITE_URL}-->img/top/image.jpg" width="780" height="300" alt="おみせやさん"></td>
</tr>
</table>
<!--▲TOPIMAGE-->
<!--{/if}-->

/* auther +*/
<!--{assign var=adk value="`$smarty.const.URL_DIR`index.php"}-->
<!--{ if $smarty.server.PHP_SELF==$adk}-->
<!--▼TOPIMAGE-->
<div id="top_pic">
<img src="<!--{$TPL_DIR}-->img/top/top_bg.jpg" width="950" height="320" alt="xxx.com">
</div>
<!--▲TOPIMAGE-->
<!--{/if}-->
[/html]

/* 元々使っていたソース */
[html]
<div id="header" class="alphafilter">
<h1>
<a href="<!--{$smarty.const.SITE_URL}-->">
<em><!--{$arrSiteInfo.shop_name|escape}-->/<!--{$tpl_title|escape}--></em>
</a>
</h1>
</div>
[/html]