Equal heights for template selection.

This commit is contained in:
Matthias Mees 2013-05-27 12:30:01 +02:00
parent f2e40a87d4
commit e3d4841808

View File

@ -26,20 +26,22 @@
<section id="template_select"> <section id="template_select">
<h2>{$CONST.SELECT_TEMPLATE}</h2> <h2>{$CONST.SELECT_TEMPLATE}</h2>
<script src="{serendipity_getFile file='admin/jquery.syncheight.js'}"></script>
<ul class="plainList clearfix"> <ul class="plainList clearfix">
{foreach $templates as $template=>$info} {foreach $templates as $template=>$info}
{if $info.info.engine == 'yes'}{continue}{/if} {if $info.info.engine == 'yes'}{continue}{/if}
{if !empty($template)} {if !empty($template)}
<li><article class="clearfix {cycle values="odd,even"}"> <li><article class="clearfix {cycle values="odd,even"}">
<h3>{$info.info.name}</h3> <h3>{$info.info.name}</h3>
{if $info.fullsize_preview || $info.preview} <div class="clearfix equal_heights">
<div class="clearfix"> {if $info.fullsize_preview || $info.preview}
<div class="preview_image"> <div class="preview_image">
{if $info.fullsize_preview}<a href="{$info.fullsize_preview}">{/if} {if $info.fullsize_preview}<a href="{$info.fullsize_preview}">{/if}
{if $info.preview}<img src="{$info.preview}" alt="{$CONST.PREVIEW}" >{/if} {if $info.preview}<img src="{$info.preview}" alt="{$CONST.PREVIEW}" >{/if}
{if $info.fullsize_preview}</a>{/if} {if $info.fullsize_preview}</a>{/if}
</div> </div>
{/if} {/if}
<details class="template_info"> <details class="template_info">
<summary>Template info</summary> {* i18n *} <summary>Template info</summary> {* i18n *}
@ -52,9 +54,8 @@
<dd>{$info.info.custom_admin_interface}</dd> <dd>{$info.info.custom_admin_interface}</dd>
</dl> </dl>
</details> </details>
{if $info.fullsize_preview || $info.preview}
</div> </div>
{/if}
<div class="template_status"> <div class="template_status">
{if $template != $cur_template} {if $template != $cur_template}
{if !$info.unmetRequirements} {if !$info.unmetRequirements}