feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -47,9 +47,8 @@ class MeiliSearch {
|
||||
*/
|
||||
public function is_configured(): bool {
|
||||
if (!class_exists('\AKSRT\Settings\Settings')) return false;
|
||||
$host = \AKSRT\Settings\Settings::get_value('meilisearch_host', '');
|
||||
$key = \AKSRT\Settings\Settings::get_value('meilisearch_api_key', '');
|
||||
return !empty($host) && !empty($key);
|
||||
$config = \AKSRT\Settings\ThemeSearch::get_meilisearch_config();
|
||||
return !empty($config['enabled']) && !empty($config['api_url']) && !empty($config['api_key']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -69,10 +68,11 @@ class MeiliSearch {
|
||||
* Get MeiliSearch config
|
||||
*/
|
||||
private function get_config(): array {
|
||||
$config = \AKSRT\Settings\ThemeSearch::get_meilisearch_config();
|
||||
return [
|
||||
'host' => (string) \AKSRT\Settings\Settings::get_value('meilisearch_host', ''),
|
||||
'api_key' => (string) \AKSRT\Settings\Settings::get_value('meilisearch_api_key', ''),
|
||||
'index' => (string) \AKSRT\Settings\Settings::get_value('meilisearch_index', 'aksrt_posts'),
|
||||
'host' => (string) $config['api_url'],
|
||||
'api_key' => (string) $config['api_key'],
|
||||
'index' => (string) $config['index_name'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user