Skip to content

Commit

Permalink
feat: changed function name to reference the Single Script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmolinacano committed Oct 14, 2024
1 parent 4424a51 commit 3c19468
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,7 @@ public function hookHeader($params)

$this->configureHookCommon($params);

return $this->displayScriptLiveLayer();
}

/**
* Render the script for the Livelayer search layer
*
* @return string
*/
public function displayScriptLiveLayer()
{
$this->context->controller->addJS(DoofinderScript::getScriptLiveLayerPath($this->_path));

return $this->display(__FILE__, 'views/templates/front/scriptV9.tpl');
return $this->displaySingleScript();
}

/**
Expand Down Expand Up @@ -881,4 +869,16 @@ private function getBooleanFormValue()

return $option;
}

/**
* Render the Doofinder single script, which can be used, for example, to show the Livelayer search layer.
*
* @return string
*/
private function displaySingleScript()
{
$this->context->controller->addJS(DoofinderScript::getScriptLiveLayerPath($this->_path));

return $this->display(__FILE__, 'views/templates/front/scriptV9.tpl');
}
}

0 comments on commit 3c19468

Please sign in to comment.