LearnPress – WordPress LMS Plugin - Version 0.9.20

Version Description

  • Removed some bad source codes.
  • Made LearnPress custom post slugs translatable.
  • Improved questions form.
  • Fixed problem with quiz setting "Show correct answer".
  • Fixed missing lessons navigation for no-require-enrolled courses.
  • Updated default language file.
Download this release

Release Info

Developer tunnhn
Plugin Icon 128x128 LearnPress – WordPress LMS Plugin
Version 0.9.20
Comparing to
See all releases

Version 0.9.20

Files changed (105) hide show
  1. assets/css/learnpress-admin-compat.css +191 -0
  2. assets/css/learnpress-admin.css +702 -0
  3. assets/css/learnpress.css +514 -0
  4. assets/css/select2/select2-spinner.gif +0 -0
  5. assets/css/select2/select2.css +732 -0
  6. assets/css/select2/select2.png +0 -0
  7. assets/css/select2/select2x2.png +0 -0
  8. assets/css/select2/spinner.gif +0 -0
  9. assets/css/shortcode-style/learnpress-archive-course.css +26 -0
  10. assets/css/timer.css +0 -0
  11. assets/css/tipsy.css +25 -0
  12. assets/css/toastr.css +197 -0
  13. assets/fonts/Sumana-Regular.ttf +0 -0
  14. assets/images/ajax-loader.gif +0 -0
  15. assets/images/ajaxload.gif +0 -0
  16. assets/images/icon-128x128.png +0 -0
  17. assets/images/openhand.cur +0 -0
  18. assets/images/spinner.gif +0 -0
  19. assets/js/chart.min.js +10 -0
  20. assets/js/custom.chart.js +32 -0
  21. assets/js/global.js +27 -0
  22. assets/js/jquery.alert.js +210 -0
  23. assets/js/jquery.appear.js +102 -0
  24. assets/js/jquery.block-ui.js +26 -0
  25. assets/js/jquery.timer.js +84 -0
  26. assets/js/jquery.tipsy.js +258 -0
  27. assets/js/learnpress-admin.js +655 -0
  28. assets/js/learnpress-embed-button.js +22 -0
  29. assets/js/learnpress.js +535 -0
  30. assets/js/learnpress.min.js +534 -0
  31. assets/js/pointer.js +17 -0
  32. assets/js/single-quiz.js +476 -0
  33. assets/js/toJSON.js +100 -0
  34. assets/js/toastr.js +415 -0
  35. dummy-data/learnpress-how-to-use-learnpress.xml +1073 -0
  36. inc/abstracts/abstract-lp-course.php +155 -0
  37. inc/abstracts/abstract-lp-user.php +298 -0
  38. inc/abstracts/abstract-lpr-question-type.php +577 -0
  39. inc/admin/class-lpr-plugin-install-list-table.php +421 -0
  40. inc/admin/class-lpr-upgrader.php +176 -0
  41. inc/admin/class.lpr-admin-ajax.php +311 -0
  42. inc/admin/class.lpr-admin-assets.php +146 -0
  43. inc/admin/class.lpr-admin-settings.php +196 -0
  44. inc/admin/class.lpr-admin.php +83 -0
  45. inc/admin/class.lpr-email.php +100 -0
  46. inc/admin/class.lpr-profile.php +154 -0
  47. inc/admin/includes/class-markdown-parse.php +2932 -0
  48. inc/admin/includes/class-readme-parse.php +329 -0
  49. inc/admin/lpr-admin-functions.php +598 -0
  50. inc/admin/meta-boxes/css/course.css +249 -0
  51. inc/admin/meta-boxes/css/question.css +66 -0
  52. inc/admin/meta-boxes/fields/class.course-lesson-quiz.php +512 -0
  53. inc/admin/meta-boxes/fields/class.question.php +106 -0
  54. inc/admin/meta-boxes/fields/class.quiz-question.php +182 -0
  55. inc/admin/meta-boxes/fields/class.teacher.php +128 -0
  56. inc/admin/meta-boxes/js/course.js +808 -0
  57. inc/admin/meta-boxes/js/quiz-question.js +33 -0
  58. inc/admin/pointers/pointers.php +74 -0
  59. inc/admin/settings/class.lpr-settings-base.php +83 -0
  60. inc/admin/settings/class.lpr-settings-emails.php +264 -0
  61. inc/admin/settings/class.lpr-settings-general.php +121 -0
  62. inc/admin/settings/class.lpr-settings-pages.php +187 -0
  63. inc/admin/settings/class.lpr-settings-payment.php +170 -0
  64. inc/admin/statistics/courses.php +19 -0
  65. inc/admin/statistics/students.php +41 -0
  66. inc/admin/sub-menus/add-ons.php +313 -0
  67. inc/admin/sub-menus/settings.php +62 -0
  68. inc/admin/sub-menus/statistics.php +46 -0
  69. inc/cart/class.lpr-cart.php +136 -0
  70. inc/class-lp-checkout.php +181 -0
  71. inc/class-lp-course-simple.php +4 -0
  72. inc/class-lp-course.php +87 -0
  73. inc/class-lp-order.php +178 -0
  74. inc/class-lp-quiz.php +153 -0
  75. inc/class-lpr-question-factory.php +256 -0
  76. inc/class.lpr-ajax.php +663 -0
  77. inc/class.lpr-assets.php +162 -0
  78. inc/class.lpr-autoloader.php +87 -0
  79. inc/class.lpr-install.php +59 -0
  80. inc/class.lpr-multi-language.php +53 -0
  81. inc/class.lpr-session.php +81 -0
  82. inc/class.lpr-settings.php +114 -0
  83. inc/class.lpr-shortcodes.php +152 -0
  84. inc/custom-post-types/course.php +420 -0
  85. inc/custom-post-types/lesson.php +332 -0
  86. inc/custom-post-types/order.php +558 -0
  87. inc/custom-post-types/question.php +216 -0
  88. inc/custom-post-types/quiz.php +394 -0
  89. inc/debug.php +24 -0
  90. inc/gateways/class.lpr-gateway-abstract.php +35 -0
  91. inc/gateways/class.lpr-gateways.php +77 -0
  92. inc/gateways/paypal/class.lpr-gateway-paypal.php +574 -0
  93. inc/gateways/paypal/paypal-ipn/cert/api_cert_chain.crt +54 -0
  94. inc/gateways/paypal/paypal-ipn/ipn.php +154 -0
  95. inc/gateways/paypal/paypal-ipn/ipn_errors.log +1 -0
  96. inc/gateways/paypal/paypal-ipn/ipnlistener.php +328 -0
  97. inc/lp-order-functions.php +40 -0
  98. inc/lpr-add-on-functions.php +696 -0
  99. inc/lpr-anonymous-user-quiz-functions.php +318 -0
  100. inc/lpr-core-functions.php +1831 -0
  101. inc/lpr-course-functions.php +2618 -0
  102. inc/lpr-deprecated-functions.php +4 -0
  103. inc/lpr-js-template.php +27 -0
  104. inc/lpr-quiz-functions.php +392 -0
  105. inc/lpr-template-functions.php +771 -0
