improved the message to people who access to the serach tool without an account

cf link from daily materiO'
This commit is contained in:
Bachir Soussi Chiadmi
2014-07-15 19:45:08 +02:00
parent 488d4c19aa
commit 2e1e0cc05b
3 changed files with 144 additions and 124 deletions

View File

@@ -37,7 +37,7 @@
<?php //if (!empty($result_count)) : ?>
<div class="materiobase-results <?php print ' view-mode-' . $variables['view_mode'];?>">
<?php if ($result_count) : ?>
<?php //if ($result_count) : ?>
<?php if(!$perfascard): ?>
<p class="search-performance"><?php print render($search_performance); ?></P>
<?php endif; ?>
@@ -55,11 +55,13 @@
<?php
// TODO: use cache system to gain in speed, view http://drupal.org/node/930760
?>
<?php print render(entity_view($index->item_type, $items, $variables['view_mode'])); ?>
<?php if ($result_count) : ?>
<?php print render(entity_view($index->item_type, $items, $variables['view_mode'])); ?>
<?php endif; ?>
</div>
<?php print $pager; ?>
<?php else : ?>
<p class="search-noresults"><?php print t('Your search yielded no results.');?></p>
<?php endif; ?>
<?php //else : ?>
<!-- <p class="search-noresults"><?php print t('Your search yielded no results.');?></p> -->
<?php //endif; ?>
</div>
<?php //endif; ?>