-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from ouyangyanhuo/dev
Dev
- Loading branch information
Showing
12 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,6 +306,12 @@ function staticUrl($file = ''){ | |
'cf' => 'cdnjs.cloudflare.com/ajax/libs/jquery.pjax/2.0.1/jquery.pjax.min.js', | ||
'jd' => 'cdn.jsdelivr.net/npm/[email protected]/jquery.pjax.min.js', | ||
'custom' => isset($lists[11]) ? $lists[11] : '' | ||
], | ||
'jquery.lazyload.min.js' => [ | ||
'bc' => 'cdn.bootcdn.net/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js', | ||
'cf' => 'cdnjs.cloudflare.com/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js', | ||
'jd' => 'cdn.jsdelivr.net/npm/[email protected]/jquery.lazyload.min.js', | ||
'custom' => isset($lists[12]) ? $lists[12] : '' | ||
] | ||
]; | ||
if (isset($cjCDNlinks[$file])) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
/* | ||
* @Author: Magneto github.com:ouyangyanhuo | ||
* @Date: 2023-06-08 10:43:31 | ||
* @LastEditors: ouyangyanhuo [email protected] | ||
* @LastEditTime: 2023-06-23 18:11:52 | ||
* @FilePath: \AdminMDf:\Github Projects\TinaTheme\post.php | ||
* @Description: | ||
* EMail:[email protected] | ||
* Copyright (c) 2023 by Magneto, All Rights Reserved. | ||
*/ | ||
<?php $this->need('header.php'); ?> | ||
<main> | ||
<div class="container"> | ||
|
@@ -33,7 +43,7 @@ | |
<?php if ($this->options->fancybox): ?> | ||
<?php | ||
$pattern = '/\<img.*?src\=\"(.*?)\".*?alt\=\"(.*?)\".*?title\=\"(.*?)\"[^>]*>/i'; | ||
$replacement = '<a href="$1" data-fancybox="gallery" /><img src="$1" alt="$2" title="$3"></a>'; | ||
$replacement = '<a href="$1" data-fancybox="gallery" /><img class="lazy" data-original="$1" alt="$2" title="$3"></a>'; | ||
$content = preg_replace($pattern, $replacement, $this->content); | ||
echo getContentTest($content) | ||
?> | ||
|