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; +}