Tutor LMS – eLearning and online course solution - Version 1.0.6

Version Description

  • 18 March, 2020 =

  • Added: Drop tutor LMS related database table while uninstalling

  • Updated: option tab design

  • Fixed: Fix a condition of adding autoload class

Download this release

Release Info

Developer themeum
Plugin Icon wp plugin Tutor LMS – eLearning and online course solution
Version 1.0.6
Comparing to
See all releases

Code changes from version 1.0.5 to 1.0.6

assets/css/tutor-admin.css CHANGED
@@ -46,7 +46,7 @@ TUTOR CSS
46
  .tutor-option-nav-tabs li{
47
  position: relative;
48
  display: inline-block;
49
- margin-right: 20px;
50
  }
51
  .tutor-option-nav-tabs li:after {
52
  content: "|";
@@ -61,10 +61,16 @@ TUTOR CSS
61
  display: block;
62
  font-weight: bold;
63
  text-decoration: none;
 
 
 
64
  }
65
  .tutor-option-nav-tabs li.current a{
66
  color: #333333;
67
  }
 
 
 
68
 
69
  /**
70
  Option Field
46
  .tutor-option-nav-tabs li{
47
  position: relative;
48
  display: inline-block;
49
+ margin-right: -1px;
50
  }
51
  .tutor-option-nav-tabs li:after {
52
  content: "|";
61
  display: block;
62
  font-weight: bold;
63
  text-decoration: none;
64
+ background: #fff;
65
+ padding: 5px 10px;
66
+ border: 1px solid #dddddd;
67
  }
68
  .tutor-option-nav-tabs li.current a{
69
  color: #333333;
70
  }
71
+ .tutor-option-nav-tabs li a:focus {
72
+ box-shadow: none;
73
+ }
74
 
75
  /**
76
  Option Field
assets/css/tutor-front.css CHANGED
@@ -410,6 +410,7 @@ Most Important CSS
410
  display: -webkit-box;
411
  display: -ms-flexbox;
412
  display: flex;
 
413
  }
414
  .tutor-course-lesson h5 i{
415
  line-height: 22px;
@@ -1693,7 +1694,8 @@ ul.tutor-required-fields{
1693
  .tutor-star-rating-group {
1694
  color: #f4c150;
1695
  /*margin-top: 20px;*/
1696
- display: block;
 
1697
  }
