관리-도구
편집 파일: cirtificate.php
<style> <?php $font_arr = array( array('andale mono', 'andale-mono-cufonfonts/ANDALEMO.TTF'), array('helvetica', 'Helvetica-Font/Helvetica.ttf'), array('book antiqua', 'book-antiqua/BKANT.TTF'), array('comic sans ms', 'comic-sans-ms/ComicSansMS3.ttf'), array('courier new', 'courier-new/cour.ttf'), array('georgia', 'georgia/GEORGIA4.TTF'), array('impact', 'impact/impact.ttf'), array('symbol', 'symbol/SymbolEF-Medium.otf'), array('tahoma', 'Tahoma-Font/Tahoma_Regular_font.ttf'), array('terminal', 'terminal/Terminal-Regular.otf'), array('times new roman', 'Times-New-Roman/times_new_roman.ttf'), array('trebuchet ms', 'trebuchet-ms-2-cufonfonts/trebuc.ttf'), array('verdana', 'Verdana/Verdana.ttf'), array('webdings', 'Webdings/WebdingsRegular.ttf'), array('wingdings', 'wingdings/wingding.ttf'), ); foreach ($font_arr as $font) { echo "@font-face { font-family: '" . $font[0] . "'; /*font-style: normal; font-weight: normal;*/ src: url(" . plugins_url('../assets/font/for_cirt/' . $font[1], __FILE__) . "); }"; } ?> </style> <div style="padding-right: 4%; padding-left: 4%; position: fixed; left: 0px; top: 0px; right: 0px; bottom: 0px;z-index: -1000;"> <img src="<?php echo $bg_img; ?>" style="height: 800px; "> </div> <div class="cirt-container" style="background-color: transparent; margin-top: 20px; <?php if ($type === 'completion') { if ($setup['completion_page_orientation'] == 'portrait') { echo 'top :22%'; } else { echo 'top :38%'; } } else if ($type === 'exam') { if ($setup['exam_page_orientation'] == 'portrait') { echo 'top :22%'; } else { echo 'top :38%'; } } ?>"> <?php if ($type === 'completion') { echo $setup['completion_content']; } else if ($type === 'exam') { echo $setup['exam_content']; } ?> </div> <style> @page { margin: 0px; } body { margin: 0px; height: 100vh } html { margin: 0; } .cirt-container { top: 38%; left: 45%; transform: translate(-50%, -50%); position: fixed; } </style> </html>