fixed a message again
This commit is contained in:
parent
e82e3250b3
commit
8f32d4e98b
@ -774,24 +774,27 @@ function template_preprocess_materio_search_api_results(array &$vars) {
|
|||||||
if(isset($results['breves count'])){
|
if(isset($results['breves count'])){
|
||||||
// for free users
|
// for free users
|
||||||
$vars['perfascard'] = true;
|
$vars['perfascard'] = true;
|
||||||
$vars['search_performance'] = format_plural(
|
$perfoutput = format_plural(
|
||||||
$results['breves count'],
|
$results['breves count'],
|
||||||
'The search found 1 news ',
|
'The search found 1 news ',
|
||||||
'The search found @count news '
|
'The search found @count news '
|
||||||
);
|
);
|
||||||
$vars['search_performance'] .= format_plural(
|
$perfoutput .= format_plural(
|
||||||
$vars['result_count'] - $results['breves count'],
|
$vars['result_count'] - $results['breves count'],
|
||||||
'with 1 associated matter.',
|
'with 1 associated matter.',
|
||||||
'with @count associated matters.'
|
'with @count associated matters.'
|
||||||
);
|
);
|
||||||
$vars['search_performance'] .= format_plural(
|
$perfoutput .= '<br />';
|
||||||
|
$perfoutput .= format_plural(
|
||||||
$results['could results']['result count'],
|
$results['could results']['result count'],
|
||||||
' You could have found 1 result with a ',
|
' You could have found 1 result with a ',
|
||||||
' You could have found <strong>@count results</strong> with a '
|
' You could have found <strong>@count results</strong> with a '
|
||||||
);
|
);
|
||||||
$vars['search_performance'] .= l(t('full access to materiO\'.'), 'node/11187');
|
$perfoutput .= l(t('full access to materiO\'.'), 'node/11187');
|
||||||
|
|
||||||
$vars['search_performance'] .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button'))));
|
$perfoutput .= l(t('Pricing'), 'node/11187', array("attributes"=>array("class"=>array('button'))));
|
||||||
|
|
||||||
|
$vars['search_performance'] = $perfoutput;
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
// for members
|
// for members
|
||||||
|
Loading…
x
Reference in New Issue
Block a user