?> </p> <p class="theme-meta"> <a class="theme-demo button" href="<?php echo esc_url(thds_get_theme_demo_url()); ?> ">Demo</a> <?php $eddid = get_post_meta(get_the_ID(), 'edd_download_id', true); if ($eddid) { echo edd_get_purchase_link(array('download_id' => $eddid, 'class' => 'theme-download button', 'style' => 'button', 'direct' => true)); } else { ?> <a class="theme-download button" href="<?php echo esc_url(thds_get_theme_download_url()); ?> " itemprop="downloadURL">Download</a> <?php } ?> </p> </div> </div> </div> <main <?php hybrid_attr('content'); ?>
/** * Prints the theme download URL. * * @since 1.0.0 * @access public * @param int $theme_id * @return void. */ function thds_theme_download_url($theme_id = 0) { echo esc_url(thds_get_theme_download_url($theme_id)); }