LearnPress – WordPress LMS Plugin - Version 2.0.9

Version Description

  • Improved some sections in admin
  • Added tab 'Related Themes'
  • Fixed error with PHP version before 5.3.x
  • Fixed bug get order incorrect
  • Added option to switch WP Metaboxes into tabs style
  • And more
Download this release

Release Info

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

Code changes from version 2.0 to 2.0.9

Files changed (157) hide show
  1. assets/css/_icons.css +75 -75
  2. assets/css/admin/admin.css +464 -67
  3. assets/css/admin/admin.less +532 -92
  4. assets/css/admin/course-editor.css +251 -251
  5. assets/css/admin/meta-box-course.css +861 -800
  6. assets/css/admin/meta-box-course.less +981 -0
  7. assets/css/global.css +29 -1
  8. assets/css/jalert.css +0 -1
  9. assets/css/learnpress-course-coming-soon.css +330 -0
  10. assets/css/learnpress.css +297 -33
  11. assets/css/learnpress.less +327 -43
  12. assets/images/multiple-choice.png +0 -0
  13. assets/images/question.png +0 -0
  14. assets/images/single-choice.png +0 -0
  15. assets/js/admin/admin.js +468 -253
  16. assets/js/admin/meta-box-course.js +199 -45
  17. assets/js/admin/meta-box-order.js +67 -5
  18. assets/js/admin/meta-box-quiz.js +33 -4
  19. assets/js/admin/settings.js +14 -17
  20. assets/js/admin/statistic.js +139 -44
  21. assets/js/frontend/add-to-cart.js +12 -11
  22. assets/js/frontend/bak.course-lesson.js +223 -0
  23. assets/js/frontend/bak.course-quiz.js +45 -0
  24. assets/js/frontend/bak.single-course.v2.js +245 -0
  25. assets/js/frontend/bak.single-quiz.js +731 -0
  26. assets/js/frontend/checkout.js +127 -117
  27. assets/js/frontend/course-quiz.min.js +1 -0
  28. assets/js/frontend/course_coming_soon.js +28 -0
  29. assets/js/frontend/course_coming_soon.min.js +28 -0
  30. assets/js/frontend/lesson.js +13 -1
  31. assets/js/frontend/profile.js +221 -13
  32. assets/js/frontend/profile.min.js +125 -0
  33. assets/js/frontend/quiz.js +55 -2
  34. assets/js/frontend/single-course.js +41 -15
  35. assets/js/frontend/single-course.min.js +1 -0
  36. assets/js/frontend/single-quiz.min.js +1 -0
  37. assets/js/global.js +38 -10
  38. assets/js/jquery.cropit.js +1207 -0
  39. assets/js/jquery.mb-comingsoon.js +346 -0
  40. assets/js/jquery.mb-comingsoon.min.js +1 -0
  41. assets/js/jquery.ocupload.js +277 -0
  42. assets/load-scripts.php +2 -2
  43. assets/load-styles.php +2 -2
  44. inc/admin/class-lp-admin-ajax.php +219 -290
  45. inc/admin/class-lp-admin-menu.php +7 -8
  46. inc/admin/class-lp-admin-notice.php +17 -0
  47. inc/admin/class-lp-admin.php +90 -4
  48. inc/admin/class-lp-plugin-install-list-table.php +1 -1
  49. inc/admin/dashboard-statistics/class-lp-statistic-status.php +102 -100
  50. inc/admin/lp-admin-functions.php +657 -173
  51. inc/admin/meta-boxes/class-quiz-questions-field.php +7 -0
  52. inc/admin/meta-boxes/class-yes-no-field.php +62 -0
  53. inc/admin/settings/class-lp-settings-base.php +1 -1
  54. inc/admin/settings/class-lp-settings-courses.php +26 -11
  55. inc/admin/settings/class-lp-settings-emails.php +3 -8
  56. inc/admin/settings/class-lp-settings-general.php +1 -8
  57. inc/admin/settings/class-lp-settings-pages.php +9 -10
  58. inc/admin/sub-menus/addons.php +69 -0
  59. inc/admin/sub-menus/settings.php +2 -2
  60. inc/admin/sub-menus/statistics.php +18 -6
  61. inc/admin/sub-menus/tools.php +310 -140
  62. inc/admin/views/html-admin-notice-templates.php +21 -0
  63. inc/admin/views/meta-boxes/course/loop-section.php +25 -25
  64. inc/admin/views/meta-boxes/course/review-log.php +41 -85
  65. inc/admin/views/meta-boxes/course/review-logs.php +32 -29
  66. inc/admin/views/meta-boxes/order/actions.php +15 -13
  67. inc/admin/views/meta-boxes/quiz/question.php +22 -22
  68. inc/admin/views/meta-boxes/quiz/questions.php +2 -2
  69. inc/admin/views/settings/emails/become-a-teacher.php +56 -0
  70. inc/admin/views/settings/emails/email-template.php +1 -2
  71. inc/admin/views/settings/emails/enrolled-course.php +1 -1
  72. inc/admin/views/settings/emails/new-order.php +1 -1
  73. inc/admin/views/settings/emails/user-order-completed.php +1 -1
  74. inc/admin/views/settings/fields/html.php +6 -6
  75. inc/admin/views/settings/fields/image-size.php +16 -15
  76. inc/admin/views/statistics/orders.php +21 -1
  77. inc/admin/views/updates/0.9/step-upgraded.php +2 -2
  78. inc/cart/class-lp-cart.php +1 -1
  79. inc/class-lp-ajax.php +2 -2
  80. inc/class-lp-assets.php +78 -26
  81. inc/class-lp-cache.php +51 -4
  82. inc/class-lp-checkout.php +3 -2
  83. inc/class-lp-emails.php +22 -17
  84. inc/class-lp-install.php +66 -8
  85. inc/class-lp-multi-language.php +1 -1
  86. inc/class-lp-page-controller.php +107 -29
  87. inc/class-lp-query.php +172 -19
  88. inc/class-lp-session.php +3 -2
  89. inc/class-lp-shortcodes.php +14 -1
  90. inc/course/abstract-lp-course.php +59 -25
  91. inc/course/lp-course-functions.php +211 -6
  92. inc/custom-post-types/abstract.php +69 -69
  93. inc/custom-post-types/course.php +519 -128
  94. inc/custom-post-types/lesson.php +62 -27
  95. inc/custom-post-types/order.php +20 -19
  96. inc/custom-post-types/question.php +3 -1
  97. inc/custom-post-types/quiz.php +64 -48
  98. inc/debug.php +0 -23
  99. inc/emails/class-lp-email-become-an-instructor.php +21 -12
  100. inc/emails/class-lp-email-new-course.php +0 -8
  101. inc/emails/class-lp-email-published-course.php +3 -4
  102. inc/emails/class-lp-email-rejected-course.php +1 -0
  103. inc/emails/class-lp-email.php +1 -8
  104. inc/gateways/paypal/class-lp-gateway-paypal.php +18 -3
  105. inc/lesson/class-lp-lesson.php +1 -1
  106. inc/lesson/lp-lesson-functions.php +62 -41
  107. inc/libraries/meta-box/inc/fields/duration.php +2 -1
  108. inc/libraries/meta-box/inc/fields/html.php +12 -0
  109. inc/libraries/meta-box/inc/fields/select-advanced.php +8 -2
  110. inc/libraries/meta-box/js/jqueryui/jquery-ui-timepicker-addon.js +6 -2
  111. inc/libraries/meta-box/meta-box.php +12 -5
  112. inc/lp-add-on-functions.php +917 -526
  113. inc/lp-anonymous-user-quiz-functions.php +318 -305
  114. inc/lp-constants.php +4 -2
  115. inc/lp-core-functions.php +260 -88
  116. inc/lp-init.php +38 -8
  117. inc/lp-template-functions.php +67 -14
  118. inc/lp-template-hooks.php +6 -5
  119. inc/lp-webhooks.php +66 -1
  120. inc/order/lp-order-functions.php +1 -0
  121. inc/question/abstract-lp-question.php +1 -1
  122. inc/question/class-lp-question-multi-choice.php +14 -0
  123. inc/question/class-lp-question-single-choice.php +14 -0
  124. inc/question/class-lp-question-true-or-false.php +14 -0
  125. inc/quiz/class-lp-quiz-factory.php +0 -1
  126. inc/quiz/class-lp-quiz.php +16 -18
  127. inc/quiz/lp-quiz-functions.php +0 -34
  128. inc/shortcodes/class-lp-abstract-archive-shortcode.php +41 -38
  129. inc/shortcodes/featured-courses/featured-course.php +136 -0
  130. inc/shortcodes/featured-courses/featured-courses.php +133 -0
  131. inc/shortcodes/featured-courses/index.php +1 -0
  132. inc/shortcodes/featured-courses/templates/cards.php +127 -0
  133. inc/shortcodes/featured-courses/templates/grids.php +131 -0
  134. inc/shortcodes/featured-courses/templates/index.php +1 -0
  135. inc/shortcodes/featured-courses/templates/list.php +137 -0
  136. inc/shortcodes/popular-courses/index.php +1 -0
  137. inc/shortcodes/popular-courses/popular-course.php +132 -0
  138. inc/shortcodes/popular-courses/popular-courses.php +129 -0
  139. inc/shortcodes/popular-courses/templates/cards.php +127 -0
  140. inc/shortcodes/popular-courses/templates/grids.php +131 -0
  141. inc/shortcodes/popular-courses/templates/index.php +1 -0
  142. inc/shortcodes/popular-courses/templates/list.php +137 -0
  143. inc/shortcodes/recent-courses/index.php +1 -0
  144. inc/shortcodes/recent-courses/recent-courses.php +121 -0
  145. inc/shortcodes/recent-courses/templates/cards.php +127 -0
  146. inc/shortcodes/recent-courses/templates/grids.php +131 -0
  147. inc/shortcodes/recent-courses/templates/index.php +1 -0
  148. inc/shortcodes/recent-courses/templates/list.php +136 -0
  149. inc/updates/learnpress-update-1.0.7.php +2 -2
  150. inc/updates/learnpress-update-2.0.php +6 -4
  151. inc/user/abstract-lp-user.php +279 -102
  152. inc/user/class-lp-user-factory.php +209 -0
  153. inc/user/class-lp-user-guest.php +4 -2
  154. inc/user/class-lp-user.php +0 -32
  155. inc/user/lp-user-functions.php +394 -144
  156. inc/widgets/featured-courses/featured-course-widget.php +197 -0
  157. inc/widgets/featured-courses/form.php +30 -0
