Subversion Repositories wpShopGermany4

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

    declare(strict_types=1);

    /**
     * User: Daschmi (daschmi@daschmi.de)
     * Date: 13.02.2020
     * Time: 06:25
     */

    $view = $this->view['wpsg_mod_printshop'];

?>

<div class="product_action product_action_printshop">
    <div class="label">

        <?php echo __("Uploads", "wpsg"); ?><br />

    </div>
    <div class="files">

        <?php if (wpsg_isSizedArray($view['files'])) {

            $arFiles = [];

            foreach ($view['files'] as $file_index => $f) {

                $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>';

            }

            echo implode(', ', $arFiles);

        } ?>

    </div>
</div>