mambax7/publisher

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

Summary

Maintainability
Test Coverage
<table class="table table-striped table-condensed">
    <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="<{$item.itemurl}>"><img src="<{$item.item_image}>" alt="<{$item.alt}>" title="<{$item.alt}>" align="left" style="padding:5px;"></a><br>
             <{/if}>
            <{$item.itemlink}>
            <{if $block.show_summary|default:'' == '1'}><br><{$item.summary}><{/if}><br >
            <small>
              <{if $block.show_hits|default:'' == '1'}><span class="glyphicon glyphicon-ok-circle"></span>&nbsp;<{$item.hits}><{/if}> 
              <{if $block.show_comment|default:'' == '1' && $item.cancomment|default:false && $item.comment|default:0 != -1}><span class="glyphicon glyphicon-comment"></span>&nbsp;<{$item.comment}><{/if}>
            </small>
            </td>
           
           <{if $block.show_category|default:'' == '1'}><td align="left"><{$item.categorylink}></td><{/if}>
           <{if $block.show_poster|default:'' == '1'}><td align="center"><{$item.poster}></td><{/if}>
           <{if $block.show_date|default:'' == '1'}><td align="right"><{$item.date}></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}>