pull/295/merge
LinGe 2023-02-07 13:36:47 +08:00 committed by GitHub
commit 81776951b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class Bilibili
} }
$html .= '<div class="column"> $html .= '<div class="column">
<a class="bangumi-item" href="https://bangumi.bilibili.com/anime/' . $list['season_id'] . '/" target="_blank" rel="nofollow"> <a class="bangumi-item" href="https://bangumi.bilibili.com/anime/' . $list['season_id'] . '/" target="_blank" rel="nofollow">
<img class="bangumi-image" src="' . str_replace('http://', 'https://', $list['cover']) . '"/> <img class="bangumi-image" referrerPolicy="no-referrer" src="' . str_replace('http://', 'https://', $list['cover']) . '"/>
<div class="bangumi-info"> <div class="bangumi-info">
<h3 class="bangumi-title" title="' . $list['title'] . '">' . $list['title'] . '</h2> <h3 class="bangumi-title" title="' . $list['title'] . '">' . $list['title'] . '</h2>
<div class="bangumi-summary"> ' . $list['evaluate'] . ' </div> <div class="bangumi-summary"> ' . $list['evaluate'] . ' </div>

View File

@ -3,9 +3,8 @@
/** /**
Template Name: Bangumi Template Name: Bangumi
*/ */
get_header(); get_header();
?> ?>
<meta name="referrer" content="same-origin">
<style> <style>
#content,.comments,.site-footer{max-width:1200px;} #content,.comments,.site-footer{max-width:1200px;}
.comments{display: none} .comments{display: none}
@ -23,7 +22,7 @@ get_header();
<div class="row"> <div class="row">
<?php <?php
$bgm = new \Sakura\API\Bilibili(); $bgm = new \Sakura\API\Bilibili();
echo $bgm->get_bgm_items(); echo $bgm->get_bgm_items();
?> ?>
<?php else: ?> <?php else: ?>
<div class="row"> <div class="row">