<?php
$template = <<<END
<section class="wa2_grid {val item/bg}">
<h2 class="{val item/bg2}">{val item/title}</h2>
<div class="list-grid1">
<!--{each item/list}-->
<div class="list {val item/list/view}">
<!--{def item/list/image}-->
<figure><a href="{val item/list/link}"><img src="user_data/{val item/list/image}" alt="{val item/list/title}"></a></figure>
<!--{/def}-->
<div class="text">
<h4>{val item/list/title}</h4>
<p class="markdown-body">{rval item/list/text}</p>
</div>
<!--{def item/list/link}-->
<p class="btn"><a href="{val item/list/link}"><!--{def item/list/link_title}-->{val item/list/link_title}<!--{/def}--><!--{ndef item/list/link_title}-->詳しくみる<!--{/ndef}--></a></p>
<!--{/def}-->
</div>
<!--{/each}-->
</div><!--/.list-grid1-->
</section>
END;

$wa2_grid = array(
	"title" => "wa2グリッド",
	"name" => "wa2_grid",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=wa2_grid",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"bg2" => array(
			"title" => "タイトル背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg2" => "あり",
			),
		),
		"bg" => array(
			"title" => "全体背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title1" => array(
			"title" => "タイトル1",
			"type" => "text",
		),
		"image1" => array(
			"title" => "画像１",
			"type" => "image",
		),
		"text1" => array(
			"title" => "内容1",
			"type" => "textarea",
		),
		"link_title1" => array(
			"title" => "リンク表示1",
			"type" => "text",
		),
		"link1" => array(
			"title" => "リンク先1",
			"type" => "text",
		),
		"view1" => array(
			"title" => "出現1",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title2" => array(
			"title" => "タイトル2",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"text2" => array(
			"title" => "内容2",
			"type" => "textarea",
		),
		"link_title2" => array(
			"title" => "リンク表示2",
			"type" => "text",
		),
		"link2" => array(
			"title" => "リンク先2",
			"type" => "text",
		),
		"view2" => array(
			"title" => "出現2",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title3" => array(
			"title" => "タイトル3",
			"type" => "text",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"text3" => array(
			"title" => "内容3",
			"type" => "textarea",
		),
		"link_title3" => array(
			"title" => "リンク表示3",
			"type" => "text",
		),
		"link3" => array(
			"title" => "リンク先3",
			"type" => "text",
		),
		"view3" => array(
			"title" => "出現3",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title4" => array(
			"title" => "タイトル4",
			"type" => "text",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"text4" => array(
			"title" => "内容4",
			"type" => "textarea",
		),
		"link_title4" => array(
			"title" => "リンク表示4",
			"type" => "text",
		),
		"link4" => array(
			"title" => "リンク先4",
			"type" => "text",
		),
		"view4" => array(
			"title" => "出現4",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title5" => array(
			"title" => "タイトル5",
			"type" => "text",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"text5" => array(
			"title" => "内容5",
			"type" => "textarea",
		),
		"link_title5" => array(
			"title" => "リンク表示5",
			"type" => "text",
		),
		"link5" => array(
			"title" => "リンク先5",
			"type" => "text",
		),
		"view5" => array(
			"title" => "出現5",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title6" => array(
			"title" => "タイトル6",
			"type" => "text",
		),
		"image6" => array(
			"title" => "画像6",
			"type" => "image",
		),
		"text6" => array(
			"title" => "内容6",
			"type" => "textarea",
		),
		"link_title6" => array(
			"title" => "リンク表示6",
			"type" => "text",
		),
		"link6" => array(
			"title" => "リンク先6",
			"type" => "text",
		),
		"view6" => array(
			"title" => "出現6",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy7" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title7" => array(
			"title" => "タイトル7",
			"type" => "text",
		),
		"image7" => array(
			"title" => "画像7",
			"type" => "image",
		),
		"text7" => array(
			"title" => "内容7",
			"type" => "textarea",
		),
		"link_title7" => array(
			"title" => "リンク表示7",
			"type" => "text",
		),
		"link7" => array(
			"title" => "リンク先7",
			"type" => "text",
		),
		"view7" => array(
			"title" => "出現7",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy8" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title8" => array(
			"title" => "タイトル8",
			"type" => "text",
		),
		"image8" => array(
			"title" => "画像8",
			"type" => "image",
		),
		"text8" => array(
			"title" => "内容8",
			"type" => "textarea",
		),
		"link_title8" => array(
			"title" => "リンク表示8",
			"type" => "text",
		),
		"link8" => array(
			"title" => "リンク先8",
			"type" => "text",
		),
		"view8" => array(
			"title" => "出現8",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy9" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title9" => array(
			"title" => "タイトル9",
			"type" => "text",
		),
		"image9" => array(
			"title" => "画像9",
			"type" => "image",
		),
		"text9" => array(
			"title" => "内容9",
			"type" => "textarea",
		),
		"link_title9" => array(
			"title" => "リンク表示9",
			"type" => "text",
		),
		"link9" => array(
			"title" => "リンク先9",
			"type" => "text",
		),
		"view9" => array(
			"title" => "出現9",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy10" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title10" => array(
			"title" => "タイトル10",
			"type" => "text",
		),
		"image10" => array(
			"title" => "画像10",
			"type" => "image",
		),
		"text10" => array(
			"title" => "内容10",
			"type" => "textarea",
		),
		"link_title10" => array(
			"title" => "リンク表示10",
			"type" => "text",
		),
		"link10" => array(
			"title" => "リンク先10",
			"type" => "text",
		),
		"view10" => array(
			"title" => "出現10",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
	),
	"repeat" => array(
		"title", "image", "text", "link", "view", "link_title",
	),
);

block_add($wa2_grid);
