Commit 965a5da7 authored by zlzleking's avatar zlzleking

webfont edit

parent b7c45b14
......@@ -26,20 +26,15 @@ class LibertyHooks extends Hooks {
'section' => 'liberty/font',
'options' => [
'기본값' => "default",
'본고딕' => "Noto Sans CJK KR",
'본고딕' => "Noto Sans KR",
'나눔고딕' => "Nanum Gothic",
'나눔명조' => 'Nanum Myeongjo',
'KoPub돋움' => 'KoPubDotum',
'독도' => 'Dokdo',
'개구쟁이' => 'Gaegu',
'KoPub돋움' => 'KoPub Dotum',
'맑은 고딕' => 'Malgun Gothic'
],
'help-message' => 'liberty-pref-fonts-help'
];
$preferences['liberty-font-web'] = [
'type' => 'check',
'label-message' => 'liberty-pref-fonts-web',
'section' => 'liberty/font/web',
'help-message' => 'liberty-pref-fonts-web-help'
];
}
}
......@@ -144,6 +144,17 @@ class SkinLiberty extends SkinTemplate {
'<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" />'
);
$out->addHeadItem(
'webfonts',
// @codingStandardsIgnoreLine
'<link href="https://fonts.googleapis.com/css?family=Dokdo|Gaegu|Nanum+Gothic|Nanum+Gothic+Coding|Nanum+Myeongjo|Noto+Sans+KR&display=swap&subset=korean" rel="stylesheet">'
);
$out->addHeadItem(
'webfonts-kopub',
// @codingStandardsIgnoreLine
'<link rel="stylesheet" href="//cdn.jsdelivr.net/font-kopub/1.0/kopubdotum.css">'
);
// Only load AdSense JS is ads are enabled in site configuration
if ( !is_null( $wgLibertyAdSetting['client'] ) ) {
$out->addHeadItem(
......
/*나눔고딕, 나눔명조, 나눔펜스크립트, 본고딕 */
@import url('https://fonts.googleapis.com/css?family=Nanum+Gothic|Nanum+Gothic+Coding|Nanum+Myeongjo|Nanum+Pen+Script|Noto+Sans+KR&display=swap');
/* kopub돋움 */
@import url('//cdn.jsdelivr.net/font-kopub/1.0/kopubdotum.css');
\ No newline at end of file
......@@ -49,9 +49,6 @@
"css/extensions/RelatedArticles.css": {
"media": "all"
},
"css/font/webfont.css": {
"media": "all"
},
"css/print.css": {
"media": "print"
}
......
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