assets/css/_icons.css CHANGED
@@ -1,75 +1,75 @@
1
- @font-face {
2
- font-family: 'lp-icons';
3
- src: url('fonts/icons.eot?6gvjr0');
4
- src: url('fonts/icons.eot?6gvjr0#iefix') format('embedded-opentype'), url('fonts/icons.ttf?6gvjr0') format('truetype'), url('fonts/icons.woff?6gvjr0') format('woff'), url('fonts/icons.svg?6gvjr0#icons') format('svg');
5
- font-weight: normal;
6
- font-style: normal;
7
- }
8
- [class^="lp-icon-"],
9
- [class*=" lp-icon-"] {
10
- /* use !important to prevent issues with browser extensions that change fonts */
11
- font-family: 'lp-icons' !important;
12
- speak: none;
13
- font-style: normal;
14
- font-weight: normal;
15
- font-variant: normal;
16
- text-transform: none;
17
- line-height: 1;
18
- /* Better Font Rendering =========== */
19
- -webkit-font-smoothing: antialiased;
20
- -moz-osx-font-smoothing: grayscale;
21
- }
22
- .lp-icon-file-text:before {
23
- content: "\e926";
24
- }
25
- .icon-file-picture:before {
26
- content: "\e927";
27
- }
28
- .icon-file-music:before {
29
- content: "\e928";
30
- }
31
- .icon-file-video:before {
32
- content: "\e92a";
33
- }
34
- .icon-file-zip:before {
35
- content: "\e92b";
36
- }
37
- .icon-paste:before {
38
- content: "\e92d";
39
- }
40
- .icon-alarm:before {
41
- content: "\e950";
42
- }
43
- @font-face {
44
- font-family: 'learnpress';
45
- src: url('../fonts/icon.eot?ym8b3w');
46
- src: url('../fonts/icon.eot?ym8b3w#iefix') format('embedded-opentype'), url('../fonts/icon.ttf?ym8b3w') format('truetype'), url('../fonts/icon.woff?ym8b3w') format('woff'), url('../fonts/icon.svg?ym8b3w#icon') format('svg');
47
- font-weight: normal;
48
- font-style: normal;
49
- }
50
- [class^="learn-press-icon-"],
51
- [class*=" learn-press-icon-"],
52
- .learn-press-icon {
53
- font-family: 'learnpress';
54
- /*speak: none;*/
55
- font-style: normal;
56
- font-weight: normal;
57
- font-variant: normal;
58
- text-transform: none;
59
- line-height: 1;
60
- /* Better Font Rendering =========== */
61
- -webkit-font-smoothing: antialiased;
62
- -moz-osx-font-smoothing: grayscale;
63
- }
64
- .icon-checkmark:before {
65
- content: "\e903";
66
- }
67
- .icon-books:before {
68
- content: "\e900";
69
- }
70
- .icon-alarm:before {
71
- content: "\e901";
72
- }
73
- .icon-spinner:before {
74
- content: "\e902";
75
- }
1
+ @font-face {
2
+ font-family: 'lp-icons';
3
+ src: url('fonts/icons.eot?6gvjr0');
4
+ src: url('fonts/icons.eot?6gvjr0#iefix') format('embedded-opentype'), url('fonts/icons.ttf?6gvjr0') format('truetype'), url('fonts/icons.woff?6gvjr0') format('woff'), url('fonts/icons.svg?6gvjr0#icons') format('svg');
5
+ font-weight: normal;
6
+ font-style: normal;
7
+ }
8
+ [class^="lp-icon-"],
9
+ [class*=" lp-icon-"] {
10
+ /* use !important to prevent issues with browser extensions that change fonts */
11
+ font-family: 'lp-icons' !important;
12
+ speak: none;
13
+ font-style: normal;
14
+ font-weight: normal;
15
+ font-variant: normal;
16
+ text-transform: none;
17
+ line-height: 1;
18
+ /* Better Font Rendering =========== */
19
+ -webkit-font-smoothing: antialiased;
20
+ -moz-osx-font-smoothing: grayscale;
21
+ }
22
+ .lp-icon-file-text:before {
23
+ content: "\e926";
24
+ }
25
+ .icon-file-picture:before {
26
+ content: "\e927";
27
+ }
28
+ .icon-file-music:before {
29
+ content: "\e928";
30
+ }
31
+ .icon-file-video:before {
32
+ content: "\e92a";
33
+ }
34
+ .icon-file-zip:before {
35
+ content: "\e92b";
36
+ }
37
+ .icon-paste:before {
38
+ content: "\e92d";
39
+ }
40
+ .icon-alarm:before {
41
+ content: "\e950";
42
+ }
43
+ @font-face {
44
+ font-family: 'learnpress';
45
+ src: url('../fonts/icon.eot?ym8b3w');
46
+ src: url('../fonts/icon.eot?ym8b3w#iefix') format('embedded-opentype'), url('../fonts/icon.ttf?ym8b3w') format('truetype'), url('../fonts/icon.woff?ym8b3w') format('woff'), url('../fonts/icon.svg?ym8b3w#icon') format('svg');
47
+ font-weight: normal;
48
+ font-style: normal;
49
+ }
50
+ [class^="learn-press-icon-"],
51
+ [class*=" learn-press-icon-"],
52
+ .learn-press-icon {
53
+ font-family: 'learnpress';
54
+ /*speak: none;*/
55
+ font-style: normal;
56
+ font-weight: normal;
57
+ font-variant: normal;
58
+ text-transform: none;
59
+ line-height: 1;
60
+ /* Better Font Rendering =========== */
61
+ -webkit-font-smoothing: antialiased;
62
+ -moz-osx-font-smoothing: grayscale;
63
+ }
64
+ .icon-checkmark:before {
65
+ content: "\e903";
66
+ }
67
+ .icon-books:before {
68
+ content: "\e900";
69
+ }
70
+ .icon-alarm:before {
71
+ content: "\e901";
72
+ }
73
+ .icon-spinner:before {
74
+ content: "\e902";
75
+ }
assets/css/admin/admin.css CHANGED
@@ -4,8 +4,11 @@
4
  * @author ThimPress
