mwoida
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Download Monitor] Custom template where title is set in shortcodeThis would be a useful feature. I have a client who likes to use inline links quite a lot and she would like to track these downloads via Download Monitor. Unfortunately I don’t have the PHP skills to make this work the way she wants. (We have settled on putting the relevant links in parentheses.)
Forum: Plugins
In reply to: [Download Monitor] PDF ThumbnailsAh, I see! Thank you for clarifying.
Forum: Plugins
In reply to: [Download Monitor] PDF ThumbnailsSorry for the confusion, but I just want to clarify: I’m trying to display a custom thumbnail for each file (not a generic PDF icon). I see that Download Monitor created thumbnails of all my uploads in the “dlm_uploads” folder, I just don’t know how to display them. I’m using the “downloads” shortcode and a custom template:
<?php /** * Detailed download output */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly /** @var DLM_Download $dlm_download */ ?> <div class="download-box-inline"> <?php $dlm_download->the_image(); ?> <div class="download-box-content"> <a class="download-link" title="<?php if ( $dlm_download->get_version()->has_version_number() ) { printf( __( 'Version %s', 'download-monitor' ), $dlm_download->get_version()->get_version_number() ); } ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow"> <?php $dlm_download->the_title(); ?></a> </div> </div>This results in a grey box with the title underneath.
Viewing 3 replies - 1 through 3 (of 3 total)