<?php
$template = <<<END
<!-- lp1_slide -->
<div id="svg-box">
<div class="slide-type1">
<!--{each item/list}-->
<div class="slide img1">
<a href="{val item/list/link}"><img src="user_data/{val item/list/image}" alt=""></a>
</div>
<!--{/each}-->
<!--インジケーターボタン（現在表示中ボタン）-->
<div class="slide-indicators"></div>
</div><!--/.slide-type1-->
<!--回転する円形のテキストアニメーション-->
<img src="images/bg_text1.svg" alt="" class="animation-text spin">
<svg  width="0" height="0" viewBox="0 0 1600 900">
<defs>
<clipPath id="myClip1" clipPathUnits="objectBoundingBox">
<path transform="scale(0.000625,0.001111)" d="M244.6,20v64c0,11-9,20-20,20H19.6c-11,0-20,9-20,20v756c0,11,9,20,20,20h1560c11,0,20-9,20-20V20c0-11-9-20-20-20H264.6c-11,0-20,9-20,20Z">
</clippath>
</defs>
</svg>
</div>
END;

$lp1_slide = array(
	"title" => "lp1スライドショー",
	"name" => "lp1_slide",			// 名称、重複すると正しく動作しません
	"template" => $template,		// ブロックのテンプレート
	"output" => "slide",			// 表示位置
	"input" => array(
		"help" => array(
			"title" => "使い方",
			"type" => "comment",
			"link" => DOCUMENT1 . "/?act=lp1_slide",
			"class" => "notice",
		),
		"image1" => array(
			"title" => "画像1",
			"type" => "image",
		),
		"link1" => array(
			"title" => "リンク1",
			"type" => "text",
		),
		"image2" => array(
			"title" => "画像2",
			"type" => "image",
		),
		"link2" => array(
			"title" => "リンク2",
			"type" => "text",
		),
		"image3" => array(
			"title" => "画像3",
			"type" => "image",
		),
		"link3" => array(
			"title" => "リンク3",
			"type" => "text",
		),
		"image4" => array(
			"title" => "画像4",
			"type" => "image",
		),
		"link4" => array(
			"title" => "リンク4",
			"type" => "text",
		),
		"image5" => array(
			"title" => "画像5",
			"type" => "image",
		),
		"link5" => array(
			"title" => "リンク5",
			"type" => "text",
		),
	),
	"repeat" => array(
		"image", "link",
	),
);

block_add($lp1_slide);
