<?php
$template = <<<END
<section class="wa2_gallery {val item/bg}>
<h2 class="dn">{val item/title}</h2>
<div class="thumbnail-slide">
<!--{each item/list}-->
<a href="#"><img src="user_data/{val item/list/image}" alt=""></a>
<!--{/each}-->
</div>
</section>
END;

$wa2_gallery = array(
	"title" => "wa2ギャラリー",
	"name" => "wa2_gallery",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"output" => "gallery",
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=wa2_gallery",
			"class" => "notice",
		),
		"notice1" => array(
			"title" => "このブロックは1ページに1つしか使えません",
			"type" => "comment",
			"class"=> "notice",
		),
		"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($wa2_gallery);
