<?php
$template = <<<END
<!--biz63_top1:記事１-->
<section class="{val item/bg} {val item/pattern} {val item/arrow}">
<!--{def item/title}-->
<h2 class="c">{val item/title}</h2>
<!--{/def}-->
<div class="list-grid1">
<!--{each item/list}-->
<div class="list bg-black {val item/view}">
<figure class="icon"><img src="user_data/{val item/list/image}" alt=""></figure>
<h4 class="kazari">{val item/list/title}</h4>
<p>{val item/list/text}</p>
<span class="num">{val item/list/num}</span>
</div>
<!--{/each}-->
</div><!--/.list-grid1-->
</section>
END;

$biz63_top1 = array(
	"title" => "biz63トップ記事１",
	"name" => "biz63_top1",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレートファイル
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=biz63_top1",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"view" => array(
			"title" => "出現",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"title1" => array(
			"title" => "タイトル1",
			"type" => "text",
		),
		"text1" => array(
			"title" => "テキスト1",
			"type" => "text",
		),
		"num1" => array(
			"title" => "数値1",
			"type" => "text",
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"title2" => array(
			"title" => "タイトル2",
			"type" => "text",
		),
		"text2" => array(
			"title" => "テキスト2",
			"type" => "text",
		),
		"num2" => array(
			"title" => "数値2",
			"type" => "text",
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"title3" => array(
			"title" => "タイトル3",
			"type" => "text",
		),
		"text3" => array(
			"title" => "テキスト3",
			"type" => "text",
		),
		"num3" => array(
			"title" => "数値3",
			"type" => "text",
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"title4" => array(
			"title" => "タイトル4",
			"type" => "text",
		),
		"text4" => array(
			"title" => "テキスト4",
			"type" => "text",
		),
		"num4" => array(
			"title" => "数値4",
			"type" => "text",
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"title5" => array(
			"title" => "タイトル5",
			"type" => "text",
		),
		"text5" => array(
			"title" => "テキスト5",
			"type" => "text",
		),
		"num5" => array(
			"title" => "数値5",
			"type" => "text",
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"image6" => array(
			"title" => "画像6",
			"type" => "image",
		),
		"title6" => array(
			"title" => "タイトル6",
			"type" => "text",
		),
		"text6" => array(
			"title" => "テキスト6",
			"type" => "text",
		),
		"num6" => array(
			"title" => "数値6",
			"type" => "text",
		),
		"dummy7" => array(
			"title" => " ",
			"type" => "comment",
		),
		"bg" => array(
			"title" => "背景色",
			"type" => "select",
			"list" => array(
				"bg1" => "背景色と文字色の単色",
				"bg2" => "背景色",
				"bg3" => "白",
				"bg-primary-color" => "プライマリ色",
				"" => "なし",
			),
		),
		"pattern" => array(
			"title" => "格子柄のパターン",
			"type" => "select",
			"list" => array(
				"bg-pattern1" => "パターン1",
				"bg-pattern2" => "パターン2",
				"bg-pattern3" => "パターン3",
				"" => "なし",
			),
		),
		"arrow" => array(
			"title" => "セクション下部",
			"type" => "select",
			"list" => array(
				"arrow" => "三角",
				"" => "なし",
			),
		),
	),
	"repeat" => array("title", "text", "image", "num"),
);

block_add($biz63_top1);
