From 75ef95d88c921ec16f29ea7bee337afd5c83502e Mon Sep 17 00:00:00 2001 From: mieszkou Date: Sat, 21 May 2022 01:34:51 +0200 Subject: [PATCH 1/4] modified: system/includes/functions.php - add search in post content --- system/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 806273b5..69223f80 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -200,7 +200,7 @@ function rebuilt_cache($type) if (is_array($tmp)) { foreach ($tmp as $file) { if(strpos($file, '/draft/') === false) { - $posts_cache_sorted[] = pathinfo($file); + $posts_cache_sorted[] = array_merge(pathinfo($file), ['content' => preg_replace('/\s+/', '', (file_get_contents($file)))]) } } } @@ -967,7 +967,7 @@ function get_keyword($keyword, $page, $perpage) foreach ($posts as $index => $v) { $arr = explode('_', $v['basename']); - $filter = $arr[1] . ' ' . $arr[2]; + $filter = $arr[1] . ' ' . $arr[2] . ' ' . $v['content']; foreach ($words as $word) { if (stripos($filter, $word) !== false) { if (!in_array($v, $tmp)) { From eefb60612afa872b343195d7d13532901286c921 Mon Sep 17 00:00:00 2001 From: mieszkou Date: Sat, 21 May 2022 01:53:59 +0200 Subject: [PATCH 2/4] modified: system/includes/functions.php - missing ; --- system/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 69223f80..fe1ff2da 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -200,7 +200,7 @@ function rebuilt_cache($type) if (is_array($tmp)) { foreach ($tmp as $file) { if(strpos($file, '/draft/') === false) { - $posts_cache_sorted[] = array_merge(pathinfo($file), ['content' => preg_replace('/\s+/', '', (file_get_contents($file)))]) + $posts_cache_sorted[] = array_merge(pathinfo($file), ['content' => preg_replace('/\s+/', '', (file_get_contents($file)))]); } } } From eca16ce0a47df2eaff6010f441dcdf67e346a2fe Mon Sep 17 00:00:00 2001 From: mieszkou Date: Sun, 22 May 2022 16:36:46 +0200 Subject: [PATCH 3/4] fix: system/includes/functions.php function: keyword_count() --- system/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index fe1ff2da..bd435603 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -1158,7 +1158,7 @@ function keyword_count($keyword) foreach ($posts as $index => $v) { $arr = explode('_', $v['basename']); - $filter = $arr[1] . ' ' . $arr[2]; + $filter = $arr[1] . ' ' . $arr[2] . ' ' . $v['content']; foreach ($words as $word) { if (stripos($filter, $word) !== false) { $tmp[] = $v; From a977d2268f6d7c9b3f3cfa1a8d7dc4ac08dea03d Mon Sep 17 00:00:00 2001 From: mieszkou Date: Wed, 1 Jun 2022 16:53:40 +0200 Subject: [PATCH 4/4] fix: Markdown.Editor.js - removed innactive shortcuts from help msg --- system/admin/editor/js/Markdown.Editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/admin/editor/js/Markdown.Editor.js b/system/admin/editor/js/Markdown.Editor.js index 57fdd556..a362c28d 100644 --- a/system/admin/editor/js/Markdown.Editor.js +++ b/system/admin/editor/js/Markdown.Editor.js @@ -24,7 +24,7 @@ italic: "Emphasis Ctrl+I", italicexample: "emphasized text", - strikethrough: "Strikethrough Ctrl+X", + strikethrough: "Strikethrough ", strikethroughexample: "strikethrough text", link: "Hyperlink Ctrl+L", @@ -54,8 +54,8 @@ table: "Table - Ctrl+J", - undo: "Undo - Ctrl+Z", - redo: "Redo - Ctrl+Y", + undo: "Undo", + redo: "Redo", redomac: "Redo - Ctrl+Shift+Z", help: "Markdown Editing Help"