From 2ebb8851f684be467ae768fdac0eead1a636805c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 1 Sep 2016 12:42:47 -0700 Subject: theme preview - that was easy; plus a bit more tweaking of the saved search widget to try and get the sucker to auto submit --- Zotlabs/Module/Search_ac.php | 2 +- Zotlabs/Render/Theme.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Search_ac.php b/Zotlabs/Module/Search_ac.php index 4e936d97b..a3bc18054 100644 --- a/Zotlabs/Module/Search_ac.php +++ b/Zotlabs/Module/Search_ac.php @@ -72,7 +72,7 @@ class Search_ac extends \Zotlabs\Web\Controller { ); echo json_encode($o); - logger('search_ac: ' . print_r($x,true)); + logger('search_ac: ' . print_r($x,true),LOGGER_ALL,LOG_INFO); killme(); } diff --git a/Zotlabs/Render/Theme.php b/Zotlabs/Render/Theme.php index 62068bc82..9f9009d72 100644 --- a/Zotlabs/Render/Theme.php +++ b/Zotlabs/Render/Theme.php @@ -66,6 +66,8 @@ class Theme { $chosen_theme = $page_theme; } } + if(array_key_exists('theme_preview',$_GET)) + $chosen_theme = $_GET['theme_preview']; // Allow theme selection of the form 'theme_name:schema_name' -- cgit v1.2.3