<?php 
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 

//셋업
if($action == 'setting') {
	//초기화면 검색 키워드 - 콤마(,)로 구분해서 등록
	$keyword_list = 'frozen, AOA, Spica, 레인보우, Hyolyn, 걸스데이, DalShabet, Ailee';

	//동영상 리스트 가로와 세로수
	if(G5_IS_MOBILE) { //Mobile
		$video_garo = 2; 
		$video_sero = 2;
	} else { //PC
		$video_garo = 5;
		$video_sero = 2;
	}
	
	return;
}

?>

<div class="quvic<?php if(G5_IS_MOBILE) echo ' quvic-m';?>">
	<div id="playerContainer" class="playerBox">
		<div id="quvicPlayer"></div>
	</div> 

	<?php if(G5_IS_MOBILE) { ?>
		<div class="searchForm">
			<form id="searchForm" onsubmit="quvic.listVideos('search', this.searchTerm.value, 1); return false;">
				<span class="searchIcon"><i class="fa fa-tags fa-lg"></i></span>
				<input name="searchTerm" type="text" value="" class="searchKeyword" placeholder="<?php echo $keyword;?>">
				<button type="submit" class="submit-ok"><i class="fa fa-search fa-lg"></i></button>
			</form>
		</div>
	<?php } else { ?>
		<div class="searchBox">
			<div class="searchForm">
				<form id="searchForm" onsubmit="quvic.listVideos('search', this.searchTerm.value, 1); return false;">
					<span class="searchIcon"><i class="fa fa-tags fa-lg"></i></span>
					<input name="searchTerm" type="text" value="" class="searchKeyword" placeholder="<?php echo $keyword;?>">
					<button type="submit" class="submit-ok"><i class="fa fa-search fa-lg"></i></button>
				</form>
			</div>

			<div class="searchBtn">
				<span id="searchResultsNavigation">
					<form id="navigationForm">
						<span class="searchPage"><i class="fa fa-video-camera"></i> <LABEL id="videosinfo"></LABEL></span>
						<button type="button" id="previousPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.previousPage);" style="display: none;">
							<i class="fa fa-chevron-circle-left fa-lg"></i>
						</button>
						<button type="button" id="nextPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.nextPage);" style="display: none;">
							<i class="fa fa-chevron-circle-right fa-lg"></i>
						</button>
					</form>
				</span>
			</div>
			<div class="clear"></div>
		</div>
	<?php } ?>
	<div class="clear"></div>

	<div id="videolist"></div> 

	<div class="clear"></div>

	<?php if(G5_IS_MOBILE) { ?>
		<div class="searchBtn">
			<span id="searchResultsNavigation">
				<form id="navigationForm">
					<button type="button" id="previousPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.previousPage);" style="display: none;">
						<i class="fa fa-chevron-circle-left fa-lg"></i>
					</button>
					<span class="searchPage"><i class="fa fa-video-camera"></i> <LABEL id="videosinfo"></LABEL></span>
					<button type="button" id="nextPageButton" onclick="quvic.listVideos(quvic.previousQueryType, quvic.previousSearchTerm, quvic.nextPage);" style="display: none;">
						<i class="fa fa-chevron-circle-right fa-lg"></i>
					</button>
				</form>
			</span>
		</div>
	<?php } ?>
	<div class="quvic-copyright">
		<!--라이센스 안내 : http://tyzen.net/201-->
		YouTube Video Browser <b>&copy; <a href="http://www.quvic.com" target=_blank>QUVIC</a></b> | Developed by <a href="http://www.tyzen.net" target=_blank><b>TYZEN.NET</b></a> | <a href="http://tyzen.net/201" target=_blank><b>Get This Script</b></a>
	</div>

	<div class="clear"></div>
</div>
