mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/attach-dl] Downloading all attachments fully implemented
Added a function to list all available archiving methods and integrated it with the prosilver style. Heavy modifications to download/file.php to support archiving and downloading of multiple files at once. PHPBB3-11042
This commit is contained in:
@@ -46,7 +46,14 @@
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_HAS_ATTACHMENTS -->
|
||||
<span>[ <a href="{U_DL_ALL_LINK}">{L_DOWNLOAD_ALL_ATTACH}</a> ]</span>
|
||||
<div class="dl_links">
|
||||
<strong>{L_DOWNLOAD_ALL_ATTACH}:</strong>
|
||||
<ul>
|
||||
<!-- BEGIN dl_method -->
|
||||
<li>[ <a href="{dl_method.LINK}">{dl_method.TYPE}</a> ]</li>
|
||||
<!-- END dl_method -->
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF .pagination or TOTAL_POSTS -->
|
||||
@@ -161,7 +168,19 @@
|
||||
|
||||
<!-- IF postrow.S_HAS_ATTACHMENTS -->
|
||||
<dl class="attachbox">
|
||||
<dt>{L_ATTACHMENTS}<!-- IF postrow.S_MULTIPLE_ATTACH --> [ <a href="{postrow.U_DL_ALL_LINK}">{L_DOWNLOAD_ALL}</a> ]<!-- ENDIF --></dt>
|
||||
<dt>
|
||||
{L_ATTACHMENTS}
|
||||
<!-- IF postrow.S_MULTIPLE_ATTACH -->
|
||||
<div class="dl_links">
|
||||
<strong>{L_DOWNLOAD_ALL}:</strong>
|
||||
<ul>
|
||||
<!-- BEGIN dl_method -->
|
||||
<li>[ <a href="{postrow.dl_method.LINK}">{postrow.dl_method.TYPE}</a> ]</li>
|
||||
<!-- END dl_method -->
|
||||
</ul>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
</dt>
|
||||
<!-- BEGIN attachment -->
|
||||
<dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
|
||||
<!-- END attachment -->
|
||||
|
@@ -702,3 +702,26 @@ dl.pmlist dd {
|
||||
margin-left: 61% !important;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.topic-actions div.dl_links {
|
||||
padding: 10px 0 0 10px;
|
||||
}
|
||||
|
||||
div.dl_links {
|
||||
display: inline-block;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.dl_links strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.dl_links ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.dl_links li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
Reference in New Issue
Block a user