Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Created May 3, 2018 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrykooij/282743d3de508cdafc1c658573790ec1 to your computer and use it in GitHub Desktop.
Save barrykooij/282743d3de508cdafc1c658573790ec1 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
/** @var DLM_Download $dlm_download */
?>
<a class="download-link" title="<?php printf( _n( '1 download', '%d downloads', $dlm_download->get_download_count(), 'download-monitor' ), $dlm_download->get_download_count() ) ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
<?php $dlm_download->the_title(); ?>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment