Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Last active November 6, 2017 07:59
Show Gist options
  • Save barrykooij/2b80e158391b26412e4d05148eb5c0a5 to your computer and use it in GitHub Desktop.
Save barrykooij/2b80e158391b26412e4d05148eb5c0a5 to your computer and use it in GitHub Desktop.
<?php
/**
* Default output for a download via the [download] shortcode
*/
global $dlm_download, $dlm_page_addon;
?>
<a class="download-link" href="<?php echo $dlm_download->get_the_download_link(); ?>" rel="nofollow" target="_blank">
<?php $dlm_download->the_title(); ?> (<?php printf( _n( '1', '%d', $dlm_download->get_the_download_count(), 'dlm_page_addon' ), $dlm_download->get_the_download_count() ) ?>)
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment