Tutor LMS – eLearning and online course solution - Version 1.2.13

Version Description

  • 26 April, 2019 =

  • Added: Instructor role to the administrator during plugin activation

  • Fixed: Course Permission options settings, it was shown always log-in page

  • Fixed: Enable students to show reviews wrote on their profile from settings

  • Fixed: Show completed course settings

Download this release

Release Info

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

Code changes from version 1.2.12 to 1.2.13

assets/css/tutor-admin.css CHANGED
@@ -28,6 +28,7 @@
28
  .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
29
  .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
30
  .ui-slider-vertical .ui-slider-range-max { top: 0; }
 
31
  /*----------------------------------
32
  Component containers
33
  ----------------------------------*/
@@ -43,13 +44,7 @@
43
  ----------------------------------*/
44
  .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee; color: #363636; }
45
 
46
- /**
47
- TUTOR CSS
48
- */
49
-
50
- .tutor-option-nav-tabs{
51
 
52
- }
53
  .tutor-option-nav-tabs li{
54
  position: relative;
55
  display: inline-block;
@@ -208,10 +203,14 @@ Group Field Option
208
  font-size: 15px;
209
  }
210
  #tutor-course-topics .tutor-lesson-top{
 
 
211
  display: flex;
212
  font-size: 14px;
213
  }
214
  #tutor-course-topics .tutor-lesson-top .open-tutor-lesson-modal, .tutor-quiz .open-tutor-quiz-modal{
 
 
215
  flex: 1;
216
  }
217
  #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{
@@ -294,6 +293,8 @@ p.course-empty-content {
294
  cursor: pointer;
295
  }
