From: Steve Sutton Date: Mon, 23 Mar 2015 16:25:21 +0000 (-0400) Subject: Update GLMSearch code X-Git-Tag: v1.3.0^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=64f1db3a03745b6ffb6da776c7a48ba2bc07c719;p=web%2FGaylordGolfMecca.git Update GLMSearch code --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index bac772a..93f34c9 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -605,17 +605,20 @@ class Toolkit_Page $this->_video(); } + // check if define for GLM_SEARCH is set // check if define for GLM_SEARCH is set if (defined("GLM_SEARCH") && GLM_SEARCH ) { $this->glmSearch = GLM_SEARCH; + $this->glmSearchIndex = GLM_SEARCH_INDEX; $this->glmSearchSite = GLM_SEARCH_SITE; $this->glmSearchLogin = GLM_SEARCH_LOGIN; $this->glmSearchKey = GLM_SEARCH_KEY; $this->glmSearchFilterType = GLM_SEARCH_FILTER_TYPE; $this->glmSearchFilterValue = GLM_SEARCH_FILTER_VALUE; + $this->searchFormActive = true; // Check if GLMSearch page called if ($_REQUEST['GLMSearch'] == 'true') { $this->isHomePage = false; diff --git a/config/application.ini b/config/application.ini index a6f1c4e..06dd760 100644 --- a/config/application.ini +++ b/config/application.ini @@ -70,6 +70,8 @@ glmsearch.index = "Index_1" glmsearch.site = "www.gaylordgolfmecca.com" glmsearch.login = "WebsiteServices" glmsearch.key = "829800701e8440b67a78e3afbefa1049" +glmsearch.filterType = Off +glmsearch.filterValue = Off ; Turn the home page headlines module On or Off for the toolbox headlines.application = Off diff --git a/setup.phtml b/setup.phtml index 8928128..0896d75 100644 --- a/setup.phtml +++ b/setup.phtml @@ -391,6 +391,8 @@ define('GLM_SEARCH_INDEX', $applicationConfig->glmsearch->index); define('GLM_SEARCH_SITE', $applicationConfig->glmsearch->site); define('GLM_SEARCH_LOGIN', $applicationConfig->glmsearch->login); define('GLM_SEARCH_KEY', $applicationConfig->glmsearch->key); +define('GLM_SEARCH_FILTER_TYPE', $applicationConfig->glmsearch->filterType); +define('GLM_SEARCH_FILTER_VALUE', $applicationConfig->glmsearch->filterValue); /** * Site has home page Headlines? */ diff --git a/templates/template.html b/templates/template.html index 79cc641..31ca388 100755 --- a/templates/template.html +++ b/templates/template.html @@ -41,8 +41,8 @@
-
-
+
+