Procházet zdrojové kódy

theme able results

Signed-off-by: bachy <git@g-u-i.net>
bachy před 11 roky
rodič
revize
476ccd94fe
3 změnil soubory, kde provedl 11 přidání a 1 odebrání
  1. 1 0
      .gitignore
  2. 1 1
      search-api-page-results.tpl.php
  3. 9 0
      search_api_page.module

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+patch_commit_2030a6f810b1.patch

+ 1 - 1
search-api-page-results.tpl.php

@@ -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>

+ 9 - 0
search_api_page.module

@@ -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;
 }