Example #1
0
    /**
     * @param array $array List of download items
     * @param string $listtype "ol" or "ul" for the type of HTML list you want to use
     * @return array
     */
    static function printListArray($array, $listtype = 'ol')
    {
        if ($listtype != 'ol' || $listtype != 'ul') {
            $listtype = 'ol';
        }
        $filesize = '';
        foreach ($array as $key => $file) {
            ?>
			<li>
				<?php 
            if (is_array($file)) {
                // for sub directories
                echo $key;
                echo '<' . $listtype . '>';
                self::printListArray($file, $listtype);
                echo '</' . $listtype . '>';
            } else {
                printDownloadURL($file);
            }
            ?>
			</li>
			<?php 
        }
    }
Example #2
0
/**
 * @deprecated
 * @since 1.4.6
 */
function printDownloadLinkAlbumZip($file, $linktext = NULL)
{
    deprecated_functions::notify(gettext('use printDownloadAlbumZipURL()'));
    printDownloadURL($file, $linktext);
}