|
1 | 1 | <!-- Header --> |
2 | 2 | <{include file='db:wgblocks_admin_header.tpl' }> |
3 | 3 |
|
4 | | -<{if $items_list|default:''}> |
| 4 | +<{if isset($items_list)}> |
5 | 5 | <table class='table table-bordered'> |
6 | 6 | <thead> |
7 | 7 | <tr class='head'> |
|
19 | 19 | <th class="center width5"><{$smarty.const._AM_WGBLOCKS_FORM_ACTION}></th> |
20 | 20 | </tr> |
21 | 21 | </thead> |
22 | | - <{if $items_count|default:''}> |
| 22 | + <{if isset($items_count)}> |
23 | 23 | <tbody> |
24 | 24 | <{foreach item=item from=$items_list}> |
25 | 25 | <tr class='<{cycle values='odd, even'}>'> |
|
28 | 28 | <td class='center'><{$item.name}></td> |
29 | 29 | <td class='center'><{$item.text_short}></td> |
30 | 30 | <td class='center'> |
31 | | - <{if $item.file_check}> |
| 31 | + <{if isset($item.file_check) && $item.file_check != ''}> |
32 | 32 | <img src="<{$wgblocks_icons_url_16}>/<{$item.file_check}>"> |
33 | 33 | <{/if}> |
34 | | - <{$item.file}> |
| 34 | + <{$item.file|default:''}> |
35 | 35 | </td> |
36 | 36 | <td class='center'> |
37 | | - <{if $item.func_check}><img src="<{$wgblocks_icons_url_16}>/<{$item.func_check}>"><{/if}> |
38 | | - <{$item.func}> |
| 37 | + <{if isset($item.func_check) && $item.func_check != ''}><img src="<{$wgblocks_icons_url_16}>/<{$item.func_check}>"><{/if}> |
| 38 | + <{$item.func|default:''}> |
39 | 39 | </td> |
40 | 40 | <td class='center'><{$item.weight}></td> |
41 | 41 | <td class='center'> |
|
55 | 55 | <{/if}> |
56 | 56 | </table> |
57 | 57 | <div class="clear"> </div> |
58 | | - <{if $pagenav|default:''}> |
| 58 | + <{if isset($pagenav)}> |
59 | 59 | <div class="xo-pagenav floatright"><{$pagenav|default:false}></div> |
60 | 60 | <div class="clear spacer"></div> |
61 | 61 | <{/if}> |
62 | 62 | <{/if}> |
63 | | -<{if $form|default:''}> |
| 63 | +<{if isset($form)}> |
64 | 64 | <{$form|default:false}> |
65 | 65 | <{/if}> |
66 | | -<{if $error|default:''}> |
| 66 | +<{if isset($error)}> |
67 | 67 | <div class="errorMsg"><strong><{$error|default:false}></strong></div> |
68 | 68 | <{/if}> |
69 | 69 |
|
|
0 commit comments