增加点设置

This commit is contained in:
浪子 2024-07-01 19:17:06 +08:00
parent 1525097b87
commit c6aa7f6268
3 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,12 @@
<?php <?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit; if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form) { 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 地址')); $icoUrl = new Typecho_Widget_Helper_Form_Element_Text('icoUrl', NULL, NULL, _t('站点 Favicon 地址'));
$form->addInput($icoUrl); $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('会在个人信息显示')); $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('会在个人信息显示'));

View File

@ -30,7 +30,6 @@ while($this->next()):
<span class="archive-item-date"><?php $this->date('Y-m-d'); ?></span> <span class="archive-item-date"><?php $this->date('Y-m-d'); ?></span>
</article> </article>
<?php endwhile; ?> <?php endwhile; ?>
<?php if ($previousYear !== null): ?> <?php if ($previousYear !== null): ?>
</div> <!-- 关闭最后一年的 div --> </div> <!-- 关闭最后一年的 div -->
<?php endif; ?> <?php endif; ?>

View File

@ -10,7 +10,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="main"> <div class="main">
<div class="container profile-container"> <div class="container profile-container">
<div class="intro"> <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="nickname"> <?php $this->author(); ?></div>
<div class="description"><p><?php $this->options->description() ?></p></div> <div class="description"><p><?php $this->options->description() ?></p></div>
<div class="links"> <div class="links">