Compare commits
No commits in common. "5b83babeb91fc8e6c085c101c579cd6af8c470c0" and "77722ed4d779098768487acbcff354b2a1355648" have entirely different histories.
5b83babeb9
...
77722ed4d7
|
@ -1,12 +1,12 @@
|
||||||
Sakura🌸: A Wonderful WordPress Theme
|
Sakura🌸: A Wonderful WordPress Theme
|
||||||
===
|
===
|
||||||
|
|
||||||
[中文](README.md) | English
|
[中文](README.md) | Engilsh
|
||||||
|
|
||||||
![Sakura](screenshot.jpg)
|
![Sakura](https://view.moezx.cc/images/2018/05/26/sakura.png)
|
||||||
|
|
||||||
![PHP version](https://img.shields.io/badge/PHP-7.1+-4F5B93.svg?style=flat-square&logo=php)
|
![PHP version](https://img.shields.io/badge/PHP-7.1+-4F5B93.svg?style=flat-square)
|
||||||
![WP version](https://img.shields.io/badge/WordPress-5.3-0073aa.svg?style=flat-square&logo=wordpress)
|
![WP version](https://img.shields.io/badge/WordPress-5.0+-0073aa.svg?style=flat-square)
|
||||||
[![GitHub release](https://img.shields.io/github/release/mashirozx/Sakura.svg?style=flat-square)](https://github.com/mashirozx/Sakura/releases/latest)
|
[![GitHub release](https://img.shields.io/github/release/mashirozx/Sakura.svg?style=flat-square)](https://github.com/mashirozx/Sakura/releases/latest)
|
||||||
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/mashirozx/Sakura/latest/dev.svg?style=flat-square)](https://github.com/mashirozx/Sakura/commits/dev)
|
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/mashirozx/Sakura/latest/dev.svg?style=flat-square)](https://github.com/mashirozx/Sakura/commits/dev)
|
||||||
[![](https://data.jsdelivr.com/v1/package/gh/moezx/cdn/badge)](https://www.jsdelivr.com/package/gh/moezx/cdn)
|
[![](https://data.jsdelivr.com/v1/package/gh/moezx/cdn/badge)](https://www.jsdelivr.com/package/gh/moezx/cdn)
|
||||||
|
|
10
README.md
|
@ -1,12 +1,12 @@
|
||||||
Sakura🌸: 樱花庄的白猫博客主题
|
Sakura🌸: 樱花庄的白猫博客主题
|
||||||
===
|
===
|
||||||
|
|
||||||
中文 | [English](README-en.md)
|
中文 | [Engilsh](README-en.md)
|
||||||
|
|
||||||
![Sakura](screenshot.jpg)
|
![Sakura](https://view.moezx.cc/images/2018/05/26/sakura.png)
|
||||||
|
|
||||||
![PHP version](https://img.shields.io/badge/PHP-7.1+-4F5B93.svg?style=flat-square&logo=php)
|
![PHP version](https://shader.2heng.xin/badge/PHP-7.1+-4F5B93.svg?style=flat-square&logo=php)
|
||||||
![WP version](https://img.shields.io/badge/WordPress-5.3-0073aa.svg?style=flat-square&logo=wordpress)
|
![WP version](https://shader.2heng.xin/badge/WordPress-5.3-0073aa.svg?style=flat-square&logo=wordpress)
|
||||||
[![GitHub release](https://img.shields.io/github/v/release/mashirozx/Sakura.svg?style=flat-square&logo=github)](https://github.com/mashirozx/Sakura/releases/latest)
|
[![GitHub release](https://img.shields.io/github/v/release/mashirozx/Sakura.svg?style=flat-square&logo=github)](https://github.com/mashirozx/Sakura/releases/latest)
|
||||||
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/mashirozx/Sakura/latest/dev.svg?style=flat-square&logo=git&color=important)](https://github.com/mashirozx/Sakura/commits/dev)
|
[![Github commits (since latest release)](https://img.shields.io/github/commits-since/mashirozx/Sakura/latest/dev.svg?style=flat-square&logo=git&color=important)](https://github.com/mashirozx/Sakura/commits/dev)
|
||||||
[![](https://data.jsdelivr.com/v1/package/gh/moezx/cdn/badge)](https://www.jsdelivr.com/package/gh/moezx/cdn)
|
[![](https://data.jsdelivr.com/v1/package/gh/moezx/cdn/badge)](https://www.jsdelivr.com/package/gh/moezx/cdn)
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
主题使用说明见:<https://2heng.xin/theme-sakura/>
|
主题使用说明见:<https://2heng.xin/theme-sakura/>
|
||||||
|
|
||||||
本仓库国内镜像:<https://git.moezx.cc/mirrors/sakura>
|
本仓库国内镜像:<https://gitee.com/mashirozx/Sakura>
|
||||||
|
|
||||||
主题交流群:860262481
|
主题交流群:860262481
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$robot_comments = '';
|
|
||||||
if(comments_open()){
|
if(comments_open()){
|
||||||
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>'.__('I\'m not a robot', 'sakura').'</label>';
|
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>'.__('I\'m not a robot', 'sakura').'</label>';
|
||||||
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>'.__('Comment in private', 'sakura').'</label>' : '';
|
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>'.__('Comment in private', 'sakura').'</label>' : '';
|
||||||
|
|
269
functions.php
|
@ -188,7 +188,7 @@ function sakura_scripts()
|
||||||
wp_enqueue_style('saukra_css', 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@' . SAKURA_VERSION . '/style.min.css', array(), SAKURA_VERSION);
|
wp_enqueue_style('saukra_css', 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@' . SAKURA_VERSION . '/style.min.css', array(), SAKURA_VERSION);
|
||||||
wp_enqueue_script('app', 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@' . SAKURA_VERSION . '/js/sakura-app.min.js', array(), SAKURA_VERSION, true);
|
wp_enqueue_script('app', 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@' . SAKURA_VERSION . '/js/sakura-app.min.js', array(), SAKURA_VERSION, true);
|
||||||
}
|
}
|
||||||
//wp_enqueue_script('github_card', 'https://cdn.jsdelivr.net/github-cards/latest/widget.js', array(), SAKURA_VERSION, true);
|
wp_enqueue_script('github_card', 'https://cdn.jsdelivr.net/github-cards/latest/widget.js', array(), SAKURA_VERSION, true);
|
||||||
|
|
||||||
if (is_singular() && comments_open() && get_option('thread_comments')) {
|
if (is_singular() && comments_open() && get_option('thread_comments')) {
|
||||||
wp_enqueue_script('comment-reply');
|
wp_enqueue_script('comment-reply');
|
||||||
|
@ -204,7 +204,7 @@ function sakura_scripts()
|
||||||
// }
|
// }
|
||||||
//拦截移动端
|
//拦截移动端
|
||||||
version_compare($GLOBALS['wp_version'], '5.1', '>=') ? $reply_link_version = 'new' : $reply_link_version = 'old';
|
version_compare($GLOBALS['wp_version'], '5.1', '>=') ? $reply_link_version = 'new' : $reply_link_version = 'old';
|
||||||
$gravatar_url = akina_option('gravatar_proxy') ?: 'dn-qiniu-avatar.qbox.me/avatar';
|
$gravatar_url = akina_option('gravatar_proxy') ?: 'secure.gravatar.com/avatar';
|
||||||
wp_localize_script('app', 'Poi', array(
|
wp_localize_script('app', 'Poi', array(
|
||||||
'pjax' => akina_option('poi_pjax'),
|
'pjax' => akina_option('poi_pjax'),
|
||||||
'movies' => $movies,
|
'movies' => $movies,
|
||||||
|
@ -249,160 +249,149 @@ require get_template_directory() . '/inc/categories-images.php';
|
||||||
function convertip($ip)
|
function convertip($ip)
|
||||||
{
|
{
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false) {
|
$dat_path = dirname(__FILE__) . '/inc/QQWry.Dat';
|
||||||
$file_contents = file_get_contents('http://ip.taobao.com/outGetIpInfo?accessKey=alibaba-inc&ip='.$ip);
|
if (!$fd = @fopen($dat_path, 'rb')) {
|
||||||
$result = json_decode($file_contents,true);
|
return 'IP date file not exists or access denied';
|
||||||
if ($result['data']['country'] != '中国') {
|
}
|
||||||
return $result['data']['country'];
|
$ip = explode('.', $ip);
|
||||||
} else {
|
$ipNum = intval($ip[0]) * 16777216 + intval($ip[1]) * 65536 + intval($ip[2]) * 256 + intval($ip[3]);
|
||||||
return $result['data']['region'].' · '.$result['data']['city'].' · '.$result['data']['isp'];
|
$DataBegin = fread($fd, 4);
|
||||||
|
$DataEnd = fread($fd, 4);
|
||||||
|
$ipbegin = implode('', unpack('L', $DataBegin));
|
||||||
|
if ($ipbegin < 0) {
|
||||||
|
$ipbegin += pow(2, 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
$ipend = implode('', unpack('L', $DataEnd));
|
||||||
|
if ($ipend < 0) {
|
||||||
|
$ipend += pow(2, 32);
|
||||||
|
}
|
||||||
|
|
||||||
|
$ipAllNum = ($ipend - $ipbegin) / 7 + 1;
|
||||||
|
$BeginNum = 0;
|
||||||
|
$EndNum = $ipAllNum;
|
||||||
|
while ($ip1num > $ipNum || $ip2num < $ipNum) {
|
||||||
|
$Middle = intval(($EndNum + $BeginNum) / 2);
|
||||||
|
fseek($fd, $ipbegin + 7 * $Middle);
|
||||||
|
$ipData1 = fread($fd, 4);
|
||||||
|
if (strlen($ipData1) < 4) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
}
|
}
|
||||||
} else {
|
$ip1num = implode('', unpack('L', $ipData1));
|
||||||
$dat_path = dirname(__FILE__) . '/inc/QQWry.Dat';
|
if ($ip1num < 0) {
|
||||||
if (!$fd = @fopen($dat_path, 'rb')) {
|
$ip1num += pow(2, 32);
|
||||||
return 'IP date file not exists or access denied';
|
|
||||||
}
|
|
||||||
$ip = explode('.', $ip);
|
|
||||||
$ipNum = intval($ip[0]) * 16777216 + intval($ip[1]) * 65536 + intval($ip[2]) * 256 + intval($ip[3]);
|
|
||||||
$DataBegin = fread($fd, 4);
|
|
||||||
$DataEnd = fread($fd, 4);
|
|
||||||
$ipbegin = implode('', unpack('L', $DataBegin));
|
|
||||||
if ($ipbegin < 0) {
|
|
||||||
$ipbegin += pow(2, 32);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ipend = implode('', unpack('L', $DataEnd));
|
if ($ip1num > $ipNum) {
|
||||||
if ($ipend < 0) {
|
$EndNum = $Middle;
|
||||||
$ipend += pow(2, 32);
|
continue;
|
||||||
|
}
|
||||||
|
$DataSeek = fread($fd, 3);
|
||||||
|
if (strlen($DataSeek) < 3) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
|
}
|
||||||
|
$DataSeek = implode('', unpack('L', $DataSeek . chr(0)));
|
||||||
|
fseek($fd, $DataSeek);
|
||||||
|
$ipData2 = fread($fd, 4);
|
||||||
|
if (strlen($ipData2) < 4) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
|
}
|
||||||
|
$ip2num = implode('', unpack('L', $ipData2));
|
||||||
|
if ($ip2num < 0) {
|
||||||
|
$ip2num += pow(2, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ipAllNum = ($ipend - $ipbegin) / 7 + 1;
|
if ($ip2num < $ipNum) {
|
||||||
$BeginNum = 0;
|
if ($Middle == $BeginNum) {
|
||||||
$EndNum = $ipAllNum;
|
|
||||||
$ip1num = $ip2num = $ipAddr1 = $ipAddr2 = '';
|
|
||||||
while ($ip1num > $ipNum || $ip2num < $ipNum) {
|
|
||||||
$Middle = intval(($EndNum + $BeginNum) / 2);
|
|
||||||
fseek($fd, $ipbegin + 7 * $Middle);
|
|
||||||
$ipData1 = fread($fd, 4);
|
|
||||||
if (strlen($ipData1) < 4) {
|
|
||||||
fclose($fd);
|
fclose($fd);
|
||||||
return 'System Error';
|
return 'Unknown';
|
||||||
}
|
|
||||||
$ip1num = implode('', unpack('L', $ipData1));
|
|
||||||
if ($ip1num < 0) {
|
|
||||||
$ip1num += pow(2, 32);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($ip1num > $ipNum) {
|
|
||||||
$EndNum = $Middle;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$DataSeek = fread($fd, 3);
|
|
||||||
if (strlen($DataSeek) < 3) {
|
|
||||||
fclose($fd);
|
|
||||||
return 'System Error';
|
|
||||||
}
|
|
||||||
$DataSeek = implode('', unpack('L', $DataSeek . chr(0)));
|
|
||||||
fseek($fd, $DataSeek);
|
|
||||||
$ipData2 = fread($fd, 4);
|
|
||||||
if (strlen($ipData2) < 4) {
|
|
||||||
fclose($fd);
|
|
||||||
return 'System Error';
|
|
||||||
}
|
|
||||||
$ip2num = implode('', unpack('L', $ipData2));
|
|
||||||
if ($ip2num < 0) {
|
|
||||||
$ip2num += pow(2, 32);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($ip2num < $ipNum) {
|
|
||||||
if ($Middle == $BeginNum) {
|
|
||||||
fclose($fd);
|
|
||||||
return 'Unknown';
|
|
||||||
}
|
|
||||||
$BeginNum = $Middle;
|
|
||||||
}
|
}
|
||||||
|
$BeginNum = $Middle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$ipFlag = fread($fd, 1);
|
||||||
|
if ($ipFlag == chr(1)) {
|
||||||
|
$ipSeek = fread($fd, 3);
|
||||||
|
if (strlen($ipSeek) < 3) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
|
}
|
||||||
|
$ipSeek = implode('', unpack('L', $ipSeek . chr(0)));
|
||||||
|
fseek($fd, $ipSeek);
|
||||||
|
$ipFlag = fread($fd, 1);
|
||||||
|
}
|
||||||
|
if ($ipFlag == chr(2)) {
|
||||||
|
$AddrSeek = fread($fd, 3);
|
||||||
|
if (strlen($AddrSeek) < 3) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
}
|
}
|
||||||
$ipFlag = fread($fd, 1);
|
$ipFlag = fread($fd, 1);
|
||||||
if ($ipFlag == chr(1)) {
|
|
||||||
$ipSeek = fread($fd, 3);
|
|
||||||
if (strlen($ipSeek) < 3) {
|
|
||||||
fclose($fd);
|
|
||||||
return 'System Error';
|
|
||||||
}
|
|
||||||
$ipSeek = implode('', unpack('L', $ipSeek . chr(0)));
|
|
||||||
fseek($fd, $ipSeek);
|
|
||||||
$ipFlag = fread($fd, 1);
|
|
||||||
}
|
|
||||||
if ($ipFlag == chr(2)) {
|
if ($ipFlag == chr(2)) {
|
||||||
$AddrSeek = fread($fd, 3);
|
$AddrSeek2 = fread($fd, 3);
|
||||||
if (strlen($AddrSeek) < 3) {
|
if (strlen($AddrSeek2) < 3) {
|
||||||
fclose($fd);
|
fclose($fd);
|
||||||
return 'System Error';
|
return 'System Error';
|
||||||
}
|
}
|
||||||
$ipFlag = fread($fd, 1);
|
$AddrSeek2 = implode('', unpack('L', $AddrSeek2 . chr(0)));
|
||||||
if ($ipFlag == chr(2)) {
|
fseek($fd, $AddrSeek2);
|
||||||
$AddrSeek2 = fread($fd, 3);
|
|
||||||
if (strlen($AddrSeek2) < 3) {
|
|
||||||
fclose($fd);
|
|
||||||
return 'System Error';
|
|
||||||
}
|
|
||||||
$AddrSeek2 = implode('', unpack('L', $AddrSeek2 . chr(0)));
|
|
||||||
fseek($fd, $AddrSeek2);
|
|
||||||
} else {
|
|
||||||
fseek($fd, -1, SEEK_CUR);
|
|
||||||
}
|
|
||||||
while (($char = fread($fd, 1)) != chr(0)) {
|
|
||||||
$ipAddr2 .= $char;
|
|
||||||
}
|
|
||||||
|
|
||||||
$AddrSeek = implode('', unpack('L', $AddrSeek . chr(0)));
|
|
||||||
fseek($fd, $AddrSeek);
|
|
||||||
while (($char = fread($fd, 1)) != chr(0)) {
|
|
||||||
$ipAddr1 .= $char;
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fseek($fd, -1, SEEK_CUR);
|
fseek($fd, -1, SEEK_CUR);
|
||||||
while (($char = fread($fd, 1)) != chr(0)) {
|
}
|
||||||
$ipAddr1 .= $char;
|
while (($char = fread($fd, 1)) != chr(0)) {
|
||||||
}
|
$ipAddr2 .= $char;
|
||||||
|
}
|
||||||
|
|
||||||
$ipFlag = fread($fd, 1);
|
$AddrSeek = implode('', unpack('L', $AddrSeek . chr(0)));
|
||||||
if ($ipFlag == chr(2)) {
|
fseek($fd, $AddrSeek);
|
||||||
$AddrSeek2 = fread($fd, 3);
|
while (($char = fread($fd, 1)) != chr(0)) {
|
||||||
if (strlen($AddrSeek2) < 3) {
|
$ipAddr1 .= $char;
|
||||||
fclose($fd);
|
}
|
||||||
return 'System Error';
|
|
||||||
}
|
} else {
|
||||||
$AddrSeek2 = implode('', unpack('L', $AddrSeek2 . chr(0)));
|
fseek($fd, -1, SEEK_CUR);
|
||||||
fseek($fd, $AddrSeek2);
|
while (($char = fread($fd, 1)) != chr(0)) {
|
||||||
} else {
|
$ipAddr1 .= $char;
|
||||||
fseek($fd, -1, SEEK_CUR);
|
}
|
||||||
|
|
||||||
|
$ipFlag = fread($fd, 1);
|
||||||
|
if ($ipFlag == chr(2)) {
|
||||||
|
$AddrSeek2 = fread($fd, 3);
|
||||||
|
if (strlen($AddrSeek2) < 3) {
|
||||||
|
fclose($fd);
|
||||||
|
return 'System Error';
|
||||||
}
|
}
|
||||||
while (($char = fread($fd, 1)) != chr(0)) {
|
$AddrSeek2 = implode('', unpack('L', $AddrSeek2 . chr(0)));
|
||||||
$ipAddr2 .= $char;
|
fseek($fd, $AddrSeek2);
|
||||||
}
|
|
||||||
}
|
|
||||||
fclose($fd);
|
|
||||||
if (preg_match('/http/i', $ipAddr2)) {
|
|
||||||
$ipAddr2 = '';
|
|
||||||
}
|
|
||||||
$ipaddr = "$ipAddr1 $ipAddr2";
|
|
||||||
$ipaddr = preg_replace('/CZ88.Net/is', '', $ipaddr);
|
|
||||||
$ipaddr = preg_replace('/^s*/is', '', $ipaddr);
|
|
||||||
$ipaddr = preg_replace('/s*$/is', '', $ipaddr);
|
|
||||||
if (preg_match('/http/i', $ipaddr) || $ipaddr == '') {
|
|
||||||
$ipaddr = 'Unknown';
|
|
||||||
}
|
|
||||||
$ipaddr = iconv('gbk', 'utf-8//IGNORE', $ipaddr);
|
|
||||||
if ($ipaddr != ' ') {
|
|
||||||
return $ipaddr;
|
|
||||||
} else {
|
} else {
|
||||||
$ipaddr = 'Unknown';
|
fseek($fd, -1, SEEK_CUR);
|
||||||
|
}
|
||||||
|
while (($char = fread($fd, 1)) != chr(0)) {
|
||||||
|
$ipAddr2 .= $char;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ipaddr;
|
|
||||||
}
|
}
|
||||||
|
fclose($fd);
|
||||||
|
if (preg_match('/http/i', $ipAddr2)) {
|
||||||
|
$ipAddr2 = '';
|
||||||
|
}
|
||||||
|
$ipaddr = "$ipAddr1 $ipAddr2";
|
||||||
|
$ipaddr = preg_replace('/CZ88.Net/is', '', $ipaddr);
|
||||||
|
$ipaddr = preg_replace('/^s*/is', '', $ipaddr);
|
||||||
|
$ipaddr = preg_replace('/s*$/is', '', $ipaddr);
|
||||||
|
if (preg_match('/http/i', $ipaddr) || $ipaddr == '') {
|
||||||
|
$ipaddr = 'Unknown';
|
||||||
|
}
|
||||||
|
$ipaddr = iconv('gbk', 'utf-8//IGNORE', $ipaddr);
|
||||||
|
if ($ipaddr != ' ') {
|
||||||
|
return $ipaddr;
|
||||||
|
} else {
|
||||||
|
$ipaddr = 'Unknown';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $ipaddr;
|
||||||
}
|
}
|
||||||
//Comment Location End
|
//Comment Location End
|
||||||
|
|
||||||
|
@ -439,7 +428,6 @@ if (!function_exists('akina_comment_format')) {
|
||||||
<?php if (current_user_can('manage_options') and (wp_is_mobile() == false)) {
|
<?php if (current_user_can('manage_options') and (wp_is_mobile() == false)) {
|
||||||
$comment_ID = $comment->comment_ID;
|
$comment_ID = $comment->comment_ID;
|
||||||
$i_private = get_comment_meta($comment_ID, '_private', true);
|
$i_private = get_comment_meta($comment_ID, '_private', true);
|
||||||
$flag = '';
|
|
||||||
$flag .= ' <i class="fa fa-snowflake-o" aria-hidden="true"></i> <a href="javascript:;" data-actionp="set_private" data-idp="' . get_comment_id() . '" id="sp" class="sm" style="color:rgba(0,0,0,.35)">' . __("Private", "sakura") . ': <span class="has_set_private">';
|
$flag .= ' <i class="fa fa-snowflake-o" aria-hidden="true"></i> <a href="javascript:;" data-actionp="set_private" data-idp="' . get_comment_id() . '" id="sp" class="sm" style="color:rgba(0,0,0,.35)">' . __("Private", "sakura") . ': <span class="has_set_private">';
|
||||||
if (!empty($i_private)) {
|
if (!empty($i_private)) {
|
||||||
$flag .= __("Yes", "sakura") . ' <i class="fa fa-lock" aria-hidden="true"></i>';
|
$flag .= __("Yes", "sakura") . ' <i class="fa fa-lock" aria-hidden="true"></i>';
|
||||||
|
@ -623,7 +611,7 @@ function get_link_items()
|
||||||
*/
|
*/
|
||||||
function gravatar_cn($url)
|
function gravatar_cn($url)
|
||||||
{
|
{
|
||||||
$gravatar_url = array('dn-qiniu-avatar.qbox.me/avatar','cdn.v2ex.com/gravatar','gravatar.loli.net/avatar','gravatar.zeruns.tech/avatar');
|
$gravatar_url = array('0.gravatar.com/avatar','1.gravatar.com/avatar','2.gravatar.com/avatar','secure.gravatar.com/avatar');
|
||||||
//return str_replace($gravatar_url, 'cn.gravatar.com', $url);
|
//return str_replace($gravatar_url, 'cn.gravatar.com', $url);
|
||||||
//官方服务器近期大陆访问 429,建议使用镜像
|
//官方服务器近期大陆访问 429,建议使用镜像
|
||||||
return str_replace( $gravatar_url, akina_option('gravatar_proxy'), $url );
|
return str_replace( $gravatar_url, akina_option('gravatar_proxy'), $url );
|
||||||
|
@ -1358,10 +1346,7 @@ function memory_archives_list()
|
||||||
if ($mon != $mon_tmp && $mon > 0) {
|
if ($mon != $mon_tmp && $mon > 0) {
|
||||||
$output .= '</ul></li>';
|
$output .= '</ul></li>';
|
||||||
}
|
}
|
||||||
if ($mon == $mon_tmp && $year != $year_tmp ) {
|
|
||||||
$mon=$mon_tmp + 12;
|
|
||||||
$output .= '</ul>';
|
|
||||||
}
|
|
||||||
if ($year != $year_tmp && $year > 0) {
|
if ($year != $year_tmp && $year > 0) {
|
||||||
$output .= '</ul>';
|
$output .= '</ul>';
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
BIN
images/logo.png
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 51 KiB |
BIN
images/temp.jpg
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 32 KiB |
|
@ -496,7 +496,7 @@ class Meting
|
||||||
case 'netease':
|
case 'netease':
|
||||||
$api = array(
|
$api = array(
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'url' => 'http://music.163.com/api/v6/playlist/detail',
|
'url' => 'http://music.163.com/api/v3/playlist/detail',
|
||||||
'body' => array(
|
'body' => array(
|
||||||
's' => '0',
|
's' => '0',
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
|
@ -1362,4 +1362,4 @@ class Meting
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
2042
languages/zh_TW.po
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 2.5 MiB |
Before Width: | Height: | Size: 920 KiB |
Before Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 1.9 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 535 KiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 926 KiB |
Before Width: | Height: | Size: 1.8 MiB |
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 487 KiB |
Before Width: | Height: | Size: 689 KiB |
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 1019 KiB |
Before Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 776 KiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 2.1 MiB |
After Width: | Height: | Size: 131 KiB |
After Width: | Height: | Size: 248 KiB |
After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 200 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.7 KiB |
BIN
screenshot.jpg
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 103 KiB |
|
@ -5,7 +5,7 @@ Theme URI: https://github.com/mashirozx/Sakura/
|
||||||
Author: Mashiro, Spirit, Louie, Fuzzz
|
Author: Mashiro, Spirit, Louie, Fuzzz
|
||||||
Author URI: http://2heng.xin
|
Author URI: http://2heng.xin
|
||||||
Description: A wonderful branch of theme Akina
|
Description: A wonderful branch of theme Akina
|
||||||
Version: 3.4.0
|
Version: 3.3.9
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: sakura
|
Text Domain: sakura
|
||||||
|
|