Skip to content

Commit

Permalink
增加点设置
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjoy committed Jul 1, 2024
1 parent 1525097 commit c6aa7f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form) {
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点 LOGO 地址'));
$form->addInput($logoUrl);
$icoUrl = new Typecho_Widget_Helper_Form_Element_Text('icoUrl', NULL, NULL, _t('站点 Favicon 地址'));
$form->addInput($icoUrl);
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点 LOGO 地址'));
$form->addInput($logoUrl);
$infoUrl = new Typecho_Widget_Helper_Form_Element_Text('infoUrl', NULL, NULL, _t('跳转地址'), _t('自定义点击头像跳转的地址');
$form->addInput($infoUrl);
$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('会在个人信息显示'));
Expand Down
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<span class="archive-item-date"><?php $this->date('Y-m-d'); ?></span>
</article>
<?php endwhile; ?>

<?php if ($previousYear !== null): ?>
</div> <!-- 关闭最后一年的 div -->
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion page-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="main">
<div class="container profile-container">
<div class="intro">
<div class="avatar"><a href="/"> <img src="<?php $this->options->logoUrl() ?>"></a></div>
<div class="avatar"><a href="<?php $this->options->infoUrl() ?>"> <img src="<?php $this->options->logoUrl() ?>"></a></div>
<div class="nickname"> <?php $this->author(); ?></div>
<div class="description"><p><?php $this->options->description() ?></p></div>
<div class="links">
Expand Down

0 comments on commit c6aa7f6

Please sign in to comment.