Commit 8c49361b authored by platyhouse's avatar platyhouse

.

parent 740bb746
......@@ -14,6 +14,7 @@ namespace platyFramework;
<button class="btn btn-xs btn-info" onclick="$('html, body').animate({ scrollTop: $('#mainPopup').offset().top }, 500);">앱 시작시 전면 광고 설정</button>
<button class="btn btn-xs btn-info" onclick="$('html, body').animate({ scrollTop: $('#contentBanner').offset().top }, 500);">글 상세보기 광고 설정</button>
<button class="btn btn-xs btn-info" onclick="$('html, body').animate({ scrollTop: $('#quitPopup').offset().top }, 500);">앱 종료시 팝업 광고 설정</button>
<button class="btn btn-xs btn-info" onclick="$('html, body').animate({ scrollTop: $('#showPopupOnBackAfterView').offset().top }, 500);">컨텐츠 조회 수 뒤로가기시 전면 광고 설정</button>
<br>
<br>
......@@ -293,6 +294,79 @@ namespace platyFramework;
</div>
<? // endregion
?>
<? // region 컨텐츠 조회 수 뒤로가기시 전면 광고 설정 (showPopupOnBackAfterView)
?>
<div class="box box-info" id="showPopupOnBackAfterView">
<div class="box-header with-border">
<h3 class="box-title">* 컨텐츠 조회 수 뒤로가기시 전면 광고 설정</h3>
</div>
<input type="hidden" name="id" value="<?= $item->id ?>">
<div class="box-body">
<script>
$(document).ready(function () {
function update_showPopupOnBackAfterView() {
var selectedValue = $('#showPopupOnBackAfterView_mode').val(); // 선택된 값 가져오기
if (selectedValue == "1") {
$('#showPopupOnBackAfterView_conditions').fadeIn();
$('#showPopupOnBackAfterView_admob').fadeIn();
$('#showPopupOnBackAfterView_banner').hide();
} else if (selectedValue == "2") {
$('#showPopupOnBackAfterView_conditions').fadeIn();
$('#showPopupOnBackAfterView_admob').hide();
$('#showPopupOnBackAfterView_banner').fadeIn();
} else {
$('#showPopupOnBackAfterView_conditions').hide();
$('#showPopupOnBackAfterView_admob').hide();
$('#showPopupOnBackAfterView_banner').hide();
}
}
$('#showPopupOnBackAfterView_mode').change(function () {
update_showPopupOnBackAfterView();
});
$('#showPopupOnBackAfterView_mode').ready(function () {
update_showPopupOnBackAfterView();
});
});
</script>
<div class='col-md-12'>
<div class="row">
<div class='col-md-9'>
<?= $form->getSelect("전면 광고 설정", "showPopupOnBackAfterView_mode", array("노출 안함" => 0, "구글 애드몹" => 1, "자체 광고 노출" => 2), "", ""); ?>
<div id="showPopupOnBackAfterView_conditions">
<?= $form->getSelect("전면 광고 조건", "showPopupOnBackAfterView_condition", array("언제나" => 1, "2회 뒤로가기 이후" => 2, "3회 뒤로가기 이후" => 3, "4회 뒤로가기 이후" => 4, "5회 뒤로가기 이후" => 5, "랜덤 10%" => 9990, "랜덤 50%" => 9991), "", ""); ?>
</div>
</div>
</div>
<div class="row" id="showPopupOnBackAfterView_admob">
<div class='col-md-9'>
<?= $form->getInput("애드몹 전면형<br>광고ID (Android)", "showPopupOnBackAfterView_adid", "", ""); ?>
</div>
</div>
<div class="row" id="showPopupOnBackAfterView_banner">
<div class='col-md-9'>
<?= $form->getSelect("전면 광고 노출 형태", "showPopupOnBackAfterView_themeType", array("설정하세요" => 0, "닫기/보기 형태 (기본)" => 1, "X 닫기 형태" => 2), "", ""); ?>
</div>
<? /* refs ptyAppAdvertiseController */
for ($i = 1; $i <= 10; $i++) { ?>
<div class='col-md-9'>
<?= $form->getFile("종료 팝업 이미지 {$i}<br>(400x565 추천)", "showPopupOnBackAfterView_imageUrl{$i}", 0); ?>
</div>
<div class='col-md-3'>
<?= $form->getInput("URL", "showPopupOnBackAfterView_linkUrl{$i}", "placeholder='http://...'", ""); ?>
</div>
<? } ?>
</div>
</div>
</div>
<div class="box-footer">
<button type="button" class="btn btn-default ptyGoBack pull-right">취소</button>
<button type="submit" class="btn btn-info pull-left">저장</button>
</div>
</div>
<? // endregion
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment