This commit is contained in:
haoouba 2021-02-07 21:33:20 +08:00
parent 9672e6d9a4
commit 6763584f42
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function _parseContent($post, $login)
}
/* 过滤dplayer播放器 */
if (preg_match('/\{dplayer\s{0,}src=".{0,}"\s{0,}\/\}/sSU', $content)) {
$player = Helper::options()->JCustomPlayer ? Helper::options()->JCustomPlayer : '/usr/themes/Joe/library/player.php?url=';
$player = Helper::options()->JCustomPlayer ? Helper::options()->JCustomPlayer : '/usr/themes/joe/library/player.php?url=';
$content = preg_replace(
'/\{dplayer\s{0,}src="(.{0,})"\s{0,}\/\}/sSU',
'<iframe class="joe_detail__article-player block" allowfullscreen="true" src="' . $player . '$1"></iframe>',

View File

@ -33,7 +33,7 @@
</div>
<div class="joe_video__player joe_video__contain">
<div class="joe_video__contain-title">正在播放:</div>
<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>
<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>
<?php else : ?>
<div class="joe_video__type joe_video__contain">