1.0
This commit is contained in:
parent
5832e05781
commit
bf23774d42
|
@ -17,6 +17,10 @@ function themeConfig($form) {
|
||||||
array('0'=> _t('否'), '1'=> _t('是')),
|
array('0'=> _t('否'), '1'=> _t('是')),
|
||||||
'0', _t('是否在侧边栏显示按日期归档'), _t('选择“是”将展示。'));
|
'0', _t('是否在侧边栏显示按日期归档'), _t('选择“是”将展示。'));
|
||||||
$form->addInput($showgd);
|
$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('会在个人信息显示'));
|
$instagramurl = new Typecho_Widget_Helper_Form_Element_Text('instagramurl', NULL, NULL, _t('Instagram'), _t('会在个人信息显示'));
|
||||||
$form->addInput($instagramurl);
|
$form->addInput($instagramurl);
|
||||||
$telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('电报'), _t('会在个人信息显示'));
|
$telegramurl = new Typecho_Widget_Helper_Form_Element_Text('telegramurl', NULL, NULL, _t('电报'), _t('会在个人信息显示'));
|
||||||
|
@ -27,8 +31,6 @@ function themeConfig($form) {
|
||||||
$form->addInput($twitterurl);
|
$form->addInput($twitterurl);
|
||||||
$mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('mastodon'), _t('会在个人信息显示'));
|
$mastodonurl = new Typecho_Widget_Helper_Form_Element_Text('mastodonurl', NULL, NULL, _t('mastodon'), _t('会在个人信息显示'));
|
||||||
$form->addInput($mastodonurl);
|
$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/,建议保持默认'));
|
$cnavatar = new Typecho_Widget_Helper_Form_Element_Text('cnavatar', NULL, 'https://cravatar.cn/avatar/', _t('Gravatar镜像'), _t('默认https://cravatar.cn/avatar/,建议保持默认'));
|
||||||
$form->addInput($cnavatar);
|
$form->addInput($cnavatar);
|
||||||
$imgurl = new Typecho_Widget_Helper_Form_Element_Text('imgurl', NULL, NULL, _t('分类图片目录'), _t('在目录下放入对应分类mid的jpg图片'));
|
$imgurl = new Typecho_Widget_Helper_Form_Element_Text('imgurl', NULL, NULL, _t('分类图片目录'), _t('在目录下放入对应分类mid的jpg图片'));
|
||||||
|
|
4
head.php
4
head.php
|
@ -13,7 +13,11 @@
|
||||||
'author' => _t('%s 发布的文章')
|
'author' => _t('%s 发布的文章')
|
||||||
], '', ' - '); ?><?php $this->options->title(); ?></title>
|
], '', ' - '); ?><?php $this->options->title(); ?></title>
|
||||||
<link rel='canonical' href='<?php $this->options->siteUrl(); ?>'>
|
<link rel='canonical' href='<?php $this->options->siteUrl(); ?>'>
|
||||||
|
<?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');?>">
|
<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:title' content="<?php $this->options->siteUrl(); ?>">
|
||||||
<meta property='og:description' content="<?php $this->options->description() ?>.">
|
<meta property='og:description' content="<?php $this->options->description() ?>.">
|
||||||
<meta property='og:url' content='<?php $this->options->siteUrl(); ?>'>
|
<meta property='og:url' content='<?php $this->options->siteUrl(); ?>'>
|
||||||
|
|
3
page.php
3
page.php
|
@ -12,7 +12,6 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="article-details">
|
<div class="article-details">
|
||||||
<header class="article-category">
|
<header class="article-category">
|
||||||
|
@ -90,6 +89,4 @@ if ($lastModifiedTime) {
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
<?php $this->need('footer.php'); ?>
|
<?php $this->need('footer.php'); ?>
|
2
post.php
2
post.php
|
@ -67,7 +67,7 @@
|
||||||
</section>
|
</section>
|
||||||
<footer class="article-footer">
|
<footer class="article-footer">
|
||||||
<section class="article-tags">
|
<section class="article-tags">
|
||||||
<?php $this->tags(' ', true, 'none'); ?>
|
<?php $this->tags(' ', true, ' '); ?>
|
||||||
</section>
|
</section>
|
||||||
<section class="article-copyright">
|
<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">
|
<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">
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
</header>
|
</header>
|
||||||
</article>
|
</article>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
||||||
<article class="">
|
<article class="">
|
||||||
<header class="article-header">
|
<header class="article-header">
|
||||||
<div class="article-details">
|
<div class="article-details">
|
||||||
|
|
Loading…
Reference in New Issue