Version Description
09 August, 2019 =
Fixed:
tutor_get_template()
function, it's now checking template from child-theme also, if template not found in the child theme, then it will look from the parent theme.Fixed: Show/Hide browse Q&A based on settings.
Fixed: create_certificate under init hook from Tutor Certificate Addon (Pro)
Download this release
Release Info
Developer | themeum |
Plugin | Tutor LMS – eLearning and online course solution |
Version | 1.3.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.7 to 1.3.8
- includes/tutor-template-functions.php +8 -1
- readme.txt +7 -1
- templates/single/lesson/lesson_sidebar.php +6 -2
- tutor.php +2 -2
includes/tutor-template-functions.php
CHANGED
@@ -20,7 +20,14 @@ if ( ! function_exists('tutor_get_template')) {
|
|
20 |
}
|
21 |
$template = str_replace( '.', DIRECTORY_SEPARATOR, $template );
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
$file_in_theme = $template_location;
|
25 |
if ( ! file_exists( $template_location ) ) {
|
26 |
$template_location = trailingslashit( tutor()->path ) . "templates/{$template}.php";
|
20 |
}
|
21 |
$template = str_replace( '.', DIRECTORY_SEPARATOR, $template );
|
22 |
|
23 |
+
/**
|
24 |
+
* Get template first from child-theme if exists
|
25 |
+
* If child theme not exists, then get template from parent theme
|
26 |
+
*/
|
27 |
+
$template_location = trailingslashit( get_stylesheet_directory() ) . "tutor/{$template}.php";
|
28 |
+
if ( ! file_exists($template_location)){
|
29 |
+
$template_location = trailingslashit( get_template_directory() ) . "tutor/{$template}.php";
|
30 |
+
}
|
31 |
$file_in_theme = $template_location;
|
32 |
if ( ! file_exists( $template_location ) ) {
|
33 |
$template_location = trailingslashit( tutor()->path ) . "templates/{$template}.php";
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: lms, course, elearning, education, quiz, training, sell courses, courses,
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4.0
|
8 |
-
Stable tag: 1.3.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -209,6 +209,12 @@ Tutor enables you to use any third party plugins without facing any compatibilit
|
|
209 |
|
210 |
== Changelog ==
|
211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
= 1.3.7 - 08 August, 2019 =
|
213 |
|
214 |
* Added: WooCommerce Subscriptions Addon in the pro version
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 5.4.0
|
8 |
+
Stable tag: 1.3.8
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
209 |
|
210 |
== Changelog ==
|
211 |
|
212 |
+
= 1.3.8 - 09 August, 2019 =
|
213 |
+
|
214 |
+
* Fixed: `tutor_get_template()` function, it's now checking template from child-theme also, if template not found in the child theme, then it will look from the parent theme.
|
215 |
+
* Fixed: Show/Hide browse Q&A based on settings.
|
216 |
+
* Fixed: create_certificate under init hook from Tutor Certificate Addon (Pro)
|
217 |
+
|
218 |
= 1.3.7 - 08 August, 2019 =
|
219 |
|
220 |
* Added: WooCommerce Subscriptions Addon in the pro version
|
templates/single/lesson/lesson_sidebar.php
CHANGED
@@ -26,6 +26,8 @@ if ($post->post_type === 'tutor_quiz'){
|
|
26 |
$course_id = get_post_meta($post->ID, '_tutor_course_id_for_lesson', true);
|
27 |
}
|
28 |
|
|
|
|
|
29 |
|
30 |
?>
|
31 |
|
@@ -33,8 +35,10 @@ if ($post->post_type === 'tutor_quiz'){
|
|
33 |
|
34 |
<div class="tutor-sidebar-tabs-wrap">
|
35 |
<div class="tutor-tabs-btn-group">
|
36 |
-
<a href="#tutor-lesson-sidebar-tab-content" class="active"> <i class="tutor-icon-education"></i> <span> <?php esc_html_e('Lesson List', 'tutor'); ?></span></a>
|
37 |
-
|
|
|
|
|
38 |
</div>
|
39 |
|
40 |
<div class="tutor-sidebar-tabs-content">
|
26 |
$course_id = get_post_meta($post->ID, '_tutor_course_id_for_lesson', true);
|
27 |
}
|
28 |
|
29 |
+
$enable_q_and_a_on_course = tutor_utils()->get_option('enable_q_and_a_on_course');
|
30 |
+
|
31 |
|
32 |
?>
|
33 |
|
35 |
|
36 |
<div class="tutor-sidebar-tabs-wrap">
|
37 |
<div class="tutor-tabs-btn-group">
|
38 |
+
<a href="#tutor-lesson-sidebar-tab-content" class="<?php echo $enable_q_and_a_on_course ? "active" : ""; ?>"> <i class="tutor-icon-education"></i> <span> <?php esc_html_e('Lesson List', 'tutor'); ?></span></a>
|
39 |
+
<?php if($enable_q_and_a_on_course) { ?>
|
40 |
+
<a href="#tutor-lesson-sidebar-qa-tab-content"> <i class="tutor-icon-question-1"></i> <span><?php esc_html_e('Browse Q&A', 'tutor'); ?></span></a>
|
41 |
+
<?php } ?>
|
42 |
</div>
|
43 |
|
44 |
<div class="tutor-sidebar-tabs-content">
|
tutor.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Tutor LMS
|
|
4 |
Plugin URI: https://www.themeum.com/product/tutor-lms/
|
5 |
Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create small to large scale online education site very conveniently. Power features like report, certificate, course preview, private file sharing make Tutor a robust plugin for any educational institutes.
|
6 |
Author: Themeum
|
7 |
-
Version: 1.3.
|
8 |
Author URI: http://themeum.com
|
9 |
Requires at least: 4.5
|
10 |
Tested up to: 5.2
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) )
|
|
17 |
/**
|
18 |
* Defined the tutor main file
|
19 |
*/
|
20 |
-
define('TUTOR_VERSION', '1.3.
|
21 |
define('TUTOR_FILE', __FILE__);
|
22 |
|
23 |
/**
|
4 |
Plugin URI: https://www.themeum.com/product/tutor-lms/
|
5 |
Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create small to large scale online education site very conveniently. Power features like report, certificate, course preview, private file sharing make Tutor a robust plugin for any educational institutes.
|
6 |
Author: Themeum
|
7 |
+
Version: 1.3.8
|
8 |
Author URI: http://themeum.com
|
9 |
Requires at least: 4.5
|
10 |
Tested up to: 5.2
|
17 |
/**
|
18 |
* Defined the tutor main file
|
19 |
*/
|
20 |
+
define('TUTOR_VERSION', '1.3.8');
|
21 |
define('TUTOR_FILE', __FILE__);
|
22 |
|
23 |
/**
|