mambax7/publisher

View on GitHub
templates_bootstrap/bootstrap4/publisher/blocks/publisher_items_recent.tpl

Summary

Maintainability
Test Coverage
<table class="table table-striped table-sm">
    <thead>
    <tr>
        <th class="head"><{$block.lang_title}></th>
<{if $block.show_category|default:'' == '1'}> <td class="head" align="left"><{$block.lang_category}></td><{/if}>
<{if $block.show_date|default:'' == '1'}> <td class="head" align="right" width="120"><{$block.lang_date}></td><{/if}>
<{if $block.show_poster|default:'' == '1'}> <td class="head" align="center" width="100"><{$block.lang_poster}></td><{/if}>
    </tr>
    </thead>
    <tbody>
    <{foreach item=item from=$block.items|default:false}>
        <tr>
            <td>
             <{if $block.show_image|default:'' == '1'}>
                  <a href="<{$newitems.itemurl}>"><img src="<{$item.item_image}>" alt="<{$item.alt}>" title="<{$item.alt}>" align="left" style="padding:5px;"></a><br>
             <{/if}>
            <{$item.itemlink}>
            </td>
            <{if $block.show_category|default:'' == '1'}><td align="left"><{$item.categorylink}></td><{/if}>
           <{if $block.show_date|default:'' == '1'}><td align="right"><{$item.date}></td><{/if}>
           <{if $block.show_poster|default:'' == '1'}><td align="center"><{$item.poster}></td><{/if}>
        </tr>
    <{/foreach}>
    </tbody>

</table>

<{if $block.show_morelink|default:'' == '1'}>
<div style="text-align:right; padding: 5px;">
    <a class="btn btn-primary btn-xs" href="<{$publisher_url}>"><{$block.lang_visitItem}></a>
</div>
<{/if}>