| 1 | | {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} |
| 2 | | {footer_script require='jquery.cluetip'} |
| 3 | | jQuery().ready(function(){ldelim} |
| 4 | | jQuery('.cluetip').cluetip({ldelim} |
| 5 | | width: 300, |
| 6 | | splitTitle: '|' |
| | 1 | {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/jquery.ui.min.js' } |
| | 2 | {combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } |
| | 3 | {combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } |
| | 4 | |
| | 5 | {footer_script require='jquery.ui.effects.blind'} |
| | 6 | jQuery(document).ready(function(){ldelim} |
| | 7 | jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {ldelim} |
| | 8 | id = this.id.split('_'); |
| | 9 | jQuery("#revdesc_"+id[1]).toggle('blind'); |
| | 10 | jQuery(".button_"+id[1]).toggle(); |
| | 11 | return false; |
| 15 | | {if isset($themes_not_uptodate)} |
| 16 | | <br> |
| 17 | | <b>{'Themes which need upgrade'|@translate}</b> |
| 18 | | <table class="table2 themes"> |
| 19 | | <thead> |
| 20 | | <tr class="throw"> |
| 21 | | <td>{'Name'|@translate}</td> |
| 22 | | <td>{'Current<br>version'|@translate}</td> |
| 23 | | <td>{'Available<br>version'|@translate}</td> |
| 24 | | <td>{'Actions'|@translate}</td> |
| 25 | | </tr> |
| 26 | | </thead> |
| 27 | | {foreach from=$themes_not_uptodate item=theme name=themes_loop} |
| 28 | | <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}"> |
| 29 | | <td><a href="{$theme.EXT_URL}" class="externalLink cluetip" title="{$theme.EXT_NAME}|{$theme.EXT_DESC|htmlspecialchars|nl2br}">{$theme.EXT_NAME}</a></td> |
| 30 | | <td style="text-align:center;">{$theme.VERSION}</td> |
| 31 | | <td style="text-align:center;"><a href="{$theme.EXT_URL}" class="externalLink cluetip" title="{$theme.EXT_NAME}|{$theme.NEW_VER_DESC|htmlspecialchars|nl2br}">{$theme.NEW_VERSION}</a></td> |
| 32 | | <td style="text-align:center;"><a href="{$theme.URL_UPDATE}" onclick="return confirm('{'Are you sure to install this upgrade? You must verify if this version does not need uninstallation.'|@translate|@escape:javascript}');">{'Automatic upgrade'|@translate}</a> |
| 33 | | / <a href="{$theme.URL_DOWNLOAD}">{'Download file'|@translate}</a></td> |
| 34 | | </tr> |
| | 20 | {if not empty($update_themes)} |
| | 21 | <div id="availablePlugins"> |
| | 22 | <fieldset> |
| | 23 | <legend>{'Themes which need upgrade'|@translate}</legend> |
| | 24 | {foreach from=$update_themes item=theme name=themes_loop} |
| | 25 | <div class="pluginBox"> |
| | 26 | <table> |
| | 27 | <tr> |
| | 28 | <td class="pluginBoxNameCell"> |
| | 29 | {$theme.EXT_NAME} |
| | 30 | </td> |
| | 31 | <td> |
| | 32 | <a href="{$theme.URL_UPDATE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Install'|@translate}</a> |
| | 33 | | <a href="{$theme.URL_DOWNLOAD}">{'Download'|@translate}</a> |
| | 34 | | <a class="externalLink" href="{$theme.EXT_URL}">{'Visit theme site'|@translate}</a> |
| | 35 | </td> |
| | 36 | </tr> |
| | 37 | <tr> |
| | 38 | <td> |
| | 39 | {'Version'|@translate} {$theme.CURRENT_VERSION} |
| | 40 | </td> |
| | 41 | <td class="pluginDesc" id="desc_{$theme.ID}"> |
| | 42 | <em>{'Downloads'|@translate}: {$theme.DOWNLOADS}</em> |
| | 43 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="" class="button_{$theme.ID}"> |
| | 44 | <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$theme.ID}" style="display:none;"> |
| | 45 | {'New Version'|@translate} : {$theme.NEW_VERSION} |
| | 46 | | {'By %s'|@translate|@sprintf:$theme.AUTHOR} |
| | 47 | </td> |
| | 48 | </tr> |
| | 49 | <tr> |
| | 50 | <td></td> |
| | 51 | <td class="pluginDesc"> |
| | 52 | <p id="revdesc_{$theme.ID}" style="display:none;">{$theme.REV_DESC|htmlspecialchars|nl2br}</p> |
| | 53 | </td> |
| | 54 | </tr> |
| | 55 | </table> |
| | 56 | </div> |
| 38 | | |
| 39 | | |
| 40 | | {if isset($themes_uptodate)} |
| 41 | | <br> |
| 42 | | <b>{'Themes up to date'|@translate}</b> |
| 43 | | <table class="table2 plugins"> |
| 44 | | <thead> |
| 45 | | <tr class="throw"> |
| 46 | | <td>{'Name'|@translate}</td> |
| 47 | | <td>{'Version'|@translate}</td> |
| 48 | | </tr> |
| 49 | | </thead> |
| 50 | | {foreach from=$themes_uptodate item=theme name=themes_loop} |
| 51 | | <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}"> |
| 52 | | <td><a href="{$theme.URL}" class="externalLink cluetip" title="{$theme.NAME}|{$theme.EXT_DESC|htmlspecialchars|nl2br}">{$theme.NAME}</a></td> |
| 53 | | <td style="text-align:center;"><a href="{$theme.URL}" class="externalLink cluetip" title="{$theme.NAME}|{$theme.VER_DESC|htmlspecialchars|nl2br}">{$theme.VERSION}</a></td> |
| 54 | | </tr> |
| 55 | | {/foreach} |
| 56 | | </table> |
| 57 | | {/if} |
| 58 | | |
| 59 | | |
| 60 | | {if isset($themes_cant_check)} |
| 61 | | <br> |
| 62 | | <b>{'Theme versions can\'t be checked'|@translate}</b> |
| 63 | | <table class="table2 plugins"> |
| 64 | | <thead> |
| 65 | | <tr class="throw"> |
| 66 | | <td>{'Name'|@translate}</td> |
| 67 | | <td>{'Version'|@translate}</td> |
| 68 | | </tr> |
| 69 | | </thead> |
| 70 | | {foreach from=$themes_cant_check item=theme name=themes_loop} |
| 71 | | <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}"> |
| 72 | | <td>{$theme.NAME}</td> |
| 73 | | <td style="text-align:center;">{$theme.VERSION}</td> |
| 74 | | </tr> |
| 75 | | {/foreach} |
| 76 | | </table> |
| 77 | | {/if} |