2020-04-05 04:01:11 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
Template Name: Bangumi
|
|
|
|
*/
|
|
|
|
get_header();
|
|
|
|
?>
|
|
|
|
<meta name="referrer" content="same-origin">
|
|
|
|
<style>
|
|
|
|
#content,.comments,.site-footer{max-width:1200px;}
|
|
|
|
.comments{display: none}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<?php while(have_posts()) : the_post(); ?>
|
|
|
|
<?php if(akina_option('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
|
|
|
|
<span class="linkss-title"><?php the_title();?></span>
|
|
|
|
<?php } ?>
|
|
|
|
<article <?php post_class("post-item"); ?>>
|
|
|
|
<?php the_content(); ?>
|
|
|
|
<section class="bangumi">
|
|
|
|
<?php if (akina_option('bilibili_id') ):?>
|
|
|
|
<div class="row">
|
2020-04-06 15:35:23 +00:00
|
|
|
<?php
|
|
|
|
$bgm = new \Sakura\API\Bilibili();
|
|
|
|
echo $bgm->get_bgm_items();
|
|
|
|
?>
|
2020-04-05 04:01:11 +00:00
|
|
|
<?php else: ?>
|
|
|
|
<div class="row">
|
|
|
|
<p> <?php _e("Please fill in the Bilibili UID in Sakura Options.","sakura"); ?></p>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
get_footer();
|