support hitokoto API

pull/192/head
Parasomnia 2020-03-04 19:11:06 +08:00
parent ccb0b6f5da
commit 53ed6a9b69
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ get_header();
<?php if ( akina_option('head_notice') != '0'){
$text = akina_option('notice_title');
if ( $text = '' ){
$text = file_get_contents("https://v1.hitokoto.cn/?encode=text&charset=utf-8");
}
?>
<div class="notice" style="margin-top:60px">
<i class="iconfont icon-notification"></i>