20,359
社区成员
发帖
与我相关
我的任务
分享
<?php
/**
* List of versions
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
/** @var DLM_Download $dlm_download */
$versions = $dlm_download->get_versions();
if ( $versions ) : ?>
<ul class="download-versions" style="text-align: center;">
<?php
/** @var DLM_Download_Version $version */
foreach ( $versions as $version ) {
// set loop version as current version
$dlm_download->set_version( $version );
?>
<li><a class="download-link;download-link filetype-icon <?php echo 'filetype-' . $dlm_download->get_version()->get_filetype(); ?>"
title="<?php printf( _n( 'Downloaded 1 time', 'Downloaded %d times', $dlm_download->get_download_count(), 'download-monitor' ), $dlm_download->get_download_count() ) ?>"
href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
<?php echo $version->get_filetype(); ?><?php echo $version->get_filename(); ?>
</a></li>
<?php
}
?>
</ul>
<?php endif; ?>