5
  * @version 1.0
6
  */
7
- .rwmb-number-wrapper .rwmb-input {
8
- padding-top: 16px;
 
 
 
9
  }
10
  .lp-nav-tab-wrapper {
11
  border-bottom: 1px solid #ccc;
@@ -66,12 +69,13 @@
66
  }
67
  #learn-press-admin-settings .learn-press-settings-wrap {
68
  float: left;
69
- padding: 0 0 15px 300px;
70
  background: #FFF;
71
  z-index: 0;
72
  position: relative;
73
  width: 100%;
74
  box-sizing: border-box;
 
75
  }
76
  #learn-press-admin-settings .learn-press-settings-wrap:before {
77
  content: '';
@@ -81,6 +85,14 @@
81
  border-left: 1px solid #DDD;
82
  margin-left: -30px;
83
  }
 
 
 
 
 
 
 
 
84
  #learn-press-admin-settings.no-subtabs .learn-press-settings-wrap {
85
  float: none;
86
  margin-left: 0;
@@ -93,11 +105,25 @@
93
  display: none;
94
  }
95
  #learn-press-admin-settings input[type="radio"] {
96
- margin: 0 !important;
97
  }
98
  #learn-press-admin-settings label {
99
  line-height: 1;
100
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  /* message box */
102
  #learn-press-message-box-block {
103
  position: fixed;
@@ -167,12 +193,6 @@
167
  .meta_box_course_lesson_quiz li select {
168
  min-width: 250px;
169
  }
170
- .rwmb-meta-box label {
171
- color: #222;
172
- font-weight: bold;
173
- display: block;
174
- margin: 16px 0;
175
- }
176
  .description {
177
  margin-top: 5px;
178
  }
@@ -180,20 +200,31 @@
180
  border: 2px dashed #999;
181
  padding: 10px;
182
  }
183
- .learn-press-admin-notice-dismiss:before {
184
- font-family: dashicons;
185
- content: '\f335';
186
- width: 20px;
187
- height: 20px;
188
  display: inline-block;
189
  background-color: #FFFFFF;
190
  border-radius: 50%;
 
 
 
 
191
  line-height: 20px;
 
 
 
 
 
 
 
 
 
192
  text-align: center;
193
- box-shadow: 0px 0px 1px 1px #F1F1F1;
194
  font-size: 18px;
195
- vertical-align: middle;
196
- float: right;
197
  }
198
  /**
199
  * Course Metabox
@@ -269,6 +300,126 @@ li.quick_quiz {
269
  /*
270
  * Add on page
271
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  .lpr-add-ons-wrapper .add-on-info {
273
  width: 65%;
274
  display: inline-block;
@@ -296,9 +447,44 @@ li.quick_quiz {
296
  text-decoration: none;
297
  content: attr(data-text-disable);
298
  }
 
 
 
 
 
 
 
 
 
299
  .learn-press-add-ons {
300
  margin: 20px 0 0;
301
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  .learn-press-add-ons:after {
303
  display: block;
304
  clear: both;
@@ -377,6 +563,15 @@ li.quick_quiz {
377
  .learn-press-add-ons .plugin-card-top {
378
  min-height: 180px;
379
  }
 
 
 
 
 
 
 
 
 
380
  .learn-press-add-ons .button.spinner {
381
  background: url(../../images/spinner.gif) no-repeat 4px !important;
382
  padding-left: 30px;
@@ -394,6 +589,17 @@ li.quick_quiz {
394
  .learn-press-add-ons .action-links > span.disabled {
395
  color: #FF0000;
396
  }
 
 
 
 
 
 
 
 
 
 
 
397
  .learn-press-add-ons .plugin-icon img {
398
  max-width: 100%;
399
  }
@@ -414,6 +620,11 @@ li.quick_quiz {
414
  background-color: #fff;
415
  border: 1px solid #ddd;
416
  overflow: hidden;
 
 
 
 
 
417
  }
418
  #learn-press-add-ons-wrap .theme h2 {
419
  margin: 0 0 20px 0;
@@ -426,6 +637,76 @@ li.quick_quiz {
426
  float: left;
427
  margin: 0 20px 0 0;
428
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
429
  @media (max-width: 1280px) {
430
  .learn-press-add-ons > li {
431
  /*width: 33.33%;*/
@@ -721,22 +1002,11 @@ body.post-type-lp_quiz #questions .inside,
721
  body.post-type-lp_question #question_answer_ .inside {
722
  padding: 0;
723
  }
724
- #questions .quiz-questions-heading {
725
- margin: 0;
726
- padding: 20px;
727
- background-color: #FFF;
728
- line-height: 1;
729
- border: 1px solid #DDD;
730
- }
731
  #questions .quiz-questions-heading .questions-toggle {
732
  float: right;
733
  margin: 0;
734
  line-height: 1;
735
  }
736
- #questions .quiz-questions-heading .questions-toggle a {
737
- color: #666666;
738
- box-shadow: none;
739
- }
740
  #questions .quiz-questions-heading .questions-toggle a:hover {
741
  color: #00a0d2;
742
  }
@@ -805,25 +1075,6 @@ body.post-type-lp_question #question_answer_ .inside {
805
  position: relative;
806
  z-index: 999;
807
  }
808
- #questions .quiz-question {
809
- margin: -1px 0 0 0;
810
- }
811
- #questions .quiz-question .learn-press-question {
812
- padding: 20px 20px 5px 20px;
813
- background-color: #FFF;
814
- border: 1px solid #DDD;
815
- border-top: none;
816
- }
817
- #questions .quiz-question-head {
818
- padding: 10px 20px;
819
- border: 1px solid #DDD;
820
- background-color: #F5F5F5;
821
- position: relative;
822
- }
823
- #questions .quiz-question.is-hidden .quiz-question-head,
824
- #questions .quiz-question.is-hidden .question-name {
825
- background-color: #FFF;
826
- }
827
  #questions .quiz-question-head .quiz-question-actions {
828
  float: right;
829
  margin: 1px 0;
@@ -839,15 +1090,6 @@ body.post-type-lp_question #question_answer_ .inside {
839
  #questions .quiz-question-head .quiz-question-actions a:hover {
840
  color: #00a0d2;
841
  }
842
- #questions .quiz-question-head .quiz-question-actions a.move {
843
- cursor: url("../../images/openhand.cur") 7 5, default;
844
- position: absolute;
845
- right: 0;
846
- height: 50px;
847
- top: 0;
848
- background: url("../../images/grippy_large.png") left no-repeat;
849
- width: 12px;
850
- }
851
  #questions .quiz-question-head:hover .quiz-question-actions {
852
  visibility: visible;
853
  }
@@ -862,17 +1104,8 @@ body.post-type-lp_question #question_answer_ .inside {
862
  box-shadow: none;
