Fix HTML catalog when more than 2 prefered format are available
Esse commit está contido em:
pai
7b382b2420
commit
f5b8918ee0
1 arquivos alterados com 3 adições e 0 exclusões
|
|
@ -159,9 +159,12 @@
|
|||
</div>
|
||||
<div class="download">
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($config['cops_prefered_format'] as $format)
|
||||
{
|
||||
if ($i == 2) { break; }
|
||||
if ($data = $entry->book->getDataFormat ($format)) {
|
||||
$i++;
|
||||
?>
|
||||
<div class="button buttonEffect"><a href="<?php echo $data->getHtmlLink () ?>"><?php echo $format ?></a></div>
|
||||
<?php
|
||||
|
|
|
|||
Carregando…
Adicionar tabela
Adicionar um link
Referência em uma nova issue