Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
🩹 恢复字段 [PostType]
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaomg committed Feb 29, 2020
1 parent 179ad63 commit f4c68c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

//判断 PHP 版本是否达到要求
if (substr(PHP_VERSION,0,3) < '7.0') {
echo 'PHP版本必须 >= 7.0';
echo '<h2>PHP版本必须 >= 7.0</h2>';
die();
}

Expand Down Expand Up @@ -104,17 +104,16 @@ function themeFields($layout) {
//对于魔改的后台模板不保证能正常判断
preg_match('/write-post.php/', $_SERVER['SCRIPT_NAME'], $post);

//咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕咕
/*if(@$post[0] == 'write-post.php') {
if(@$post[0] == 'write-post.php') {
$PostType = new Typecho_Widget_Helper_Form_Element_Select('PostType',
array(
'post'=>'文章(默认)',
'nopic'=>'无图',
'dynamic'=>'日常'
//'dynamic'=>'日常'
),
'post','文章类型','设置发表的文章的类型(仅对文章有效)。');
$layout->addItem($PostType);
}*/
}

$advancedSettings = new Typecho_Widget_Helper_Form_Element_Textarea('advancedSettings', NULL, NULL,
'高级设置', '文章/独立页高级设置,如果不懂此有何用请勿填写。');
Expand Down

0 comments on commit f4c68c3

Please sign in to comment.