863
  padding-left: 0;
864
  width: 70%;
865
- font-weight: bold;
866
  color: #777;
867
  vertical-align: middle;
868
- background-color: #F5F5F5;
869
- }
870
- #questions .quiz-question-icon {
871
- display: inline-block;
872
- width: 25px;
873
- height: 25px;
874
- vertical-align: middle;
875
- margin-right: 10px;
876
  }
877
  #questions .quiz-question-icon img {
878
  max-width: 100%;
@@ -1178,7 +1411,7 @@ body.post-type-lp_question #question_answer_ .inside {
1178
  color: #222;
1179
  font-weight: bold;
1180
  display: block;
1181
- margin: 16px 0;
1182
  }
1183
  .description {
1184
  margin-top: 5px;
@@ -1319,6 +1552,90 @@ input.regular-text[id^="learn-press-emails"] {
1319
  #learn-press-admin-settings select {
1320
  vertical-align: top;
1321
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1322
  @-webkit-keyframes lp-spinner {
1323
  0% {
1324
  -webkit-transform: rotate(0deg);
@@ -1339,3 +1656,83 @@ input.regular-text[id^="learn-press-emails"] {
1339
  transform: rotate(359deg);
1340
  }
1341
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  * @author ThimPress
5
  * @version 1.0
6
  */
7
+ .rwmb-field {
8
+ margin: 20px 0 20px 0;
9
+ }
10
+ .rwmb-field .rwmb-input .rwmb-label {
11
+ margin-top: 0;
12
  }
13
  .lp-nav-tab-wrapper {
14
  border-bottom: 1px solid #ccc;
69
  }
70
  #learn-press-admin-settings .learn-press-settings-wrap {
71
  float: left;
72
+ padding: 1px 0 15px 300px;
73
  background: #FFF;
74
  z-index: 0;
75
  position: relative;
76
  width: 100%;
77
  box-sizing: border-box;
78
+ opacity: 0;
79
  }
80
  #learn-press-admin-settings .learn-press-settings-wrap:before {
81
  content: '';
85
  border-left: 1px solid #DDD;
86
  margin-left: -30px;
87
  }
88
+ #learn-press-admin-settings .learn-press-settings-wrap:after {
89
+ content: '';
90
+ display: block;
91
+ clear: both;
92
+ }
93
+ #learn-press-admin-settings .learn-press-settings-wrap.ready {
94
+ opacity: 1;
95
+ }
96
  #learn-press-admin-settings.no-subtabs .learn-press-settings-wrap {
97
  float: none;
98
  margin-left: 0;
105
  display: none;
106
  }
107
  #learn-press-admin-settings input[type="radio"] {
108
+ margin: 0;
109
  }
110
  #learn-press-admin-settings label {
111
  line-height: 1;
112
  }
113
+ #learn-press-admin-settings input[name="learn_press_single_course_image_size[width]"],
114
+ #learn-press-admin-settings input[name="learn_press_single_course_image_size[height]"],
115
+ #learn-press-admin-settings input[name="learn_press_course_thumbnail_image_size[width]"],
116
+ #learn-press-admin-settings input[name="learn_press_course_thumbnail_image_size[height]"] {
117
+ margin-top: -4px;
118
+ }
119
+ #learn-press-admin-settings input[name="learn_press_single_course_image_size[crop]"],
120
+ #learn-press-admin-settings input[name="learn_press_course_thumbnail_image_size[crop]"] {
121
+ margin-top: 3px;
122
+ }
123
+ #learn-press-admin-settings input[name="learn_press_course_base"] {
124
+ margin-top: 3px;
125
+ margin-right: 3px;
126
+ }
127
  /* message box */
128
  #learn-press-message-box-block {
129
  position: fixed;
193
  .meta_box_course_lesson_quiz li select {
194
  min-width: 250px;
195
  }
 
 
 
 
 
 
196
  .description {
197
  margin-top: 5px;
198
  }
200
  border: 2px dashed #999;
201
  padding: 10px;
202
  }
203
+ .learn-press-message {
204
+ position: relative;
205
+ }
206
+ .learn-press-message .learn-press-admin-notice-dismiss {
207
+ position: absolute;
208
  display: inline-block;
209
  background-color: #FFFFFF;
210
  border-radius: 50%;
211
+ box-shadow: 0px 0px 1px 1px #F1F1F1;
212
+ width: 20px;
213
+ height: 20px;
214
+ text-align: center;
215
  line-height: 20px;
216
+ text-decoration: none;
217
+ top: 50%;
218
+ right: 10px;
219
+ margin-top: -10px;
220
+ padding: 0;
221
+ }
222
+ .learn-press-message .learn-press-admin-notice-dismiss:before {
223
+ font-family: dashicons;
224
+ content: '\f335';
225
  text-align: center;
 
226
  font-size: 18px;
227
+ text-decoration: none;
 
228
  }
229
  /**
230
  * Course Metabox
300
  /*
301
  * Add on page
302
  */
303
+ .learnpress-advertis-admin {
304
+ margin-left: 160px;
305
+ padding: 10px 20px;
306
+ position: relative;
307
+ }
308
+ .learnpress-advertis-admin > .item {
309
+ display: none;
310
+ }
311
+ .learnpress-advertis-admin > .item:first-child {
312
+ display: block;
313
+ }
314
+ .learnpress-advertis-admin .learnpress-wrap-items {
315
+ position: relative;
316
+ overflow: hidden;
317
+ -webkit-transition: visibility 1s, opacity 1s;
318
+ transition: visibility 1s, opacity 1s;
319
+ padding: 20px;
320
+ background-color: #fff;
321
+ border: 1px solid #ddd;
322
+ margin-bottom: 30px;
323
+ }
324
+ .learnpress-advertis-admin .theme-thumbnail {
325
+ float: left;
326
+ width: 35%;
327
+ }
328
+ .learnpress-advertis-admin .theme-detail {
329
+ margin-left: 35%;
330
+ padding-left: 20px;
331
+ }
332
+ .learnpress-advertis-admin .learnpress-item {
333
+ position: relative;
334
+ float: left;
335
+ margin-right: -100%;
336
+ width: 100%;
337
+ box-sizing: border-box;
338
+ visibility: hidden;
339
+ opacity: 0;
340
+ -webkit-transition: visibility 0.5s linear, opacity 0.5s linear;
341
+ transition: visibility 0.5s linear, opacity 0.5s linear;
342
+ }
343
+ .learnpress-advertis-admin img {
344
+ width: 100%;
345
+ height: auto;
346
+ float: none;
347
+ }
348
+ .learnpress-advertis-admin .learnpress-active {
349
+ visibility: visible;
350
+ opacity: 1;
351
+ }
352
+ .learnpress-advertis-admin .learnpress-controls {
353
+ position: absolute;
354
+ bottom: 30px;
355
+ left: 0;
356
+ right: 0;
357
+ height: 50px;
358
+ -ms-transform: translateY(-50%);
359
+ -webkit-transform: translateY(-50%);
360
+ transform: translateY(-50%);
361
+ }
362
+ .learnpress-advertis-admin .learnpress-controls:after {
363
+ content: '';
364
+ clear: both;
365
+ display: block;
366
+ }
367
+ .learnpress-advertis-admin .learnpress-controls .prev-item,
368
+ .learnpress-advertis-admin .learnpress-controls .next-item {
369
+ position: absolute;
370
+ top: 0;
371
+ font-family: 'dashicons';
372
+ width: 40px;
373
+ height: 40px;
374
+ border: 1px solid #000;
375
+ line-height: 40px;
376
+ font-size: 16px;
377
+ color: #000;
378
+ cursor: pointer;
379
+ }
380
+ .learnpress-advertis-admin .learnpress-controls .prev-item {
381
+ right: 95px;
382
+ }
383
+ .learnpress-advertis-admin .learnpress-controls .prev-item:before {
384
+ content: "\f341";
385
+ display: block;
386
+ text-align: center;
387
+ }
388
+ .learnpress-advertis-admin .learnpress-controls .next-item {
389
+ right: 45px;
390
+ }
391
+ .learnpress-advertis-admin .learnpress-controls .next-item:before {
392
+ content: "\f345";
393
+ display: block;
394
+ text-align: center;
395
+ }
396
+ @media only screen and (max-width: 1200px) {
397
+ .learnpress-advertis-admin .theme-thumbnail {
398
+ width: 50%;
399
+ }
400
+ .learnpress-advertis-admin .theme-detail {
401
+ margin-left: 50%;
402
+ }
403
+ }
404
+ @media only screen and (max-width: 960px) {
405
+ .learnpress-advertis-admin {
406
+ margin-left: 36px;
407
+ }
408
+ .learnpress-advertis-admin .theme-thumbnail {
409
+ float: none;
410
+ width: 100%;
411
+ }
412
+ .learnpress-advertis-admin .theme-detail {
413
+ margin-top: 20px;
414
+ margin-left: 0;
415
+ padding-left: 0;
416
+ }
417
+ }
418
+ @media screen and (max-width: 782px) {
419
+ .learnpress-advertis-admin {
420
+ margin-left: 0;
421
+ }
422
+ }
423
  .lpr-add-ons-wrapper .add-on-info {
424
  width: 65%;
425
  display: inline-block;
447
  text-decoration: none;
448
  content: attr(data-text-disable);
449
  }
450
+ .lp-search-addon {
451
+ margin: 0;
452
+ width: 280px;
453
+ font-size: 16px;
454
+ font-weight: 300;
455
+ line-height: 1.5;
456
+ padding: 3px 5px;
457
+ height: 32px;
458
+ }
459
  .learn-press-add-ons {
460
  margin: 20px 0 0;
461
  }
462
+ .learn-press-add-ons .lp-addon-hidden {
463
+ display: none !important;
464
+ }
465
+ .learn-press-add-ons .lp-active:nth-of-type(2n+1) {
466
+ clear: none;
467
+ margin-right: 0;
468
+ margin-left: 8px;
469
+ }
470
+ .learn-press-add-ons .lp-active:nth-of-type(2n) {
471
+ clear: both;
472
+ margin-right: 8px;
473
+ margin-left: 0;
474
+ }
475
+ .learn-press-add-ons.learnpress-premium-plugin .column-description {
476
+ overflow: hidden;
477
+ text-overflow: ellipsis;
478
+ display: -webkit-box;
479
+ -webkit-box-orient: vertical;
480
+ -webkit-line-clamp: 4;
481
+ line-height: 1.6em;
482
+ max-height: 6.4em;
483
+ }
484
+ .learn-press-add-ons.learnpress-premium-plugin .column-description p {
485
+ margin: 0;
486
+ line-height: inherit;
487
+ }
488
  .learn-press-add-ons:after {
489
  display: block;
490
  clear: both;
563
  .learn-press-add-ons .plugin-card-top {
564
  min-height: 180px;
565
  }
566
+ .premium_add_ons.active .column-description p {
567
+ overflow: hidden;
568
+ text-overflow: ellipsis;
569
+ display: -webkit-box;
570
+ -webkit-box-orient: vertical;
571
+ -webkit-line-clamp: 5;
572
+ line-height: 1.6em;
573
+ max-height: 8em;
574
+ }
575
  .learn-press-add-ons .button.spinner {
576
  background: url(../../images/spinner.gif) no-repeat 4px !important;
577
  padding-left: 30px;
589
  .learn-press-add-ons .action-links > span.disabled {
590
  color: #FF0000;
591
  }
592
+ .learn-press-add-ons .action-links .price {
593
+ color: #439fdf;
594
+ font-weight: 700;
595
+ font-size: 15px;
596
+ line-height: 1.6em;
597
+ }
598
+ .learn-press-add-ons .action-links .price del {
599
+ font-weight: 400;
600
+ color: #aaa;
601
+ padding-right: 5px;
602
+ }
603
  .learn-press-add-ons .plugin-icon img {
604
  max-width: 100%;
605
  }
620
  background-color: #fff;
621
  border: 1px solid #ddd;
622
  overflow: hidden;
623
+ margin-bottom: 30px;
624
+ }
625
+ #learn-press-add-ons-wrap .theme-controls {
626
+ margin-top: 20px;
627
+ margin-bottom: 0;
628
  }
629
  #learn-press-add-ons-wrap .theme h2 {
630
  margin: 0 0 20px 0;
637
  float: left;
638
  margin: 0 20px 0 0;
639
  }
640
+ .related_themes .plugin-card-top {
641
+ padding-bottom: 0;
642
+ }
643
+ .related_themes .theme-content {
644
+ position: relative;
645
+ }
646
+ .related_themes .image-thumbnail img {
647
+ width: 100%;
648
+ }
649
+ .related_themes .theme-description {
650
+ margin: 0 0 25px 0;
651
+ overflow: hidden;
652
+ text-overflow: ellipsis;
653
+ display: -webkit-box;
654
+ -webkit-box-orient: vertical;
655
+ -webkit-line-clamp: 6;
656
+ line-height: 1.6em;
657
+ max-height: 9.6em;
658
+ }
659
+ .related_themes .theme-title {
660
+ margin-right: 100px;
661
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
662
+ font-size: 22px;
663
+ line-height: 1.6em;
664
+ margin-bottom: 0;
665
+ min-height: 3.2em;
666
+ }
667
+ .related_themes .theme-title a {
668
+ color: #545454;
669
+ }
670
+ .related_themes .theme-rating {
671
+ float: right;
672
+ display: inline-block;
673
+ }
674
+ .related_themes .star-rating {
675
+ display: inline-block;
676
+ }
677
+ .related_themes .count-rating {
678
+ font-size: 15px;
679
+ position: relative;
680
+ top: 2px;
681
+ }
682
+ .related_themes .theme-detail {
683
+ position: absolute;
684
+ right: 3px;
685
+ top: 0;
686
+ text-align: right;
687
+ line-height: 1.6em;
688
+ }
689
+ .related_themes .theme-detail:after {
690
+ content: '';
691
+ display: block;
692
+ clear: both;
693
+ }
694
+ .related_themes .theme-detail .theme-price {
695
+ display: inline-block;
696
+ font-size: 24px;
697
+ color: #545454;
698
+ font-weight: 700;
699
+ line-height: 1.6em;
700
+ }
701
+ .related_themes .theme-footer {
702
+ clear: both;
703
+ margin-left: -20px;
704
+ margin-right: -20px;
705
+ padding: 20px;
706
+ background-color: #fafafa;
707
+ border-top: 1px solid #ddd;
708
+ overflow: hidden;
709
+ }
710
  @media (max-width: 1280px) {
711
  .learn-press-add-ons > li {
712
  /*width: 33.33%;*/
1002
  body.post-type-lp_question #question_answer_ .inside {
1003
  padding: 0;
1004
  }
 
 
 
 
 
 
 
1005
  #questions .quiz-questions-heading .questions-toggle {
1006
  float: right;
1007
  margin: 0;
1008
  line-height: 1;
1009
  }
 
 
 
 
1010
  #questions .quiz-questions-heading .questions-toggle a:hover {
1011
  color: #00a0d2;
1012
  }
1075
  position: relative;
1076
  z-index: 999;
1077
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1078
  #questions .quiz-question-head .quiz-question-actions {
1079
  float: right;
1080
  margin: 1px 0;
1090
  #questions .quiz-question-head .quiz-question-actions a:hover {
1091
  color: #00a0d2;
1092
  }
 
 
 
 
 
 
 
 
 
1093
  #questions .quiz-question-head:hover .quiz-question-actions {
