Skip to content

Commit

Permalink
Merge pull request #320 from mirai-mamori/preview
Browse files Browse the repository at this point in the history
Live Alive「God Bless」 Special Update Fix Pack
  • Loading branch information
mirai-mamori authored Aug 27, 2021
2 parents 76c8fab + 2be7cf8 commit 1af1ef1
Show file tree
Hide file tree
Showing 32 changed files with 2,304 additions and 2,182 deletions.
25 changes: 25 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,31 @@ function codecheese_register_post($sanitized_user_login, $user_email, $errors)
$errors->add('invalid_email', __('<b>ERROR</b>: This email domain (<b>@' . $email[1] . '</b>) has been blocked. Please use another email.'));
}
}
function array_html_props(array $props){
$props_string = '';
foreach ($props as $key => $value) {
$props_string .= ' '.$key . '="' . $value . '"';
}
return $props_string;
}
/**
* 渲染一个懒加载的<img>
* @author KotoriK
*/
function lazyload_img(string $src, string $class = '', array $otherParam = array())
{
$noscriptParam = $otherParam;
if($class) $noscriptParam['class'] = $class;
$noscriptParam['src'] = $src;
$otherParam['class'] = 'lazyload' . ($class ? ' ' . $class : '');
$otherParam['data-src'] = $src;
$otherParam['onerror'] = 'imgError(this)';
$otherParam['src'] = iro_opt('page_lazyload_spinner');
$noscriptProps = '';
$props = array_html_props($otherParam);
$noscriptProps = array_html_props($noscriptParam);
return "<img$props/><noscript><img$noscriptProps/></noscript>";
}

// html 标签处理器
function html_tag_parser($content)
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/Bilibili.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private static function bangumi_item(array $item, $percent)
//in_array('index_show','new_ep')
return '<div class="column">' .
'<a class="bangumi-item" href="https://bangumi.bilibili.com/anime/' . $item['season_id'] . '/" target="_blank" rel="nofollow">'
. '<img class="bangumi-image" src="' . str_replace('http://', 'https://', $item['cover']) . '"/>' .
.lazyload_img(str_replace('http://', 'https://', $item['cover']),'bangumi-image',array('alt'=>$item['title'])).
'<div class="bangumi-info">' .
'<h3 class="bangumi-title" title="' . $item['title'] . '">' . $item['title'] . '</h2>'
. '<div class="bangumi-summary"> ' . $item['evaluate'] . ' </div>' .
Expand Down
8 changes: 4 additions & 4 deletions inc/decorate.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,14 +1156,14 @@ function customizer_css() { ?>

.site-footer {
background-color: rgba(255, 255, 255,<?php echo iro_opt('reception_background_transparency'); ?>);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
<?php if (iro_opt('reception_background_blur', 'false')): ?> backdrop-filter: blur(10px); <?php endif; ?>
<?php if (iro_opt('reception_background_blur', 'false')): ?> -webkit-backdrop-filter: blur(10px); <?php endif; ?>
}

.wrapper {
background-color: rgba(255, 255, 255,<?php echo iro_opt('reception_background_transparency'); ?>);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
<?php if (iro_opt('reception_background_blur', 'false')): ?> backdrop-filter: blur(10px); <?php endif; ?>
<?php if (iro_opt('reception_background_blur', 'false')): ?> -webkit-backdrop-filter: blur(10px); <?php endif; ?>
}

/*首页圆角设置*/
Expand Down
2 changes: 1 addition & 1 deletion inc/swicher.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function font_end_js_control() { ?>
echo_if_true('note_effects','audio');
echo_if_true('footer_yiyan','yiyan');
echo_if_true('baguetteBox','baguetteBoxON');
echo_if_true('fancybox','baguetteBoxON');
echo_if_true('fancybox','fancybox');
?>
darkmode :<?php echo iro_opt('theme_darkmode_auto') ? 'true':'false';?>,
<?php if ( iro_opt('theme_darkmode_auto') ):echo 'dm_strategy:"'.iro_opt('theme_darkmode_strategy','time').'",'.PHP_EOL;endif; ?>
Expand Down
4 changes: 2 additions & 2 deletions js/473.js → js/280.js

Large diffs are not rendered by default.

Binary file added js/280.js.br
Binary file not shown.
Binary file added js/280.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion js/473.js.map → js/280.js.map

Large diffs are not rendered by default.

Binary file removed js/473.js.br
Binary file not shown.
Binary file removed js/473.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
*
*/

//! build 5d7f85b 2021/8/26
//! build d09ae55 2021/8/27
Binary file modified js/app.js.br
Binary file not shown.
Binary file modified js/app.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion js/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/login.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
//! build 5d7f85b 2021/8/26
//! build d09ae55 2021/8/27
2 changes: 1 addition & 1 deletion js/page.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/page.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* @license MIT
*/

//! build 5d7f85b 2021/8/26
//! build d09ae55 2021/8/27
Binary file modified js/page.js.br
Binary file not shown.
Binary file modified js/page.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion js/page.js.map

Large diffs are not rendered by default.

Binary file modified opt/languages/ja_JP.mo
Binary file not shown.
Loading

0 comments on commit 1af1ef1

Please sign in to comment.