Subversion Repositories wpShopGermany4

Rev

Rev 7706 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7706 daniel 1
<?php
2
 
3
    declare(strict_types=1);
4
 
5
    /**
7787 daniel 6
     * User: Daschmi (https://daschmi.de)
7706 daniel 7
     * Date: 13.02.2020
8
     * Time: 06:25
9
     */
10
 
11
    $view = $this->view['wpsg_mod_printshop'];
12
 
13
?>
14
 
15
<div class="product_action product_action_printshop">
16
    <div class="label">
17
 
18
        <?php echo __("Uploads", "wpsg"); ?><br />
19
 
20
    </div>
21
    <div class="files">
22
 
23
        <?php if (wpsg_isSizedArray($view['files'])) {
24
 
25
            $arFiles = [];
26
 
27
            foreach ($view['files'] as $file_index => $f) {
28
 
29
                $arFiles[] = '<a href="'.$this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_printshop', 'downloadFile', ['product_index' => $view['product_index'], 'file_index' => $file_index], false).'" target="_blank">'.$f['file_name'].'</a>';
30
 
31
            }
32
 
33
            echo implode(', ', $arFiles);
34
 
35
        } ?>
36
 
37
    </div>
38
</div>