diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 382bb728..2f3d2418 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -720,7 +720,7 @@ function highlightComment(id, checkvalue) { }); // Show media file info - $('.media_show_info').click(function(e) { + $('.media_show_info, .template_show_info').click(function(e) { $($(this).attr('href')).toggleClass('additional_info'); e.preventDefault(); }); diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css index 2ce8bfcf..4f158ae3 100644 --- a/templates/2k11/admin/style.css +++ b/templates/2k11/admin/style.css @@ -1156,11 +1156,8 @@ main { #edit_entry_category label { vertical-align: top; } - -.template_info, .plugin_info { margin: 0 0 1em;} -.template_info dl, fieldset p, .media_file_meta > ul, .image_resize_hint p { margin: 0; } @@ -1242,18 +1239,6 @@ form > .button_link:first-of-type { margin-top: 0; } #serendipityScaleImg img { max-width: 99%; } -#template_select .preview_image { - float: left; - margin: 0 1em 1em 0; -} - -#template_select .preview_image { - /* TESTING */ - overflow: hidden; - height: 100px; - width: 100px; -} - .zebra_list, #categories .odd, #categories .even, @@ -1427,15 +1412,22 @@ form > .button_link:first-of-type { margin-top: 0; } margin: 0 2% 1em 0; } -.no-js .media_file_preview img { +.no-js .media_file_preview img, +.js .template_wrap { margin: 0 0 1em; } -.js .media_file_preview { +.js .template_info > dl { + margin: 0; +} + +.js .media_file_preview, +.js .template_preview { position: relative; } -.js .media_file_meta { +.js .media_file_meta, +.js .template_info { background: #000; background: rgba(0,0,0,.6); -webkit-box-sizing: border-box; @@ -1609,8 +1601,6 @@ input:checked + .media_selector { #uploadform .form_select select, #uploadform .form_field input { max-width: 48%; } - .template_info dl { font-size: .65em; } - .configuration_group .form_select, .configuration_group .form_multiselect, .configuration_group .form_field, @@ -1760,8 +1750,6 @@ input:checked + .media_selector { font-size: 2em; margin: .75em 0; } - - .template_info dl { font-size: .8125em; } } diff --git a/templates/2k11/admin/templates.inc.tpl b/templates/2k11/admin/templates.inc.tpl index 932083a5..3cbf9121 100644 --- a/templates/2k11/admin/templates.inc.tpl +++ b/templates/2k11/admin/templates.inc.tpl @@ -29,28 +29,28 @@

{$cur_tpl.info.name}

-
- {if $cur_tpl.fullsize_preview || $cur_tpl.preview} -
+
+
+ {if $cur_tpl.fullsize_preview || $cur_tpl.preview} {if $cur_tpl.fullsize_preview}{/if} {if $cur_tpl.preview}{$CONST.PREVIEW}{/if} {if $cur_tpl.fullsize_preview}{/if} + {/if} +
+
+
{$CONST.AUTHOR}:
+
{$cur_tpl.info.author}
+
{$CONST.LAST_UPDATED}:
+
{$cur_tpl.info.date}
+
Admin theme:
{* i18n *} +
{$cur_tpl.info.custom_admin_interface}
+
+
- {/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}
-
-
+ Show template info + {$CONST.CONFIGURATION}
@@ -62,35 +62,34 @@ {if !empty($template)}
  • {$info.info.name}

    -
    - {if $info.fullsize_preview || $info.preview} -
    +
    +
    + {if $info.fullsize_preview || $info.preview} + {if $info.fullsize_preview}{/if} {if $info.preview}{$CONST.PREVIEW}{/if} {if $info.fullsize_preview}{/if} + {/if} +
    +
    +
    {$CONST.AUTHOR}:
    +
    {$cur_tpl.info.author}
    +
    {$CONST.LAST_UPDATED}:
    +
    {$cur_tpl.info.date}
    +
    Admin theme:
    {* i18n *} +
    {$cur_tpl.info.custom_admin_interface}
    +
    +
    - {/if} -
    - Template info {* i18n *} - -
    -
    {$CONST.AUTHOR}:
    -
    {$info.info.author}
    -
    {$CONST.LAST_UPDATED}:
    -
    {$info.info.date}
    -
    Admin theme:
    {* i18n *} -
    {$info.info.custom_admin_interface}
    -
    -
    -
    - {if !$info.unmetRequirements} - {$CONST.SET_AS_TEMPLATE} - {else} - {$info.unmetRequirements}> - {/if} -
    + Show template info + + {if !$info.unmetRequirements} + {$CONST.SET_AS_TEMPLATE} + {else} + {$info.unmetRequirements}> + {/if}
  • {/if}