summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/Contents.php4
-rwxr-xr-xlibs/Options.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/libs/Contents.php b/libs/Contents.php
index 31f740f..8149f55 100644
--- a/libs/Contents.php
+++ b/libs/Contents.php
@@ -78,7 +78,7 @@ class Contents
$rp = '<div class="col-lg-2 col-6 col-md-3 links-container">
<a href="${2}" title="${4}" target="_blank" class="links-link">
<div class="links-item">
- <div class="links-img" style="background:url(\'${3}\');width: 100%;padding-top: 100%;background-repeat: no-repeat;background-size: cover;"></div>
+ <div class="links-img"><img src=\'${3}\'></div>
<div class="links-title">
<h4>${1}</h4>
</div>
@@ -119,7 +119,7 @@ class Contents
$linksList .= '<div class="col-lg-2 col-6 col-md-3 links-container">
<a href="' . $link . '" title="' . $des . '" target="_blank" class="links-link">
<div class="links-item">
- <div class="links-img" style="background:url(\'' . $avatar . '\');width: 100%;padding-top: 100%;background-repeat: no-repeat;background-size: cover;"></div>
+ <div class="links-img"><img src=\''.$avatar.'\'></div>
<div class="links-title">
<h4>' . $name . '</h4>
</div>
diff --git a/libs/Options.php b/libs/Options.php
index 226e0fc..c3d84d0 100755
--- a/libs/Options.php
+++ b/libs/Options.php
@@ -138,8 +138,10 @@ function themeConfig($form) {
$form->addInput($CDN);
$customCDN = new Typecho_Widget_Helper_Form_Element_Text('customCDN', NULL, '', _t('自定义 CDN'), _t('输入 CDN 的链接,要保证写入的路径下,目录结构和主题的 assets 目录下一致'));
$form->addInput($customCDN);
- $ifShowRTA = new Typecho_Widget_Helper_Form_Element_Select('ifShowRTA',array('0'=>'不显示','1'=>'显示'),'0','阅读时长提示 RTA','在文章前加入阅读时长提示,增进用户体验<hr>');
+ $ifShowRTA = new Typecho_Widget_Helper_Form_Element_Select('ifShowRTA',array('0'=>'不显示','1'=>'显示'),'0','阅读时长提示 RTA','在文章前加入阅读时长提示,增进用户体验');
$form->addInput($ifShowRTA);
+ $pangu = new Typecho_Widget_Helper_Form_Element_Select('pangu',array('0'=>'启用','1'=>'关闭'),'0','自动分割中英文(pangu.js)','自动分割网页中的中英文,在全角字符和半角字符之间加上空格,也会修复一些标点符号的错误(.=>。),可能会有误判或是有人不喜欢,所以在这里加个按钮<hr>');
+ $form->addInput($pangu);
//custom style
$grayTheme = new Typecho_Widget_Helper_Form_Element_Select('grayTheme',array('0'=>'关闭','1'=>'开启'),'0','<h2>个性化</h2>哀悼模式','打开后网站变为黑白');