mirror of
				https://github.com/mashirozx/sakura.git
				synced 2025-05-29 01:49:21 +08:00 
			
		
		
		
	add some music platforms, add netease-cloud-music cookies option. Integrate Meting API into theme, now you can use aplayer play other platform's music, refactor theme built-in api interface. BREAKING CHANGE: refactor api.php, close #211
		
			
				
	
	
		
			38 lines
		
	
	
		
			1003 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1003 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
 | |
|                 $bgm = new \Sakura\API\Bilibili();
 | |
|                 echo $bgm->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();
 |