assets/css/learnpress-admin-compat.css ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* wp version 3.9 */
2
+ .plugin-group {
3
+ overflow: hidden; /* clearfix */
4
+ margin-top: 1.5em;
5
+ }
6
+
7
+ .plugin-group h3 {
8
+ margin-top: 0;
9
+ }
10
+
11
+ .plugin-card {
12
+ float: left;
13
+ margin: 0 8px 16px;
14
+ width: 48.5%;
15
+ width: -webkit-calc( 50% - 8px );
16
+ width: calc( 50% - 8px );
17
+ background-color: #fff;
18
+ border: 1px solid #dedede;
19
+ -webkit-box-sizing: border-box;
20
+ -moz-box-sizing: border-box;
21
+ box-sizing: border-box;
22
+ }
23
+
24
+ .plugin-card:nth-child(odd) {
25
+ clear: both;
26
+ margin-left: 0;
27
+ }
28
+
29
+ .plugin-card:nth-child(even) {
30
+ margin-right: 0;
31
+ }
32
+
33
+ @media screen and ( min-width: 1600px ) {
34
+ .plugin-card {
35
+ width: 30%;
36
+ width: -webkit-calc( 33.1% - 8px );
37
+ width: calc( 33.1% - 8px );
38
+ }
39
+
40
+ .plugin-card:nth-child(odd) {
41
+ clear: none;
42
+ margin-left: 8px;
43
+ }
44
+
45
+ .plugin-card:nth-child(even) {
46
+ margin-right: 8px;
47
+ }
48
+
49
+ .plugin-card:nth-child(3n+1) {
50
+ clear: both;
51
+ margin-left: 0;
52
+ }
53
+
54
+ .plugin-card:nth-child(3n) {
55
+ margin-right: 0;
56
+ }
57
+ }
58
+
59
+ @media screen and ( max-width: 782px ) {
60
+ .plugin-card {
61
+ margin-left: 0;
62
+ margin-right: 0;
63
+ width: 100%;
64
+ }
65
+ }
66
+
67
+ .plugin-card-top {
68
+ position: relative;
69
+ padding: 20px 20px 10px;
70
+ min-height: 135px;
71
+ }
72
+
73
+ div.action-links,
74
+ .plugin-action-buttons {
75
+ margin: 0; /* Override existing margins */
76
+ }
77
+
78
+ .plugin-card h4 {
79
+ margin: 0 0 12px;
80
+ font-size: 18px;
81
+ line-height: 1.3;
82
+ }
83
+
84
+ .plugin-card .name,
85
+ .plugin-card .desc {
86
+ margin-left: 148px; /* icon + margin */
87
+ margin-right: 120px; /* action links */
88
+ }
89
+
90
+ .plugin-card .action-links {
91
+ position: absolute;
92
+ top: 20px;
93
+ right: 20px;
94
+ width: 120px;
95
+ }
96
+
97
+ .plugin-action-buttons {
98
+ clear: right;
99
+ float: right;
100
+ margin-left: 2em;
101
+ margin-bottom: 1em;
102
+ text-align: right;
103
+ }
104
+
105
+ .plugin-action-buttons li {
106
+ margin-bottom: 10px;
107
+ }
108
+
109
+ .plugin-card-bottom {
110
+ clear: both;
111
+ padding: 12px 20px;
112
+ background-color: #fafafa;
113
+ border-top: 1px solid #dedede;
114
+ overflow: hidden;
115
+ }
116
+
117
+ .plugin-card-bottom .star-rating {
118
+ display: inline;
119
+ }
120
+
121
+ .plugin-card .column-rating {
122
+ line-height: 23px;
123
+ }
124
+
125
+ .plugin-card .column-rating,
126
+ .plugin-card .column-updated {
127
+ margin-bottom: 4px;
128
+ }
129
+
130
+ .plugin-card .column-rating,
131
+ .plugin-card .column-downloaded {
132
+ float: left;
133
+ clear: left;
134
+ max-width: 180px;
135
+ }
136
+
137
+ .plugin-card .column-updated,
138
+ .plugin-card .column-compatibility {
139
+ text-align: right;
140
+ float: right;
141
+ clear: right;
142
+ width: 65%;
143
+ width: -webkit-calc( 100% - 180px );
144
+ width: calc( 100% - 180px );
145
+ }
146
+
147
+ .plugin-card .column-compatibility span:before {
148
+ font: normal 20px/.5 'dashicons';
149
+ speak: none;
150
+ display: inline-block;
151
+ padding: 0;
152
+ top: 4px;
153
+ left: -2px;
154
+ position: relative;
155
+ vertical-align: top;
156
+ -webkit-font-smoothing: antialiased;
157
+ -moz-osx-font-smoothing: grayscale;
158
+ text-decoration: none !important;
159
+ color: #444;
160
+ }
161
+
162
+ .plugin-card .compatibility-incompatible:before {
163
+ content: '\f158';
164
+ }
165
+
166
+ .plugin-card .compatibility-compatible:before {
167
+ content: '\f147';
168
+ }
169
+
170
+ .plugin-icon {
171
+ position: absolute;
172
+ top: 20px;
173
+ left: 20px;
174
+ width: 128px;
175
+ height: 128px;
176
+ margin: 0 20px 20px 0;
177
+ }
178
+
179
+ .plugin-icon img {
180
+ width: 128px;
181
+ height: 128px;
182
+ }
183
+
184
+ .no-plugin-results {
185
+ color: #999;
186
+ font-size: 18px;
187
+ font-style: normal;
188
+ margin: 0;
189
+ padding: 100px 0 0;
190
+ text-align: center;
191
+ }
assets/css/learnpress-admin.css ADDED
@@ -0,0 +1,702 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Created by Hoang Ha
3
+ *
4
+ * Date: 11/03/2015
5
+ */
6
+ .hide {
7
+ display: none;
8
+ }
9
+
10
+ .handle.dashicons {
11
+ cursor: move;
12
+ margin-right: 10px;
13
+ }
14
+
15
+ .meta_box_remove .dashicons {
16
+ text-decoration: initial;
17
+ }
18
+
19
+ .meta_box_course_lesson_quiz li input,
20
+ .meta_box_course_lesson_quiz li select {
21
+ min-width: 250px;
22
+ }
23
+
24
+ .rwmb-meta-box label {
25
+ color: #222;
26
+ font-weight: bold;
27
+ display: block;
28
+ margin: 16px 0;
29
+ }
30
+
31
+ .description {
32
+ margin-top: 5px;
33
+ }
34
+
35
+ .dashed-placeholder {
36
+ border: 2px dashed #999;
37
+ padding: 10px;
38
+ }
39
+
40
+ /**
41
+ * Course Metabox
42
+ */
43
+ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
44
+ margin-left: 30px;
45
+ }
46
+
47
+ .wp-core-ui .meta_box_add_section,
48
+ .wp-core-ui .meta_box_add_lesson,
49
+ .wp-core-ui .meta_box_add_quiz,
50
+ .wp-core-ui .meta_box_quick_add_lesson,
51
+ .wp-core-ui .meta_box_quick_add_quiz {
52
+ margin-right: 10px;
53
+ }
54
+
55
+ /**/
56
+ #lpr-block {
57
+ position: fixed;
58
+ top: 0;
59
+ left: 0;
60
+ right: 0;
61
+ bottom: 0;
62
+ background-color: #000;
63
+ display: none;
64
+ z-index: 200;
65
+ opacity: 0.2;
66
+ }
67
+
68
+ .lpr-quick-add-form {
69
+ background-color: #FFF;
70
+ padding: 5px;
71
+ position: absolute;
72
+ z-index: 210;
73
+ border: 1px solid #DDD;
74
+ }
75
+
76
+ .lpr-quick-add-form input {
77
+ font-size: 15px;
78
+ border-radius: 3px;
79
+ border: 1px solid #DDD;
80
+ width: 350px;
81
+ }
82
+
83
+ .lpr-quick-add-form input,
84
+ .lpr-quick-add-form select {
85
+ vertical-align: top;
86
+ }
87
+
88
+ .lpr-quick-add-form .lpr-ajaxload {
89
+ display: none;
90
+ background-image: url(../images/spinner.gif);
91
+ background-position: center;
92
+ background-repeat: no-repeat;
93
+ width: 30px;
94
+ color: #FFF;
95
+ margin-top: 6px;
96
+ }
97
+
98
+ .lpr-quick-add-form.working .lpr-ajaxload {
99
+ display: inline-block;
100
+ }
101
+
102
+ .lpr-quick-add-form.working button {
103
+ display: none;
104
+ }
105
+
106
+ .post-type-lpr_question .lpr-question-option-label {
107
+ display: none;
108
+ }
109
+
110
+ #lpr-question-options-wrap {
111
+ margin-top: 8px;
112
+ }
113
+
114
+ .lpr-question tr.lpr-disabled .dashicons-trash,
115
+ .lpr-question tr.lpr-disabled .dashicons-sort {
116
+ display: none;
117
+ }
118
+
119
+ /*
120
+ * Add on page
121
+ */
122
+
123
+ .lpr-add-ons-wrapper .add-on-info {
124
+ width: 65%;
125
+ display: inline-block;
126
+ }
127
+
128
+ .lpr-add-ons-wrapper .add-on-action {
129
+ float: right;
130
+ }
131
+
132
+ .lpr-add-ons-wrapper .add-on-action a {
133
+ text-decoration: none;
134
+ padding: 20px;
135
+ height: 80px;
136
+ width: 100px;
137
+ background: #EBEBEB;
138
+ margin-right: 100px;
139
+ }
140
+
141
+ .lpr-add-ons-wrapper .add-on-action .add-on-enabled {
142
+ text-align: center;
143
+ margin: 40px;
144
+ }
145
+
146
+ .lpr-add-ons-wrapper .add-on-action .add-on-disabled {
147
+ text-align: center;
148
+ margin: 40px;
149
+ }
150
+
151
+ .lpr-add-ons-wrapper .add-on-action a:hover {
152
+ text-decoration: none;
153
+ content: attr(data-text-disable);
154
+ }
155
+
156
+ .learn-press-add-ons{
157
+ margin: 20px 0 0;
158
+ }
159
+ .learn-press-add-ons:after{
160
+ display: block;
161
+ clear: both;
162
+ content: '';
163
+ }
164
+ .learn-press-add-ons > li{
165
+ /*float: left;*/
166
+ /*width: 25%;*/
167
+ /*position: relative;*/
168
+ }
169
+ .learn-press-add-ons > li .add-on-inner{
170
+ margin: 0 20px 40px 20px;
171
+ border: 1px solid #DDD;
172
+ border-radius: 10px;
173
+ overflow: hidden;
174
+ }
175
+ .learn-press-add-ons > li .add-on-thumbnail{
176
+ position: relative;
177
+ overflow: hidden;
178
+ border-bottom: 1px solid #E3E3E3;
179
+ }
180
+ .learn-press-add-ons > li .add-on-thumbnail img{
181
+ width: 100%;
182
+ height: auto;
183
+ vertical-align: top;
184
+ }
185
+ .learn-press-add-ons > li .add-on-thumbnail .add-on-overlay{
186
+ position: absolute;
187
+ left: 0;
188
+ right: 0;
189
+ height: 100%;
190
+ top: 0%;
191
+ -webkit-transition: all 0.25s ;
192
+ background-color: #ADE6FF;
193
+ opacity: 0;
194
+ }
195
+ .learn-press-add-ons > li .add-on-thumbnail .add-on-description{
196
+ position: absolute;
197
+ left: 20px;
198
+ right: 20px;
199
+ bottom: 0%;
200
+ -webkit-transition: all 0.25s ;
201
+ color: #444;
202
+ opacity: 0;
203
+ }
204
+ .learn-press-add-ons > li:hover .add-on-overlay{
205
+ opacity: 0.3;
206
+ }
207
+ .learn-press-add-ons > li:hover .add-on-description{
208
+ opacity: 1;
209
+ }
210
+ .learn-press-add-ons > li .add-on-info{
211
+ min-height: 80px;
212
+ padding: 20px;
213
+ background-color: #F5F5F5;
214
+ border-top: 1px solid #FFF;
215
+ }
216
+ .learn-press-add-ons > li .add-on-info > h3{
217
+ margin-top: 0;
218
+ }
219
+ .learn-press-add-ons > li .add-on-actions{
220
+ position: absolute;
221
+ bottom: 43px;
222
+ }
223
+ .learn-press-add-ons > li .add-on-actions .add-on-state{
224
+ font-size: 36px;
225
+ vertical-align: top;
226
+ display: none;
227
+ margin-top: -8px;
228
+ color: #05B3FF;
229
+ margin-left: -9px;
230
+ }
231
+ .learn-press-add-ons > li .add-on-actions .add-on-state.change{
232
+ display: inline-block;
233
+ }
234
+ .learn-press-add-ons .plugin-card-top{
235
+ min-height: 180px;
236
+ }
237
+ .learn-press-add-ons .button.spinner{
238
+ background: url(../../assets/images/spinner.gif) no-repeat 4px !important;
239
+ padding-left: 30px;
240
+ visibility: visible;
241
+ width: auto;
242
+ }
243
+ .learn-press-add-ons .action-links > span{
244
+ display: block;
245
+ text-align: right;
246
+ font-style: italic;
247
+ }
248
+ .learn-press-add-ons .action-links > span.enabled{
249
+ color: #7ad03a;
250
+ }
251
+ .learn-press-add-ons .action-links > span.disabled{
252
+ color: #FF0000;
253
+ }
254
+ #learn-press-bundle-activate-add-ons.spinner{
255
+ float: left !important;
256
+ }
257
+ #learn-press-add-on-state-changed-message{
258
+ position: fixed;
259
+ bottom: 0;
260
+ background-color: #F5F5F5;
261
+ padding: 10px;
262
+ border: 1px solid #DDD;
263
+ z-index: 1000;
264
+ display: none;
265
+ }
266
+ #learn-press-add-ons-wrap #name{
267
+ width: 30%;
268
+ }
269
+
270
+ @media (max-width: 1280px) {
271
+ .learn-press-add-ons > li{
272
+ width: 33.33%;
273
+ }
274
+ }
275
+ @media (max-width: 768px) {
276
+ .learn-press-add-ons > li{
277
+ width: 50%;
278
+ }
279
+ }
280
+ @media (max-width: 480px) {
281
+ .learn-press-add-ons > li{
282
+ width: 100%;
283
+ }
284
+ }
285
+ /**/
286
+
287
+ #lpr-quiz-questions-wrap .select2-container .select2-choice {
288
+ height: 29px;
289
+ padding-top: 3px;
290
+ font-size: 14px;
291
+ }
292
+
293
+ .post-title.column-title {
294
+ overflow: visible;
295
+ }
296
+
297
+ .lpr-row-actions {
298
+ display: inline-block;
299
+ position: relative;
300
+ }
301
+
302
+ .lpr-row-action-dropdown {
303
+ position: absolute;
304
+ top: 100%;
305
+ left: 0;
306
+ min-width: 150px;
307
+ background-color: #FFF;
308
+ border: 1px solid #DDD;
309
+ padding: 0;
310
+ margin: 0;
311
+ display: none;
312
+ }
313
+
314
+ .lpr-row-action-dropdown > li {
315
+ margin: 0;
316
+ }
317
+
318
+ .lpr-row-action-dropdown > li > a {
319
+ display: block;
320
+ padding: 5px;
321
+ }
322
+
323
+ .lpr-row-actions > a {
324
+ padding-right: 15px;
325
+ position: relative;
326
+ }
327
+
328
+ .lpr-row-actions > a:after {
329
+ display: block;
330
+ width: 0;
331
+ height: 0;
332
+ border: 5px solid transparent;
333
+ border-top-color: #DDD;
334
+ content: '';
335
+ display: inline-block;
336
+ position: absolute;
337
+ right: 0;
338
+ top: 6px;
339
+ }
340
+
341
+ .lpr-row-actions:hover > ul {
342
+ display: block;
343
+ }
344
+
345
+ /* addons page */
346
+ #lpr-add-ons-wrapper {
347
+ }
348
+
349
+ #lpr-add-ons-wrapper .lpr-add-on-block {
350
+ border-bottom: 1px dashed #DDD;
351
+ padding-bottom: 20px;
352
+ width: 50%;
353
+ float: left;
354
+ margin-top: 20px;
355
+ }
356
+
357
+ #lpr-add-ons-wrapper .lpr-add-on-block:after {
358
+ content: '';
359
+ display: block;
360
+ clear: both;
361
+ }
362
+
363
+ #lpr-add-ons-wrapper .lpr-admin-thumbnail {
364
+ float: left;
365
+ width: 200px;
366
+ }
367
+
368
+ #lpr-add-ons-wrapper .lpr-admin-thumbnail img {
369
+ vertical-align: top;
370
+ }
371
+
372
+ #lpr-add-ons-wrapper .lpr-add-on-info {
373
+ margin-left: 220px;
374
+ margin-right: 20px;
375
+ }
376
+
377
+ #lpr-add-ons-wrapper .lpr-add-on-info > h3{
378
+ margin-top: 0;
379
+ }
380
+
381
+ #lpr-add-ons-wrapper .lpr-add-on-info > h3 > span {
382
+ display: inline-block;
383
+ padding: 0px 5px;
384
+ background-color: #7AD3FA;
385
+ color: #FFF;
386
+ border-radius: 3px;
387
+ margin-left: 10px;
388
+ font-size: 12px;
389
+ vertical-align: top;
390
+ font-weight: normal;
391
+ }
392
+
393
+ #lpr-add-ons-wrapper .lpr-add-on-action {
394
+ float: right;
395
+ width: 100px;
396
+ }
397
+
398
+ /* toggle */
399
+ input.lpr-fancy-checkbox {
400
+ display: none;
401
+ }
402
+
403
+ .lpr-fancy-checkbox.tog {
404
+ border-radius: 20px;
405
+ display: block;
406
+ box-shadow: inset 0 0 4px rgba(0, 0, 0, .6);
407
+ margin: 0 auto;
408
+ height: 19px;
409
+ width: 50px;
410
+ position: relative;
411
+ cursor: pointer;
412
+ font: 11px/18px arial;
413
+ background: #ccc;
414
+ -webkit-transition: all .2s ease;
415
+ -moz-transition: all .2s ease;
416
+ -o-transition: all .2s ease;
417
+ transition: all .2s ease;
418
+ display: inline-block !important;
419
+ }
420
+
421
+ .lpr-fancy-checkbox.tog:after {
422
+ content: '';
423
+ box-shadow: 0px 2px 2px rgba(0, 0, 0, .6);
424
+ border-radius: 20px;
425
+ display: block;
426
+ height: 15px;
427
+ width: 15px;
428
+ background: #fff;
429
+ position: absolute;
430
+ top: 2px;
431
+ left: 2px;
432
+ -webkit-transition: all .2s ease;
433
+ -moz-transition: all .2s ease;
434
+ -o-transition: all .2s ease;
435
+ transition: all .2s ease;
436
+ }
437
+
438
+ .lpr-fancy-checkbox.tog:before {
439
+ content: 'OFF';
440
+ position: absolute;
441
+ right: 7px;
442
+ top: 1px;
443
+ color: #fff;
444
+ }
445
+
446
+ .lpr-fancy-checkbox.tog:hover:after {
447
+ left: 5px;
448
+ }
449
+
450
+ .lpr-fancy-checkbox.tog.on:before {
451
+ content: 'ON';
452
+ right: 28px;
453
+ }
454
+
455
+ .lpr-fancy-checkbox.tog.on {
456
+ background: #05B3FF;
457
+ }
458
+
459
+ .lpr-fancy-checkbox.tog.on:after {
460
+ left: 33px;
461
+ }
462
+
463
+ .lpr-fancy-checkbox.tog.on:hover:after {
464
+ left: 30px;
465
+ }
466
+
467
+ /**/
468
+ .clearfix:after {
469
+ display: block;
470
+ content: '';
471
+ clear: both;
472
+ }
473
+
474
+ .clear {
475
+ display: block;
476
+ clear: both;
477
+ height: 0;
478
+ }
479
+
480
+ /* admin order details */
481
+ .post-type-lpr_order #post-body-content,
482
+ .post-type-lpr_order #postbox-container-1,
483
+ #order_details .ui-sortable-handle,
484
+ #order_details .handlediv {
485
+ display: none !important;
486
+ }
487
+
488
+ #order_details .inside {
489
+ padding: 20px;
490
+ margin: 0;
491
+ }
492
+
493
+ #order_details .order-user-avatar {
494
+ float: left;
495
+ margin-right: 20px;
496
+ }
497
+
498
+ #order_details .order-user-meta {
499
+ float: left;
500
+ }
501
+
502
+ #order_details .order-products table {
503
+ width: 100%;
504
+ border-collapse: collapse;
505
+ margin-top: 20px;
506
+ }
507
+
508
+ #order_details .order-products table tr {
509
+ border-bottom: 1px solid #EEE;
510
+ }
511
+
512
+ #order_details .order-products table thead th {
513
+ height: 30px;
514
+ text-align: left;
515
+ font-size: 16px;
516
+
517
+ }
518
+
519
+ #order_details .order-products table td {
520
+ padding: 15px 0;
521
+ font-size: 16px;
522
+ }
523
+
524
+ #order_details .order-products table .align-right {
525
+ text-align: right;
526
+ }
527
+
528
+ #order_details .order-data {
529
+ float: right;
530
+ }
531
+
532
+ #order_details .order-data {
533
+ text-align: right;
534
+ }
535
+
536
+ #order_details .order-data .order-data-number {
537
+ font-size: 24px;
538
+ font-weight: bold;
539
+ margin-bottom: 10px;
540
+ }
541
+
542
+ #order_details .order-data .order-data-date {
543
+ font-size: 14px;
544
+ font-style: italic;
545
+ margin-bottom: 5px;
546
+ }
547
+
548
+ #order_details .order-data .order-data-payment-method {
549
+ font-size: 16px;
550
+ font-weight: bold;
551
+ margin: 5px 0;
552
+ }
553
+
554
+ #order_details .order-data .order-data-status {
555
+ border-radius: 3px;
556
+ padding: 2px 5px;
557
+ display: inline-block;
558
+ color: #FFF;
559
+ font-size: 12px;
560
+
561
+ }
562
+
563
+ #order_details .order-data .order-data-status.completed {
564
+ background-color: #006400;
565
+ }
566
+
567
+ #order_details .order-data .order-data-status.pending {
568
+ background-color: #CCCCCC;
569
+ }
570
+
571
+ #order_details .total {
572
+ font-weight: bold;
573
+ font-size: 16px;
574
+ }
575
+
576
+ .post-type-lpr_order .column-title {
577
+ width: 120px;
578
+ }
579
+
580
+ .post-type-lpr_order .column-order_student {
581
+ width: 100px;
582
+ }
583
+
584
+ .post-type-lpr_order .column-order_date {
585
+ width: 150px;
586
+ }
587
+
588
+ .post-type-lpr_order .column-order_total {
589
+ width: 100px;
590
+ text-align: right;
591
+ }
592
+
593
+ .post-type-lpr_order .column-order_status {
594
+ width: 100px;
595
+ }
596
+
597
+ .lpr-curriculum-section > h3 {
598
+ padding: 0 !important;
599
+ }
600
+
601
+ .lpr-curriculum-section > h3 .lpr-action {
602
+ top: 0;
603
+ right: 0;
604
+ }
605
+
606
+ .lpr-curriculum-section.lpr-empty > h3 {
607
+ cursor: default !important;
608
+ }
609
+
610
+ .lpr-curriculum-section.lpr-empty .lpr-action {
611
+ display: none !important;
612
+ }
613
+
614
+ .lpr-course-curriculum button span {
615
+ text-decoration: underline;
616
+ }
617
+
618
+ .lpr-chart {
619
+ padding: 100px 300px;
620
+ }
621
+
622
+ .lpr-stats-time {
623
+ text-align: center;
624
+ }
625
+
626
+ .lpr-hidden {
627
+ display: none;
628
+ }
629
+ .lpr-chart-wrapper {
630
+ margin: 0 30px 0 10px;
631
+ }
632
+ #lpr-custom-time {
633
+ position: relative;
634
+ top: 4px;
635
+ }
636
+ .lpr-chart-wrapper canvas {
637
+ padding-top: 20px;
638
+ height: 70vh;
639
+ width: 100vw;
640
+ }
641
+
642
+ /* block page */
643
+ #lpr-page-block{
644
+ position: fixed;
645
+ top: 0;
646
+ left: 0;
647
+ right: 0;
648
+ bottom: 0;
649
+ background-color: #000;
650
+ opacity: 0.5;
651
+ display: none;
652
+ z-index: 9999;
653
+ }
654
+
655
+ #form-quick-add-lesson-link{
656
+ position: absolute;
657
+ }
658
+
659
+ #_lpr_course_price_description>span {
660
+ font-weight: bold;
661
+ font-size: 15px;
662
+ }
663
+ .lpr-ignore, .lpr-ignore:hover {
664
+ color: #dd3d36;
665
+ }
666
+ .lpr-ignore:hover {
667
+ cursor: pointer;
668
+ }
669
+
670
+ .lpr-quick-add-page-inline,
671
+ .lpr-quick-actions-inline{
672
+ display: inline-block;
673
+ vertical-align: middle;
674
+ margin: 0 !important;
675
+ }
676
+
677
+ #lpr-toggle-quiz-mode{
678
+ background-color: #0077FF;
679
+ padding: 3px;
680
+ margin-left: 5px;
681
+ display: inline-block;
682
+ border-radius: 3px;
683
+ text-decoration: none;
684
+ color: #FFF;
685
+ }
686
+ .column-num_of_question{
687
+ width: 150px;
688
+ }
689
+ .lpr-change-question-type {
690
+ border: 1px solid #DDD;
691
+ background-color: #FCFCFC;
692
+ padding: 5px;
693
+ display: inline-block;
694
+ margin-bottom: 0;
695
+ }
696
+
697
+ .lpr-change-question-type span {
698
+ display: inline-block;
699
+ vertical-align: middle;
700
+ font-weight: bold;
701
+ margin-right: 10px;
702
+ }
assets/css/learnpress.css ADDED
@@ -0,0 +1,514 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</
1
+ .clearfix:after {
2
+ display: block;
3
+ content: '';
4
+ clear: both;
5
+ }
6
+
7
+ #course-header {
8
+
9
+ }
10
+
11
+ #course-header:after {
12
+ display: block;
13
+ content: '';
14
+ clear: both;
15
+ }
16
+ #course-main:after {
17
+ content: '';
18
+ display: block;
19
+ clear: both;
20
+ }
21
+ #course-desc {
22
+ width: 100%;
23
+ }
24
+ .course-info {
25
+ width: 75%;
26
+ float: left;
27
+ }
28
+
29
+ .course-getting, .course-related {
30
+ width: 25%;
31
+ float: right;
32
+ }
33
+
34
+ .learn-press ul {
35
+ list-style: none;
36
+ }
37
+
38
+ /* Course */
39
+ .course-curriculum {
40
+
41
+ }
42
+
43
+ .course-curriculum .curriculum-sections {
44
+
45
+ }
46
+
47
+ .curriculum-sections .section {
48
+ overflow: hidden;
49
+ }
50
+
51
+ .curriculum-sections .section .section-header {
52
+ margin: 0 0 20px 0;
53
+ }
54
+
55
+ .curriculum-sections .section .section-header a {
56
+ outline: none;
57
+ font-size: 12px;
58
+ float: right;
59
+ }
60
+
61
+ .curriculum-sections .section-content {
62
+
63
+ }
64
+
65
+ .curriculum-sections .section-content .course-lesson,
66
+ .curriculum-sections .section-content .course-quiz {
67
+ margin: 0 0 10px 0;
68
+ }
69
+
70
+ .curriculum-sections .section-content .lesson-quiz-icon {
71
+ margin-right: 5px;
72
+ }
73
+
74
+ .curriculum-sections .section-content .course-lesson .lesson-quiz-icon:before,
75
+ .curriculum-sections .section-content .course-quiz .lesson-quiz-icon:before {
76
+ display: inline-block;
77
+ width: 25px;
78
+ height: 25px;
79
+ border-radius: 50%;
80
+ text-align: center;
81
+ line-height: 25px;
82
+ font-size: 12px;
83
+ color: #FFF;
84
+ background-color: #999;
85
+ vertical-align: middle;
86
+ }
87
+
88
+ .curriculum-sections .section-content .course-lesson .lesson-quiz-icon.lesson:before {
89
+ content: 'L';
90
+ }
91
+
92
+ .curriculum-sections .section-content .course-lesson.current .lesson-quiz-icon:before {
93
+ content: "\f115";
94
+ content: "\f177";
95
+ font-family: dashicons;
96
+ background-color: transparent;
97
+ color: #90DFFF;
98
+ font-size: 24px;
99
+ }
100
+
101
+ .curriculum-sections .section-content .course-quiz .lesson-quiz-icon.quiz:before {
102
+ content: 'Q';
103
+ }
104
+
105
+ .curriculum-sections .section-content .course-lesson.completed a,
106
+ .curriculum-sections .section-content .course-quiz.completed a {
107
+ text-decoration: line-through;
108
+ border-bottom: none;
109
+ }
110
+
111
+ .curriculum-sections .section-content .course-lesson.loading .lesson-quiz-icon:before {
112
+ content: '';
113
+ background-image: url(../images/ajaxload.gif);
114
+ background-position: center;
115
+ background-repeat: no-repeat;
116
+ }
117
+
118
+ .course-content-lesson-nav,
119
+ .course-content-lesson-nav-text {
120
+ overflow: hidden;
121
+ }
122
+
123
+ .course-content-lesson-nav-text {
124
+ margin-top: 20px;
125
+ margin-bottom: 0;
126
+ text-transform: uppercase;
127
+ font-size: 12px;
128
+ font-weight: bold;
129
+ border-top: 1px dashed #e0e0e0;
130
+ padding-top: 20px;
131
+ }
132
+
133
+ .course-content-lesson-nav a {
134
+ }
135
+
136
+ .course-content-lesson-nav a.next-lesson,
137
+ .course-content-lesson-nav-text .next-lesson-text {
138
+ float: right;
139
+ }
140
+
141
+ #lesson-quiz-tooltip-container {
142
+ display: none;
143
+ visibility: hidden;
144
+ }
145
+
146
+ .lesson-quiz-tooltip {
147
+ font-size: 14px;
148
+ }
149
+
150
+ /* Single Quiz Pagge*/
151
+ .twentyfifteen .single-quiz {
152
+ padding-left: 10%;
153
+ padding-right: 10%;
154
+ padding-bottom: 10%;
155
+ }
156
+
157
+ .quiz-question-nav-buttons button {
158
+ _display: none;
159
+ }
160
+
161
+ .single-quiz .no-question {
162
+ font-size: 14px;
163
+ border: 1px solid #FFB6B6;
164
+ padding: 10px;
165
+ color: #FF7979;
166
+ }
167
+
168
+ .quiz-started .quiz-content, .quiz-completed .quiz-content {
169
+ display: none;
170
+ }
171
+
172
+ .quiz-question-nav {
173
+ margin-right: -250px;
174
+ float: left;
175
+ width: 100%;
176
+ }
177
+
178
+ .quiz-question-nav .lp-question-wrap {
179
+ margin-right: 200px;
180
+ }
181
+
182
+ .quiz-sidebar {
183
+ width: 230px;
184
+ float: right;
185
+ }
186
+
187
+ #quiz-countdown {
188
+ font-size: 48px;
189
+ text-align: center;
190
+ }
191
+
192
+ .quiz-countdown-text {
193
+ text-align: center;
194
+ margin: 10px;
195
+ line-height: 1.5;
196
+ }
197
+
198
+ .quiz-countdown-text span {
199
+ display: block;
200
+ }
201
+
202
+ .quiz-buttons {
203
+ text-align: center;
204
+ }
205
+
206
+ .quiz-questions > ul {
207
+ list-style: none;
208
+ margin: 20px 0;
209
+ }
210
+
211
+ .quiz-questions > ul li {
212
+ list-style: none;
213
+ margin: 0 0 15px 0;
214
+ font-size: 14px;
215
+ line-height: 1;
216
+ }
217
+
218
+ .quiz-questions > ul > li > h4 {
219
+ font-weight: normal;
220
+ }
221
+
222
+ .quiz-questions > ul li.current > h4 {
223
+ font-weight: bold;
224
+ }
225
+
226
+ .quiz-sidebar, .quiz-question-nav {
227
+ margin-top: 20px;
228
+ }
229
+
230
+ .button-finish-quiz {
231
+ display: none;
232
+ }
233
+
234
+ .quiz-started .button-finish-quiz {
235
+ display: inline;
236
+ }
237
+
238
+ .quiz-result {
239
+ margin-top: 20px;
240
+ float: left;
241
+ margin-right: -300px;
242
+ width: 100%;
243
+ }
244
+
245
+ .quiz-result .quiz-result-mark {
246
+ float: left;
247
+ width: 150px;
248
+ height: 150px;
249
+ background-color: #F5F5F5;
250
+ border-radius: 50%;
251
+ text-align: center;
252
+ box-sizing: border-box;
253
+ padding-top: 30px;
254
+ line-height: 1;
255
+
256
+ }
257
+
258
+ .quiz-result .quiz-result-mark .quiz-mark {
259
+ font-size: 60px;
260
+ display: block;
261
+ }
262
+
263
+ .quiz-result .quiz-result-mark .quiz-mark small {
264
+ font-size: 20px;
265
+ }
266
+
267
+ .quiz-result .quiz-result-summary {
268
+ float: left;
269
+ margin-left: 30px;
270
+ }
271
+
272
+ .quiz-result .quiz-result-summary .quiz-result-field {
273
+ margin: 0;
274
+ font-size: 14px;
275
+ }
276
+
277
+ .quiz-result .quiz-result-summary .quiz-result-field > label {
278
+ width: 100px;
279
+ display: inline-block;
280
+ }
281
+
282
+ .quiz-result .quiz-result-summary .quiz-result-field.correct {
283
+ color: #0066cc;
284
+ }
285
+
286
+ .quiz-result .quiz-result-summary .quiz-result-field.wrong {
287
+ color: #BC0B0B;
288
+ }
289
+
290
+ .quiz-result .quiz-result-summary .quiz-result-field.empty {
291
+ color: #869791;
292
+ }
293
+
294
+ #learn_press_payment_form {
295
+ display: none;
296
+ }
297
+
298
+ #learn_press_payment_form .learn_press_payment_form {
299
+ display: none;
300
+ }
301
+
302
+ #quiz-accordion > div {
303
+ height: auto !important;
304
+ }
305
+
306
+ @media screen and (max-width: 480px) {
307
+ .quiz-question-nav {
308
+ margin-right: 0px;
309
+ float: none;
310
+ }
311
+
312
+ .quiz-sidebar {
313
+ width: 100%;
314
+ float: none;
315
+ }
316
+ }
317
+
318
+ .lpr-question-hint {
319
+ margin-top: 10px;