<?php
$template = <<<END
<!-- lp1_kiji -->
<section class="lp1_kiji {val item/bg} logo-kazari padding-lr0" id="brand" <!--{def item/kazari_file}-->style="background: url('user_data/{val item/kazari_file}') no-repeat center 10vw / 100%;"<!--{/def}-->>
<div class="title-bg blur">
<h2><span class="tate order1">{val item/maintitle}</span><span class="yoko">{val item/subtitle}</span></h2>
</div>
<!--{each item/list}-->
<!--{def item/list/title}-->
<div class="list1 image1 {val item/list/view}" style="background: url('user_data/{val item/list/image}') no-repeat center center / cover;">
<div class="text {val item/list/pos}">
<h3>{val item/list/title}</h3>
<p class="markdown-body">{rval item/list/text}</p>
<!--{def item/list/link}-->
<p class="btn2"><a href="{val item/list/link}">{val item/list/link_text}</a></p>
<!--{/def}-->
</div>
</div><!--/.list1.image1-->
<!--{/def}-->
<!--{/each}-->
</section>
END;

$lp1_kiji = array(
	"title" => "lp1記事",
	"name" => "lp1_kiji",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_kiji",
			"class" => "notice",
		),
		"maintitle" => array(
			"title" => "メインタイトル",
			"type" => "text",
		),
		"subtitle" => array(
			"title" => "サブタイトル",
			"type" => "text",
		),
		"bg" => array(
			"title" => "背景",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"bg1" => "あり",
			),
		),
		"kazari" => array(
			"title" => "飾り画像",
			"type" => "image",
		),
		"dummy1" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title1" => array(
			"title" => "メインタイトル1",
			"type" => "text",
		),
		"text1" => array(
			"title" => "文章1",
			"type" => "text",
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"view1" => array(
			"title" => "出現1",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"link1" => array(
			"title" => "リンク1",
			"type" => "text",
		),
		"link_text1" => array(
			"title" => "リンクテキスト1",
			"type" => "text",
		),
		"pos1" => array(
			"title" => "配置1",
			"type" => "select",
			"list" => array(
				"" => "左",
				"reverse" => "右",
			),
		),
		"dummy2" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title2" => array(
			"title" => "メインタイトル2",
			"type" => "text",
		),
		"text2" => array(
			"title" => "文章2",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"view2" => array(
			"title" => "出現2",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"link2" => array(
			"title" => "リンク2",
			"type" => "text",
		),
		"link_text2" => array(
			"title" => "リンクテキスト2",
			"type" => "text",
		),
		"pos2" => array(
			"title" => "配置2",
			"type" => "select",
			"list" => array(
				"" => "左",
				"reverse" => "右",
			),
		),
		"dummy3" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title3" => array(
			"title" => "メインタイトル3",
			"type" => "text",
		),
		"text3" => array(
			"title" => "文章3",
			"type" => "text",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"view3" => array(
			"title" => "出現3",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"link3" => array(
			"title" => "リンク3",
			"type" => "text",
		),
		"link_text3" => array(
			"title" => "リンクテキスト3",
			"type" => "text",
		),
		"pos3" => array(
			"title" => "配置3",
			"type" => "select",
			"list" => array(
				"" => "左",
				"reverse" => "右",
			),
		),
		"dummy4" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title4" => array(
			"title" => "メインタイトル4",
			"type" => "text",
		),
		"text4" => array(
			"title" => "文章4",
			"type" => "text",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"view4" => array(
			"title" => "出現4",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"link4" => array(
			"title" => "リンク4",
			"type" => "text",
		),
		"link_text4" => array(
			"title" => "リンクテキスト4",
			"type" => "text",
		),
		"pos4" => array(
			"title" => "配置4",
			"type" => "select",
			"list" => array(
				"" => "左",
				"reverse" => "右",
			),
		),
		"dummy5" => array(
			"title" => " ",
			"type" => "comment",
		),
		"title5" => array(
			"title" => "メインタイトル5",
			"type" => "text",
		),
		"text5" => array(
			"title" => "文章5",
			"type" => "text",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"view5" => array(
			"title" => "出現5",
			"type" => "select",
			"list" => array(
				"" => "なし",
				"up" => "上から",
				"down" => "下から",
				"transform1" => "横回転",
				"transform2" => "縦回転",
				"blur" => "徐々に",
			),
		),
		"link5" => array(
			"title" => "リンク5",
			"type" => "text",
		),
		"link_text5" => array(
			"title" => "リンクテキスト5",
			"type" => "text",
		),
		"pos5" => array(
			"title" => "配置5",
			"type" => "select",
			"list" => array(
				"" => "左",
				"reverse" => "右",
			),
		),
	),
	"repeat" => array(
		"title", "text", "image", "link", "link_text", "pos", "view",
	),
);

block_add($lp1_kiji);
