<?php
$template = <<<END
<!-- wa2_text -->
<section class="wa2_text {val item/bg}">
<!--{def item/title}-->
<h2 class="{val item/bg2}">{val item/title}</h2>
<!--{/def}-->
<p class="markdown-body">{rval item/text}</p>
</section>
END;

$wa2_text = array(
	"title" => "wa2テキスト",
	"name" => "wa2_text",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=wa2_text",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"text" => array(
			"title" => "内容",
			"type" => "textarea",
		),
		"bg2" => array(
			"title" => "タイトル背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg2" => "あり",
			),
		),
		"bg" => array(
			"title" => "全体背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
	),
	"repeat" => array(
	),
);

block_add($wa2_text);
