Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Created February 28, 2017 08:06
Show Gist options
  • Save barrykooij/063c7dbafe19c7a57c3409f11ef882c5 to your computer and use it in GitHub Desktop.
Save barrykooij/063c7dbafe19c7a57c3409f11ef882c5 to your computer and use it in GitHub Desktop.
<?php
/**
* Default output for a download via the [download] shortcode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
?>
<a class="download-link" title="<?php if ( $dlm_download->has_version_number() ) {
printf( __( 'Version %s', 'download-monitor' ), $dlm_download->get_the_version_number() );
} ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
<?php $dlm_download->the_title(); ?> | <?php echo date('d M Y', strtotime($dlm_download->get_the_file_date())); ?>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment