Skip to content

Commit

Permalink
Merge pull request #12 from tedwards/catalogWidget
Browse files Browse the repository at this point in the history
Fixes bug in course catalog widget
  • Loading branch information
brianrogers authored Jun 26, 2017
2 parents e05b8f2 + 2bdc3d6 commit 111aaf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions scormcloud/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: troyef, stuartchilds, timedwards
Tags: elearning, learning, scorm, aicc, education, training, cloud
Requires at least: 4.3
Tested up to: 5.6
Stable tag: 1.2.2
Tested up to: 4.7
Stable tag: 1.2.3

Tap the power of SCORM to deliver and track training right from your WordPress-powered site.

Expand Down Expand Up @@ -48,6 +48,9 @@ The SCORM Cloud For WordPress basic functionality works with BuddyPress without


== Changelog ==
= 1.2.3 =
* Fixed bug in course catalog widget

= 1.2.2 =
* Fixed bug in anonymous registrations

Expand Down
2 changes: 1 addition & 1 deletion scormcloud/scormcloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: http://scorm.com/wordpress
Description: Tap the power of SCORM to deliver and track training right from your WordPress-powered site. Just add the SCORM Cloud widget to the sidebar or use the SCORM Cloud button to add a link directly in a post or page.
Author: Rustici Software
Version: 1.2.1
Version: 1.2.3
Author URI: http://www.scorm.com
*/

Expand Down
4 changes: 2 additions & 2 deletions scormcloud/ui/scormcloudcatalogwidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function widget( $args, $instance ) {
echo "<div class='usercourseblock'>";

if ( 1 === (int) $reg->active ) {
echo "<a class='courseTitle' href='javascript:void(0);' key='" . esc_attr( $reg_id ) . " onclick='ScormCloud.Widget.getLaunchURL(\"" . esc_js( $reg_id ) . "\",\"Catalog\");' url='" . esc_url_raw( site_url() ) . "/wp-content/plugins/scormcloud/ajax.php' title='" . esc_textarea( __( 'Click to launch course ', 'scormcloud' ) ) . esc_textarea( $course_title ) . "'>" . esc_textarea( $course_title ) . '</a>';
echo "<a class='courseTitle' href='javascript:void(0);' key='" . esc_attr( $reg_id ) . "' onclick='ScormCloud.Widget.getLaunchURL(\"" . esc_js( $reg_id ) . "\",\"Catalog\");' url='" . esc_url_raw( site_url() ) . "/wp-content/plugins/scormcloud/ajax.php' title='" . esc_textarea( __( 'Click to launch course ', 'scormcloud' ) ) . esc_textarea( $course_title ) . "'>" . esc_textarea( $course_title ) . '</a>';
} else {
echo "<span class='courseTitle' title='" . esc_attr__( 'This course is currently inactive.', 'scormcloud' ) . "'>" . esc_attr( $course_title ) . '</span>';
}
Expand Down Expand Up @@ -192,4 +192,4 @@ function form( $instance ) {


}// END class
?>
?>

0 comments on commit 111aaf1

Please sign in to comment.