<?php
$template = <<<END
<!-- lp1_voice -->
<section id="koe" class="lp1_voice {val item/bg}">
<h2 class="c"><span class="main-text">{val item/title}</span><span class="sub-text">{val item/subtitle}</span></h2>
<div class="list-yoko-scroll">
<!--{each item/list}-->
<div class="list">
<h4>{val item/list/title}</h4>
<p class="text">{val item/list/text}</p>
<p class="name">{val item/list/name}<!--{def item/list/image}--><img src="user_data/{val item/list/image}" alt=""><!--{/def}--></p>
</div>
<!--{/each}-->
</div>
<!--{def item/link}-->
<p class="btn3"><a href="{val item/link}">{val item/link_text}</a></p>
<!--{/def}-->
</section>
END;

$lp1_voice = array(
	"title" => "lp1お客さんの声",
	"name" => "lp1_voice",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_voice",
			"class" => "notice",
		),
		"title" => array(
			"title" => "タイトル",
			"type" => "text",
		),
		"subtitle" => array(
			"title" => "サブタイトル",
			"type" => "text",
		),
		"bg" => array(
			"title" => "背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"dummy0" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title1" => array(
			"title" => "タイトル1",
			"type" => "text",
		),
		"text1" => array(
			"title" => "テキスト1",
			"type" => "text",
		),
		"name1" => array(
			"title" => "お名前1",
			"type" => "text",
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title2" => array(
			"title" => "タイトル2",
			"type" => "text",
		),
		"text2" => array(
			"title" => "テキスト2",
			"type" => "text",
		),
		"name2" => array(
			"title" => "お名前2",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title3" => array(
			"title" => "タイトル3",
			"type" => "text",
		),
		"text3" => array(
			"title" => "テキスト3",
			"type" => "text",
		),
		"name3" => array(
			"title" => "お名前3",
			"type" => "text",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title4" => array(
			"title" => "タイトル4",
			"type" => "text",
		),
		"text4" => array(
			"title" => "テキスト4",
			"type" => "text",
		),
		"name4" => array(
			"title" => "お名前4",
			"type" => "text",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title5" => array(
			"title" => "タイトル5",
			"type" => "text",
		),
		"text5" => array(
			"title" => "テキスト5",
			"type" => "text",
		),
		"name5" => array(
			"title" => "お名前5",
			"type" => "text",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title6" => array(
			"title" => "タイトル6",
			"type" => "text",
		),
		"text6" => array(
			"title" => "テキスト6",
			"type" => "text",
		),
		"name6" => array(
			"title" => "お名前6",
			"type" => "text",
		),
		"image6" => array(
			"title" => "画像6",
			"type" => "image",
		),
		"dummy6" => array(
			"title" => " ",
			"type" => "comment",
		),
		"link" => array(
			"title" => "リンク",
			"type" => "text",
		),
		"link_text" => array(
			"title" => "リンク表示",
			"type" => "text",
		),
	),
	"repeat" => array(
		"title", "text", "name", "image",
	),
);

block_add($lp1_voice);
