<?php
$template = <<<END
<!-- lp1_top -->
<section class="box1 lp1_top {val item/bg}" id="kodawari">
<p class="deco-text">{val item/toptitle}</p>
<!--{def item/top_image1}-->
<img src="user_data/{val item/top_image1_file}" alt="" class="illust1">
<!--{/def}-->
<!--{def item/top_image2}-->
<img src="user_data/{val item/top_image2_file}" alt="" class="illust2">
<!--{/def}-->
<div class="text order1 {val item/view}">
<h2 class="no-line"><span class="main-text">{val item/maintitle}</span><span class="sub-text">{val item/subtitle}</span><!--{def item/point}--><img src="user_data/{val item/point_file}" alt=""><!--{/def}--></h2>
<p>{val item/text1}</p>
<p>{val item/text2}</p>
<!--{def item/link}-->
<p class="btn1"><a href="{val item/link}">{val item/link_text}</a></p>
<!--{/def}-->
</div><!--/.text-->
<div class="image blur">
<!--{def item/bottom_image1}-->
<img src="user_data/{val item/bottom_image1_file}" alt="" class="speed1">
<!--{/def}-->
<!--{def item/bottom_image2}-->
<img src="user_data/{val item/bottom_image2_file}" alt="" class="speed2">
<!--{/def}-->
</div>
</section>
END;

$lp1_top = array(
	"title" => "lp1トップコンテンツ",
	"name" => "lp1_top",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_top",
			"class" => "notice",
		),
		"toptitle" => array(
			"title" => "上部タイトル",
			"type" => "text",
		),
		"maintitle" => array(
			"title" => "メインタイトル",
			"type" => "text",
		),
		"subtitle" => array(
			"title" => "サブタイトル",
			"type" => "text",
		),
		"view" => array(
			"title" => "出現",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"bg" => array(
			"title" => "背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"point" => array(
			"title" => "ポイント画像",
			"type" => "image",
		),
		"text1" => array(
			"title" => "テキスト1",
			"type" => "text",
		),
		"text2" => array(
			"title" => "テキスト2",
			"type" => "text",
		),
		"link" => array(
			"title" => "リンク",
			"type" => "text",
		),
		"link_text" => array(
			"title" => "リンクテキスト",
			"type" => "text",
		),
		"top_image1" => array(
			"title" => "上画像1",
			"type" => "image",
		),
		"top_image2" => array(
			"title" => "上画像2",
			"type" => "image",
		),
		"bottom_image1" => array(
			"title" => "下画像1",
			"type" => "image",
		),
		"bottom_image2" => array(
			"title" => "下画像2",
			"type" => "image",
		),
	),
	"repeat" => array(),
);

block_add($lp1_top);
