35 lines
917 B
PHP
35 lines
917 B
PHP
<?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">
|
|
<?php echo get_bgm_items(); ?>
|
|
<?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();
|