<?php
$template = <<<END
<!-- lp1contactus -->
<section class="padding0 lp1_contactus {val item/bg}">
<div class="list-c2">
<a href="{val item/link1}">
<div class="list image1" style="background: url('user_data/{val item/image1_file}') no-repeat center center / cover;">
<div class="text">
<h4><span class="sub-text">{val item/subtitle1}</span><span class="main-text">{val item/maintitle1}</span></h4>
<p class="markdown-body">{rval item/text1}</p>
</div>
</div>
</a>
<a href="{val item/link2}">
<div class="list image2" style="background: url('user_data/{val item/image2_file}') no-repeat center center / cover;">
<div class="text">
<h4><span class="sub-text">{val item/subtitle2}</span><span class="main-text">{val item/maintitle2}</span></h4>
<p class="markdown-body">{rval item/text2}</p>
</div>
</div>
</a>
</div><!--/.list-c2-->
</section>
END;

$lp1_contactus = array(
	"title" => "lp1問い合わせリンク",
	"name" => "lp1_contactus",		// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_contactus",
			"class" => "notice",
		),
		"maintitle1" => array(
			"title" => "メインタイトル1",
			"type" => "text",
		),
		"subtitle1" => array(
			"title" => "サブタイトル1",
			"type" => "text",
		),
		"bg" => array(
			"title" => "背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"text1" => array(
			"title" => "文章1",
			"type" => "textarea",
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"maintitle2" => array(
			"title" => "メインタイトル2",
			"type" => "text",
		),
		"subtitle2" => array(
			"title" => "サブタイトル2",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"text2" => array(
			"title" => "文章2",
			"type" => "textarea",
		),
	),
	"repeat" => array(),
);

block_add($lp1_contactus);
