Commit c65592a8 authored by platyhouse's avatar platyhouse

.

parent 1e7d93b3
......@@ -3,13 +3,21 @@
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta name="title" content="<?= $this->config->system->appName ?>"/>
<meta name="og:title" content="<?= $this->config->system->appName ?>"/>
<meta name="og:image" content="<?= $item->previewImageUrl ?>">
<meta property="og:image:width" content="600"/>
<meta property="og:image:height" content="627"/>
<meta name="description" content="<?= $item->title ?>"/>
<meta property="og:image" content="<?= $item->previewImageUrl ?>"/>
<?
// refs #10091 날마다좋은글 — 네이버 밴드 공유 시 미리보기 설명·이미지 누락 (크롤러 UA 화이트리스트)
// - 값 계산은 board/item.php detail() 담당
// - og:title : name → property 속성으로 변경 (OG 표준)
// - og:description 추가
// - 따옴표 등으로 속성이 깨지지 않도록 이스케이프
?>
<meta name="title" content="<?= htmlspecialchars($metaTitle, ENT_QUOTES, "UTF-8") ?>"/>
<meta property="og:title" content="<?= htmlspecialchars($metaTitle, ENT_QUOTES, "UTF-8") ?>"/>
<meta name="og:image" content="<?= htmlspecialchars($imageUrl, ENT_QUOTES, "UTF-8") ?>">
<meta property="og:image:width" content="<?= (int)$imageWidth ?>"/>
<meta property="og:image:height" content="<?= (int)$imageHeight ?>"/>
<meta name="description" content="<?= htmlspecialchars($metaDescription, ENT_QUOTES, "UTF-8") ?>"/>
<meta property="og:description" content="<?= htmlspecialchars($metaDescription, ENT_QUOTES, "UTF-8") ?>"/>
<meta property="og:image" content="<?= htmlspecialchars($imageUrl, ENT_QUOTES, "UTF-8") ?>"/>
<style type="text/css">
p, li, ul, img, a, div, input, select, div, dl, dd, dt, h1, a, h1, h2, h3, h4, h5, h6 {
margin: 0;
......
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