Add a new function

This commit is contained in:
MomentQYC 2022-07-05 21:00:46 +08:00
parent 38087579d2
commit 46b87ec2ce
17 changed files with 136 additions and 99 deletions

View File

@ -17,7 +17,7 @@
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( 'page %s'), max( $paged, $page ) );/*第 %s 页*/?>
</title>
<link type="text/css" media="all" href="https://cdn.jsdelivr.net/gh/moezx/cdn@3.2.2/css/lib.css" rel="stylesheet" />
<link type="text/css" media="all" href="<?php echo(SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/css/lib.css" rel="stylesheet" />
<?php wp_head(); ?>
<script>
var the_url=window.location.href;
@ -55,5 +55,5 @@ if (!no_report) httpGet(report_url);
</form>
</div>
</section>
<script src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.5/js/other/404.min.js" type="text/javascript"></script>
<script src="<?php echo(SAKURA_STATIC_ASSETS_HOST); ?>gh/MomentQYC/sakura@static/js/other/404.min.js" type="text/javascript"></script>
</body>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
@font-face {
font-family:"socialshare";src:url("https://test1.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.eot");
src:url("https://test1.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("https://test1.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.woff") format("woff"),url("https://test1.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.ttf") format("truetype"),url("https://test1.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.svg#iconfont") format("svg")
font-family:"socialshare";src:url("https://cdn.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.eot");
src:url("https://cdn.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.eot?#iefix") format("embedded-opentype"),url("https://cdn.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.woff") format("woff"),url("https://cdn.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.ttf") format("truetype"),url("https://cdn.jsdelivr.net/gh/moezx/share.js@1.0.3/src/fonts/iconfont.svg#iconfont") format("svg")
}
.social-share {

View File

@ -738,7 +738,7 @@
padding: 2px;
text-shadow: none;
border-radius: 0 0 5px 5px;
cursor: url(https://test1.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur), auto
cursor: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur), auto
}
.entry-content pre.highlight-wrap code[data-rel]:before {

View File

@ -235,7 +235,7 @@ body.dark .entry-content tr:nth-child(even){background-color: unset}
padding: 2px;
text-shadow: none;
border-radius: 0 0 5px 5px;
cursor: url(https://test1.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur), auto
cursor: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/texto.cur), auto
}
.highlight-wrap code[data-rel]:before {

View File

@ -23,8 +23,8 @@
<div class="site-info" theme-info="Sakura v<?php echo SAKURA_VERSION; ?>">
<div class="footertext">
<div class="img-preload">
<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/wordpress-rotating-ball-o.svg">
<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/disqus-preloader.svg">
<img src="<?php echo(SAKURA_STATIC_ASSETS_HOST); ?>gh/MomentQYC/sakura@static/img/Sakura/images/wordpress-rotating-ball-o.svg">
<img src="<?php echo(SAKURA_STATIC_ASSETS_HOST); ?>gh/MomentQYC/sakura@static/img/Sakura/images/disqus-preloader.svg">
</div>
<p style="color: #666666;"><?php echo akina_option('footer_info', ''); ?></p>
</div>

View File

@ -10,6 +10,8 @@
define('SAKURA_VERSION', wp_get_theme()->get('Version'));
define('BUILD_VERSION', '3');
//ini_set('display_errors', true);
//error_reporting(E_ALL);
error_reporting(E_ALL ^ E_NOTICE);
@ -174,21 +176,40 @@ add_action('after_setup_theme', 'akina_content_width', 0);
/**
* Enqueue scripts and styles.
*/
function sakura_static_host()
{
define('SAKURA_STATIC_ASSETS_HOST','https://cdn.jsdelivr.net/');
if (akina_option('statics_source') == 'jsd'){
define('SAKURA_STATIC_ASSETS_HOST','https://cdn.jsdelivr.net/');
//echo('<script>console.log("'.SAKURA_STATIC_ASSETS_HOST.'")</script>');
} elseif (akina_option('statics_source') == 'own'){
$staticurl = akina_option('self_source');
if (!$staticurl){
echo('<script>alert("URL cannot be empty\nChange to JsDelivr source by default")</script>');
} else {
define('SAKURA_STATIC_ASSETS_HOST',$staticurl);
//echo('<script>console.log("'.SAKURA_STATIC_ASSETS_HOST.'")</script>');
}
}
}
sakura_static_host();
function sakura_scripts()
{
if (akina_option('jsdelivr_cdn_test')) {
wp_enqueue_script('js_lib', get_template_directory_uri() . '/cdn/js/lib.js', array(), SAKURA_VERSION . akina_option('cookie_version', ''), true);
} else {
wp_enqueue_script('js_lib', 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@' . SAKURA_VERSION . '/cdn/js/lib.min.js', array(), SAKURA_VERSION, true);
wp_enqueue_script('js_lib', SAKURA_STATIC_ASSETS_HOST .'gh/mashirozx/Sakura@'. SAKURA_VERSION . '/cdn/js/lib.min.js', array(), SAKURA_VERSION, true);
}
if (akina_option('app_no_jsdelivr_cdn')) {
wp_enqueue_style('saukra_css', get_stylesheet_uri(), array(), SAKURA_VERSION);
wp_enqueue_script('app', get_template_directory_uri() . '/js/sakura-app.js', array(), SAKURA_VERSION, true);
} else {
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_style('saukra_css', SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/Sakura@' . SAKURA_VERSION . '/style.min.css', array(), SAKURA_VERSION);
wp_enqueue_script('app', SAKURA_STATIC_ASSETS_HOST.'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://jsd.yatserver.com/github-cards/latest/widget.js', array(), SAKURA_VERSION, true);
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
@ -410,7 +431,7 @@ function convertip($ip)
* COMMENT FORMATTING
*
* 标准的 lazyload 输出头像
* <?php echo str_replace( 'src=', 'src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/index.ajax-spinner-preloader.svg" onerror="imgError(this,1)" data-src=', get_avatar( $comment->comment_author_email, '80', '', get_comment_author(), array( 'class' => array( 'lazyload' ) ) ) ); ?>
* <?php echo str_replace( 'src=', 'src="'.SAKURA_STATIC_ASSETS_HOST.'gh/moezx/cdn@3.0.1/img/svg/loader/index.ajax-spinner-preloader.svg" onerror="imgError(this,1)" data-src=', get_avatar( $comment->comment_author_email, '80', '', get_comment_author(), array( 'class' => array( 'lazyload' ) ) ) ); ?>
*
* 如果不延时是这样的
* <?php echo get_avatar( $comment->comment_author_email, '80', '', get_comment_author() ); ?>
@ -426,7 +447,7 @@ if (!function_exists('akina_comment_format')) {
<div class="comment-arrow">
<div class="main shadow">
<div class="profile">
<a href="<?php comment_author_url();?>" target="_blank" rel="nofollow"><?php echo str_replace('src=', 'src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this,1)" data-src=', get_avatar($comment->comment_author_email, '80', '', get_comment_author(), array('class' => array('lazyload')))); ?></a>
<a href="<?php comment_author_url();?>" target="_blank" rel="nofollow"><?php echo str_replace('src=', 'src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this,1)" data-src=', get_avatar($comment->comment_author_email, '80', '', get_comment_author(), array('class' => array('lazyload')))); ?></a>
</div>
<div class="commentinfo">
<section class="commeta">
@ -475,19 +496,19 @@ function get_author_class($comment_author_email, $user_id)
"SELECT comment_ID as author_count FROM $wpdb->comments WHERE comment_author_email = '$comment_author_email' "));
if ($author_count >= 1 && $author_count < 5) //数字可自行修改,代表评论次数。
{
echo '<span class="showGrade0" title="Lv0"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_0.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade0" title="Lv0"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_0.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 6 && $author_count < 10) {
echo '<span class="showGrade1" title="Lv1"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_1.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade1" title="Lv1"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_1.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 10 && $author_count < 20) {
echo '<span class="showGrade2" title="Lv2"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_2.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade2" title="Lv2"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_2.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 20 && $author_count < 40) {
echo '<span class="showGrade3" title="Lv3"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_3.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade3" title="Lv3"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_3.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 40 && $author_count < 80) {
echo '<span class="showGrade4" title="Lv4"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_4.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade4" title="Lv4"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_4.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 80 && $author_count < 160) {
echo '<span class="showGrade5" title="Lv5"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_5.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade5" title="Lv5"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_5.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
} else if ($author_count >= 160) {
echo '<span class="showGrade6" title="Lv6"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/level/level_6.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
echo '<span class="showGrade6" title="Lv6"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/level/level_6.svg" style="height: 1.5em; max-height: 1.5em; display: inline-block;"></span>';
}
}
@ -593,7 +614,7 @@ function get_the_link_items($id = null)
$bookmark->link_image = 'https://view.moezx.cc/images/2017/12/30/Transparent_Akkarin.th.jpg';
}
$output .= '<li class="link-item"><a class="link-item-inner effect-apollo" href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" rel="friend"><img class="lazyload" onerror="imgError(this,1)" data-src="' . $bookmark->link_image . '" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg"><span class="sitename">' . $bookmark->link_name . '</span><div class="linkdes">' . $bookmark->link_description . '</div></a></li>';
$output .= '<li class="link-item"><a class="link-item-inner effect-apollo" href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" rel="friend"><img class="lazyload" onerror="imgError(this,1)" data-src="' . $bookmark->link_image . '" src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/trans.ajax-spinner-preloader.svg"><span class="sitename">' . $bookmark->link_name . '</span><div class="linkdes">' . $bookmark->link_description . '</div></a></li>';
}
$output .= '</ul>';
}
@ -813,7 +834,7 @@ function custom_login()
//echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/inc/login.css" />'."\n";
echo '<link rel="stylesheet" type="text/css" href="' . get_template_directory_uri() . '/inc/login.css?' . SAKURA_VERSION . '" />' . "\n";
//echo '<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/jquery.min.js"></script>'."\n";
echo '<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/jquery/jquery@1.9.0/jquery.min.js"></script>' . "\n";
echo '<script type="text/javascript" src="'.SAKURA_STATIC_ASSETS_HOST.'gh/jquery/jquery@1.9.0/jquery.min.js"></script>' . "\n";
}
add_action('login_head', 'custom_login');
@ -838,11 +859,11 @@ function custom_html()
if (akina_option('login_bg')) {
$loginbg = akina_option('login_bg');
} else {
$loginbg = 'https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.2.7/images/hd.png';
$loginbg = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/Sakura@3.2.7/images/hd.png';
}
echo '<script type="text/javascript" src="' . get_template_directory_uri() . '/js/login.js"></script>' . "\n";
echo '<script type="text/javascript">' . "\n";
echo 'jQuery("body").prepend("<div class=\"loading\"><img src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/login_loading.gif\" width=\"58\" height=\"10\"></div><div id=\"bg\"><img /></div>");' . "\n";
echo 'jQuery("body").prepend("<div class=\"loading\"><img src=\"'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/login_loading.gif\" width=\"58\" height=\"10\"></div><div id=\"bg\"><img /></div>");' . "\n";
echo 'jQuery(\'#bg\').children(\'img\').attr(\'src\', \'' . $loginbg . '\').load(function(){' . "\n";
echo ' resizeImage(\'bg\');' . "\n";
echo ' jQuery(window).bind("resize", function() { resizeImage(\'bg\'); });' . "\n";
@ -966,7 +987,7 @@ function comment_mail_notify($comment_id)
-webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.18);">
<header style="overflow: hidden;">
<img style="width:100%;z-index: 666;" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.4/img/other/head.jpg">
<img style="width:100%;z-index: 666;" src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/other/head.jpg">
</header>
<div style="padding: 5px 20px;">
<p style="position: relative;
@ -988,7 +1009,7 @@ function comment_mail_notify($comment_id)
. trim($comment->comment_content) . '</div>
<div style="text-align: center;">
<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.4/img/other/hr.png" alt="hr" style="width:100%;
<img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/other/hr.png" alt="hr" style="width:100%;
margin:5px auto 5px auto;
display: block;">
<a style="text-transform: uppercase;
@ -1006,7 +1027,7 @@ function comment_mail_notify($comment_id)
</div>
';
$message = convert_smilies($message);
$message = str_replace("{{", '<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@2.9.4/img/bili/hd/ic_emoji_', $message);
$message = str_replace("{{", '<img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/bili/hd/ic_emoji_', $message);
$message = str_replace("}}", '.png" alt="emoji" style="height: 2em; max-height: 2em;">', $message);
$message = str_replace('{UPLOAD}', 'https://i.loli.net/', $message);
@ -1069,9 +1090,9 @@ function comment_picture_support($content)
$content = str_replace('http://', 'https://', $content); // 干掉任何可能的 http
$content = str_replace('{UPLOAD}', 'https://i.loli.net/', $content);
$content = str_replace('[/img][img]', '[/img^img]', $content);
$content = str_replace('[img]', '<br><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="', $content);
$content = str_replace('[img]', '<br><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="', $content);
$content = str_replace('[/img]', '" class="lazyload comment_inline_img" onerror="imgError(this)"><br>', $content);
$content = str_replace('[/img^img]', '" class="lazyload comment_inline_img" onerror="imgError(this)"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="', $content);
$content = str_replace('[/img^img]', '" class="lazyload comment_inline_img" onerror="imgError(this)"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="', $content);
return $content;
}
add_filter('comment_text', 'comment_picture_support');
@ -1082,7 +1103,7 @@ add_filter('comment_text', 'comment_picture_support');
add_filter('smilies_src', 'custom_smilies_src', 1, 10);
function custom_smilies_src($img_src, $img, $siteurl)
{
return 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/smilies/' . $img;
return SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/smilies/' . $img;
}
// 简单遍历系统表情库,今后应考虑标识表情包名——使用增加的扩展名,同时保留原有拓展名
// 还有一个思路是根据表情调用路径来判定<-- 此法最好!
@ -1093,7 +1114,7 @@ function push_smilies()
foreach ($wpsmiliestrans as $k => $v) {
$Sname = str_replace(":", "", $k);
$Svalue = $v;
$return_smiles = $return_smiles . '<span title="' . $Sname . '" onclick="grin(' . "'" . $Sname . "'" . ')"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/smilies/' . $Svalue . '" /></span>';
$return_smiles = $return_smiles . '<span title="' . $Sname . '" onclick="grin(' . "'" . $Sname . "'" . ')"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/smilies/' . $Svalue . '" /></span>';
}
return $return_smiles;
}
@ -1224,14 +1245,14 @@ function push_bili_smilies()
$img_size = getimagesize($smiles_path . $name[$i] . ".png");
$img_height = $img_size["1"];
// 选择面版
$return_smiles = $return_smiles . '<span class="emotion-secter emotion-item emotion-select-parent" onclick="grin(' . "'" . $name[$i] . "'" . ',type = \'Math\')" style="background-image: url(https://cdn.jsdelivr.net/gh/moezx/cdn@2.9.4/img/bili/hd/ic_emoji_' . $name[$i] . '.png);"><div class="img emotion-select-child" style="background-image: url(https://cdn.jsdelivr.net/gh/moezx/cdn@2.9.4/img/bili/' . $name[$i] . '.png);
$return_smiles = $return_smiles . '<span class="emotion-secter emotion-item emotion-select-parent" onclick="grin(' . "'" . $name[$i] . "'" . ',type = \'Math\')" style="background-image: url('.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/bili/hd/ic_emoji_' . $name[$i] . '.png);"><div class="img emotion-select-child" style="background-image: url('.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/bili/' . $name[$i] . '.png);
animation-duration: ' . ($img_height / 32 * 40) . 'ms;
animation-timing-function: steps(' . ($img_height / 32) . ');
transform: translateY(-' . ($img_height - 32) . 'px);
height: ' . $img_height . 'px;
"></div></span>';
// 正文转换
$bilismiliestrans['{{' . $name[$i] . '}}'] = '<span class="emotion-inline emotion-item"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@2.9.4/img/bili/' . $name[$i] . '.png" class="img" style="/*background-image: url();*/
$bilismiliestrans['{{' . $name[$i] . '}}'] = '<span class="emotion-inline emotion-item"><img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/bili/' . $name[$i] . '.png" class="img" style="/*background-image: url();*/
animation-duration: ' . ($img_height / 32 * 40) . 'ms;
animation-timing-function: steps(' . ($img_height / 32) . ');
transform: translateY(-' . ($img_height - 32) . 'px);
@ -1265,7 +1286,7 @@ add_filter('the_content_feed', 'featuredtoRSS');
//
function bili_smile_filter_rss($content)
{
$content = str_replace("{{", '<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@2.9.4/img/bili/hd/ic_emoji_', $content);
$content = str_replace("{{", '<img src="'.SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/bili/hd/ic_emoji_', $content);
$content = str_replace("}}", '.png" alt="emoji" style="height: 2em; max-height: 2em;">', $content);
$content = str_replace('[img]', '<img src="', $content);
$content = str_replace('[/img]', '" style="display: block;margin-left: auto;margin-right: auto;">', $content);
@ -1477,7 +1498,7 @@ function admin_ini()
{
wp_enqueue_style('admin-styles-fix-icon', get_site_url() . '/wp-includes/css/dashicons.css');
wp_enqueue_style('cus-styles-fit', get_template_directory_uri() . '/inc/css/dashboard-fix.css');
wp_enqueue_script('lazyload', 'https://cdn.jsdelivr.net/npm/lazyload@2.0.0-beta.2/lazyload.min.js');
wp_enqueue_script('lazyload', SAKURA_STATIC_ASSETS_HOST.'/npm/lazyload@2.0.0-beta.2/lazyload.min.js');
}
add_action('admin_enqueue_scripts', 'admin_ini');

View File

@ -28,13 +28,13 @@ mashiro_option.skin_bg6 = "<?php echo $bg_arry[6] ?>";
mashiro_option.skin_bg7 = "<?php echo $bg_arry[7] ?>";
<?php }else {?>
mashiro_option.skin_bg0 = "none";
mashiro_option.skin_bg1 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/cdn/img/sakura.png";
mashiro_option.skin_bg2 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/cdn/img/plaid2dbf8.jpg";
mashiro_option.skin_bg3 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/cdn/img/star02.png";
mashiro_option.skin_bg4 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/cdn/img/kyotoanimation.png";
mashiro_option.skin_bg5 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/cdn/img/dot_orange.gif";
mashiro_option.skin_bg1 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/cdn/img/sakura.png";
mashiro_option.skin_bg2 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/cdn/img/plaid2dbf8.jpg";
mashiro_option.skin_bg3 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/cdn/img/star02.png";
mashiro_option.skin_bg4 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/cdn/img/kyotoanimation.png";
mashiro_option.skin_bg5 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/cdn/img/dot_orange.gif";
mashiro_option.skin_bg6 = "https://api.mashiro.top/bing/";
mashiro_option.skin_bg7 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/sakura@static/other-sites/api-index/images/me.png";
mashiro_option.skin_bg7 = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/MomentQYC/sakura@static/other-sites/api-index/images/me.png";
<?php } ?>
mashiro_option.darkmode = <?php if ( akina_option('darkmode') ){ echo 'true'; } else { echo 'false'; } ?>;
@ -67,7 +67,7 @@ mashiro_option.entry_content_theme = "<?php echo akina_option('entry_content_the
<?php if(akina_option('jsdelivr_cdn_test')){ ?>
mashiro_option.jsdelivr_css_src = "<?php echo get_template_directory_uri() ?>/cdn/css/lib.css?<?php echo SAKURA_VERSION.akina_option('cookie_version', ''); ?>";
<?php } else { ?>
mashiro_option.jsdelivr_css_src = "<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/Sakura@<?php echo SAKURA_VERSION; ?>/cdn/css/lib.min.css";
mashiro_option.jsdelivr_css_src = <?php echo (SAKURA_STATIC_ASSETS_HOST);?>"gh/mashirozx/Sakura@<?php echo SAKURA_VERSION; ?>/cdn/css/lib.min.css";
<?php } ?>
<?php if (akina_option('aplayer_server') != 'off'): ?>
mashiro_option.float_player_on = true;

View File

@ -313,7 +313,7 @@ function the_headPattern(){
if(!is_home() && $full_image_url) : ?>
<div class="pattern-center-blank"></div>
<div class="pattern-center <?php if(is_single()){echo $center;} ?>">
<div class="pattern-attachment-img lazyload" style="background-image: url(<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg)" data-src="<?php echo $full_image_url; ?>"> </div>
<div class="pattern-attachment-img lazyload" style="background-image: url(<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg)" data-src="<?php echo $full_image_url; ?>"> </div>
<header class="pattern-header <?php if(is_single()){echo $header;} ?>"><?php echo $t; ?></header>
</div>
<?php else :
@ -358,13 +358,13 @@ function the_video_headPattern_hls(){
$t .= the_title( '<h1 class="entry-title">', '</h1>', false);
}elseif(is_archive()){
$full_image_url = z_taxonomy_image_url();
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$des = category_description() ? category_description() : ''; // 描述
$t .= '<h1 class="cat-title">'.single_cat_title('', false).'</h1>';
$t .= ' <span class="cat-des">'.$des.'</span>';
}elseif(is_search()){
$full_image_url = get_random_bg_url();
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$t .= '<h1 class="entry-title search-title"> '.sprintf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
}
$thubm_image_url = $thubm_image_url . "#lazyload-blur";
@ -426,13 +426,13 @@ function the_video_headPattern_normal(){
$t .= the_title( '<h1 class="entry-title">', '</h1>', false);
}elseif(is_archive()){
$full_image_url = z_taxonomy_image_url();
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$des = category_description() ? category_description() : ''; // 描述
$t .= '<h1 class="cat-title">'.single_cat_title('', false).'</h1>';
$t .= ' <span class="cat-des">'.$des.'</span>';
}elseif(is_search()){
$full_image_url = get_random_bg_url();
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$thubm_image_url = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg';
$t .= '<h1 class="entry-title search-title"> '.sprintf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'</h1>';
}
$thubm_image_url = $thubm_image_url . "#lazyload-blur";
@ -485,7 +485,7 @@ function header_user_menu(){
</div>
<?php
}else{
$ava = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/Sakura/images/none.png';
$ava = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/none.png';
$login_url = akina_option('exlogin_url') ? akina_option('exlogin_url') : get_bloginfo('url').'/wp-login.php';
?>
<div class="header-user-avatar">
@ -933,7 +933,7 @@ function siren_get_os($ua){
function siren_get_useragent($ua){
if(akina_option('open_useragent')){
// $imgurl = get_bloginfo('template_directory') . '/images/ua/';
$imgurl = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/Sakura/images/ua/svg/';
$imgurl = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/ua/svg/';
$browser = siren_get_browsers($ua);
$os = siren_get_os($ua);
return '&nbsp;&nbsp;<span class="useragent-info">( <img src="'. $imgurl.$browser[1] .'.svg">&nbsp;'. $browser[0] .'&nbsp;&nbsp;<img src="'. $imgurl.$os[1] .'.svg">&nbsp;'. $os[0] .' )</span>';
@ -944,7 +944,7 @@ function siren_get_useragent($ua){
// UA 显示移动定制
function mobile_get_useragent_icon($ua){
if(akina_option('open_useragent')){
$imgurl = SAKURA_STATIC_ASSETS_HOST.'gh/mashirozx/sakura@static/img/Sakura/images/ua/svg/';
$imgurl = SAKURA_STATIC_ASSETS_HOST.'gh/MomentQYC/sakura@static/img/Sakura/images/ua/svg/';
$browser = siren_get_browsers($ua);
$os = siren_get_os($ua);
return '<span class="useragent-info-m">( <img src="'. $imgurl.$browser[1] .'.svg">&nbsp;&nbsp;<img src="'. $imgurl.$os[1] .'.svg"> )</span>';

View File

@ -210,7 +210,7 @@ function attach_image() {
}, 1000);
if (res.status == 200) {
var get_the_url = res.proxy;
$('#upload-img-show').append('<img class="lazyload upload-image-preview" src="https://test1.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="' + get_the_url + '" onclick="window.open(\'' + get_the_url + '\')" onerror="imgError(this)" />');
$('#upload-img-show').append('<img class="lazyload upload-image-preview" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" data-src="' + get_the_url + '" onclick="window.open(\'' + get_the_url + '\')" onerror="imgError(this)" />');
lazyload();
addComment.createButterbar("图片上传成功~<br>Uploaded successfully~");
grin(get_the_url, type = 'Img');
@ -606,7 +606,7 @@ function coverVideoIni() {
if (mashiro_global.variables.has_hls){
loadHls();
}else{
$.getScript("https://test1.jsdelivr.net/gh/mashirozx/Sakura@3.3.3/cdn/js/src/16.hls.js", function(){
$.getScript("https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.3/cdn/js/src/16.hls.js", function(){
loadHls();
mashiro_global.variables.has_hls = true;
});
@ -1071,7 +1071,7 @@ mashiro_global.ini.normalize();
loadCSS(mashiro_option.jsdelivr_css_src);
loadCSS(mashiro_option.entry_content_theme_src);
loadCSS("https://at.alicdn.com/t/font_679578_qyt5qzzavdo39pb9.css");
loadCSS("https://test1.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css");
loadCSS("https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css");
loadCSS("https://fonts.googleapis.com/css?family=Noto+SerifMerriweather|Merriweather+Sans|Source+Code+Pro|Ubuntu:400,700|Noto+Serif+SC");
(function webpackUniversalModuleDefinition(b, a) {
if (typeof exports === "object" && typeof module === "object") {

View File

@ -9,7 +9,7 @@
<h1 class="fes-title" style="font-family: 'Ubuntu', sans-serif;"><i class="fa fa-anchor" aria-hidden="true"></i> <?php echo akina_option('feature_title', '聚焦'); ?></h1>
<div class="feature-content">
<li class="feature-1">
<a href="<?php echo akina_option('feature1_link', '#'); ?>" target="_blank"><div class="feature-title"><span class="foverlay-bg"></span><span class="foverlay"><?php echo akina_option('feature1_title', 'feature1'); ?></span></div><img class="lazyload" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg" data-src="<?php echo akina_option('feature1_img', ''); ?>"></a>
<a href="<?php echo akina_option('feature1_link', '#'); ?>" target="_blank"><div class="feature-title"><span class="foverlay-bg"></span><span class="foverlay"><?php echo akina_option('feature1_title', 'feature1'); ?></span></div><img class="lazyload" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg" data-src="<?php echo akina_option('feature1_img', ''); ?>"></a>
</li>
<li class="feature-2">
<a href="<?php echo akina_option('feature2_link', '#'); ?>" target="_blank"><div class="feature-title"><span class="foverlay-bg"></span><span class="foverlay"><?php echo akina_option('feature2_title', 'feature2'); ?></span></div><img src="<?php echo akina_option('feature2_img', ''); ?>"></a>

View File

@ -17,119 +17,119 @@
<p><?php echo akina_option('admin_des', 'Hi, Mashiro?'); ?></p>
<?php if (akina_option('social_style')=="v2"): ?>
<div class="top-social_v2">
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/next-b.svg"/></li>
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
<?php if (akina_option('github')){ ?>
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
<?php } ?>
<?php if (akina_option('sina')){ ?>
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
<?php } ?>
<?php if (akina_option('telegram')){ ?>
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
<?php } ?>
<?php if (akina_option('qq')){ ?>
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
<?php } ?>
<?php if (akina_option('qzone')){ ?>
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/qzone.png"/></a></li>
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qzone.png"/></a></li>
<?php } ?>
<?php if (akina_option('wechat')){ ?>
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
<div class="wechatInner">
<img src="<?php echo akina_option('wechat', ''); ?>" alt="WeChat">
</div>
</li>
<?php } ?>
<?php if (akina_option('lofter')){ ?>
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
<?php } ?>
<?php if (akina_option('bili')){ ?>
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
<?php } ?>
<?php if (akina_option('youku')){ ?>
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
<?php } ?>
<?php if (akina_option('wangyiyun')){ ?>
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
<?php } ?>
<?php if (akina_option('twitter')){ ?>
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
<?php } ?>
<?php if (akina_option('facebook')){ ?>
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
<?php } ?>
<?php if (akina_option('jianshu')){ ?>
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
<?php } ?>
<?php if (akina_option('zhihu')){ ?>
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
<?php } ?>
<?php if (akina_option('csdn')){ ?>
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
<?php } ?>
<?php if (akina_option('email_name') && akina_option('email_domain')){ ?>
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
<?php } ?>
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/next-b.svg"/></li>
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
</div>
<?php endif; ?>
</div>
<?php if (akina_option('social_style')=="v1"): ?>
<div class="top-social">
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/next-b.svg"/></li>
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
<?php if (akina_option('github')){ ?>
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
<?php } ?>
<?php if (akina_option('sina')){ ?>
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
<?php } ?>
<?php if (akina_option('telegram')){ ?>
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
<?php } ?>
<?php if (akina_option('qq')){ ?>
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
<?php } ?>
<?php if (akina_option('qzone')){ ?>
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/Sakura/images/sns/qzone.png"/></a></li>
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/Sakura/images/sns/qzone.png"/></a></li>
<?php } ?>
<?php if (akina_option('wechat')){ ?>
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
<div class="wechatInner">
<img src="<?php echo akina_option('wechat', ''); ?>" alt="WeChat">
</div>
</li>
<?php } ?>
<?php if (akina_option('lofter')){ ?>
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
<?php } ?>
<?php if (akina_option('bili')){ ?>
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
<?php } ?>
<?php if (akina_option('youku')){ ?>
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
<?php } ?>
<?php if (akina_option('wangyiyun')){ ?>
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
<?php } ?>
<?php if (akina_option('twitter')){ ?>
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
<?php } ?>
<?php if (akina_option('facebook')){ ?>
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
<?php } ?>
<?php if (akina_option('jianshu')){ ?>
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
<?php } ?>
<?php if (akina_option('zhihu')){ ?>
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
<?php } ?>
<?php if (akina_option('csdn')){ ?>
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
<?php } ?>
<?php if (akina_option('email_name') && akina_option('email_domain')){ ?>
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
<?php } ?>
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/next-b.svg"/></li>
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
</div>
<?php endif; ?>
</div>

View File

@ -8,10 +8,10 @@ if ( akina_option('post_nepre') == 'yes') {
?>
<section class="post-squares nextprev">
<div class="post-nepre <?php if(get_next_post()){echo 'half';}else{echo 'full';} ?> previous">
<?php previous_post_link('%link','<div class="background lazyload" style="background-image:url('.SAKURA_STATIC_ASSETS_HOST.'/gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_prev_thumbnail_url().'"></div><span class="label">Previous Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
<?php previous_post_link('%link','<div class="background lazyload" style="background-image:url('.SAKURA_STATIC_ASSETS_HOST.'/gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_prev_thumbnail_url().'"></div><span class="label">Previous Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
</div>
<div class="post-nepre <?php if(get_previous_post()){echo 'half';}else{echo 'full';} ?> next">
<?php next_post_link('%link','<div class="background lazyload" style="background-image:url('.SAKURA_STATIC_ASSETS_HOST.'/gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_next_thumbnail_url().'"></div><span class="label">Next Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
<?php next_post_link('%link','<div class="background lazyload" style="background-image:url('.SAKURA_STATIC_ASSETS_HOST.'/gh/MomentQYC/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg);" data-src="'.get_next_thumbnail_url().'"></div><span class="label">Next Post</span><div class="info"><h3>%title</h3><hr></div>') ?>
</div>
</section>
<?php } ?>

View File

@ -1235,5 +1235,21 @@ function optionsframework_options()
'std' => 'bibi',
'type' => 'text');
$options[] = array(
'name' => __('Statics Source', 'sakura'), /*资源来源*/
'id' => 'statics_source',
'std' => "jsd",
'type' => "radio",
'options' => array(
'jsd' => __('JsDelivr', 'sakura'), /*jsd源*/
'own' => __('Other', 'sakura'),
));
$options[] = array(
'name' => __('Self Source', 'sakura'), /*资源来源*/
'desc' => __('Set if self other source is selected', 'sakura'),
'id' => 'self_source',
'type' => "text",
);
return $options;
}

View File

@ -27,7 +27,7 @@ $the_cat = get_the_category();
?>
<article class="post post-list-thumb <?php echo $class; ?>" itemscope="" itemtype="http://schema.org/BlogPosting">
<div class="post-thumb">
<a href="<?php the_permalink(); ?>"><img class="lazyload" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/svg/loader/orange.progress-bar-stripe-loader.svg" data-src="<?php echo $post_img; ?>"></a>
<a href="<?php the_permalink(); ?>"><img class="lazyload" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/svg/loader/orange.progress-bar-stripe-loader.svg" data-src="<?php echo $post_img; ?>"></a>
</div><!-- thumbnail-->
<div class="post-content-wrap">
<div class="post-content">

View File

@ -10,7 +10,7 @@ get_header();
<?php if(!is_user_logged_in()){ ?>
<div class="ex-login">
<div class="ex-login-title">
<p><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/mashirozx/sakura@static/img/Sakura/images/none.png"></p>
<p><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/none.png"></p>
</div>
<form action="<?php echo home_url(); ?>/wp-login.php" method="post">
<p><input type="text" name="log" id="log" value="<?php echo $_POST['log']; ?>" size="25" placeholder="Name" required /></p>