<?php
$template = <<<END
<!--biz63_company:会社概要-->
<section id="company" class="biz63_company">
<!--{def item/image}-->
<div class="bg-slideup mb-space-large">
<div class="image" style="background-image: url('user_data/{val item/image_file}')">
</div>
</div>
<!--{/def}-->
<div class="c2">
<!--{def item/title}-->
<div class="title">
<h2>{val item/title}</h2>
</div><!--/.title-->
<!--{/def}-->
<div class="text">
<table class="ta1">
<!--{def item/caption}-->
<caption>{val item/caption}</caption>
<!--{/def}-->
<!--{each item/list}-->
<tr>
<th>{val item/list/name}</th>
<td class="markdown-body">{rval item/list/value}</td>
</tr>
<!--{/each}-->
</table>
</div><!--/.text-->
</div><!--/.c2-->
</section>
END;

$biz63_company = array(
	"title" => "biz63会社概要",
	"name" => "biz63_company",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレートファイル
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=biz63_company",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"image" => array(
			"title" => "画像",
			"type" => "image",
		),
		"caption" => array(
			"title" => "表見出し",
			"type" => "text",
		),
		"name1" => array(
			"title" => "項目見出し１",
			"type" => "text",
		),
		"value1" => array(
			"title" => "項目内容１",
			"type" => "textarea",
		),
		"name2" => array(
			"title" => "項目見出し２",
			"type" => "text",
		),
		"value2" => array(
			"title" => "項目内容２",
			"type" => "textarea",
		),
		"name3" => array(
			"title" => "項目見出し３",
			"type" => "text",
		),
		"value3" => array(
			"title" => "項目内容３",
			"type" => "textarea",
		),
		"name4" => array(
			"title" => "項目見出し４",
			"type" => "text",
		),
		"value4" => array(
			"title" => "項目内容４",
			"type" => "textarea",
		),
		"name5" => array(
			"title" => "項目見出し５",
			"type" => "text",
		),
		"value5" => array(
			"title" => "項目内容５",
			"type" => "textarea",
		),
		"name6" => array(
			"title" => "項目見出し６",
			"type" => "text",
		),
		"value6" => array(
			"title" => "項目内容６",
			"type" => "textarea",
		),
		"name7" => array(
			"title" => "項目見出し７",
			"type" => "text",
		),
		"value7" => array(
			"title" => "項目内容７",
			"type" => "textarea",
		),
		"name8" => array(
			"title" => "項目見出し８",
			"type" => "text",
		),
		"value8" => array(
			"title" => "項目内容８",
			"type" => "textarea",
		),
		"name9" => array(
			"title" => "項目見出し９",
			"type" => "text",
		),
		"value9" => array(
			"title" => "項目内容９",
			"type" => "textarea",
		),
		"name10" => array(
			"title" => "項目見出し１０⃣",
			"type" => "text",
		),
		"value10" => array(
			"title" => "項目内容１０",
			"type" => "textarea",
		),
	),
	"repeat" => array("name", "value"),
);

block_add($biz63_company);
