恢复意外删除的代码
This commit is contained in:
parent
2b4612493c
commit
d10a957567
|
@ -1514,11 +1514,13 @@ function codecheese_register_post( $sanitized_user_login, $user_email, $errors )
|
||||||
// html 标签处理器
|
// html 标签处理器
|
||||||
function html_tag_parser($content) {
|
function html_tag_parser($content) {
|
||||||
if(!is_feed()) {
|
if(!is_feed()) {
|
||||||
$content=preg_replace(
|
if(akina_option('lazyload') && akina_option('lazyload_spinner')){
|
||||||
'/<img(.+)src=[\'"]([^\'"]+)[\'"](.*)>/i',
|
$content=preg_replace(
|
||||||
"<img $1 class=\"lazyload\" data-src=\"$2\" src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\" $3 >\n<noscript>$0</noscript>",
|
'/<img(.+)src=[\'"]([^\'"]+)[\'"](.*)>/i',
|
||||||
$content
|
"<img $1 class=\"lazyload\" data-src=\"$2\" src=\"".akina_option('lazyload_spinner')."\" onerror=\"imgError(this)\" $3 >\n<noscript>$0</noscript>",
|
||||||
);
|
$content
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
//Fancybox
|
//Fancybox
|
||||||
/* Markdown Regex Pattern for Matching URLs:
|
/* Markdown Regex Pattern for Matching URLs:
|
||||||
|
|
Loading…
Reference in New Issue