296
  .tutor-topic-title{
 
 
297
  display: flex;
298
  font-size: 16px;
299
  font-weight: 300;
@@ -306,6 +307,8 @@ p.course-empty-content {
306
  }
307
 
308
  .tutor-topic-title .topic-inner-title{
 
 
309
  flex: 1 0 auto;
310
  cursor: pointer;
311
  }
@@ -518,43 +521,8 @@ table.tutor_status_table td mark.yes, table.tutor_status_table th mark.yes {
518
  background-color: transparent;
519
  }
520
 
521
- /*
522
-
523
- .tutor-help-tip {
524
- color: #666;
525
- display: inline-block;
526
- font-size: 1.1em;
527
- font-style: normal;
528
- height: 16px;
529
- line-height: 16px;
530
- position: relative;
531
- vertical-align: middle;
532
- width: 16px;
533
- }
534
- .tutor-help-tip::after {
535
- font-family: Dashicons;
536
- speak: none;
537
- font-weight: 400;
538
- text-transform: none;
539
- line-height: 1;
540
- -webkit-font-smoothing: antialiased;
541
- text-indent: 0px;
542
- position: absolute;
543
- top: 0px;
544
- left: 0px;
545
- width: 100%;
546
- height: 100%;
547
- text-align: center;
548
- content: "";
549
- cursor: help;
550
- font-variant: normal;
551
- margin: 0px;
552
- }*/
553
-
554
-
555
  .tutor-text-avatar{
556
  border-radius: 50%;
557
- /*border: 1px solid #686f7a;*/
558
  width: 40px;
559
  height: 40px;
560
  text-align: center;
@@ -564,11 +532,15 @@ table.tutor_status_table td mark.yes, table.tutor_status_table th mark.yes {
564
  font-size: 14px;
565
  }
566
  .tutor_original_question{
 
 
567
  display: flex;
568
  margin-bottom: 5px;
569
  padding: 20px;
570
  }
571
  .tutor_original_question .question-left{
 
 
572
  flex: 0 0 60px;
573
  }
574
  .tutor_original_question .question-left img{
@@ -681,6 +653,7 @@ table.tutor-addons-list-table td, table.tutor-addons-list-table th{
681
  position: absolute;
682
  right: 0;
683
  top: 0;
 
684
  transition: .4s;
685
  }
686
  .btn-slider:before {
@@ -690,6 +663,7 @@ table.tutor-addons-list-table td, table.tutor-addons-list-table th{
690
  height: 16px;
691
  left: 4px;
692
  position: absolute;
 
693
  transition: .4s;
694
  width: 16px;
695
  }
@@ -697,6 +671,7 @@ input:checked + .btn-slider {
697
  background-color: #0073aa;
698
  }
699
  input:checked + .btn-slider:before {
 
700
  transform: translateX(16px);
701
  }
702
  .btn-slider.btn-round {
@@ -706,8 +681,6 @@ input:checked + .btn-slider:before {
706
  border-radius: 50%;
707
  }
708
 
709
-
710
-
711
  /**
712
  Quiz-question
713
  */
@@ -716,7 +689,12 @@ Quiz-question
716
  margin-bottom: 20px;
717
  }
718
  .quiz-question-flex-wrap, .tutor-flex-row{
 
 
719
  display: flex;
 
 
 
720
  flex-direction: row;
721
  }
722
  .tutor-flex-col{
@@ -791,12 +769,9 @@ table.multi-answers-options a{
791
  text-decoration: none;
792
  color: #FF0000;
793
  }
794
-
795
-
796
  .add_answer_option_wrap {
797
  margin: 20px 0;
798
  }
799
-
800
  .tutor-add-question-wrap{
801
  margin: 20px 0;
802
  background-color: #f4f4f4;
@@ -830,18 +805,27 @@ table.multi-answers-options a{
830
  margin: 1px 0;
831
  }
832
  .tutor-question-item-head{
 
 
833
  display: flex;
 
 
 
834
  flex-direction: row;
835
  line-height: 50px;
 
 
836
  justify-content: space-between;
837
- /*padding: 20px;*/
838
  }
839
 
840
  .tutor-question-item-head > div{
841
  padding: 0 10px;
842
  }
843
  .tutor-question-item-head .question-title {
 
844
  flex-basis: 0;
 
 
845
  flex-grow: 1;
846
  }
847
  .tutor-question-item-head i{
@@ -893,6 +877,7 @@ Quiz Modal
893
 
894
  .tutor-modal-wrap {
895
  opacity: 0;
 
896
  display: none;
897
  position: fixed;
898
  top: 0;
@@ -903,10 +888,17 @@ Quiz Modal
903
  background-color: rgba(0, 0, 0, 0.5);
904
  }
905
  .tutor-modal-wrap.show {
 
 
906
  display: flex;
907
  opacity: 1;
 
908
  z-index: 99999;
 
 
909
  align-items: center;
 
 
910
  justify-content: center;
911
  }
912
  .tutor-modal-wrap.loading .tutor-modal-content:before {
@@ -928,6 +920,7 @@ Quiz Modal
928
  margin: 0;
929
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
930
  position: relative;
 
931
  transition: all 200ms ease-out;
932
  width: 90%;
933
  }
@@ -943,10 +936,15 @@ Quiz Modal
943
  margin: 0 0 15px;
944
  }
945
  .tutor-modal-wrap .modal-header {
 
 
946
  display: flex;
947
  }
948
  .tutor-modal-wrap .search-bar {
 
949
  flex-basis: 0;
 
 
950
  flex-grow: 1;
951
  padding-top: 10px;
952
  padding-left: 20px;
@@ -969,7 +967,10 @@ Quiz Modal
969
  font-size: 25px;
970
  }
971
  .tutor-modal-wrap.tutor-quiz-builder-modal-wrap .modal-title {
 
972
  flex-basis: 0;
 
 
973
  flex-grow: 1;
974
  }
975
  .tutor-modal-wrap.tutor-quiz-builder-modal-wrap .modal-close-wrap a.modal-close-btn {
@@ -1041,12 +1042,11 @@ Quiz Modal
1041
  .tutor-quiz-builder-form-row .quiz-form-warning {
1042
  color: #e88e06;
1043
  }
1044
- /*#tutor_quiz_question_answer_form {*/
1045
- /*margin: 20px 0;*/
1046
- /*}*/
1047
  .tutor-quiz-question-answers-form {
1048
  background-color: #fff;
1049
  padding: 20px;
 
1050
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
1051
  border: 1px solid #DEDEDE;
1052
  border-radius: 3px;
@@ -1087,6 +1087,7 @@ Quiz Modal
1087
  font-size: 12px;
1088
  margin-top: 7px;
1089
  }
 
1090
  .tutor-quiz-builder-group > h4{
1091
  font-size: 14px;
1092
  color: #393C40;
@@ -1095,7 +1096,11 @@ Quiz Modal
1095
  }
1096
 
1097
  .tutor-quiz-builder-row{
 
 
1098
  display: flex;
 
 
1099
  align-items: center;
1100
  margin-left: -10px;
1101
  margin-right: -10px;
@@ -1104,9 +1109,13 @@ Quiz Modal
1104
  .tutor-quiz-builder-col{
1105
  padding-left: 10px;
1106
  padding-right: 10px;
 
 
1107
  flex-grow: 1;
1108
  }
1109
  .tutor-quiz-builder-col.auto-width{
 
 
1110
  flex: 0 0 auto;
1111
  }
1112
 
@@ -1158,26 +1167,9 @@ Quiz Modal
1158
  }
1159
 
1160
 
1161
- /*.tutor-quiz-builder-form-row{*/
1162
- /*margin: 10px 0 25px;*/
1163
- /*}*/
1164
- /*.tutor-quiz-builder-form-row input[type="text"], .tutor-quiz-builder-form-row input[type="number"], .tutor-quiz-builder-form-row textarea{*/
1165
- /*border: 1px solid #DEDEDE;*/
1166
- /*margin: 0;*/
1167
- /*padding: 10px;*/
1168
- /*box-shadow: none;*/
1169
- /*border-radius: 3px;*/
1170
- /*}*/
1171
- /*.tutor-quiz-builder-form-row input[type="text"], .tutor-quiz-builder-form-row input[type="number"]{*/
1172
- /*height: 42px;*/
1173
- /*width: 100%;*/
1174
- /*}*/
1175
- /*#quiz-builder-tab-quiz-info input[type="text"], #quiz-builder-tab-quiz-info textarea{*/
1176
- /*width: 100%;*/
1177
- /*}*/
1178
-
1179
-
1180
  .tutor-quiz-builder-modal-control-btn-group{
 
 
1181
  display: flex;
1182
  margin-top: 20px;
1183
  }
@@ -1188,6 +1180,8 @@ Quiz Modal
1188
  }
1189
 
1190
  .tutor-quiz-builder-modal-control-btn-group .quiz-builder-btn-group-left {
 
 
1191
  flex: 1;
1192
  }
1193
  .tutor-quiz-builder-modal-control-btn-group .quiz-modal-tab-navigation-btn{
@@ -1208,16 +1202,7 @@ Quiz Modal
1208
  line-height: 16px;
1209
  margin-right: 3px;
1210
  }
1211
- /*.tutor-quiz-builder-modal-wrap label {*/
1212
- /*font-size: 14px;*/
1213
- /*font-weight: 500;*/
1214
- /*margin-bottom: 10px;*/
1215
- /*display: block;*/
1216
- /*}*/
1217
- /*.tutor-quiz-builder-form-cols-row {*/
1218
- /*display: flex;*/
1219
- /*margin-bottom: 20px;*/
1220
- /*}*/
1221
  .quiz-form-field-col{
1222
  margin-right: 20px;
1223
  }
@@ -1225,6 +1210,8 @@ Quiz Modal
1225
  width: 100%;
1226
  }
1227
  .quiz-modal-switch-field {
 
 
1228
  display: flex;
1229
  margin-top: 30px;
1230
  }
@@ -1232,12 +1219,7 @@ Quiz Modal
1232
  margin-right: 20px;
1233
  position: relative;
1234
  }
1235
- /*.switch-btn-title {*/
1236
- /*position: absolute;*/
1237
- /*left: 50px;*/
1238
- /*width: 300px;*/
1239
- /*top: -5px;*/
1240
- /*}*/
1241
  label.btn-switch input:checked + .btn-slider {
1242
  background-color: #4CD964;
1243
  }
@@ -1260,12 +1242,16 @@ label.btn-switch input:checked + .btn-slider {
1260
  width: 100%;
1261
  box-shadow: none;
1262
  background-color: #fff;
 
 
1263
  display: flex;
1264
  cursor: pointer;
1265
  box-sizing: border-box;
1266
  border-radius: 3px;
1267
  }
1268
  .tutor-select .select-header .lead-option {
 
 
1269
  flex: 1;
1270
  }
1271
  .tutor-select .select-header .select-dropdown{
@@ -1282,7 +1268,10 @@ label.btn-switch input:checked + .btn-slider {
1282
  position: absolute;
1283
  font-size: 0;
1284
  z-index: 9;
 
 
1285
  display: flex;
 
1286
  flex-wrap: wrap;
1287
  box-shadow: 0px 2px 10px rgba(0,0,0,.08);
1288
  top: 55px;
@@ -1308,6 +1297,7 @@ label.btn-switch input:checked + .btn-slider {
1308
  right: 11px;
1309
  position: absolute;
1310
  top: 50%;
 
1311
  transform: translateY(-50%);
1312
  }
1313
  i.tutor-icon-block {
@@ -1364,20 +1354,7 @@ i.tutor-icon-block.tutor-icon-plus-square-button, i.tutor-icon-block.tutor-icon-
1364
  .create-lesson-in-topic-btn i.tutor-icon-block.tutor-icon-plus{
1365
  background-color: #3057d5;
1366
  }
1367
- /*
1368
- .quiz-modal-field-wrap .question_options_group_wrap {
1369
- margin: 20px 0;
1370
- display: block;
1371
- clear: both;
1372
- }
1373
- .quiz-modal-field-wrap .add_question_option {
1374
- display: block;
1375
- }
1376
- .quiz-modal-field-wrap.label-inline label{*/
1377
- /*display: inline-block;*/
1378
- /*font-weight: 300;*/
1379
- /*margin-right: 20px;*/
1380
- /*}*/
1381
  a.back-to-quiz-questions-btn {
1382
  font-size: 16px;
1383
  font-weight: 300;
@@ -1389,14 +1366,9 @@ a.back-to-quiz-questions-btn {
1389
  padding: 20px;
1390
  }
1391
 
1392
- /*.tutor-quiz-builder-form-row .quiz-modal-form-help {*/
1393
- /*color: #A4A4A4;*/
1394
- /*font-style: italic;*/
1395
- /*font-weight: 300;*/
1396
- /*font-size: 12px;*/
1397
- /*margin-top: 10px !important;*/
1398
- /*}*/
1399
  #quiz-builder-tab-advanced-options .tutor-quiz-builder-form-cols-row .quiz-form-field-col:first-child{
 
 
1400
  flex: 0 0 150px;
1401
  }
1402
  .question-form-header {
@@ -1406,11 +1378,17 @@ a.back-to-quiz-questions-btn {
1406
  margin-bottom: 25px;
1407
  }
1408
  .quiz-builder-question-wrap {
 
 
1409
  display: flex;
1410
  margin-bottom: 15px;
1411
  }
1412
  .quiz-builder-question {
 
 
1413
  flex: 1;
 
 
1414
  display: flex;
1415
  background: #fff;
1416
  padding: 10px;
@@ -1429,6 +1407,8 @@ a.back-to-quiz-questions-btn {
1429
  line-height: 22px;
1430
  }
1431
  .quiz-builder-question .question-title {
 
 
1432
  flex: 1;
1433
  line-height: 22px;
1434
  text-overflow: ellipsis;
@@ -1437,6 +1417,8 @@ a.back-to-quiz-questions-btn {
1437
  margin-right: 10px;
1438
  }
1439
  .quiz-builder-question .question-icon {
 
 
1440
  flex: 0 0 155px;
1441
  }
1442
  .quiz-builder-qustion-trash a{
@@ -1476,6 +1458,7 @@ a.back-to-quiz-questions-btn {
1476
  right: 5px;
1477
  top: 50%;
1478
  margin: 0;
 
1479
  transform: translateY(-50%);
1480
  line-height: 34px;
1481
  width: 43px;
@@ -1483,23 +1466,30 @@ a.back-to-quiz-questions-btn {
1483
  border-radius: 4px;
1484
  color: #fff;
1485
  }
1486
- .tutor-quiz-builder-modal-wrap .tutor-field-type-slider .tutor-field-type-slider-value::before {
1487
  content: '';
1488
  position: absolute;
1489
  border: 7px solid transparent;
1490
  top: 50%;
1491
  border-right-color: #3057D5;
1492
  right: 100%;
 
1493
  transform: translateY(-50%);
1494
  }
1495
  .tutor-quiz-answer-wrap {
 
 
1496
  display: flex;
1497
  }
1498
  .tutor-quiz-answer {
1499
  background-color: #fff;
 
 
1500
  flex: 1;
1501
  padding: 10px 15px;
1502
  border: 1px solid #DEDEDE;
 
 
1503
  display: flex;
1504
  line-height: 22px;
1505
  border-radius: 3px;
@@ -1515,6 +1505,8 @@ a.back-to-quiz-questions-btn {
1515
  line-height: 44px;
1516
  }
1517
  span.tutor-quiz-answer-title {
 
 
1518
  flex: 1;
1519
  }
1520
  .tutor-quiz-answer-media .option-media-preview{
@@ -1547,6 +1539,8 @@ Tutor Media Upload
1547
 
1548
  .tutor-media-upload-wrap {
1549
  border: 1px solid #DEDEDE;
 
 
1550
  display: flex;
1551
  width: 130px;
1552
  }
@@ -1554,6 +1548,8 @@ Tutor Media Upload
1554
  max-width: 100%;
1555
  }
1556
  .tutor-media-preview {
 
 
1557
  flex: 1;
1558
  }
1559
  .tutor-media-upload-btn {
@@ -1586,10 +1582,15 @@ Tutor Media Upload
1586
  background-color: #f5f5f5;
1587
  padding: 10px;
1588
  margin-bottom: 2px;
 
 
1589
  display: flex;
1590
  }
1591
  .tutor-available-quizzes .added-quiz-item .quiz-name {
 
1592
  flex-basis: 0;
 
 
1593
  flex-grow: 1;
1594
  }
1595
  .tutor-add-quiz-button-wrap {
@@ -1634,6 +1635,8 @@ span.result-fail{
1634
  margin-bottom: 10px !important;
1635
  }
1636
  .attempt-property-value.value-display-flex{
 
 
1637
  display: flex;
1638
  }
1639
  .attempt-property-value.value-display-flex span{
@@ -1645,11 +1648,15 @@ span.result-fail{
1645
  font-weight: 500;
1646
  }
1647
  .attempt-view-top {
 
 
1648
  display: flex;
1649
  border-bottom: 1px solid #DCDFE5;
1650
  padding: 20px 0;
1651
  }
1652
  .attempt-view-bottom{
 
 
1653
  display: flex;
1654
  padding: 20px 0;
1655
  }
@@ -1715,7 +1722,11 @@ span.notice-excl {
1715
  border-radius: 50%;
1716
  }
1717
  .attempt-review-notice-wrap {
 
 
1718
  display: flex;
 
 
1719
  justify-content: space-between;
1720
  margin: 20px 0;
1721
  }
@@ -1725,6 +1736,7 @@ span.notice-excl {
1725
  .circle-arrow{
1726
  color: #3057D5;
1727
  font-weight: bold;
 
1728
  font-size: 1rem;
1729
  }
1730
  h2.attempt-review-title{
@@ -1750,6 +1762,8 @@ End Attempt
1750
  background-color: #F8F8F8;
1751
  padding: 5px;
1752
  margin-bottom: 2px;
 
 
1753
  display: inline-flex;
1754
  border: 1px solid #E8E8E8;
1755
  border-radius: 3px;
@@ -1764,7 +1778,10 @@ End Attempt
1764
  margin-right: 12px;
1765
  }
1766
  .tutor-course-available-instructors .added-instructor-item .instructor-name {
 
1767
  flex-basis: 0;
 
 
1768
  flex-grow: 1;
1769
  }
1770
  .tutor-instructor-delete-btn{
@@ -1772,9 +1789,13 @@ End Attempt
1772
  text-decoration: none;
1773
  }
1774
  .answer-image-matched-wrap {
 
 
1775
  display: flex;
1776
  }
1777
  .image-matching-item {
 
 
1778
  flex: 0 0 50px;
1779
  margin-right: 10px;
1780
  }
@@ -1811,7 +1832,6 @@ Updating Messsage
1811
  -webkit-font-smoothing: antialiased;
1812
  -moz-osx-font-smoothing: grayscale;
1813
  vertical-align: top;
1814
- /*color: #f56e28;*/
1815
  content: "\e91d";
1816
  -webkit-animation: rotation 2s infinite linear;
1817
  animation: rotation 2s infinite linear;
@@ -1881,8 +1901,6 @@ Lesson Edit Modal
1881
  font-family: 'tutor';
1882
  margin-right: 5px;
1883
  content: "\e91d";
1884
- -moz-animation: spin 2s infinite linear;
1885
- -o-animation: spin 2s infinite linear;
1886
  -webkit-animation: spin 2s infinite linear;
1887
  animation: spin 2s infinite linear;
1888
  display: inline-block;
@@ -1898,6 +1916,8 @@ Lesson Edit Modal
1898
  Withdraw table
1899
  */
1900
  .withdraw-method-data-row {
 
 
1901
  display: flex;
1902
  }
1903
  span.withdraw-method-label {
28
  .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
29
  .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
30
  .ui-slider-vertical .ui-slider-range-max { top: 0; }
31
+
32
  /*----------------------------------
33
  Component containers
34
  ----------------------------------*/
44
  ----------------------------------*/
45
  .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee; color: #363636; }
46
 
 
 
 
 
 
47
 
 
48
  .tutor-option-nav-tabs li{
49
  position: relative;
50
  display: inline-block;
203
  font-size: 15px;
204
  }
205
  #tutor-course-topics .tutor-lesson-top{
206
+ display: -webkit-box;
207
+ display: -ms-flexbox;
208
  display: flex;
209
  font-size: 14px;
210
  }
211
  #tutor-course-topics .tutor-lesson-top .open-tutor-lesson-modal, .tutor-quiz .open-tutor-quiz-modal{
212
+ -webkit-box-flex: 1;
213
+ -ms-flex: 1;
214
  flex: 1;
215
  }
216
  #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{
293
  cursor: pointer;
294
  }
295
  .tutor-topic-title{
296
+ display: -webkit-box;
297
+ display: -ms-flexbox;
298
  display: flex;
299
  font-size: 16px;
300
  font-weight: 300;
307
  }
308
 
309
  .tutor-topic-title .topic-inner-title{
310
+ -webkit-box-flex: 1;
311
+ -ms-flex: 1 0 auto;
312
  flex: 1 0 auto;
313
  cursor: pointer;
314
  }
521
  background-color: transparent;
522
  }
523
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
524
  .tutor-text-avatar{
525
  border-radius: 50%;
 
526
  width: 40px;
527
  height: 40px;
528
  text-align: center;
532
  font-size: 14px;
533
  }
534
  .tutor_original_question{
535
+ display: -webkit-box;
536
+ display: -ms-flexbox;
537
  display: flex;
538
  margin-bottom: 5px;
539
  padding: 20px;
540
  }
541
  .tutor_original_question .question-left{
542
+ -webkit-box-flex: 0;
543
+ -ms-flex: 0 0 60px;
544
  flex: 0 0 60px;
545
  }
546
  .tutor_original_question .question-left img{
653
  position: absolute;
654
  right: 0;
655
  top: 0;
656
+ -webkit-transition: .4s;
657
  transition: .4s;
658
  }
659
  .btn-slider:before {
663
  height: 16px;
664
  left: 4px;
665
  position: absolute;
666
+ -webkit-transition: .4s;
667
  transition: .4s;
668
  width: 16px;
669
  }
671
  background-color: #0073aa;
672
  }
673
  input:checked + .btn-slider:before {
674
+ -webkit-transform: translateX(16px);
675
  transform: translateX(16px);
676
  }
677
  .btn-slider.btn-round {
681
  border-radius: 50%;
682
  }
683
 
 
 
684
  /**
685
  Quiz-question
686
  */
689
  margin-bottom: 20px;
690
  }
691
  .quiz-question-flex-wrap, .tutor-flex-row{
692
+ display: -webkit-box;
693
+ display: -ms-flexbox;
694
  display: flex;
695
+ -webkit-box-orient: horizontal;
696
+ -webkit-box-direction: normal;
697
+ -ms-flex-direction: row;
698
  flex-direction: row;
699
  }
700
  .tutor-flex-col{
769
  text-decoration: none;
770
  color: #FF0000;
771
  }
 
 
772
  .add_answer_option_wrap {
773
  margin: 20px 0;
774
  }
 
775
  .tutor-add-question-wrap{
776
  margin: 20px 0;
777
  background-color: #f4f4f4;
805
  margin: 1px 0;
806
  }
807
  .tutor-question-item-head{
808
+ display: -webkit-box;
809
+ display: -ms-flexbox;
810
  display: flex;
811
+ -webkit-box-orient: horizontal;
812
+ -webkit-box-direction: normal;
813
+ -ms-flex-direction: row;
814
  flex-direction: row;
815
  line-height: 50px;
816
+ -webkit-box-pack: justify;
817
+ -ms-flex-pack: justify;
818
  justify-content: space-between;
 
819
  }
820
 
821
  .tutor-question-item-head > div{
822
  padding: 0 10px;
823
  }
824
  .tutor-question-item-head .question-title {
825
+ -ms-flex-preferred-size: 0;
826
  flex-basis: 0;
827
+ -webkit-box-flex: 1;
828
+ -ms-flex-positive: 1;
829
  flex-grow: 1;
830
  }
831
  .tutor-question-item-head i{
877
 
878
  .tutor-modal-wrap {
879
  opacity: 0;
880
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
881
  display: none;
882
  position: fixed;
883
  top: 0;
888
  background-color: rgba(0, 0, 0, 0.5);
889
  }
890
  .tutor-modal-wrap.show {
891
+ display: -webkit-box;
892
+ display: -ms-flexbox;
893
  display: flex;
894
  opacity: 1;
895
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
896
  z-index: 99999;
897
+ -webkit-box-align: center;
898
+ -ms-flex-align: center;
899
  align-items: center;
900
+ -webkit-box-pack: center;
901
+ -ms-flex-pack: center;
902
  justify-content: center;
903
  }
904
  .tutor-modal-wrap.loading .tutor-modal-content:before {
920
  margin: 0;
921
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
922
  position: relative;
923
+ -webkit-transition: all 200ms ease-out;
924
  transition: all 200ms ease-out;
925
  width: 90%;
926
  }
936
  margin: 0 0 15px;
937
  }
938
  .tutor-modal-wrap .modal-header {
939
+ display: -webkit-box;
940
+ display: -ms-flexbox;
941
  display: flex;
942
  }
943
  .tutor-modal-wrap .search-bar {
944
+ -ms-flex-preferred-size: 0;
945
  flex-basis: 0;
946
+ -webkit-box-flex: 1;
947
+ -ms-flex-positive: 1;
948
  flex-grow: 1;
949
  padding-top: 10px;
950
  padding-left: 20px;
967
  font-size: 25px;
968
  }
969
  .tutor-modal-wrap.tutor-quiz-builder-modal-wrap .modal-title {
970
+ -ms-flex-preferred-size: 0;
971
  flex-basis: 0;
972
+ -webkit-box-flex: 1;
973
+ -ms-flex-positive: 1;
974
  flex-grow: 1;
975
  }
976
  .tutor-modal-wrap.tutor-quiz-builder-modal-wrap .modal-close-wrap a.modal-close-btn {
1042
  .tutor-quiz-builder-form-row .quiz-form-warning {
1043
  color: #e88e06;
1044
  }
1045
+
 
 
1046
  .tutor-quiz-question-answers-form {
1047
  background-color: #fff;
1048
  padding: 20px;
1049
+ -webkit-transition: all 0.3s cubic-bezier(.25,.8,.25,1);
1050
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
1051
  border: 1px solid #DEDEDE;
1052
  border-radius: 3px;
1087
  font-size: 12px;
1088
  margin-top: 7px;
1089
  }
1090
+
1091
  .tutor-quiz-builder-group > h4{
1092
  font-size: 14px;
1093
  color: #393C40;
1096
  }
1097
 
1098
  .tutor-quiz-builder-row{
1099
+ display: -webkit-box;
1100
+ display: -ms-flexbox;
1101
  display: flex;
1102
+ -webkit-box-align: center;
1103
+ -ms-flex-align: center;
1104
  align-items: center;
1105
  margin-left: -10px;
1106
  margin-right: -10px;
1109
  .tutor-quiz-builder-col{
1110
  padding-left: 10px;
1111
  padding-right: 10px;
1112
+ -webkit-box-flex: 1;
1113
+ -ms-flex-positive: 1;
1114
  flex-grow: 1;
1115
  }
1116
  .tutor-quiz-builder-col.auto-width{
1117
+ -webkit-box-flex: 0;
1118
+ -ms-flex: 0 0 auto;
1119
  flex: 0 0 auto;
1120
  }
1121
 
1167
  }
1168
 
1169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1170
  .tutor-quiz-builder-modal-control-btn-group{
1171
+ display: -webkit-box;
1172
+ display: -ms-flexbox;
1173
  display: flex;
1174
  margin-top: 20px;
1175
  }
1180
  }
1181
 
1182
  .tutor-quiz-builder-modal-control-btn-group .quiz-builder-btn-group-left {
1183
+ -webkit-box-flex: 1;
1184
+ -ms-flex: 1;
1185
  flex: 1;
1186
  }
1187
  .tutor-quiz-builder-modal-control-btn-group .quiz-modal-tab-navigation-btn{
1202
  line-height: 16px;
1203
  margin-right: 3px;
1204
  }
1205
+
 
 
 
 
 
 
 
 
 
1206
  .quiz-form-field-col{
1207
  margin-right: 20px;
1208
  }
1210
  width: 100%;
1211
  }
1212
  .quiz-modal-switch-field {
1213
+ display: -webkit-box;
1214
+ display: -ms-flexbox;
1215
  display: flex;
1216
  margin-top: 30px;
1217
  }
1219
  margin-right: 20px;
1220
  position: relative;
1221
  }
1222
+
 
 
 
 
 
1223
  label.btn-switch input:checked + .btn-slider {
1224
  background-color: #4CD964;
1225
  }
1242
  width: 100%;
1243
  box-shadow: none;
1244
  background-color: #fff;
1245
+ display: -webkit-box;
1246
+ display: -ms-flexbox;
1247
  display: flex;
1248
  cursor: pointer;
1249
  box-sizing: border-box;
1250
  border-radius: 3px;
1251
  }
1252
  .tutor-select .select-header .lead-option {
1253
+ -webkit-box-flex: 1;
1254
+ -ms-flex: 1;
1255
  flex: 1;
1256
  }
1257
  .tutor-select .select-header .select-dropdown{
1268
  position: absolute;
1269
  font-size: 0;
1270
  z-index: 9;
1271
+ display: -webkit-box;
1272
+ display: -ms-flexbox;
1273
  display: flex;
1274
+ -ms-flex-wrap: wrap;
1275
  flex-wrap: wrap;
1276
  box-shadow: 0px 2px 10px rgba(0,0,0,.08);
1277
  top: 55px;
1297
  right: 11px;
1298
  position: absolute;
1299
  top: 50%;
1300
+ -webkit-transform: translateY(-50%);
1301
  transform: translateY(-50%);
1302
  }
1303
  i.tutor-icon-block {
1354
  .create-lesson-in-topic-btn i.tutor-icon-block.tutor-icon-plus{
1355
  background-color: #3057d5;
1356
  }
1357
+
 
 
 
 
 
 
 
 
 
 
 
 
 
1358
  a.back-to-quiz-questions-btn {
1359
  font-size: 16px;
1360
  font-weight: 300;
1366
  padding: 20px;
1367
  }
1368
 
 
 
 
 
 
 
 
1369
  #quiz-builder-tab-advanced-options .tutor-quiz-builder-form-cols-row .quiz-form-field-col:first-child{
1370
+ -webkit-box-flex: 0;
1371
+ -ms-flex: 0 0 150px;
1372
  flex: 0 0 150px;
1373
  }
1374
  .question-form-header {
1378
  margin-bottom: 25px;
1379
  }
1380
  .quiz-builder-question-wrap {
1381
+ display: -webkit-box;
1382
+ display: -ms-flexbox;
1383
  display: flex;
1384
  margin-bottom: 15px;
1385
  }
1386
  .quiz-builder-question {
1387
+ -webkit-box-flex: 1;
1388
+ -ms-flex: 1;
1389
  flex: 1;
1390
+ display: -webkit-box;
1391
+ display: -ms-flexbox;
1392
  display: flex;
1393
  background: #fff;
1394
  padding: 10px;
1407
  line-height: 22px;
1408
  }
1409
  .quiz-builder-question .question-title {
1410
+ -webkit-box-flex: 1;
1411
+ -ms-flex: 1;
1412
  flex: 1;
1413
  line-height: 22px;
1414
  text-overflow: ellipsis;
1417
  margin-right: 10px;
1418
  }
1419
  .quiz-builder-question .question-icon {
1420
+ -webkit-box-flex: 0;
1421
+ -ms-flex: 0 0 155px;
1422
  flex: 0 0 155px;
1423
  }
1424
  .quiz-builder-qustion-trash a{
1458
  right: 5px;
1459
  top: 50%;
1460
  margin: 0;
1461
+ -webkit-transform: translateY(-50%);
1462
  transform: translateY(-50%);
1463
  line-height: 34px;
1464
  width: 43px;
1466
  border-radius: 4px;
1467
  color: #fff;
1468
  }
1469
+ .tutor-quiz-builder-modal-wrap .tutor-field-type-slider .tutor-field-type-slider-value:before {
1470
  content: '';
1471
  position: absolute;
1472
  border: 7px solid transparent;
1473
  top: 50%;
1474
  border-right-color: #3057D5;
1475
  right: 100%;
1476
+ -webkit-transform: translateY(-50%);
1477
  transform: translateY(-50%);
1478
  }
1479
  .tutor-quiz-answer-wrap {
1480
+ display: -webkit-box;
1481
+ display: -ms-flexbox;
1482
  display: flex;
1483
  }
1484
  .tutor-quiz-answer {
1485
  background-color: #fff;
1486
+ -webkit-box-flex: 1;
1487
+ -ms-flex: 1;
1488
  flex: 1;
1489
  padding: 10px 15px;
1490
  border: 1px solid #DEDEDE;
1491
+ display: -webkit-box;
1492
+ display: -ms-flexbox;
1493
  display: flex;
1494
  line-height: 22px;
1495
  border-radius: 3px;
1505
  line-height: 44px;
1506
  }
1507
  span.tutor-quiz-answer-title {
1508
+ -webkit-box-flex: 1;
1509
+ -ms-flex: 1;
1510
  flex: 1;
1511
  }
1512
  .tutor-quiz-answer-media .option-media-preview{
1539
 
1540
  .tutor-media-upload-wrap {
1541
  border: 1px solid #DEDEDE;
1542
+ display: -webkit-box;
1543
+ display: -ms-flexbox;
1544
  display: flex;
1545
  width: 130px;
1546
  }
1548
  max-width: 100%;
1549
  }
1550
  .tutor-media-preview {
1551
+ -webkit-box-flex: 1;
1552
+ -ms-flex: 1;
1553
  flex: 1;
1554
  }
1555
  .tutor-media-upload-btn {
1582
  background-color: #f5f5f5;
1583
  padding: 10px;
1584
  margin-bottom: 2px;
1585
+ display: -webkit-box;
1586
+ display: -ms-flexbox;
1587
  display: flex;
1588
  }
1589
  .tutor-available-quizzes .added-quiz-item .quiz-name {
1590
+ -ms-flex-preferred-size: 0;
1591
  flex-basis: 0;
1592
+ -webkit-box-flex: 1;
1593
+ -ms-flex-positive: 1;
1594
  flex-grow: 1;
1595
  }
1596
  .tutor-add-quiz-button-wrap {
1635
  margin-bottom: 10px !important;
1636
  }
1637
  .attempt-property-value.value-display-flex{
1638
+ display: -webkit-box;
1639
+ display: -ms-flexbox;
1640
  display: flex;
1641
  }
1642
  .attempt-property-value.value-display-flex span{
1648
  font-weight: 500;
1649
  }
1650
  .attempt-view-top {
1651
+ display: -webkit-box;
1652
+ display: -ms-flexbox;
1653
  display: flex;
1654
  border-bottom: 1px solid #DCDFE5;
1655
  padding: 20px 0;
1656
  }
1657
  .attempt-view-bottom{
1658
+ display: -webkit-box;
1659
+ display: -ms-flexbox;
1660
  display: flex;
1661
  padding: 20px 0;
1662
  }
1722
  border-radius: 50%;
1723
  }
1724
  .attempt-review-notice-wrap {
1725
+ display: -webkit-box;
1726
+ display: -ms-flexbox;
1727
  display: flex;
1728
+ -webkit-box-pack: justify;
1729
+ -ms-flex-pack: justify;
1730
  justify-content: space-between;
1731
  margin: 20px 0;
1732
  }
1736
  .circle-arrow{
1737
  color: #3057D5;
1738
  font-weight: bold;
1739
+ font-size: 16px;
1740
  font-size: 1rem;
1741
  }
1742
  h2.attempt-review-title{
1762
  background-color: #F8F8F8;
1763
  padding: 5px;
1764
  margin-bottom: 2px;
1765
+ display: -webkit-inline-box;
1766
+ display: -ms-inline-flexbox;
1767
  display: inline-flex;
1768
  border: 1px solid #E8E8E8;
1769
  border-radius: 3px;
1778
  margin-right: 12px;
1779
  }
1780
  .tutor-course-available-instructors .added-instructor-item .instructor-name {
1781
+ -ms-flex-preferred-size: 0;
1782
  flex-basis: 0;
1783
+ -webkit-box-flex: 1;
1784
+ -ms-flex-positive: 1;
1785
  flex-grow: 1;
1786
  }
1787
  .tutor-instructor-delete-btn{
1789
  text-decoration: none;
1790
  }
1791
  .answer-image-matched-wrap {
1792
+ display: -webkit-box;
1793
+ display: -ms-flexbox;
1794
  display: flex;
1795
  }
1796
  .image-matching-item {
1797
+ -webkit-box-flex: 0;
1798
+ -ms-flex: 0 0 50px;
1799
  flex: 0 0 50px;
1800
  margin-right: 10px;
1801
  }
1832
  -webkit-font-smoothing: antialiased;
1833
  -moz-osx-font-smoothing: grayscale;
1834
  vertical-align: top;
 
1835
  content: "\e91d";
1836
  -webkit-animation: rotation 2s infinite linear;
1837
  animation: rotation 2s infinite linear;
1901
  font-family: 'tutor';
1902
  margin-right: 5px;
1903
  content: "\e91d";
 
 
1904
  -webkit-animation: spin 2s infinite linear;
1905
  animation: spin 2s infinite linear;
1906
  display: inline-block;
1916
  Withdraw table
1917
  */
1918
  .withdraw-method-data-row {
1919
+ display: -webkit-box;
1920
+ display: -ms-flexbox;
1921
  display: flex;
1922
  }
1923
  span.withdraw-method-label {
classes/Template.php CHANGED
@@ -125,7 +125,9 @@ class Template extends Tutor_Base {
125
  if ($wp_query->is_single && ! empty($wp_query->query_vars['post_type']) && $wp_query->query_vars['post_type'] === $this->course_post_type){
126
  $student_must_login_to_view_course = tutor_utils()->get_option('student_must_login_to_view_course');
127
  if ($student_must_login_to_view_course){
128
- return tutor_get_template('login');
 
 
129
  }
130
 
131
  if (empty( $wp_query->query_vars['course_subpage'])) {
125
  if ($wp_query->is_single && ! empty($wp_query->query_vars['post_type']) && $wp_query->query_vars['post_type'] === $this->course_post_type){
126
  $student_must_login_to_view_course = tutor_utils()->get_option('student_must_login_to_view_course');
127
  if ($student_must_login_to_view_course){
128
+ if ( ! is_user_logged_in() ) {
129
+ return tutor_get_template( 'login' );
130
+ }
131
  }
132
 
133
  if (empty( $wp_query->query_vars['course_subpage'])) {
classes/Tutor.php CHANGED
@@ -392,6 +392,7 @@ final class Tutor{
392
 
393
  $administrator = get_role( 'administrator' );
394
  if ( $administrator ) {
 
395
  $administrator_cap = array (
396
  'manage_tutor',
397
  );
@@ -402,6 +403,14 @@ final class Tutor{
402
  $administrator->add_cap( $cap );
403
  }
404
  }
 
 
 
 
 
 
 
 
405
  }
406
 
407
  /**
392
 
393
  $administrator = get_role( 'administrator' );
394
  if ( $administrator ) {
395
+
396
  $administrator_cap = array (
397
  'manage_tutor',
398
  );
403
  $administrator->add_cap( $cap );
404
  }
405
  }
406
+
407
+ /**
408
+ * Add Instructor role to administrator
409
+ */
410
+ if (current_user_can('administrator')){
411
+ tutor_utils()->add_instructor_role(get_current_user_id());
412
+ }
413
+
414
  }
415
 
416
  /**
classes/Utils.php CHANGED
@@ -3555,11 +3555,20 @@ class Utils {
3555
  */
3556
  public function user_profile_permalinks(){
3557
  $permalinks = array(
3558
- 'enrolled_course' => __('Enrolled Course', 'tutor'),
3559
  'courses_taken' => __('Courses Taken', 'tutor'),
3560
- 'reviews_wrote' => __('Reviews Written', 'tutor'),
3561
  );
3562
 
 
 
 
 
 
 
 
 
 
 
 
3563
  return apply_filters('tutor_public_profile/permalinks', $permalinks);
3564
  }
3565
 
3555
  */
3556
  public function user_profile_permalinks(){
3557
  $permalinks = array(
 
3558
  'courses_taken' => __('Courses Taken', 'tutor'),
 
3559
  );
3560
 
3561
+ $show_enrolled_course = tutor_utils()->get_option('show_courses_completed_by_student');
3562
+ $enable_show_reviews_wrote = tutor_utils()->get_option('students_own_review_show_at_profile');
3563
+
3564
+ if ($show_enrolled_course){
3565
+ $permalinks['enrolled_course'] = __('Enrolled Course', 'tutor');
3566
+ }
3567
+ if ($enable_show_reviews_wrote){
3568
+ $permalinks['reviews_wrote'] = __('Reviews Written', 'tutor');
3569
+ }
3570
+
3571
+
3572
  return apply_filters('tutor_public_profile/permalinks', $permalinks);
3573
  }
3574
 
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.1
7
  Requires PHP: 5.4.0
8
- Stable tag: 1.2.12
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -206,6 +206,13 @@ Tutor enables you to use any third party plugins without facing any compatibilit
206
 
207
  == Changelog ==
208
 
 
 
 
 
 
 
 
209
  = 1.2.12 - 25 April, 2019 =
210
 
211
  * Added: Synced role with tutor instructor role when changing it from WP User Edit page
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.4.0
8
+ Stable tag: 1.2.13
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.2.13 - 26 April, 2019 =
210
+
211
+ * Added: Instructor role to the administrator during plugin activation
212
+ * Fixed: Course Permission options settings, it was shown always log-in page
213
+ * Fixed: Enable students to show reviews wrote on their profile from settings
214
+ * Fixed: Show completed course settings
215
+
216
  = 1.2.12 - 25 April, 2019 =
217
 
218
  * Added: Synced role with tutor instructor role when changing it from WP User Edit page
templates/profile/enrolled_course.php CHANGED
@@ -1,4 +1,12 @@
1
  <?php
 
 
 
 
 
 
 
 
2
  $user_name = sanitize_text_field(get_query_var('tutor_student_username'));
3
  $get_user = tutor_utils()->get_user_by_login($user_name);
4
  $user_id = $get_user->ID;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) )
3
+ exit;
4
+
5
+ $show_enrolled_course = tutor_utils()->get_option('show_courses_completed_by_student');
6
+ if ( ! $show_enrolled_course){
7
+ return;
8
+ }
9
+
10
  $user_name = sanitize_text_field(get_query_var('tutor_student_username'));
11
  $get_user = tutor_utils()->get_user_by_login($user_name);
12
  $user_id = $get_user->ID;
templates/profile/reviews_wrote.php CHANGED
@@ -1,4 +1,12 @@
1
  <?php
 
 
 
 
 
 
 
 
2
  $user_name = sanitize_text_field(get_query_var('tutor_student_username'));
3
  $get_user = tutor_utils()->get_user_by_login($user_name);
4
  $user_id = $get_user->ID;
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) )
3
+ exit;
4
+
5
+ $enable_show_reviews_wrote = tutor_utils()->get_option('students_own_review_show_at_profile');
6
+ if ( ! $enable_show_reviews_wrote){
7
+ return;
8
+ }
9
+
10
  $user_name = sanitize_text_field(get_query_var('tutor_student_username'));
11
  $get_user = tutor_utils()->get_user_by_login($user_name);
12
  $user_id = $get_user->ID;
tutor.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Tutor LMS
4
  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 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.2.12
8
  Author URI: http://themeum.com
9
  Requires at least: 4.5
10
  Tested up to: 5.1
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) )
17
  /**
18
  * Defined the tutor main file
19
  */
20
- define('TUTOR_VERSION', '1.2.12');
21
  define('TUTOR_FILE', __FILE__);
22
 
23
 
4
  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 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.2.13
8
  Author URI: http://themeum.com
9
  Requires at least: 4.5
10
  Tested up to: 5.1
17
  /**
18
  * Defined the tutor main file
19
  */
20
+ define('TUTOR_VERSION', '1.2.13');
21
  define('TUTOR_FILE', __FILE__);
22
 
23