1094
  visibility: visible;
1095
  }
1104
  box-shadow: none;
1105
  padding-left: 0;
1106
  width: 70%;
 
1107
  color: #777;
1108
  vertical-align: middle;
 
 
 
 
 
 
 
 
1109
  }
1110
  #questions .quiz-question-icon img {
1111
  max-width: 100%;
1411
  color: #222;
1412
  font-weight: bold;
1413
  display: block;
1414
+ margin: 0 0 16px 0;
1415
  }
1416
  .description {
1417
  margin-top: 5px;
1552
  #learn-press-admin-settings select {
1553
  vertical-align: top;
1554
  }
1555
+ #learn_press_dashboard_widget .rss-widget ul li {
1556
+ margin-bottom: 10px !important;
1557
+ }
1558
+ #learn_press_dashboard_widget .rss-date {
1559
+ margin-left: 0;
1560
+ }
1561
+ #learn_press_dashboard_widget_status .inside {
1562
+ padding: 0;
1563
+ margin-top: 0;
1564
+ }
1565
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status {
1566
+ margin-top: 0;
1567
+ }
1568
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li {
1569
+ width: 50%;
1570
+ float: left;
1571
+ }
1572
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li > a {
1573
+ padding: 8px 12px;
1574
+ display: block;
1575
+ }
1576
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li.full-width {
1577
+ width: 100%;
1578
+ float: none;
1579
+ clear: both;
1580
+ }
1581
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li.full-width:first-child {
1582
+ border-bottom: 1px solid #ececec;
1583
+ }
1584
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li.full-width:first-child a {
1585
+ padding: 10px 12px;
1586
+ }
1587
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li.full-width:last-child {
1588
+ border-top: 1px solid #ececec;
1589
+ margin: 0 12px;
1590
+ }
1591
+ #learn_press_dashboard_widget_status .inside .learnpress-statistic-status li.full-width > a {
1592
+ display: inline-block;
1593
+ }
1594
+ .lp-template-overrides {
1595
+ margin-top: 20px;
1596
+ }
1597
+ .lp-template-overrides thead th h4 {
1598
+ margin: 0;
1599
+ }
1600
+ .lp-template-overrides tbody th {
1601
+ font-weight: bold;
1602
+ }
1603
+ .lp-template-overrides tbody th p {
1604
+ margin: 0 0 0 10px;
1605
+ display: inline-block;
1606
+ }
1607
+ .lp-template-overrides tbody th p a {
1608
+ font-weight: normal;
1609
+ outline: none;
1610
+ border: none;
1611
+ box-shadow: none;
1612
+ margin: 0;
1613
+ padding: 2px 8px;
1614
+ border-radius: 3px;
1615
+ }
1616
+ .lp-template-overrides tbody th p a.current {
1617
+ background: #00aadc;
1618
+ color: #FFF;
1619
+ }
1620
+ .lp-template-overrides .lp-template-version {
1621
+ width: 100px;
1622
+ }
1623
+ .lp-template-overrides .lp-template-version.outdated {
1624
+ color: #FF0000;
1625
+ }
1626
+ .lp-template-overrides .lp-template-version.up-to-date {
1627
+ color: #1859ff;
1628
+ }
1629
+ .lp-template-overrides .lp-template-version,
1630
+ .lp-template-overrides .lp-core-version {
1631
+ font-weight: bold;
1632
+ }
1633
+ .lp-template-overrides .lp-template-file {
1634
+ width: 50%;
1635
+ }
1636
+ .lp-template-overrides #learn-press-no-templates td p {
1637
+ color: #FF0000;
1638
+ }
1639
  @-webkit-keyframes lp-spinner {
1640
  0% {
1641
  -webkit-transform: rotate(0deg);
1656
  transform: rotate(359deg);
1657
  }
1658
  }
1659
+ .rwmb-quiz_questions-wrapper {
1660
+ background: #FFF;
1661
+ }
1662
+ .rwmb-quiz_questions-wrapper .quiz-questions-heading {
1663
+ border: 1px solid #DDD;
1664
+ background-color: #F9F9F9;
1665
+ border-bottom: none;
1666
+ margin: 0;
1667
+ color: #777;
1668
+ padding: 15px 20px 20px;
1669
+ font-size: 24px;
1670
+ }
1671
+ .rwmb-quiz_questions-wrapper .quiz-questions-heading a {
1672
+ font-size: 32px;
1673
+ color: #0073aa;
1674
+ box-shadow: none;
1675
+ }
1676
+ .rwmb-quiz_questions-wrapper .quiz-questions-heading a.dashicons-arrow-down::before {
1677
+ margin-left: -10px;
1678
+ }
1679
+ .rwmb-quiz_questions-wrapper .quiz-questions-heading a:hover {
1680
+ color: #00a0d2;
1681
+ }
1682
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions {
1683
+ padding: 20px;
1684
+ border: 1px solid #DDD;
1685
+ }
1686
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question {
1687
+ background: #FFF;
1688
+ border: 1px dashed #DDD;
1689
+ margin: -1px 0 0 0;
1690
+ padding: 5px 0;
1691
+ }
1692
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question:nth-child(2n+1) {
1693
+ background-color: #FCFCFC;
1694
+ }
1695
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question:nth-child(2n+1) .question-name {
1696
+ background-color: #FCFCFC;
1697
+ }
1698
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head {
1699
+ padding: 0 20px;
1700
+ position: relative;
1701
+ }
1702
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head .quiz-question-icon {
1703
+ width: 20px;
1704
+ height: 20px;
1705
+ display: inline-block;
1706
+ vertical-align: middle;
1707
+ margin-right: 10px;
1708
+ }
1709
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head .question-name {
1710
+ font-size: 16px;
1711
+ }
1712
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head .move {
1713
+ color: #666;
1714
+ cursor: url("../../images/openhand.cur") 7 5, default;
1715
+ position: absolute;
1716
+ right: 14px;
1717
+ height: 50px;
1718
+ top: 5px;
1719
+ width: 12px;
1720
+ box-shadow: none;
1721
+ }
1722
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head .move:hover {
1723
+ color: #00a0d2;
1724
+ }
1725
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head:hover .quiz-question-actions {
1726
+ margin-right: 20px;
1727
+ }
1728
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-head:hover .quiz-question-actions .dashicons-admin-page::before {
1729
+ margin-top: 2px;
1730
+ }
1731
+ .rwmb-quiz_questions-wrapper #learn-press-list-questions .quiz-question .quiz-question-content {
1732
+ padding: 0 20px;
1733
+ }
1734
+ .post-type-lp_quiz #general-settings a {
1735
+ font-size: 14px;
1736
+ font-weight: 400;
1737
+ margin-left: 10px;
1738
+ }
assets/css/admin/admin.less CHANGED
@@ -4,13 +4,15 @@
4
  * @author ThimPress
5
  * @version 1.0
6
  */
7
-
8
  // admin variables
9
  @primary-icon-color: #666666;
10
  @primary-icon-hover-color: #00a0d2;
 
 
 
11
 
12
- .rwmb-number-wrapper .rwmb-input {
13
- padding-top: 16px;
14
  }
15
 
16
  .lp-nav-tab-wrapper {
@@ -44,16 +46,16 @@
44
  }
45
 
46
  #learn-press-admin-settings {
47
- #learn_press_email_formats{
48
  margin-bottom: 10px;
49
  }
