?> <div class="feature-theme-info"> <h1 class="row-title"><span itemprop="name"><?php thds_theme_title(); ?> </span></h1> <p class="row-desc"><?php thds_theme_excerpt(); ?> </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 } ?>
<div <?php hybrid_attr('entry-summary'); ?> > <a href="<?php thds_theme_url(); ?> "> <?php thds_theme_excerpt(); ?> </a> </div><!-- .entry-summary --> <footer class="entry-footer"> <?php the_title('<h2 ' . hybrid_get_attr('entry-title') . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>'); ?> <?php printf('<a class="demo-link" href="%s" target="_blank">%s</a>', esc_url(thds_get_theme_demo_url()), __('Demo', 'magikpress')); ?> </footer><!-- .entry-footer --> <?php } // End single post check. ?> </article><!-- .entry -->
/** * Prints the theme demo URL. * * @since 1.0.0 * @access public * @param int $theme_id * @return void */ function thds_theme_demo_url($theme_id = 0) { echo esc_url(thds_get_theme_demo_url($theme_id)); }