Skip to content

Commit

Permalink
✨ 优化配置选项和页面布局样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Dec 4, 2022
1 parent 98ef164 commit 76f84b8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion assets/dist/setting/index.js

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,16 +511,6 @@ function pk_update()
);
}
break;
case 'cnpmjs':
{
$pkUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'https://licoy.cn/go/puock-update.php?r=cnpmjs',
__FILE__,
'unique-plugin-or-theme-slug',
$check_period
);
}
break;
case 'fastgit':
{
$pkUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
Expand Down
8 changes: 8 additions & 0 deletions inc/setting/options/OptionExtend.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ function get_fields(): array
'label' => '扩展及兼容',
'icon' => 'dashicons-admin-plugins',
'fields' => [
[
'id' => 'office_mp_support',
'label' => 'Puock官方小程序支持',
'type' => 'switch',
'sdt' => defined('PUOCK_MP_VERSION'),
'tips' => "Puock官方小程序支持,此选项安装小程序插件后会自动开启,如需关闭请在小程序插件中关闭",
'disabled' => true,
],
[
'id' => 'strawberry_icon',
'label' => '草莓图标库',
Expand Down
6 changes: 1 addition & 5 deletions inc/setting/options/OptionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ function get_fields(): array
[
'value' => 'fastgit',
'label' => 'fastgit',
],
[
'value' => 'cnpmjs',
'label' => 'cnpmjs(已过时)',
],
]
],
],
[
Expand Down
2 changes: 1 addition & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class="fa-regular fa-pen-to-square mr-1"></i><?php _e('编辑', PUOCK) ?></div>
<span><?php _e('发表至:', PUOCK) ?></span><?php echo get_post_category_link_exec(true) ?>
</div>
<div>
<span class="c-sub"><i class="fa-solid fa-calendar-days"></i> <?php pk_get_post_date() ?></span>
<span class="c-sub"><i class="fa-regular fa-clock"></i> <?php pk_get_post_date() ?></span>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/module-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class="t-sm d-none d-sm-inline-block">个评论</span></a>
</span>
</div>
<div>
<?php echo get_post_category_link('c-sub-a t-sm ml-md-2 line-h-20 d-inline-block d-md-none', '<i class="fa fa-tags mr-1"></i>') ?>
<?php echo get_post_category_link('c-sub-a t-sm ml-md-2 line-h-20 d-inline-block d-md-none') ?>
<span class="t-sm ml-md-2 c-sub line-h-20 d-none d-md-inline-block"><i
class="fa-solid fa-calendar-days"></i> <?php pk_get_post_date() ?></span>
class="fa-regular fa-clock"></i> <?php pk_get_post_date() ?></span>
</div>
</div>
</div>
Expand Down Expand Up @@ -86,9 +86,9 @@ class="t-sm d-none d-sm-inline-block">个评论</span></a>
</span>
</div>
<div>
<?php echo get_post_category_link('c-sub-a t-sm ml-md-2 line-h-20 d-inline-block d-md-none', '<i class="fa fa-tags mr-1"></i>') ?>
<?php echo get_post_category_link('c-sub-a t-sm ml-md-2 line-h-20 d-inline-block d-md-none') ?>
<span class="t-sm ml-md-2 c-sub line-h-20 d-none d-md-inline-block"><i
class="fa-solid fa-calendar-days"></i> <?php pk_get_post_date() ?></span>
class="fa-regular fa-clock"></i> <?php pk_get_post_date() ?></span>
</div>
</div>
</div>
Expand Down

0 comments on commit 76f84b8

Please sign in to comment.