50
- .learn-press-email-variables{
51
  margin-left: 0;
52
  margin-top: 5px;
53
- li{
54
  display: inline-block;
55
  cursor: pointer;
56
- &:hover{
57
  color: #0085ba;
58
  }
59
  }
@@ -61,7 +63,6 @@
61
  .nav-tab-wrapper {
62
  margin-bottom: 20px;
63
  }
64
-
65
  .subsubsub {
66
  float: left;
67
  width: 240px;
@@ -80,12 +81,13 @@
80
  }
81
  .learn-press-settings-wrap {
82
  float: left;
83
- padding: 0 0 15px 300px;
84
  background: #FFF;
85
  z-index: 0;
86
  position: relative;
87
  width: 100%;
88
  box-sizing: border-box;
 
89
  &:before {
90
  content: '';
91
  position: absolute;
@@ -94,8 +96,16 @@
94
  border-left: 1px solid #DDD;
95
  margin-left: -30px;
96
  }
 
 
 
 
 
 
 
 
97
  }
98
- &.no-subtabs{
99
  .learn-press-settings-wrap {
100
  float: none;
101
  margin-left: 0;
@@ -104,17 +114,33 @@
104
  display: none;
105
  }
106
  }
107
- .subsubsub{
108
  display: none;
109
  }
110
  }
111
  input[type="radio"] {
112
- margin: 0 !important;
113
  }
114
- label{
115
  line-height: 1;
116
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  }
 
118
  /* message box */
119
  #learn-press-message-box-block {
120
  position: fixed;
@@ -197,13 +223,6 @@
197
  min-width: 250px;
198
  }
199
 
200
- .rwmb-meta-box label {
201
- color: #222;
202
- font-weight: bold;
203
- display: block;
204
- margin: 16px 0;
205
- }
206
-
207
  .description {
208
  margin-top: 5px;
209
  }
@@ -213,20 +232,31 @@
213
  padding: 10px;
214
  }
215
 
216
- .learn-press-admin-notice-dismiss:before {
217
- font-family: dashicons;
218
- content: '\f335';
219
- width: 20px;
220
- height: 20px;
221
- display: inline-block;
222
- background-color: #FFFFFF;
223
- border-radius: 50%;
224
- line-height: 20px;
225
- text-align: center;
226
- box-shadow: 0px 0px 1px 1px #F1F1F1;
227
- font-size: 18px;
228
- vertical-align: middle;
229
- float: right;
 
 
 
 
 
 
 
 
 
 
 
230
  }
231
 
232
  /**
@@ -313,6 +343,134 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
313
  /*
314
  * Add on page
315
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
 
317
  .lpr-add-ons-wrapper .add-on-info {
318
  width: 65%;
@@ -347,8 +505,50 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
347
  content: attr(data-text-disable);
348
  }
349
 
 
 
 
 
 
 
 
 
 
 
350
  .learn-press-add-ons {
351
  margin: 20px 0 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  }
353
 
354
  .learn-press-add-ons:after {
@@ -444,6 +644,16 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
444
  min-height: 180px;
445
  }
446
 
 
 
 
 
 
 
 
 
 
 
447
  .learn-press-add-ons .button.spinner {
448
  background: url(../../images/spinner.gif) no-repeat 4px !important;
449
  padding-left: 30px;
@@ -465,6 +675,19 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
465
  color: #FF0000;
466
  }
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  .learn-press-add-ons .plugin-icon img {
469
  max-width: 100%;
470
  }
@@ -490,6 +713,11 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
490
  background-color: #fff;
491
  border: 1px solid #ddd;
492
  overflow: hidden;
 
 
 
 
 
493
  }
494
 
495
  #learn-press-add-ons-wrap .theme h2 {
@@ -505,6 +733,85 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
505
  margin: 0 20px 0 0;
506
  }
507
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
508
  @media (max-width: 1280px) {
509
  .learn-press-add-ons > li {
510
  /*width: 33.33%;*/
@@ -514,6 +821,7 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
514
  @media screen and (max-width: 782px) {
515
  .learn-press-add-ons .enable-now {
516
  padding: 5px;
 
517
  }
518
 
519
  .learn-press-add-ons .enable-now:before {
@@ -527,6 +835,7 @@ li.quiz, li.lesson, li.quick_lesson, li.quick_quiz {
527
  #learn-press-add-ons-wrap .theme img {
528
  width: 50%;
529
  }
 
530
  }
531
 
532
  @media (max-width: 768px) {
@@ -883,25 +1192,12 @@ body.post-type-lp_question #question_answer_ .inside {
883
  padding: 0;
884
  }
885
 
886
- #questions .quiz-questions-heading {
887
- margin: 0;
888
- padding: 20px;
889
- background-color: #FFF;
890
- line-height: 1;
891
- border: 1px solid #DDD;
892
- }
893
-
894
  #questions .quiz-questions-heading .questions-toggle {
895
  float: right;
896
  margin: 0;
897
  line-height: 1;
898
  }
899
 
900
- #questions .quiz-questions-heading .questions-toggle a {
901
- color: @primary-icon-color;
902
- box-shadow: none;
903
- }
904
-
905
  #questions .quiz-questions-heading .questions-toggle a:hover {
906
  color: #00a0d2;
907
  }
@@ -984,29 +1280,6 @@ body.post-type-lp_question #question_answer_ .inside {
984
  z-index: 999;
985
  }
986
 
987
- #questions .quiz-question {
988
- margin: -1px 0 0 0;
989
- }
990
-
991
- #questions .quiz-question .learn-press-question {
992
- padding: 20px 20px 5px 20px;
993
- background-color: #FFF;
994
- border: 1px solid #DDD;
995
- border-top: none;
996
- }
997
-
998
- #questions .quiz-question-head {
999
- padding: 10px 20px;
1000
- border: 1px solid #DDD;
1001
- background-color: #F5F5F5;
1002
- position: relative;
1003
- }
1004
-
1005
- #questions .quiz-question.is-hidden .quiz-question-head,
1006
- #questions .quiz-question.is-hidden .question-name {
1007
- background-color: #FFF;
1008
- }
1009
-
1010
  #questions .quiz-question-head .quiz-question-actions {
1011
  float: right;
1012
  margin: 1px 0;
@@ -1025,16 +1298,6 @@ body.post-type-lp_question #question_answer_ .inside {
1025
  color: #00a0d2;
1026
  }
1027
 
1028
- #questions .quiz-question-head .quiz-question-actions a.move {
1029
- cursor: url("../../images/openhand.cur") 7 5, default;
1030
- position: absolute;
1031
- right: 0;
1032
- height: 50px;
1033
- top: 0;
1034
- background: url("../../images/grippy_large.png") left no-repeat;
1035
- width: 12px;
1036
- }
1037
-
1038
  #questions .quiz-question-head:hover .quiz-question-actions {
1039
  visibility: visible;
1040
  }
@@ -1051,18 +1314,8 @@ body.post-type-lp_question #question_answer_ .inside {
1051
  box-shadow: none;
1052
  padding-left: 0;
1053
  width: 70%;
1054
- font-weight: bold;
1055
  color: #777;
1056
  vertical-align: middle;
1057
- background-color: #F5F5F5;
1058
- }
1059
-
1060
- #questions .quiz-question-icon {
1061
- display: inline-block;
1062
- width: 25px;
1063
- height: 25px;
1064
- vertical-align: middle;
1065
- margin-right: 10px;
1066
  }
1067
 
1068
  #questions .quiz-question-icon img {
@@ -1434,7 +1687,7 @@ body.post-type-lp_question #question_answer_ .inside {
1434
  color: #222;
1435
  font-weight: bold;
1436
  display: block;
1437
- margin: 16px 0;
1438
  }
1439
 
1440
  .description {
@@ -1604,6 +1857,101 @@ input.regular-text[id^="learn-press-emails"] {
1604
  }
1605
  }
