Info overlay for templates.
NOTE: This would be way nicer if template preview images were a
bit larger (just like media db thumbnails), but I guess
were going to have to discuss how to implement that first.
This commit is contained in:
@@ -29,28 +29,28 @@
|
||||
<article class="clearfix current_template">
|
||||
<h3>{$cur_tpl.info.name}</h3>
|
||||
|
||||
<div class="clearfix">
|
||||
{if $cur_tpl.fullsize_preview || $cur_tpl.preview}
|
||||
<div class="preview_image">
|
||||
<div class="clearfix equal_heights template_wrap">
|
||||
<div class="template_preview">
|
||||
{if $cur_tpl.fullsize_preview || $cur_tpl.preview}
|
||||
{if $cur_tpl.fullsize_preview}<a href="{$cur_tpl.fullsize_preview}">{/if}
|
||||
{if $cur_tpl.preview}<img src="{$cur_tpl.preview}" alt="{$CONST.PREVIEW}" >{/if}
|
||||
{if $cur_tpl.fullsize_preview}</a>{/if}
|
||||
{/if}
|
||||
<footer id="template_info_cur" class="template_info additional_info">
|
||||
<dl class="clearfix">
|
||||
<dt class="template_author">{$CONST.AUTHOR}:</dt>
|
||||
<dd>{$cur_tpl.info.author}</dd>
|
||||
<dt class="template_date">{$CONST.LAST_UPDATED}:</dt>
|
||||
<dd>{$cur_tpl.info.date}</dd>
|
||||
<dt class="template_admin">Admin theme:</dt> {* i18n *}
|
||||
<dd>{$cur_tpl.info.custom_admin_interface}</dd>
|
||||
</dl>
|
||||
</footer>
|
||||
</div>
|
||||
{/if}
|
||||
<details class="template_info">
|
||||
<summary>Template info</summary> {* i18n *}
|
||||
|
||||
<dl class="clearfix">
|
||||
<dt class="template_author">{$CONST.AUTHOR}:</dt>
|
||||
<dd>{$cur_tpl.info.author}</dd>
|
||||
<dt class="template_date">{$CONST.LAST_UPDATED}:</dt>
|
||||
<dd>{$cur_tpl.info.date}</dd>
|
||||
<dt class="template_admin">Admin theme:</dt> {* i18n *}
|
||||
<dd>{$cur_tpl.info.custom_admin_interface}</dd>
|
||||
</dl>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<a class="template_show_info button_link" href="#template_info_cur" title="Show template info"><span class="icon-info-circle"></span><span class="visuallyhidden"> Show template info</span></a>
|
||||
|
||||
<a class="button_link state_submit" href="?serendipity[adminModule]=templates&serendipity[adminAction]=editConfiguration">{$CONST.CONFIGURATION}</a>
|
||||
</article>
|
||||
|
||||
@@ -62,35 +62,34 @@
|
||||
{if !empty($template)}
|
||||
<li><article class="clearfix {cycle values="odd,even"}">
|
||||
<h3>{$info.info.name}</h3>
|
||||
<div class="clearfix equal_heights">
|
||||
{if $info.fullsize_preview || $info.preview}
|
||||
<div class="preview_image">
|
||||
<div class="clearfix equal_heights template_wrap">
|
||||
<div class="template_preview">
|
||||
{if $info.fullsize_preview || $info.preview}
|
||||
|
||||
{if $info.fullsize_preview}<a href="{$info.fullsize_preview}">{/if}
|
||||
{if $info.preview}<img src="{$info.preview}" alt="{$CONST.PREVIEW}" >{/if}
|
||||
{if $info.fullsize_preview}</a>{/if}
|
||||
{/if}
|
||||
<footer id="template_info_{$info@key}" class="template_info additional_info">
|
||||
<dl class="clearfix">
|
||||
<dt class="template_author">{$CONST.AUTHOR}:</dt>
|
||||
<dd>{$cur_tpl.info.author}</dd>
|
||||
<dt class="template_date">{$CONST.LAST_UPDATED}:</dt>
|
||||
<dd>{$cur_tpl.info.date}</dd>
|
||||
<dt class="template_admin">Admin theme:</dt> {* i18n *}
|
||||
<dd>{$cur_tpl.info.custom_admin_interface}</dd>
|
||||
</dl>
|
||||
</footer>
|
||||
</div>
|
||||
{/if}
|
||||
<details class="template_info">
|
||||
<summary>Template info</summary> {* i18n *}
|
||||
|
||||
<dl class="clearfix">
|
||||
<dt class="template_author">{$CONST.AUTHOR}:</dt>
|
||||
<dd>{$info.info.author}</dd>
|
||||
<dt class="template_date">{$CONST.LAST_UPDATED}:</dt>
|
||||
<dd>{$info.info.date}</dd>
|
||||
<dt class="template_admin">Admin theme:</dt> {* i18n *}
|
||||
<dd>{$info.info.custom_admin_interface}</dd>
|
||||
</dl>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
<div class="template_status">
|
||||
{if !$info.unmetRequirements}
|
||||
<a class="state_submit button_link" href="?serendipity[adminModule]=templates&serendipity[adminAction]=install&serendipity[theme]={$template}{$info.info.customURI}">{$CONST.SET_AS_TEMPLATE}</a>
|
||||
{else}
|
||||
<span class="unmet_requirements msg_error"><span class="icon-attention"></span> {$info.unmetRequirements}></span>
|
||||
{/if}
|
||||
</div>
|
||||
<a class="template_show_info button_link" href="#template_info_{$info@key}" title="Show template info"><span class="icon-info-circle"></span><span class="visuallyhidden"> Show template info</span></a>
|
||||
|
||||
{if !$info.unmetRequirements}
|
||||
<a class="state_submit button_link" href="?serendipity[adminModule]=templates&serendipity[adminAction]=install&serendipity[theme]={$template}{$info.info.customURI}">{$CONST.SET_AS_TEMPLATE}</a>
|
||||
{else}
|
||||
<span class="unmet_requirements msg_error"><span class="icon-attention"></span> {$info.unmetRequirements}></span>
|
||||
{/if}
|
||||
</article>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user