From 63324de80f852e1767e2b86c7957ff66542d23ae Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 14 Feb 2017 14:49:11 +0100 Subject: [PATCH] fixes #45, use specific template for Batch Downloader --- template/download_button.tpl | 39 ++++++++++++++++++++++++++++++++++++ theme.css | 13 +++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 template/download_button.tpl diff --git a/template/download_button.tpl b/template/download_button.tpl new file mode 100644 index 0000000..aa767cd --- /dev/null +++ b/template/download_button.tpl @@ -0,0 +1,39 @@ +{* download button for Batch Downloader plugin *} + +{if isset($BATCH_DWN_SIZES)} + + {'Download all pictures of this selection'|@translate} + + + +{else} + + {'Download all pictures of this selection'|@translate} + +{/if} + +{footer_script require='jquery'} +var batchdown_count = {$BATCH_DWN_COUNT}; +var batchdown_string = "{'Confirm the download of %d pictures?'|translate}"; + +{if isset($BATCH_DWN_SIZES)} + jQuery("#batchDownloadLink").closest("li").addClass("dropdown"); + + jQuery("#batchDownloadBox a").click(function() { + return confirm(batchdown_string.replace('%d', batchdown_count)); + }); +{else} + jQuery("#batchDownloadLink").click(function() { + return confirm(batchdown_string.replace('%d', batchdown_count)); + }); +{/if} +{/footer_script} diff --git a/theme.css b/theme.css index 36bbe33..69d6571 100644 --- a/theme.css +++ b/theme.css @@ -469,4 +469,15 @@ fieldset[disabled] .html-radios-inline label { .user-collections-icon { width:16px; height:16px; -} \ No newline at end of file +} + +/* BatchDownloader */ +.downloadSizeDetails { + font-style:italic; + font-size:80%; +} +#batchDownloadBox .switchBoxTitle { + text-align:center; + border-bottom:1px solid #eee; + padding-bottom:5px; +}