You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
1.4 KiB

<?php
foreach($popup_list['list'] as $pop) :
if( get_cookie('popup_'.$pop['pop_idx']) ) continue;
if($pop['pop_type'] == 'N') :
?>
<style>
#popup-<?=$pop['pop_idx']?> { width:<?=$pop['pop_width']?>px; height:<?=$pop['pop_height']+30?>px; margin-left:-<?=$pop['pop_width']/2?>px; margin-top:-<?=$pop['pop_height']/2?>px; }
#popup-<?=$pop['pop_idx']?> .pop-content { height:<?=$pop['pop_height']?>px; }
</style>
<div id="popup-<?=$pop['pop_idx']?>" class="pop-layer">
<div class="pop-content">
<?=$pop['pop_content']?>
</div>
<div class="pop-footer">
<a href="javascript:;" data-toggle="btn-popup-close" data-idx="<?=$pop['pop_idx']?>" data-type="N" data-cookie="1"><?=langs('팝업/button/close_with_cookie')?></a>
<a href="javascript:;" data-toggle="btn-popup-close" data-idx="<?=$pop['pop_idx']?>" data-type="N"><?=langs('팝업/button/close')?></a>
</div>
</div>
<?php
else :
?>
<script>
APP.POPUP({
url : '/main/popup/<?=$pop['pop_idx']?>',
width : <?=$pop['pop_width']?>,
height : <?=(int)$pop['pop_height']?> + 30,
title : 'popup_<?=$pop['pop_idx']?>'
})
</script>
<?php
endif;
endforeach;?>