1698
  .tutor-star-rating-group i{
1699
  cursor: pointer;
@@ -2724,12 +2726,11 @@ Course question and answer
2724
  .course-avg-rating-wrap .course-avg-rating {
2725
  font-size: 76px;
2726
  line-height: 1;
2727
- font-weight: 600;
2728
  }
2729
  .course-avg-rating-wrap p{
2730
  margin: 0;
2731
  }
2732
-
2733
  .tutor-review-individual-item .tutor-review-name{
2734
  font-size: 16px;
2735
  font-weight: 600;
@@ -2737,7 +2738,6 @@ Course question and answer
2737
  .tutor-review-individual-item .review-meta{
2738
  color: #B1B8C9;
2739
  }
2740
-
2741
  .individual-review-rating-wrap{
2742
  color: #F8C51C;
2743
  }
@@ -2758,15 +2758,18 @@ Course question and answer
2758
  .rating-meter-col{
2759
  margin: 0 3px;
2760
  }
 
 
 
2761
  .rating-meter-bar {
2762
- height: 10px;
2763
  width: 100%;
2764
  background: #E8EFF1;
2765
  margin-top: 6px;
2766
  }
2767
  .rating-meter-fill-bar {
2768
  background: #F8C51C;
2769
- height: 10px;
2770
  }
2771
  .rating-meter-col.rating-text-col{
2772
  flex: 0 0 100px;
410
  display: -webkit-box;
411
  display: -ms-flexbox;
412
  display: flex;
413
+ color: inherit;
414
  }
415
  .tutor-course-lesson h5 i{
416
  line-height: 22px;
1694
  .tutor-star-rating-group {
1695
  color: #f4c150;
1696
  /*margin-top: 20px;*/
1697
+ display: inline-block;
1698
+ text-align: left;
1699
  }
1700
  .tutor-star-rating-group i{
1701
  cursor: pointer;
2726
  .course-avg-rating-wrap .course-avg-rating {
2727
  font-size: 76px;
2728
  line-height: 1;
2729
+ font-weight: 400;
2730
  }
2731
  .course-avg-rating-wrap p{
2732
  margin: 0;
2733
  }
 
2734
  .tutor-review-individual-item .tutor-review-name{
2735
  font-size: 16px;
2736
  font-weight: 600;
2738
  .tutor-review-individual-item .review-meta{
2739
  color: #B1B8C9;
2740
  }
 
2741
  .individual-review-rating-wrap{
2742
  color: #F8C51C;
2743
  }
2758
  .rating-meter-col{
2759
  margin: 0 3px;
2760
  }
2761
+ .course-rating-meter {
2762
+ margin-bottom: 8px;
2763
+ }
2764
  .rating-meter-bar {
2765
+ height: 5px;
2766
  width: 100%;
2767
  background: #E8EFF1;
2768
  margin-top: 6px;
2769
  }
2770
  .rating-meter-fill-bar {
2771
  background: #F8C51C;
2772
+ height: 5px;
2773
  }
2774
  .rating-meter-col.rating-text-col{
2775
  flex: 0 0 100px;
classes/Admin.php CHANGED
@@ -361,6 +361,10 @@ class Admin{
361
  /**D*/ $wpdb->delete($wpdb->usermeta, array('meta_key' => '_is_tutor_instructor'));
362
  /**D*/ $wpdb->query("DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE '%_tutor_completed_lesson_id_%' ");
363
 
 
 
 
 
364
  deactivate_plugins($plugin_file);
365
  }
366
 
361
  /**D*/ $wpdb->delete($wpdb->usermeta, array('meta_key' => '_is_tutor_instructor'));
362
  /**D*/ $wpdb->query("DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE '%_tutor_completed_lesson_id_%' ");
363
 
364
+ //Deleting Table
365
+ $prefix = $wpdb->prefix;
366
+ /**D*/ $wpdb->query("DROP TABLE IF EXISTS {$prefix}tutor_quiz_attempts, {$prefix}tutor_quiz_attempt_answers, {$prefix}tutor_quiz_questions, {$prefix}tutor_quiz_question_answers ");
367
+
368
  deactivate_plugins($plugin_file);
369
  }
370
 
classes/init.php CHANGED
@@ -90,7 +90,7 @@ class init{
90
  $className = str_replace('TUTOR/', 'classes/', $className);
91
  $file_name = $this->path.$className.'.php';
92
 
93
- if (file_exists($file_name) && is_readable( $file_name ) ) {
94
  require_once $file_name;
95
  }
96
  }
@@ -139,6 +139,7 @@ class init{
139
 
140
  /**
141
  * backward / Alpha version compatibility
 
142
  */
143
  if (version_compare(get_option('TUTOR_VERSION'), '1.0.0', '<')){
144
  //Create Database
@@ -147,6 +148,7 @@ class init{
147
  }
148
  /**
149
  * backward / v.1.0.0 compatibility
 
150
  */
151
  if (get_option('TUTOR_VERSION') == '1.0.0' && version_compare(get_option('TUTOR_VERSION'), '1.0.1', '<')){
152
  //Adding column course_id in prefix_tutor_quiz_attempts
90
  $className = str_replace('TUTOR/', 'classes/', $className);
91
  $file_name = $this->path.$className.'.php';
92
 
93
+ if (file_exists($file_name) ) {
94
  require_once $file_name;
95
  }
96
  }
139
 
140
  /**
141
  * backward / Alpha version compatibility
142
+ * todo: should remove in version 1.1.0
143
  */
144
  if (version_compare(get_option('TUTOR_VERSION'), '1.0.0', '<')){
145
  //Create Database
148
  }
149
  /**
150
  * backward / v.1.0.0 compatibility
151
+ * todo: should remove in version 1.1.0
152
  */
153
  if (get_option('TUTOR_VERSION') == '1.0.0' && version_compare(get_option('TUTOR_VERSION'), '1.0.1', '<')){
154
  //Adding column course_id in prefix_tutor_quiz_attempts
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: lms, education, wp-lms, education management system
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.4.0
8
- Stable tag: 1.0.5
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -183,6 +183,12 @@ This is an alpha version of Tutor, as bugs and issues expected, if you found any
183
 
184
  == Changelog ==
185
 
 
 
 
 
 
 
186
  = 1.0.5 - 18 March, 2019 =
187
 
188
  * Updated Rating and review, added individual 5 stars, 4 stars, 3 stars, 2 stars, 1 star rating count with the meter
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.4.0
8
+ Stable tag: 1.0.6
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
183
 
184
  == Changelog ==
185
 
186
+ = 1.0.6 - 18 March, 2020 =
187
+
188
+ * Added: Drop tutor LMS related database table while uninstalling
189
+ * Updated: option tab design
190
+ * Fixed: Fix a condition of adding autoload class
191
+
192
  = 1.0.5 - 18 March, 2019 =
193
 
194
  * Updated Rating and review, added individual 5 stars, 4 stars, 3 stars, 2 stars, 1 star rating count with the meter
tutor.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://https://themeum.com/tutor
5
  Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create
6
  courses, lessons and quizzes.
7
  Author: Themeum
8
- Version: 1.0.5
9
  Author URI: http://themeum.com
10
  Requires at least: 4.5
11
  Tested up to: 5.1
@@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) )
18
  /**
19
  * Defined the tutor main file
20
  */
21
- define('TUTOR_VERSION', '1.0.5');
22
  define('TUTOR_FILE', __FILE__);
23
 
24
 
5
  Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create
6
  courses, lessons and quizzes.
7
  Author: Themeum
8
+ Version: 1.0.6
9
  Author URI: http://themeum.com
10
  Requires at least: 4.5
11
  Tested up to: 5.1
18
  /**
19
  * Defined the tutor main file
20
  */
21
+ define('TUTOR_VERSION', '1.0.6');
22
  define('TUTOR_FILE', __FILE__);
23
 
24