theme able results
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
68126583b1
commit
476ccd94fe
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
patch_commit_2030a6f810b1.patch
|
@ -40,7 +40,7 @@
|
||||
|
||||
<?php if ($variables['view_mode'] == 'search_api_page_result') : // Uses child template. ?>
|
||||
<?php print render($search_results); ?>
|
||||
<? else : // All other view modes (Teaser, Full content, RSS and so forth). ?>
|
||||
<?php else : // All other view modes (Teaser, Full content, RSS and so forth). ?>
|
||||
<div class="search-results">
|
||||
<?php print render(entity_view($index->item_type, $items, $variables['view_mode'])); ?>
|
||||
</div>
|
||||
|
@ -46,6 +46,15 @@ function search_api_page_menu() {
|
||||
}
|
||||
}
|
||||
|
||||
$ret['results']['#theme'] = 'materiobase_results';
|
||||
$ret['results']['#index'] = search_api_index_load($page->index_id);
|
||||
$ret['results']['#results'] = $results;
|
||||
$ret['results']['#view_mode'] = isset($page->options['view_mode']) ? $page->options['view_mode'] : 'search_api_page_result';
|
||||
$ret['results']['#keys'] = $keys;
|
||||
$ret['results']['#page_machine_name'] = $page->machine_name;
|
||||
|
||||
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user