Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 23, 2024
2 parents 56fed3a + ac8dd37 commit 7d13037
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
</a>
<br>
<a target="_blank" href="https://licoy.cn/go/puock-update.php?r=qq_qun">
<img src="https://img.shields.io/badge/WeChat-交流群-07c160.svg?logo=WeChat" alt="Wechat Group">
</a>
<a target="_blank" href="https://t.me/puocktheme">
<img src="https://img.shields.io/badge/[email protected]?logo=Telegram" alt="Telegram Group">
<img src="https://img.shields.io/badge/QQ/微信-交流群-07c160.svg?logo=WeChat" alt="Wechat Group">
</a>
<br><br>
<img src='https://repobeats.axiom.co/api/embed/5f966833712409c00d4269bf2800b2d4762e09ea.svg'></img>
Expand Down
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
include_once('inc/fun/core.php');
include_once('gutenberg/index.php');




//去除感谢使用wordpress创作
if (pk_is_checked('hide_footer_wp_t')) {
function my_admin_footer_text()
Expand Down
2 changes: 1 addition & 1 deletion inc/fun/opt.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function pk_post_menu_id($content)
$start = stripos($content, $ms[0][$i]);
$end = strlen($ms[0][$i]);
$level = substr($ms[0][$i], 1, 2);
$content = substr_replace($content, "<$level id='pk-menu-${i}'>{$title}</{$level}>", $start, $end);
$content = substr_replace($content, "<$level id='pk-menu-{$i}'>{$title}</{$level}>", $start, $end);
}
}
return $content;
Expand Down
6 changes: 6 additions & 0 deletions inc/fun/short-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ function pk_shortcode_register()
}
return $list;
}
// 解析pre标签 感谢阿云。小恐龙太好拉注。
function pk_pre($atts, $content = null) {
$content = '<pre>' . htmlspecialchars($content) . '</pre>';
return $content;
}
add_shortcode('pre', 'pk_pre');

//提示框部分
function sc_tips($attr, $content, $tag)
Expand Down
2 changes: 2 additions & 0 deletions inc/setting/options/BaseOptionItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected static function get_link_category()
{
if(!self::$_link_category){
self::$_link_category = get_all_category_id_row('link_category');
array_unshift(self::$_link_category, ['label' => '', 'value' => '']);
}
return self::$_link_category;
}
Expand All @@ -36,6 +37,7 @@ protected static function get_pages()
{
if(!self::$_pages){
$pages = array();
$pages[] = ['label' => '', 'value' => ''];
$pageObjects = get_pages('sort_column=post_parent,menu_order');
foreach ($pageObjects as $page) {
$pages[] = ['label' => $page->post_title, 'value' => $page->ID];
Expand Down

0 comments on commit 7d13037

Please sign in to comment.