2024-05-17 15:47:27 +08:00
|
|
|
<?php
|
|
|
|
/**
|
2024-05-17 18:42:35 +08:00
|
|
|
* 豆瓣页面
|
2024-05-17 15:47:27 +08:00
|
|
|
*
|
|
|
|
* @package custom
|
|
|
|
*/
|
|
|
|
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
|
|
|
<?php $this->need('header.php'); ?>
|
2024-06-12 16:34:51 +08:00
|
|
|
<script src="<?php $this->options->themeUrl('/dist/js/db.js'); ?>"></script>
|
2024-05-17 15:47:27 +08:00
|
|
|
<section class="site--main">
|
|
|
|
<header class="archive--header">
|
|
|
|
<h1 class="post--single__title"><?php $this->title() ?></h1>
|
2024-06-04 16:52:59 +08:00
|
|
|
<h2 class="post--single__subtitle">数据来源于豆瓣</h2>
|
2024-05-17 15:47:27 +08:00
|
|
|
</header>
|
2024-06-04 16:21:16 +08:00
|
|
|
<div class="site--main">
|
2024-06-12 16:34:51 +08:00
|
|
|
<div class="db--container"></div>
|
|
|
|
<script>
|
|
|
|
new Douban({
|
|
|
|
baseAPI: '<?php $this->options->doubanID() ?>', // api
|
|
|
|
container: ".db--container", // 容器名
|
2024-06-04 16:21:16 +08:00
|
|
|
});
|
2024-06-12 16:34:51 +08:00
|
|
|
</script>
|
|
|
|
</div>
|
2024-05-17 15:47:27 +08:00
|
|
|
</section>
|
|
|
|
<?php $this->need('footer.php'); ?>
|