From 5884b956f88bc8b602a7179d9e59f1c737ad99fc Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 29 Apr 2012 07:34:44 +0000 Subject: feature 2626: new design for the watermark configuration screen (tab in the "config > options") TODO: the detection of derivatives that need to be updated is not working. git-svn-id: http://piwigo.org/svn/trunk@14512 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 89 +++++++++++++++++++++++++ admin/themes/default/theme.css | 36 +++++++++- 2 files changed, 123 insertions(+), 2 deletions(-) (limited to 'admin/themes/default') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 631423d3a..288e9f9ff 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -450,6 +450,95 @@ input[type="text"].dError {border-color:#ff7070; background-color:#FFe5e5;} {/if} +{if isset($watermark)} + +{footer_script}{literal} +jQuery(document).ready(function() { + + if (jQuery("input[name='w[position]']:checked").val() == 'custom') { + jQuery("#positionCustomDetails").show(); + } + + jQuery("input[name='w[position]']").change(function(){ + if (jQuery(this).val() == 'custom') { + jQuery("#positionCustomDetails").show(); + } + else { + jQuery("#positionCustomDetails").hide(); + } + }); +}); +{/literal}{/footer_script} + + +
+ + +
+ +{/if} {* end of watermark section *} + {if isset($display)}
{'Main Page'|@translate} diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index da92075c5..bf9013184 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -471,7 +471,7 @@ FORM.properties SPAN.property { padding: 0 0.5em 0 0; } -#mainConf, #historyConf, #commentsConf {border:none} +#mainConf, #historyConf, #commentsConf, #watermarkConf {border:none} #configContent label { font-weight: bold; @@ -1075,4 +1075,36 @@ FORM#categoryOrdering .categoryLi:hover p.albumActions {visibility:visible;} #autoOrder p.actionButtons, #createAlbum p.actionButtons {margin-bottom:0;} #ftpPage p {text-align:left;margin:1em;} -#ftpPage fieldset p {margin:0;} \ No newline at end of file +#ftpPage fieldset p {margin:0;} + +/* watermark configuration screen */ +#watermarkPositionBox { + border:2px solid #ccc; + width:500px; + padding:5px; + background-color:#e5e5e5; +} + +#watermarkPositionBox label { + font-weight:normal; + display:block; + color:#444; +} + +#watermarkPositionBox label.middle { + margin:50px; + text-align:center; +} + +#watermarkPositionBox label.right { + float:right; +} + +#positionCustomDetails { + margin-left:20px; + display:none; +} + +#positionCustomDetails label { + font-weight:normal; +} \ No newline at end of file -- cgit v1.2.3