Skip to content

Commit

Permalink
❤新增后台弹窗设置
Browse files Browse the repository at this point in the history
  • Loading branch information
yqchilde committed Apr 7, 2020
1 parent 4d8e3fc commit e9b2d13
Show file tree
Hide file tree
Showing 3 changed files with 7,984 additions and 13 deletions.
7,962 changes: 7,961 additions & 1 deletion inc/js/rebirth.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion inc/trick.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ function trick_js_control() { ?>
rebirth_option.valine_appid = "<?php echo rebirth_option('valine_appid') ?>";
rebirth_option.valine_appkey = "<?php echo rebirth_option('valine_appkey') ?>";
rebirth_option.valine_serverurls = "<?php echo rebirth_option('valine_serverurls') ?>";

rebirth_option.toast_title = "<?php echo rebirth_option('site_name') ?>";
rebirth_option.toast_content = "<?php echo rebirth_option('toast_content') ?>";
rebirth_option.toast_time = "<?php echo rebirth_option('toast_time') ?>";
</script>
<?php }

Expand Down
31 changes: 20 additions & 11 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,26 +97,17 @@ function optionsframework_options() {
'type' => 'text'
);

// 是否开启自定义关键词和描述
$options[] = array(
'name' => '开启自定义关键词和描述',
'desc' => '是否开启自定义关键词和描述',
'id' => 'site_meta',
'std' => '0',
'type' => 'checkbox'
);

// 网站关键词
$options[] = array(
'name' => '网站关键词',
'name' => '网站首页关键词',
'desc' => '各关键字间用半角逗号","分割,数量在5个以内最佳。',
'id' => 'site_meta_keywords',
'type' => 'text'
);

// 网站描述
$options[] = array(
'name' => '网站描述',
'name' => '网站首页描述',
'desc' => '用简洁的文字描述本站点,字数建议在120个字以内。',
'id' => 'site_meta_description',
'std' => '',
Expand Down Expand Up @@ -267,6 +258,24 @@ function optionsframework_options() {
'type' => 'text'
);

// 博客弹窗时间
$options[] = array(
'name' => '弹窗时间',
'desc' => '弹窗时间,例如2020-04-07T08:00:00
注意有个日期和时间中间有个「T」',
'id' => 'toast_time',
'type' => 'text'
);

// 博客弹窗内容
$options[] = array(
'name' => '弹窗内容',
'desc' => '要弹窗的内容',
'id' => 'toast_content',
'std' => '欢迎访问个人博客!如果觉得这个弹窗频繁,可以手动叉掉后暂时不会再出现哦!',
'type' => 'text'
);

// 支付宝捐赠二维码
$options[] = array(
'name' => '支付宝捐赠二维码',
Expand Down

0 comments on commit e9b2d13

Please sign in to comment.