khanat-opennel-code/code/web/public_php/webtt/app/views/elements/neighbours.ctp
Laszlo Kis-Adam 0876456a22 Merged in dfighter1985/ryzomcore/dfighter-tools (pull request #93)
Further GUI Editor improvements
2014-10-13 20:17:57 +02:00

19 lines
842 B
PHP

<?php if (isset($identifierNeighbours)): ?>
<?php //var_dump($identifierNeighbours); ?>
<div class="box menubox">
<h2>
<a href="#" id="toggle-neighbour-actions"><?php echo sprintf(__('Neighbour %s', true), __('Identifiers', true)); ?></a>
</h2>
<div class="inbox">
<div class="block" id="neighbour-actions">
<?php foreach (array('prev', 'current', 'next') as $pos): ?>
<?php foreach ($identifierNeighbours[$pos] as $neighbourIdentifier): ?>
<ul class="list menu">
<li<?php if ($pos == 'current') { echo " class=\"current\""; } ?>><?php echo $this->Html->link($neighbourIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $neighbourIdentifier['Identifier']['id'])); ?> </li>
</ul>
<?php endforeach; ?>
<?php endforeach; ?>
</div>
</div>
</div>
<?php endif; ?>