source: extensions/lmt/admin/lmt_js.tpl @ 8766

Last change on this file since 8766 was 3396, checked in by grum, 15 years ago

Add plugin LMT

File size: 354 bytes
Line 
1{literal}
2function get_licence_text(txt, published)
3{
4  returned='';
5  switch(txt)
6  {
7    {/literal}
8    {foreach from=$datas.shortlicencetext key=name item=nfo}
9    case '{$name}':
10      returned='{$nfo.txt}';
11      if(published)  returned = "{$nfo.published} "+returned;
12      break;
13    {/foreach}
14    {literal}
15  }
16
17  return(returned);
18}
19{/literal}
Note: See TracBrowser for help on using the repository browser.