This commit is contained in:
浪子 2024-07-09 15:11:25 +08:00
parent 5832e05781
commit bf23774d42
5 changed files with 12 additions and 10 deletions

View File

@ -17,6 +17,10 @@ function themeConfig($form) {
array('0'=> _t('否'), '1'=> _t('是')),
'0', _t('是否在侧边栏显示按日期归档'), _t('选择“是”将展示。'));
$form->addInput($showgd);
$showmod = new Typecho_Widget_Helper_Form_Element_Radio('showmod',
array('0'=> _t('否'), '1'=> _t('是')),
'0', _t('是否使用魔改风格'), _t('选择“是”将展示。'));
$form->addInput($showmod);
$instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('Instagram'), _t('会在个人信息显示'));
$form->addInput($instagramurl);
$telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('电报'), _t('会在个人信息显示'));
@ -27,8 +31,6 @@ function themeConfig($form) {
$form->addInput($twitterurl);
$mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('mastodon'), _t('会在个人信息显示'));
$form->addInput($mastodonurl);
$sitemapurl = new Typecho_Widget_Helper_Form_Element_Text('sitemapurl', NULL, NULL, _t('sitemap'), _t('会在页脚显示'));
$form->addInput($sitemapurl);
$cnavatar = new Typecho_Widget_Helper_Form_Element_Text('cnavatar', NULL, 'https://cravatar.cn/avatar/', _t('Gravatar镜像'), _t('默认https://cravatar.cn/avatar/,建议保持默认'));
$form->addInput($cnavatar);
$imgurl = new Typecho_Widget_Helper_Form_Element_Text('imgurl', NULL, NULL, _t('分类图片目录'), _t('在目录下放入对应分类mid的jpg图片'));

View File

@ -13,7 +13,11 @@
'author' => _t('%s 发布的文章')
], '', ' - '); ?><?php $this->options->title(); ?></title>
<link rel='canonical' href='<?php $this->options->siteUrl(); ?>'>
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/style.css'); ?>">
<?php if ($this->options->showmod):?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/mod.css');?>">
<?php else:?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/style.css');?>">
<?php endif;?>
<meta property='og:title' content="<?php $this->options->siteUrl(); ?>">
<meta property='og:description' content="<?php $this->options->description() ?>.">
<meta property='og:url' content='<?php $this->options->siteUrl(); ?>'>

View File

@ -12,7 +12,6 @@
</a>
</div>
<?php else: ?>
<?php endif; ?>
<div class="article-details">
<header class="article-category">
@ -90,6 +89,4 @@ if ($lastModifiedTime) {
</section>
</footer>
</article>
<?php $this->need('footer.php'); ?>
<?php $this->need('footer.php'); ?>

View File

@ -67,7 +67,7 @@
</section>
<footer class="article-footer">
<section class="article-tags">
<?php $this->tags(' ', true, 'none'); ?>
<?php $this->tags(' ', true, ' '); ?>
</section>
<section class="article-copyright">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copyright" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">

View File

@ -58,8 +58,7 @@
</div>
</header>
</article>
<?php else: ?>
<?php else: ?>
<article class="">
<header class="article-header">
<div class="article-details">