<?php
$template = <<<END
<!--block_faq2:FAQ2-->
<section class="block_faq2">
<!--{def item/title}-->
<h2>{val item/title}</h2>
<!--{/def}-->
<dl class="faq-base-maru<!--{ndef item/icon}--> faq-maru<!--{/def}--><!--{def item/openclose}--> openclose-maru<!--{/def}-->">
<!--{each item/list}-->
<dt>{val item/icon}{rval item/list/question}</dt>
<dd class="markdown-body">{rval item/list/answer}</dd>
<!--{/each}-->
</dl>
</section>
END;

$block_faq = array(
	"title" => "FAQ2",
	"name" => "block_faq2",
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=block_faq2",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"icon" => array(
			"title" => "アイコン",
			"type" => "text",
			"info" => "指定しないと？のアイコンになります（いくつか用意して選択にするか？）",
		),
		"openclose" => array(
			"title" => "開閉方法",
			"type" => "select",
			"list" => array(
				"" => "開いたまま",
				"1" => "開閉タイプ",
			),
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question1" => array(
			"title" => "質問１",
			"type" => "textarea",
		),
		"answer1" => array(
			"title" => "回答１",
			"type" => "textarea",
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question2" => array(
			"title" => "質問２",
			"type" => "textarea",
		),
		"answer2" => array(
			"title" => "回答２",
			"type" => "textarea",
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question3" => array(
			"title" => "質問３",
			"type" => "textarea",
		),
		"answer3" => array(
			"title" => "回答３",
			"type" => "textarea",
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question4" => array(
			"title" => "質問４",
			"type" => "textarea",
		),
		"answer4" => array(
			"title" => "回答４",
			"type" => "textarea",
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question5" => array(
			"title" => "質問５",
			"type" => "textarea",
		),
		"answer5" => array(
			"title" => "回答５",
			"type" => "textarea",
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question6" => array(
			"title" => "質問６",
			"type" => "textarea",
		),
		"answer6" => array(
			"title" => "回答６",
			"type" => "textarea",
		),
		"dummy7" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question7" => array(
			"title" => "質問７",
			"type" => "textarea",
		),
		"answer7" => array(
			"title" => "回答７",
			"type" => "textarea",
		),
		"dummy8" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question8" => array(
			"title" => "質問８",
			"type" => "textarea",
		),
		"answer8" => array(
			"title" => "回答８",
			"type" => "textarea",
		),
		"dummy9" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question9" => array(
			"title" => "質問９",
			"type" => "textarea",
		),
		"answer9" => array(
			"title" => "回答９",
			"type" => "textarea",
		),
		"dummy10" => array(
			"title" => " ",
			"type" => "comment",
		),
		"question10" => array(
			"title" => "質問１０",
			"type" => "textarea",
		),
		"answer10" => array(
			"title" => "回答１０",
			"type" => "textarea",
		),
	),
	"repeat" => array("question", "answer"),
);

block_add($block_faq);

