Skip to content

Commit 620ef95

Browse files
authored
Merge pull request #19 from ggoffy/master
updates for smarty3
2 parents b48fed2 + c2c9a2e commit 620ef95

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

templates/admin/wgblocks_admin_items.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<th class="center width5"><{$smarty.const._AM_WGBLOCKS_FORM_ACTION}></th>
2020
</tr>
2121
</thead>
22-
<{if isset($items_count)}>
22+
<{if isset($items_count) && $items_count > 0}>
2323
<tbody>
2424
<{foreach item=item from=$items_list}>
2525
<tr class='<{cycle values='odd, even'}>'>
@@ -29,17 +29,17 @@
2929
<td class='center'><{$item.text_short}></td>
3030
<td class='center'>
3131
<{if isset($item.file_check) && $item.file_check != ''}>
32-
<img src="<{$wgblocks_icons_url_16}>/<{$item.file_check}>">
32+
<img src="<{$wgblocks_icons_url_16}>/<{$item.file_check}>" alt="filecheck">
3333
<{/if}>
3434
<{$item.file|default:''}>
3535
</td>
3636
<td class='center'>
37-
<{if isset($item.func_check) && $item.func_check != ''}><img src="<{$wgblocks_icons_url_16}>/<{$item.func_check}>"><{/if}>
37+
<{if isset($item.func_check) && $item.func_check != ''}><img src="<{$wgblocks_icons_url_16}>/<{$item.func_check}>" alt="functioncheck"><{/if}>
3838
<{$item.func|default:''}>
3939
</td>
4040
<td class='center'><{$item.weight}></td>
4141
<td class='center'>
42-
<img src="<{$wgblocks_icons_url_16}>/status<{$item.status}>.png">
42+
<img src="<{$wgblocks_icons_url_16}>/status<{$item.status}>.png" alt="status">
4343
</td>
4444
<td class='center'><{$item.datecreated}></td>
4545
<td class='center'><{$item.submitter}></td>
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<ul class="nav nav-pills nav-stacked">
2-
<{foreach item=item from=$block|default:''}>
3-
<li class="li-wgblocks <{if isset($item.highlight) && $item.highlight}>active<{/if}>">
4-
<{$item.content}>
5-
</li>
6-
<{/foreach}>
2+
<{if isset($block)}>
3+
<{foreach item=item from=$block}>
4+
<li class="li-wgblocks <{if isset($item.highlight) && $item.highlight}>active<{/if}>">
5+
<{$item.content}>
6+
</li>
7+
<{/foreach}>
8+
<{/if}>
79
</ul>
10+

0 commit comments

Comments
 (0)