1
|
<?php
|
2
|
|
3
|
defined('_JEXEC') or die('Access denied');
|
4
|
|
5
|
jimport('joomla.environment.uri');
|
6
|
jimport('joomla.html.html');
|
7
|
jimport('joomla.methods');
|
8
|
|
9
|
JViewLegacy:: loadHelper('PersonHelper');
|
10
|
|
11
|
?>
|
12
|
|
13
|
<h3><?php echo(JText :: _('PEOPLE')); ?></h3>
|
14
|
<?php if ($this -> result == NULL) { ?>
|
15
|
<div class="error"><?php echo(JText :: _('ERROR_SEARCHING_PEOPLE')); ?></div>
|
16
|
<?php } else if ($this -> result -> people == NULL) { ?>
|
17
|
<div class="box-info"><?php echo(JText :: _('NO_PEOPLE_FOUND')); ?></div>
|
18
|
<?php } else { ?>
|
19
|
<div class="searchResults">
|
20
|
<?php foreach ($this -> result -> people as $person) {
|
21
|
echo(PersonHelper :: formatPerson($person, $this -> itemId));
|
22
|
} ?>
|
23
|
</div>
|
24
|
<?php if ($this -> result -> totalPeople > OpenAireViewSearchPeopleRaw :: SIZE) { ?>
|
25
|
<div class="pageController">
|
26
|
<a href="<?php echo(JRoute :: _('index.php?option=com_openaire&view=searchpeople&Itemid=' . $this -> itemId . '&keyword=' . $this -> keyword . '&noscroll=true#peopletab')); ?> "><?php JText :: printf('VIEW_ALL_N', $this -> result -> totalPeople); ?></a>
|
27
|
</div>
|
28
|
<?php }
|
29
|
} ?>
|
30
|
|