<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WEBあくまこ &#187; thickbox</title>
	<atom:link href="http://wb.corekuuma.com/archives/tag/thickbox/feed" rel="self" type="application/rss+xml" />
	<link>http://wb.corekuuma.com</link>
	<description>WEB制作している人のメモ。</description>
	<lastBuildDate>Wed, 17 Jun 2009 07:57:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>EC-CUBEにthickbox</title>
		<link>http://wb.corekuuma.com/archives/72</link>
		<comments>http://wb.corekuuma.com/archives/72#comments</comments>
		<pubDate>Mon, 30 Jun 2008 13:03:30 +0000</pubDate>
		<dc:creator>daisukew</dc:creator>
				<category><![CDATA[CORESERVER]]></category>
		<category><![CDATA[EC-CUBE]]></category>
		<category><![CDATA[thickbox]]></category>

		<guid isPermaLink="false">http://wb.corekuuma.com/?p=72</guid>
		<description><![CDATA[今日はEC－CUBEにthickboxを入れてみます。
画像などが、ビヨーンと出てくるやつです。lightboxでもいいのですが、マイブームはthickboxなので。
EC-CUBE2.1.2
CORESERVERです。
data/Smarty/templates/テンプレート名/site_frame.tpl
を編集するのです。
このファイルは、サーバーにできてるので、ダウンロードして編集してアップロードしましょう。
1.thickboxをダウンロード
画像やhtmlファイルがビヨーンと出てくる、thickboxやlightboxをダウンロードして、一番上の階層にでも入れます。jsフォルダを作って入れました。
2.&#60;head&#62;にjs読み込み記述
site_frame.tplのヘッダ部分に以下を追加して、thickbox.jsを読み込むようにします。
35行目あたりがいいかな？


&#60;script type=&#34;text/javascript&#34; src=&#34;&#60;!--{$smarty.const.SITE_URL}--&#62;js/jquery.js&#34;&#62;&#60;/script&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;&#60;!--{$smarty.const.SITE_URL}--&#62;js/thickbox.js&#34;&#62;&#60;/script&#62;
&#60;link rel=&#34;stylesheet&#34; href=&#34;&#60;!--{$smarty.const.SITE_URL}--&#62;js/thickbox.css&#34; type=&#34;text/css&#34; media=&#34;all&#34;&#62;

3.商品詳細ページをちょっといじる
画像を拡大表示させたいところに、class=&#8221;thickbox”をつけたaタグを書いて、拡大画像にリンクします。


&#60;a href=&#34;&#60;!--{$arrFile.main_large_image.filepath}--&#62;&#34; target=&#34;_blank&#34; class=&#34;thickbox&#34;&#62;
   &#60;img src=&#34;&#60;!--{$arrFile[$key].filepath}--&#62;&#34; width=&#34;&#60;!--{$smarty.const.NORMAL_IMAGE_WIDTH}--&#62;&#34; height=&#34;&#60;!--{$smarty.const.NORMAL_IMAGE_HEIGHT}--&#62;&#34; alt=&#34;&#60;!--{$arrProduct.name&#124;escape}--&#62;&#34; class=&#34;picture&#34; /&#62;
&#60;/a&#62;

サブ画像のところはこんな風に・・・。


&#60;a href=&#34;&#60;!--{$arrFile[$lkey].filepath}--&#62;&#34; target=&#34;_blank&#34; class=&#34;thickbox&#34;&#62;
&#60;img src=&#34;&#60;!--{$arrFile[$key].filepath}--&#62;&#34; alt=&#34;&#60;!--{$arrProduct.name&#124;escape}--&#62;&#34; width=&#34;&#60;!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}--&#62;&#34; height=&#34;&#60;!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}--&#62;&#34; class=&#34;picture&#34; /&#62;
&#60;/a&#62;

これで、拡大画像を表示するときに、ビヨ～ンって出てくるようになるのですよ。
他にも、Ajaxを入れたくなったら、site_frame.tplに追加していくことにします。
]]></description>
			<content:encoded><![CDATA[<p>今日はEC－CUBEにthickboxを入れてみます。<br />
画像などが、ビヨーンと出てくるやつです。lightboxでもいいのですが、マイブームはthickboxなので。<br />
EC-CUBE2.1.2<br />
CORESERVERです。<span id="more-72"></span></p>
<p>data/Smarty/templates/テンプレート名/site_frame.tpl<br />
を編集するのです。</p>
<p>このファイルは、サーバーにできてるので、ダウンロードして編集してアップロードしましょう。</p>
<h4>1.thickboxをダウンロード</h4>
<p>画像やhtmlファイルがビヨーンと出てくる、thickboxやlightboxをダウンロードして、一番上の階層にでも入れます。jsフォルダを作って入れました。</p>
<h4>2.&lt;head&gt;にjs読み込み記述</h4>
<p>site_frame.tplのヘッダ部分に以下を追加して、thickbox.jsを読み込むようにします。<br />
35行目あたりがいいかな？</p>
<pre name="code" class="php">

&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;!--{$smarty.const.SITE_URL}--&gt;js/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;!--{$smarty.const.SITE_URL}--&gt;js/thickbox.js&quot;&gt;&lt;/script&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;!--{$smarty.const.SITE_URL}--&gt;js/thickbox.css&quot; type=&quot;text/css&quot; media=&quot;all&quot;&gt;
</pre>
<h4>3.商品詳細ページをちょっといじる</h4>
<p>画像を拡大表示させたいところに、class=&#8221;thickbox”をつけたaタグを書いて、拡大画像にリンクします。</p>
<pre name="code" class="php">

&lt;a href=&quot;&lt;!--{$arrFile.main_large_image.filepath}--&gt;&quot; target=&quot;_blank&quot; class=&quot;thickbox&quot;&gt;
   &lt;img src=&quot;&lt;!--{$arrFile[$key].filepath}--&gt;&quot; width=&quot;&lt;!--{$smarty.const.NORMAL_IMAGE_WIDTH}--&gt;&quot; height=&quot;&lt;!--{$smarty.const.NORMAL_IMAGE_HEIGHT}--&gt;&quot; alt=&quot;&lt;!--{$arrProduct.name|escape}--&gt;&quot; class=&quot;picture&quot; /&gt;
&lt;/a&gt;
</pre>
<p>サブ画像のところはこんな風に・・・。</p>
<pre name="code" class="php">

&lt;a href=&quot;&lt;!--{$arrFile[$lkey].filepath}--&gt;&quot; target=&quot;_blank&quot; class=&quot;thickbox&quot;&gt;
&lt;img src=&quot;&lt;!--{$arrFile[$key].filepath}--&gt;&quot; alt=&quot;&lt;!--{$arrProduct.name|escape}--&gt;&quot; width=&quot;&lt;!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}--&gt;&quot; height=&quot;&lt;!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}--&gt;&quot; class=&quot;picture&quot; /&gt;
&lt;/a&gt;
</pre>
<p>これで、拡大画像を表示するときに、ビヨ～ンって出てくるようになるのですよ。</p>
<p>他にも、Ajaxを入れたくなったら、site_frame.tplに追加していくことにします。</p>
]]></content:encoded>
			<wfw:commentRss>http://wb.corekuuma.com/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

