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.

34 lines
1.4 KiB

7 years ago
  1. <?php
  2. foreach($popup_list['list'] as $pop) :
  3. if( get_cookie('popup_'.$pop['pop_idx']) ) continue;
  4. if($pop['pop_type'] == 'N') :
  5. ?>
  6. <style>
  7. #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; }
  8. #popup-<?=$pop['pop_idx']?> .pop-content { height:<?=$pop['pop_height']?>px; }
  9. </style>
  10. <div id="popup-<?=$pop['pop_idx']?>" class="pop-layer">
  11. <div class="pop-content">
  12. <?=$pop['pop_content']?>
  13. </div>
  14. <div class="pop-footer">
  15. <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>
  16. <a href="javascript:;" data-toggle="btn-popup-close" data-idx="<?=$pop['pop_idx']?>" data-type="N"><?=langs('팝업/button/close')?></a>
  17. </div>
  18. </div>
  19. <?php
  20. else :
  21. ?>
  22. <script>
  23. APP.POPUP({
  24. url : '/main/popup/<?=$pop['pop_idx']?>',
  25. width : <?=$pop['pop_width']?>,
  26. height : <?=(int)$pop['pop_height']?> + 30,
  27. title : 'popup_<?=$pop['pop_idx']?>'
  28. })
  29. </script>
  30. <?php
  31. endif;
  32. endforeach;?>