Skip to content

Instantly share code, notes, and snippets.

@BHWD
Last active August 16, 2021 01:38
Show Gist options
  • Save BHWD/d70d4e0428e635a582f1fe9bcb175e15 to your computer and use it in GitHub Desktop.
Save BHWD/d70d4e0428e635a582f1fe9bcb175e15 to your computer and use it in GitHub Desktop.
<!--<div class="col-md-2 col-sd-2 text-center">
<?php if(has_post_thumbnail()) :?>
<?php the_post_thumbnail('course-thumb', array('class' => 'thumbnail')); ?>
<?php else :?>
<img class="thumbnail" src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php bloginfo('template_directory');?>/img/no_image.jpg&h=200&w=300"/>
<?php endif;?>
</div>-->
<div class="dashboard-course-item col-md-6 col-sd-6">
<?php
the_title( '<h2 class="ld-entry-title entry-title"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h2>' );
?>
<?php the_excerpt(); ?>
<a class="course-button" href="<?php the_permalink(); ?>">More</a>
<div class="dashboard-course-item-progress">
<?php
$progress = learndash_course_progress(array("array" => true));
$percentage = $progress["percentage"];
?>
<span class="rotate-90">status</span><?php echo esc_attr( $percentage ); ?>%
</div>
<a class="course-button course-status-completed pull-right" href="<?php the_field('start_course_link'); ?>">Start Course</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment