<?php
$template = <<<END
<!-- lp1_slideshow -->
<section class="slide-thumbnail-box lp1_slideshow {val item/bg}">
<div class="slide-thumbnail1">
<div class="img <!--{def item/direction}-->rtl<!--{/def}--><!--{ndef item/direction}-->ltr<!--{/ndef}-->">
<!--{each item/list}-->
<div><a href="{val item/list/link}"><img src="user_data/{val item/list/image}" alt=""></a></div>
<!--{/each}-->
</div>
</div>
<!--{def item/row}-->
<div class="slide-thumbnail1">
<div class="img <!--{def item/direction}-->ltr<!--{/def}--><!--{ndef item/direction}-->rtl<!--{/ndef}-->">
<!--{each item/list}-->
<div><a href="{val item/list/link}"><img src="user_data/{val item/list/image}" alt=""></a></div>
<!--{/each}-->
</div>
</div>
<!--{/def}-->
</section>
END;

$lp1_slideshow = array(
	"title" => "lp1サムネイルスライド",
	"name" => "lp1_slideshow",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_slideshow",
			"class" => "notice",
		),
		"direction" => array(
			"title" => "移動方向",
			"type" => "select",
			"list" => array(
				"rtl" => "右",
				"" => "左",
			),
		),
		"row" => array(
			"title" => "移動方向",
			"type" => "select",
			"list" => array(
				"" => "1列",
				"2" => "2列",
			),
		),
		"bg" => array(
			"title" => "背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"link1" => array(
			"title" => "リンク1",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"link2" => array(
			"title" => "リンク2",
			"type" => "text",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"link3" => array(
			"title" => "リンク3",
			"type" => "text",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"link4" => array(
			"title" => "リンク4",
			"type" => "text",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"link5" => array(
			"title" => "リンク5",
			"type" => "text",
		),
		"image6" => array(
			"title" => "画像6",
			"type" => "image",
		),
		"link6" => array(
			"title" => "リンク6",
			"type" => "text",
		),
	),
	"repeat" => array(
		"image", "link",
	),
);

block_add($lp1_slideshow);
