\r
$hits = $index->find($query);\r
$res = array();\r
+ $terms = array();\r
foreach ($query->getQueryTerms() as $t) {\r
+ $terms[] = $t->text;\r
foreach ($index->termFreqs($t) as $doc_id => $f) {\r
$page = trim($index->getDocument($doc_id)->getField('url')->getUtf8Value(), "#");\r
if (!isset($res[$page])) {\r
}\r
}\r
$this->xml->addChild('results', json_encode($res));\r
+ $this->xml->addChild('terms', implode(',', $terms));\r
}\r
\r
protected function getTerms($term) {\r
$arrowsColor = '#' . $this->theme->parametres->arrowsColor;\r
// Set the icon list with the color\r
$icons = array('nav-bookmark' => $couleurI, 'nav-friend' => $couleurI, 'nav-help' => $couleurI, 'nav-index' => $couleurI, 'nav-sommaire' => $couleurI,\r
- 'next' => $arrowsColor, 'previous' => $arrowsColor, 'search' => $couleurI,'nav-facebook'=>$couleurI,'nav-twitter'=>$couleurI);\r
+ 'next' => $arrowsColor, 'previous' => $arrowsColor, 'search' => $couleurI, 'nav-facebook' => $couleurI, 'nav-twitter' => $couleurI);\r
\r
foreach ($icons as $icon => $color) {\r
wsTools::colorizeAndRasterizeIcon($this->theme->parametres->iconSet, $icon, $color, $this->vdir . '/data/images/', 4, $w, $h);\r
$thumbh = round(100 / $ratio);\r
$res[] = '#index .thumb img{width:100px;height:' . $thumbh . 'px;}';\r
$res[] = '#index .doubleThumb{height:' . $thumbh . 'px;' . $this->writeCSSUA('box-shadow', '0 0 3px ' . $shadowColor) . '}';\r
+ $res[] = '#index .doubleThumb .overlay{height:' . $thumbh . 'px;}';\r
+ $res[] = '#index .doubleThumb .hits.yes{background-color:' . self::colorToCSS($this->theme->parametres->subSelectColor) . ';color:' . self::colorToCSS($this->theme->parametres->subTextSelectColor) . '}';\r
\r
// Pages styles\r
foreach ($this->cssColor as $color => $index) {\r