更新
This commit is contained in:
parent
30056b762c
commit
1de54fa2bb
File diff suppressed because one or more lines are too long
@ -1463,6 +1463,10 @@ html[data-night='night'] {
|
|||||||
color: var(--theme);
|
color: var(--theme);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&-player {
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
&-protected {
|
&-protected {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -22,12 +22,12 @@
|
|||||||
&::before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
bottom: -10px;
|
||||||
|
left: -10px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 10px;
|
border-width: 10px;
|
||||||
bottom: -20px;
|
|
||||||
left: 0;
|
|
||||||
z-index: -1;
|
|
||||||
border-color: var(--theme) transparent transparent;
|
border-color: var(--theme) transparent transparent;
|
||||||
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&-list {
|
&-list {
|
||||||
|
@ -117,7 +117,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
/* 搜索功能 */
|
/* 搜索功能 */
|
||||||
const searchFn = () => {
|
const searchFn = () => {
|
||||||
const val = $('.joe_video__list-search input').val();
|
const val = $('.joe_video__list-search input').val();
|
||||||
if (!val || isLoading) return;
|
if (isLoading) return;
|
||||||
queryData.pg = 1;
|
queryData.pg = 1;
|
||||||
queryData.t = '';
|
queryData.t = '';
|
||||||
queryData.wd = val;
|
queryData.wd = val;
|
||||||
|
@ -18,6 +18,22 @@ function _parseShortCode($content)
|
|||||||
$content
|
$content
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
/* 过滤bilibili播放器 */
|
||||||
|
if (preg_match('/\[bilibili\s{0,}bvid="\w{0,}"\s{0,}\/\]/', $content)) {
|
||||||
|
$content = preg_replace(
|
||||||
|
'/\[bilibili\s{0,}bvid="(\w{0,})"\s{0,}\/\]/',
|
||||||
|
'<iframe class="joe_detail__article-player block" allowfullscreen="true" src="//player.bilibili.com/player.html?bvid=$1"></iframe>',
|
||||||
|
$content
|
||||||
|
);
|
||||||
|
}
|
||||||
|
/* 过滤dplayer播放器 */
|
||||||
|
if (preg_match('/\[dplayer\s{0,}src=".{0,}"\s{0,}\/\]/', $content)) {
|
||||||
|
$player = Helper::options()->JCustomPlayer ? Helper::options()->JCustomPlayer : '/usr/themes/Joe/library/player.php?url=';
|
||||||
|
$content = preg_replace(
|
||||||
|
'/\[dplayer\s{0,}src="(.{0,})"\s{0,}\/\]/',
|
||||||
|
'<iframe class="joe_detail__article-player block" allowfullscreen="true" src="' . $player . '$1"></iframe>',
|
||||||
|
$content
|
||||||
|
);
|
||||||
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
@ -647,6 +647,7 @@ function themeConfig($form)
|
|||||||
NULL,
|
NULL,
|
||||||
'自定义视频播放器(非必填)',
|
'自定义视频播放器(非必填)',
|
||||||
'介绍:用于修改主题自带的默认播放器 <br />
|
'介绍:用于修改主题自带的默认播放器 <br />
|
||||||
|
例如:https://v.ini0.com/player/?url= <br />
|
||||||
注意:主题自带的播放器只能解析M3U8的视频格式'
|
注意:主题自带的播放器只能解析M3U8的视频格式'
|
||||||
);
|
);
|
||||||
$JCustomPlayer->setAttribute('class', 'joe_content joe_other');
|
$JCustomPlayer->setAttribute('class', 'joe_content joe_other');
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="joe_video__player joe_video__contain">
|
<div class="joe_video__player joe_video__contain">
|
||||||
<div class="joe_video__contain-title">正在播放:</div>
|
<div class="joe_video__contain-title">正在播放:</div>
|
||||||
<iframe class="joe_video__player-play" data-player="<?php echo $this->options->JCustomPlayer ? $this->options->JCustomPlayer : '/usr/themes/Joe/library/player.php?url=' ?>"></iframe>
|
<iframe allowfullscreen="true" class="joe_video__player-play" data-player="<?php echo $this->options->JCustomPlayer ? $this->options->JCustomPlayer : '/usr/themes/Joe/library/player.php?url=' ?>"></iframe>
|
||||||
</div>
|
</div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="joe_video__type joe_video__contain">
|
<div class="joe_video__type joe_video__contain">
|
||||||
|
Loading…
Reference in New Issue
Block a user