From 88e5c9a1ba21f42ec4ed5b0f74be67aa385999ac Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Fri, 31 May 2013 14:47:38 +0200 Subject: [PATCH] Extract currently selected template from template list. Also skip currently selected template in template list. Note to self: this needs more styling to set it off better. (If my code can be improved, please do so. Best I could come up with.) --- templates/2k11/admin/style.css | 6 ++++ templates/2k11/admin/templates.inc.tpl | 48 ++++++++++++++++++++------ 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css index d5a54358..7eccef26 100644 --- a/templates/2k11/admin/style.css +++ b/templates/2k11/admin/style.css @@ -1501,6 +1501,12 @@ form > .button_link:first-of-type { margin-top: 0; } width: 48%; } + #template_select .current_template { + float: none; + margin: 0 0 2em; + width: 48%; + } + #mediaPropertyForm .media_file { float: none; margin: 1.5em 0; diff --git a/templates/2k11/admin/templates.inc.tpl b/templates/2k11/admin/templates.inc.tpl index 277a40d6..6a48b54d 100644 --- a/templates/2k11/admin/templates.inc.tpl +++ b/templates/2k11/admin/templates.inc.tpl @@ -27,13 +27,44 @@ {else}
-

{$CONST.SELECT_TEMPLATE}

+

Current template

{* i18n *} + {assign var="cur_tpl" value=$templates[$cur_template]} +
+

{$cur_tpl.info.name}

- +
+ {if $cur_tpl.fullsize_preview || $cur_tpl.preview} + + {/if} +
+ Template info {* i18n *} + +
+
{$CONST.AUTHOR}:
+
{$cur_tpl.info.author}
+
{$CONST.LAST_UPDATED}:
+
{$cur_tpl.info.date}
+
Admin theme:
{* i18n *} +
{$cur_tpl.info.custom_admin_interface}
+
+
+
+ +
+ {$CONST.ALREADY_INSTALLED} + {$CONST.CONFIGURATION} +
+
+ +

{$CONST.SELECT_TEMPLATE}

+ + {/if}