2 {ldelim} was written instead of 2 { in the js
git-svn-id: http://piwigo.org/svn/trunk@9625 68402e56-0260-453c-a942-63ccdbb3a9ee
58 lines
1.9 KiB
Smarty
58 lines
1.9 KiB
Smarty
{footer_script require='jquery.effects.blind'}{literal}
|
|
jQuery(document).ready(function(){
|
|
jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {
|
|
id = this.id.split('_');
|
|
jQuery("#revdesc_"+id[1]).toggle('blind');
|
|
jQuery(".button_"+id[1]).toggle();
|
|
return false;
|
|
});
|
|
});
|
|
{/literal}{/footer_script}
|
|
|
|
<div class="titrePage">
|
|
<h2>{'Themes'|@translate}</h2>
|
|
</div>
|
|
|
|
{if not empty($update_themes)}
|
|
<div id="availablePlugins">
|
|
<fieldset>
|
|
<legend>{'Themes which need upgrade'|@translate}</legend>
|
|
{foreach from=$update_themes item=theme name=themes_loop}
|
|
<div class="pluginBox">
|
|
<table>
|
|
<tr>
|
|
<td class="pluginBoxNameCell">
|
|
{$theme.EXT_NAME}
|
|
</td>
|
|
<td>
|
|
<a href="{$theme.URL_UPDATE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Install'|@translate}</a>
|
|
| <a href="{$theme.URL_DOWNLOAD}">{'Download'|@translate}</a>
|
|
| <a class="externalLink" href="{$theme.EXT_URL}">{'Visit theme site'|@translate}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
{'Version'|@translate} {$theme.CURRENT_VERSION}
|
|
</td>
|
|
<td class="pluginDesc" id="desc_{$theme.ID}">
|
|
<em>{'Downloads'|@translate}: {$theme.DOWNLOADS}</em>
|
|
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="" class="button_{$theme.ID}">
|
|
<img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$theme.ID}" style="display:none;">
|
|
{'New Version'|@translate} : {$theme.NEW_VERSION}
|
|
| {'By %s'|@translate|@sprintf:$theme.AUTHOR}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td class="pluginDesc">
|
|
<p id="revdesc_{$theme.ID}" style="display:none;">{$theme.REV_DESC|htmlspecialchars|nl2br}</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{/foreach}
|
|
</fieldset>
|
|
</div>
|
|
{elseif not isset($SERVER_ERROR)}
|
|
<p>{'All themes are up to date.'|@translate}</p>
|
|
{/if}
|