1606
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1607
  @-webkit-keyframes lp-spinner {
1608
  0% {
1609
  -webkit-transform: rotate(0deg);
@@ -1624,4 +1972,96 @@ input.regular-text[id^="learn-press-emails"] {
1624
  -webkit-transform: rotate(359deg);
1625
  transform: rotate(359deg);
1626
  }
1627
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<
4
  * @author ThimPress
5
  * @version 1.0
6
  */
 
7
  // admin variables
8
  @primary-icon-color: #666666;
9
  @primary-icon-hover-color: #00a0d2;
10
+ .rwmb-field {
11
+ margin: 20px 0 20px 0;
12
+ }
13
 
14
+ .rwmb-field .rwmb-input .rwmb-label {
15
+ margin-top: 0;
16
  }
17
 
18
  .lp-nav-tab-wrapper {
46
  }
47
 
48
  #learn-press-admin-settings {
49
+ #learn_press_email_formats {
50
  margin-bottom: 10px;
51
  }
52
+ .learn-press-email-variables {
53
  margin-left: 0;
54
  margin-top: 5px;
55
+ li {
56
  display: inline-block;
57
  cursor: pointer;
58
+ &:hover {
59
  color: #0085ba;
60
  }
61
  }
63
  .nav-tab-wrapper {
64
  margin-bottom: 20px;
65
  }
 
66
  .subsubsub {
67
  float: left;
68
  width: 240px;
81
  }
82
  .learn-press-settings-wrap {
83
  float: left;
84
+ padding: 1px 0 15px 300px;
85
  background: #FFF;
86
  z-index: 0;
87
  position: relative;
88
  width: 100%;
89
  box-sizing: border-box;
90
+ opacity: 0;
91
  &:before {
92
  content: '';
93
  position: absolute;
96
  border-left: 1px solid #DDD;
97
  margin-left: -30px;
98
  }
99
+ &:after {
100
+ content: '';
101
+ display: block;
102
+ clear: both;
103
+ }
104
+ &.ready {
105
+ opacity: 1;
106
+ }
107
  }
108
+ &.no-subtabs {
109
  .learn-press-settings-wrap {
110
  float: none;
111
  margin-left: 0;
114
  display: none;
115
  }
116
  }
117
+ .subsubsub {
118
  display: none;
119
  }
120
  }
121
  input[type="radio"] {
122
+ margin: 0;
123
  }
124
+ label {
125
  line-height: 1;
126
  }
127
+ input[name="learn_press_single_course_image_size[width]"],
128
+ input[name="learn_press_single_course_image_size[height]"],
129
+ input[name="learn_press_course_thumbnail_image_size[width]"],
130
+ input[name="learn_press_course_thumbnail_image_size[height]"] {
131
+ margin-top: -4px;
132
+ }
133
+ input[name="learn_press_single_course_image_size[crop]"],
134
+ input[name="learn_press_course_thumbnail_image_size[crop]"] {
135
+ margin-top: 3px;
136
+ }
137
+
138
+ input[name="learn_press_course_base"] {
139
+ margin-top: 3px;
140
+ margin-right: 3px;
141
+ }
142
  }
143
+
144
  /* message box */
145
  #learn-press-message-box-block {
146
  position: fixed;
223
  min-width: 250px;
224
  }
225
 
 
 
 
 
 
 
 
226
  .description {
227
  margin-top: 5px;
228
  }
232
  padding: 10px;
233
  }
234
 
235
+ .learn-press-message {
236
+ position: relative;
237
+ .learn-press-admin-notice-dismiss {
238
+ position: absolute;
239
+ display: inline-block;
240
+ background-color: #FFFFFF;
241
+ border-radius: 50%;
242
+ box-shadow: 0px 0px 1px 1px #F1F1F1;
243
+ width: 20px;
244
+ height: 20px;
245
+ text-align: center;
246
+ line-height: 20px;
247
+ text-decoration: none;
248
+ top: 50%;
249
+ right: 10px;
250
+ margin-top: -10px;
251
+ padding: 0;
252
+ &:before {
253
+ font-family: dashicons;
254
+ content: '\f335';
255
+ text-align: center;
256
+ font-size: 18px;
257
+ text-decoration: none;
258
+ }
259
+ }
260
  }
261
 
262
  /**
343
  /*
344
  * Add on page
345
  */
346
+ .learnpress-advertis-admin {
347
+
348
+ margin-left: 160px;
349
+ padding: 10px 20px;
350
+ position: relative;
351
+
352
+ > .item {
353
+ display: none;
354
+ }
355
+ > .item:first-child {
356
+ display: block;
357
+ }
358
+
359
+ .learnpress-wrap-items {
360
+ position: relative;
361
+ overflow: hidden;
362
+ -webkit-transition: visibility 1s, opacity 1s;
363
+ transition: visibility 1s, opacity 1s;
364
+ padding: 20px;
365
+ background-color: #fff;
366
+ border: 1px solid #ddd;
367
+ margin-bottom: 30px;
368
+ }
369
+ .theme-thumbnail {
370
+ float: left;
371
+ width: 35%;
372
+ }
373
+ .theme-detail {
374
+ margin-left: 35%;
375
+ padding-left: 20px;
376
+ }
377
+ .learnpress-item {
378
+ position: relative;
379
+ float: left;
380
+ margin-right: -100%;
381
+ width: 100%;
382
+ box-sizing: border-box;
383
+ visibility: hidden;
384
+ opacity: 0;
385
+ -webkit-transition: visibility 0.5s linear, opacity 0.5s linear;
386
+ transition: visibility 0.5s linear, opacity 0.5s linear;
387
+
388
+ }
389
+ img {
390
+ width: 100%;
391
+ height: auto;
392
+ float: none;
393
+ }
394
+ .learnpress-active {
395
+ visibility: visible;
396
+ opacity: 1;
397
+ }
398
+
399
+ .learnpress-controls {
400
+
401
+ &:after {
402
+ content: '';
403
+ clear: both;
404
+ display: block;
405
+ }
406
+
407
+ position: absolute;
408
+ bottom: 30px;
409
+ left: 0;
410
+ right: 0;
411
+ height: 50px;
412
+ -ms-transform: translateY(-50%);
413
+ -webkit-transform: translateY(-50%);
414
+ transform: translateY(-50%);
415
+
416
+ .prev-item,
417
+ .next-item {
418
+ position: absolute;
419
+ top: 0;
420
+ font-family: 'dashicons';
421
+ width: 40px;
422
+ height: 40px;
423
+ border: 1px solid #000;
424
+ line-height: 40px;
425
+ font-size: 16px;
426
+ color: #000;
427
+ cursor: pointer;
428
+ }
429
+ .prev-item {
430
+ right: 95px;
431
+ &:before {
432
+ content: "\f341";
433
+ display: block;
434
+ text-align: center;
435
+ }
436
+ }
437
+ .next-item {
438
+ right: 45px;
439
+
440
+ &:before {
441
+ content: "\f345";
442
+ display: block;
443
+ text-align: center;
444
+ }
445
+ }
446
+ }
447
+ @media only screen and (max-width:1200px) {
448
+ .theme-thumbnail {
449
+ width: 50%;
450
+ }
451
+ .theme-detail {
452
+ margin-left: 50%;
453
+ }
454
+ }
455
+
456
+ @media only screen and (max-width:960px) {
457
+ margin-left: 36px;
458
+
459
+ .theme-thumbnail {
460
+ float: none;
461
+ width: 100%;
462
+ }
463
+ .theme-detail {
464
+ margin-top: 20px;
465
+ margin-left: 0;
466
+ padding-left: 0;
467
+ }
468
+
469
+ }
470
+ @media screen and (max-width: 782px) {
471
+ margin-left: 0;
472
+ }
473
+ }
474
 
475
  .lpr-add-ons-wrapper .add-on-info {
476
  width: 65%;
505
  content: attr(data-text-disable);
506
  }
507
 
508
+ .lp-search-addon {
509
+ margin: 0;
510
+ width: 280px;
511
+ font-size: 16px;
512
+ font-weight: 300;
513
+ line-height: 1.5;
514
+ padding: 3px 5px;
515
+ height: 32px;
516
+ }
517
+