';
foreach ($entity_infos['node']['view modes'] as $viewmode => $value) {
if(in_array($viewmode, $availableviewmodes)){
@@ -502,14 +500,6 @@ function template_preprocess_materio_search_api_results(array &$variables) {
array('@sec' => $variables['sec'])
);
- // $variables['search_results'] = array(
- // '#theme' => 'search_results_list',
- // 'results' => $variables['results']['results'],
- // 'items' => $variables['items'],
- // 'index' => $variables['index'],
- // 'type' => 'ul',
- // );
-
//dsm($variables, 'variables');
}
@@ -517,11 +507,6 @@ function template_preprocess_materio_search_api_results(array &$variables) {
function template_preprocess_materio_search_api_actuality(&$vars){
// dsm($vars, 'template_preprocess_materio_search_api_actuality | vars');
- // $items = array();
- // foreach ($vars['items'] as $nid => $item) {
- // $items[] = node_load($nid);
- // }
- // $vars['items'] = $items;
$vars['actualities_infos'] = t('Actualities by materiO\'');
}
diff --git a/materio_search_api_ajax.pages.inc b/materio_search_api_ajax.pages.inc
index f8b6a370..550de636 100644
--- a/materio_search_api_ajax.pages.inc
+++ b/materio_search_api_ajax.pages.inc
@@ -64,17 +64,22 @@ function materio_search_api_ajax_search($keys, $page = 0){
} elseif (isset($return)) {
if (is_array($return)) {
+ $count = $return['results']['#results']['result count'];
$return = drupal_render($return);
+ // $return = theme($return['#theme'], $return);
}
$rep = array(
- // 'id'=>$id,
+ 'path'=>$path,
'keys'=>$keys,
'search_path'=>$search_path,
'return'=>$return,
'active_types'=>$active_types,
'title' => drupal_get_title(),
);
+
+ if(isset($count))
+ $rep['count'] = $count;
if ($debug) {
dsm($rep, 'rep');
@@ -146,6 +151,7 @@ function materio_search_api_ajax_actuality($page = 0){
}
$rep = array(
+ 'path' => $path,
'return'=>$return,
'title' => drupal_get_title(),
);
diff --git a/templates/materio-flag-mylists-block.tpl.php b/templates/materio-flag-mylists-block.tpl.php
index d4f2db82..d0d59611 100644
--- a/templates/materio-flag-mylists-block.tpl.php
+++ b/templates/materio-flag-mylists-block.tpl.php
@@ -1,10 +1,17 @@
-
+
$list): ?>
-
-
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/templates/materio-flag-mylists-nav-block.tpl.php b/templates/materio-flag-mylists-nav-block.tpl.php
index e3b4bf25..7dcce143 100644
--- a/templates/materio-flag-mylists-nav-block.tpl.php
+++ b/templates/materio-flag-mylists-nav-block.tpl.php
@@ -1,7 +1,10 @@
$flag): ?>
- - title; ?>
+
+ -
+ title . '('.count($flag->flaged_content).')', 'lists/'.$flag->fid, array('html'=>true,'attributes'=>array('class'=>array('open-list', $flag->name)))); ?>
+
\ No newline at end of file
diff --git a/templates/materio-search-api-results.tpl.php b/templates/materio-search-api-results.tpl.php
index a699f3c8..4fc22cb9 100644
--- a/templates/materio-search-api-results.tpl.php
+++ b/templates/materio-search-api-results.tpl.php
@@ -33,18 +33,20 @@
?>
+
-
+
+
item_type, $items, $variables['view_mode'])); ?>
-
+
-
+