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.

42 lines
1.8 KiB

7 years ago
  1. <style>
  2. .pop-layer { position:fixed; top:50%; left:50%; z-index:1000; background:#fff; }
  3. .pop-layer .pop-content { border:1px solid #ddd; }
  4. .pop-layer .pop-footer { width:100%; background:#282828; height:30px; text-align:right; padding:0px 15px;}
  5. .pop-layer .pop-footer > a { display:inline-block; line-height:30px; color:#fff;}
  6. .pop-layer .pop-footer > a:hover { color:#d0d0d0; }
  7. .pop-layer .pop-footer > a + a { margin-left:30px; }
  8. </style>
  9. <?php
  10. foreach($popup_list['list'] as $pop) :
  11. if( get_cookie('popup_'.$pop['pop_idx']) ) continue;
  12. if($pop['pop_type'] == 'N') :
  13. ?>
  14. <style>
  15. #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; }
  16. #popup-<?=$pop['pop_idx']?> .pop-content { height:<?=$pop['pop_height']?>px; }
  17. </style>
  18. <div id="popup-<?=$pop['pop_idx']?>" class="pop-layer">
  19. <div class="pop-content">
  20. <?=$pop['pop_content']?>
  21. </div>
  22. <div class="pop-footer">
  23. <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>
  24. <a href="javascript:;" data-toggle="btn-popup-close" data-idx="<?=$pop['pop_idx']?>" data-type="N"><?=langs('팝업/button/close')?></a>
  25. </div>
  26. </div>
  27. <?php
  28. else :
  29. ?>
  30. <script>
  31. APP.POPUP({
  32. url : '/main/popup/<?=$pop['pop_idx']?>',
  33. width : <?=$pop['pop_width']?>,
  34. height : <?=(int)$pop['pop_height']?> + 30,
  35. title : 'popup_<?=$pop['pop_idx']?>'
  36. })
  37. </script>
  38. <?php
  39. endif;
  40. endforeach;?>