Converted to ding1 mkdru theme (dybamo subtheme)
[mkdruding1.git] / template.php
index aa215d8..75c6b45 100644 (file)
@@ -1,6 +1,12 @@
 <?php 
 function mkdruding2_preprocess_page(&$vars, $hook) {
   //wouold be nice to include this only during search hook
-  drupal_add_js(drupal_get_path('theme', 'mkdruding2') . '/mkdruding2.js');
+  drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js');
+  // in ding1 we draw facets to our tab, we could set up the facet container
+  // in /mkdru-results.tpl.php. However, I still do it client side in
+  // the "mkdruFacetContainer" JS theme function to get hold of facet config
+  // this signals that client side container generation should be used
+  drupal_add_js(array('mkdru' => array('facetContainerSelector' => 
+    '#mkdru-raw-facet-container')), 'setting');
 }