Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加萌国 ICP 备案号 #53

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions component/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ class=" dark:text-gray-400 text-sm rounded-full px-3 py-1 jasmine-primary-bg-hov
<span class="text-sm "><a href="https://beian.miit.gov.cn/" target="_blank"><?php $this->options->icpCode(); ?></a></span>
</li>
<?php endif; ?>
<?php if ($this->options->moeIcpCode): ?>
<li class="flex flex-row items-center gap-x-2">
<span class="icon-MOE text-gray-800 dark:text-gray-300"></span>
<span class="text-sm "><a href="https://icp.gov.moe/?keyword=<?php $this->options->moeIcpCode(); ?>" target="_blank">萌ICP备<?php $this->options->moeIcpCode(); ?>号</a></span>
</li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
Expand Down
3 changes: 3 additions & 0 deletions core/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ function themeConfig($form)
$icpCode = new Text("icpCode", null, null, "ICP 备案号", "网站备案号");
$form->addInput($icpCode);

$moeIcpCode = new Text("moeIcpCode", null, null, "萌国 ICP 备案号", "萌号");
$form->addInput($moeIcpCode);

$customStyle = new Textarea("customStyle", null, null, "自定义样式", "不需要添加 &lt;style&gt; 标签");
$form->addInput($customStyle);

Expand Down
Binary file added public/font/icomoon.eot
Binary file not shown.
Binary file added public/font/icomoon.ttf
Binary file not shown.
Binary file added public/font/icomoon.woff
Binary file not shown.
29 changes: 29 additions & 0 deletions src/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2126,3 +2126,32 @@ pre[class*="language-"] {
.style .token.string {
background: hsla(0, 0%, 100%, 0) !important;
}

@font-face {
font-family: 'icomoon';
src: url('./font/icomoon.eot?n169zo');
src: url('./font/icomoon.eot?n169zo#iefix') format('embedded-opentype'),
url('./font/icomoon.ttf?n169zo') format('truetype'),
url('./font/icomoon.woff?n169zo') format('woff');
font-weight: normal;
font-style: normal;
font-display: block;
}

.icon-MOE {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-MOE:before {
content: "\e900";
}