File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!-- Header -->
22<{ include file= ' db:wgblocks_admin_header.tpl' } >
33
4- <{ if $form |default : ' ' } >
4+ <{ if isset( $form ) } >
55 <{ $form |default :false } >
66<{ /if } >
77<{ if $result |default :' ' } >
88 <{ $result |default :false } >
99<{ /if } >
10- <{ if $error |default : ' ' } >
10+ <{ if isset( $error ) } >
1111 <div class =" errorMsg" ><strong ><{ $error |default :false } ></strong ></div >
1212<{ /if } >
1313
Original file line number Diff line number Diff line change 11<div class =' top' >
22 <span class =' left' ><{ $navigation |default :false } ></span >
3- <{ if $buttons |default : ' ' } >
3+ <{ if isset( $buttons ) } >
44 <span class =' left' ><{ $buttons |default :false } ></span >
55 <{ /if } >
66</div >
Original file line number Diff line number Diff line change 11<!-- Header -->
22<{ include file= ' db:wgblocks_admin_header.tpl' } >
33
4- <{ if $items_list |default : ' ' } >
4+ <{ if isset( $items_list ) } >
55 <table class =' table table-bordered' >
66 <thead >
77 <tr class =' head' >
1919 <th class =" center width5" ><{ $smarty .const._AM_WGBLOCKS_FORM_ACTION} ></th >
2020 </tr >
2121 </thead >
22- <{ if $items_count |default : ' ' } >
22+ <{ if isset( $items_count ) } >
2323 <tbody >
2424 <{ foreach item= item from= $items_list } >
2525 <tr class =' <{ cycle values= ' odd, even' } >' >
2828 <td class =' center' ><{ $item .name} ></td >
2929 <td class =' center' ><{ $item .text_short} ></td >
3030 <td class =' center' >
31- <{ if $item .file_check} >
31+ <{ if isset( $item .file_check) } >
3232 <img src =" <{ $wgblocks_icons_url_16 } >/<{ $item .file_check} >" >
3333 <{ /if } >
3434 <{ $item .file} >
3535 </td >
3636 <td class =' center' >
37- <{ if $item .func_check} ><img src =" <{ $wgblocks_icons_url_16 } >/<{ $item .func_check} >" ><{ /if } >
37+ <{ if isset( $item .func_check) } ><img src =" <{ $wgblocks_icons_url_16 } >/<{ $item .func_check} >" ><{ /if } >
3838 <{ $item .func} >
3939 </td >
4040 <td class =' center' ><{ $item .weight} ></td >
5555 <{ /if } >
5656 </table >
5757 <div class =" clear" >  ; </div >
58- <{ if $pagenav |default : ' ' } >
58+ <{ if isset( $pagenav ) } >
5959 <div class =" xo-pagenav floatright" ><{ $pagenav |default :false } ></div >
6060 <div class =" clear spacer" ></div >
6161 <{ /if } >
6262<{ /if } >
63- <{ if $form |default : ' ' } >
63+ <{ if isset( $form ) } >
6464 <{ $form |default :false } >
6565<{ /if } >
66- <{ if $error |default : ' ' } >
66+ <{ if isset( $error ) } >
6767 <div class =" errorMsg" ><strong ><{ $error |default :false } ></strong ></div >
6868<{ /if } >
6969
Original file line number Diff line number Diff line change 11<ul class =" nav nav-pills nav-stacked" >
22 <{ foreach item= item from= $block |default :' ' } >
3- <li class =" li-wgblocks <{ if $item .highlight|default : false } >active<{ /if } >" >
3+ <li class =" li-wgblocks <{ if isset( $item .highlight) && $ item .highlight } >active<{ /if } >" >
44 <{ $item .content} >
55 </li >
66 <{ /foreach } >
You can’t perform that action at this time.
0 commit comments