<?php
$template = <<<END
<!--biz63_slide:サムネイルスライドショー-->
<section class="padding-lr0">

<div class="slide-thumbnail1">
<div class="{val item/direction}">
<!--{each item/list}-->
<!--{def item/list/link}-->
<div><a href="{val item/list/link}"><img src="user_data/{val item/list/image}" alt=""></a></div>
<!--{/def}-->
<!--{ndef item/list/link}-->
<div><img src="user_data/{val item/list/image}" alt=""></div>
<!--{/ndef}-->
<!--{/each}-->
</div>
</div>
</section>
END;

$biz63_slide = array(
	"title" => "biz63スライド",
	"name" => "biz63_slide",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレートファイル
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=biz63_slide",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"direction" => array(
			"title" => "移動方向",
			"type" => "select",
			"list" => array(
				"img ltr" => "右",
				"img rtl" => "左",
			),
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"image6" => array(
			"title" => "画像6",
			"type" => "image",
		),
		"image7" => array(
			"title" => "画像7",
			"type" => "image",
		),
		"image8" => array(
			"title" => "画像8",
			"type" => "image",
		),
		"image9" => array(
			"title" => "画像9",
			"type" => "image",
		),
		"image10" => array(
			"title" => "画像10",
			"type" => "image",
		),
	),
	"repeat" => array("image"),	// 自動でlistにまとめるもの
);

block_add($biz63_slide);
