Theme for list of downloads
-
I wanted to show a selection of downloads in a list. Got my developer (Imran, from codetrio.com) to create this theme to show a list of DLs w/ small thumbnail and brief desc using this shortcode:
[downloads tag=”TAG” category=”CAT” template=”sixsec”]
Style is for Pootle theme, which we use on https://www.6seconds.org – probably need to change for your theme….
Page goes live in a few days, after Mar 9 you can see this live on our emotional intelligence festival site
CSS
.sixsecdl-image{ float:left; width:70px; margin:0 10px 10px 15px; } .sixsecdl-detail{ float:left; margin:0 10px 10px 15px; } ul.dlm-downloads, .dlm-downloads li{margin:auto 0;} .dlm-downloads [class*="span"]{margin-left:0;}
THEME CODE
<?php /** * download list with small image for [download] shortcode on https://www.6seconds.org */ global $dlm_download; $sixsecdl_link_title = ''; if($dlm_download->has_version_number()){} $sixsecdl_link_title = sprintf( __( 'Version %s', 'download_monitor' ), $dlm_download->get_the_version_number() ); ?> <div class="span8"> <div class="sixsecdl-image span2"> <a class="download-link" title="<?php echo $sixsecdl_link_title; ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow"> <?php echo get_the_post_thumbnail( get_the_ID(), array(70,70)); ?> </a> </div> <div class="sixsecdl-detail span6"> <a class="download-link" title="<?php echo $sixsecdl_link_title; ?>" href="<?php echo $dlm_download->the_download_link(); ?>" rel="nofollow"> <?php $dlm_download->the_title(); ?> (<?php printf( _n( '1 download', '%d downloads', $dlm_download->get_the_download_count(), 'download_monitor' ), $dlm_download->get_the_download_count() ) ?>) </a> <p><?php echo get_the_excerpt(); ?></p> </div> </div>
- The topic ‘Theme for list of downloads’ is closed to new replies.