<?php
$template = <<<END
<!--biz63_faq:FAQ-->
<section class="bg-primary-color" id="faq">
<div class="c2">
<!--{def item/title}-->
<div class="title">
<h2>{val item/title}</h2>
</div>
<!--{/def}-->
<div class="text">
<dl class="faq">
<!--{each item/list}-->
<dt class="<!--{def item/openclose}-->openclose<!--{/def}-->">{val item/list/title}</dt>
<dd class="markdown-body">{rval item/list/answer}</dd>
<!--{/each}-->
</dl>
</div><!--/.text-->
</div><!--/.c2-->
<!--{def item/more_title}-->
<div class="r"><p class="btn1"><a href="{val item/more_link}" class="inline-block">{val item/more_title}</a></p></div>
<!--{/def}-->
</section>
END;

$biz63_faq = array(
	"title" => "biz63 FAQ",
	"name" => "biz63_faq",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレートファイル
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=biz63_faq",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"openclose" => array(
			"title" => "開閉方法",
			"type" => "select",
			"list" => array(
				"" => "開いたまま",
				"1" => "開閉タイプ",
			),
		),
		"title1" => array(
			"title" => "質問１",
			"type" => "textarea",
		),
		"answer1" => array(
			"title" => "回答１",
			"type" => "textarea",
		),
		"title2" => array(
			"title" => "質問２",
			"type" => "textarea",
		),
		"answer2" => array(
			"title" => "回答２",
			"type" => "textarea",
		),
		"title3" => array(
			"title" => "質問３",
			"type" => "textarea",
		),
		"answer3" => array(
			"title" => "回答３",
			"type" => "textarea",
		),
		"title4" => array(
			"title" => "質問４",
			"type" => "textarea",
		),
		"answer4" => array(
			"title" => "回答４",
			"type" => "textarea",
		),
		"title5" => array(
			"title" => "質問５",
			"type" => "textarea",
		),
		"answer5" => array(
			"title" => "回答５",
			"type" => "textarea",
		),
		"title6" => array(
			"title" => "質問６",
			"type" => "textarea",
		),
		"answer6" => array(
			"title" => "回答６",
			"type" => "textarea",
		),
		"title7" => array(
			"title" => "質問７",
			"type" => "textarea",
		),
		"answer7" => array(
			"title" => "回答７",
			"type" => "textarea",
		),
		"title8" => array(
			"title" => "質問８",
			"type" => "textarea",
		),
		"answer8" => array(
			"title" => "回答８",
			"type" => "textarea",
		),
		"title9" => array(
			"title" => "質問９",
			"type" => "textarea",
		),
		"answer9" => array(
			"title" => "回答９",
			"type" => "textarea",
		),
		"title10" => array(
			"title" => "質問１０",
			"type" => "textarea",
		),
		"answer10" => array(
			"title" => "回答１０",
			"type" => "textarea",
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"more_title" => array(
			"title" => "もっと見るタイトル",
			"type" => "text",
		),
		"more_link" => array(
			"title" => "もっと見るリンク",
			"type" => "text",
		),
	),
	"repeat" => array("title", "answer"),
);

block_add($biz63_faq);
