Tutor LMS – eLearning and online course solution - Version 1.0.9

Version Description

  • 28 March, 2019 =

  • Limit: Quiz Question 5 types

  • Updated: course saving message to course related words

  • Fixed: is course complete check an issue if user not logged in return false

  • Fixed: an issue: in WooCommerce discount coupon for course

  • Fixed: Lesson slug will be updated instantly right after update lesson content and title

  • Changed: Some text, spelling

Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

assets/css/tutor-admin.css CHANGED
@@ -1099,6 +1099,9 @@ Quiz Modal
1099
  .tutor-select .select-header .lead-option {
1100
  flex: 1;
1101
  }
 
 
 
1102
  .tutor-select .tutor-select-options {
1103
  border: 1px solid #DEDEDE;
1104
  background-color: #fff;
@@ -1113,11 +1116,19 @@ Quiz Modal
1113
  display: inline-block;
1114
  padding: 2%;
1115
  cursor: pointer;
 
1116
  }
1117
  .tutor-select .tutor-select-options .tutor-select-option:hover {
1118
  background: #eee;
1119
  }
1120
-
 
 
 
 
 
 
 
1121
  i.tutor-icon-block {
1122
  padding: 5px;
1123
  color: #fff;
1099
  .tutor-select .select-header .lead-option {
1100
  flex: 1;
1101
  }
1102
+ .tutor-select .select-header .lead-option .question-type-pro{
1103
+ display: none;
1104
+ }
1105
  .tutor-select .tutor-select-options {
1106
  border: 1px solid #DEDEDE;
1107
  background-color: #fff;
1116
  display: inline-block;
1117
  padding: 2%;
1118
  cursor: pointer;
1119
+ position: relative;
1120
  }
1121
  .tutor-select .tutor-select-options .tutor-select-option:hover {
1122
  background: #eee;
1123
  }
1124
+ .question-type-pro {
1125
+ background: #d64d4d;
1126
+ color: #fff;
1127
+ font-size: 9px;
1128
+ padding: 3px 5px;
1129
+ right: 0;
1130
+ position: absolute;
1131
+ }
1132
  i.tutor-icon-block {
1133
  padding: 5px;
1134
  color: #fff;
assets/js/tutor-admin.js CHANGED
@@ -1515,10 +1515,14 @@ jQuery(document).ready(function($){
1515
  e.preventDefault();
1516
 
1517
  var $that = $(this);
1518
- var $html = $that.html().trim();
1519
- $that.closest('.tutor-select').find('.select-header .lead-option').html($html);
1520
- $that.closest('.tutor-select').find('.select-header input.tutor_select_value_holder').val($that.attr('data-value')).trigger('change');
1521
- $that.closest('.tutor-select-options').hide();
 
 
 
 
1522
  });
1523
  $(document).on('click', '.tutor-select .select-header', function(e){
1524
  e.preventDefault();
1515
  e.preventDefault();
1516
 
1517
  var $that = $(this);
1518
+ if ($that.attr('data-is-pro') !== 'true') {
1519
+ var $html = $that.html().trim();
1520
+ $that.closest('.tutor-select').find('.select-header .lead-option').html($html);
1521
+ $that.closest('.tutor-select').find('.select-header input.tutor_select_value_holder').val($that.attr('data-value')).trigger('change');
1522
+ $that.closest('.tutor-select-options').hide();
1523
+ }else{
1524
+ alert('Tutor Pro version required');
1525
+ }
1526
  });
1527
  $(document).on('click', '.tutor-select .select-header', function(e){
1528
  e.preventDefault();
classes/Lesson.php CHANGED
@@ -126,6 +126,7 @@ class Lesson extends Tutor_Base {
126
  $lesson_data = array(
127
  'ID' => $lesson_id,
128
  'post_title' => $title,
 
129
  'post_content' => $lesson_content,
130
  );
131
 
126
  $lesson_data = array(
127
  'ID' => $lesson_id,
128
  'post_title' => $title,
129
+ 'post_name' => sanitize_title($title),
130
  'post_content' => $lesson_content,
131
  );
132
 
classes/Post_types.php CHANGED
@@ -15,6 +15,12 @@ class Post_types{
15
  add_action( 'init', array($this, 'register_course_post_types') );
16
  add_action( 'init', array($this, 'register_lesson_post_types') );
17
  add_action( 'init', array($this, 'register_quiz_post_types') );
 
 
 
 
 
 
18
  }
19
 
20
  public function register_course_post_types() {
@@ -231,4 +237,49 @@ class Post_types{
231
  register_post_type( 'tutor_quiz', $args );
232
  }
233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  }
15
  add_action( 'init', array($this, 'register_course_post_types') );
16
  add_action( 'init', array($this, 'register_lesson_post_types') );
17
  add_action( 'init', array($this, 'register_quiz_post_types') );
18
+
19
+
20
+ /**
21
+ * Customize the message of course
22
+ */
23
+ add_filter( 'post_updated_messages', array($this, 'course_updated_messages') );
24
  }
25
 
26
  public function register_course_post_types() {
237
  register_post_type( 'tutor_quiz', $args );
238
  }
239
 
240
+
241
+
242
+ function course_updated_messages( $messages ) {
243
+ $post = get_post();
244
+ $post_type = get_post_type( $post );
245
+ $post_type_object = get_post_type_object( $post_type );
246
+
247
+ $course_post_type = tutor()->course_post_type;
248
+
249
+ $messages[$course_post_type] = array(
250
+ 0 => '', // Unused. Messages start at index 1.
251
+ 1 => __( 'Course updated.', 'tutor' ),
252
+ 2 => __( 'Custom field updated.', 'tutor' ),
253
+ 3 => __( 'Custom field deleted.', 'tutor' ),
254
+ 4 => __( 'Course updated.', 'tutor' ),
255
+ /* translators: %s: date and time of the revision */
256
+ 5 => isset( $_GET['revision'] ) ? sprintf( __( 'Course restored to revision from %s', 'tutor' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
257
+ 6 => __( 'Course published.', 'tutor' ),
258
+ 7 => __( 'Course saved.', 'tutor' ),
259
+ 8 => __( 'Course submitted.', 'tutor' ),
260
+ 9 => sprintf(
261
+ __( 'Course scheduled for: <strong>%1$s</strong>.', 'tutor' ),
262
+ // translators: Publish box date format, see http://php.net/date
263
+ date_i18n( __( 'M j, Y @ G:i', 'tutor' ), strtotime( $post->post_date ) )
264
+ ),
265
+ 10 => __( 'Course draft updated.', 'tutor' )
266
+ );
267
+
268
+ if ( $post_type_object->publicly_queryable && $course_post_type === $post_type ) {
269
+ $permalink = get_permalink( $post->ID );
270
+
271
+ $view_link = sprintf( ' <a href="%s">%s</a>', esc_url( $permalink ), __( 'View course', 'tutor' ) );
272
+ $messages[ $post_type ][1] .= $view_link;
273
+ $messages[ $post_type ][6] .= $view_link;
274
+ $messages[ $post_type ][9] .= $view_link;
275
+
276
+ $preview_permalink = add_query_arg( 'preview', 'true', $permalink );
277
+ $preview_link = sprintf( ' <a target="_blank" href="%s">%s</a>', esc_url( $preview_permalink ), __( 'Preview course', 'tutor' ) );
278
+ $messages[ $post_type ][8] .= $preview_link;
279
+ $messages[ $post_type ][10] .= $preview_link;
280
+ }
281
+
282
+ return $messages;
283
+ }
284
+
285
  }
classes/Utils.php CHANGED
@@ -1237,6 +1237,10 @@ class Utils {
1237
  */
1238
 
1239
  public function is_completed_course($course_id = 0, $user_id = 0){
 
 
 
 
1240
  global $wpdb;
1241
  $course_id = $this->get_post_id($course_id);
1242
  $user_id = $this->get_user_id($user_id);
@@ -2895,18 +2899,16 @@ class Utils {
2895
 
2896
  public function get_question_types($type = null){
2897
  $types = array(
2898
- 'true_false' => array('name' => __('True/False', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-yes-no"></i>'),
2899
- 'single_choice' => array('name' => __('Single Choice', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-mark"></i>'),
2900
- 'multiple_choice' => array('name' => __('Multiple Choice', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-multiple-choice"></i>'),
2901
- 'open_ended' => array('name' => __('Open Ended/Essay', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-open-ended"></i>'),
2902
- 'short_answer' => array('name' => __('Short Answer', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-short-ans"></i>'),
2903
- 'fill_in_the_blank' => array('name' => __('Fill In The Blank', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-fill-gaps"></i>'),
2904
- 'answer_sorting' => array('name' => __('Answer Sorting', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-answer-shorting"></i>'),
2905
- 'assessment' => array('name' => __('Assessment', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-assesment"></i>'),
2906
- 'matching' => array('name' => __('Matching', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-matching"></i>'),
2907
- 'image_matching' => array('name' => __('Image Matching', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-image-matching"></i>'),
2908
- 'image_answering' => array('name' => __('Image Answering', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-image-ans"></i>'),
2909
- 'ordering' => array('name' => __('Ordering', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-ordering"></i>'),
2910
  );
2911
 
2912
  if (isset($types[$type])){
1237
  */
1238
 
1239
  public function is_completed_course($course_id = 0, $user_id = 0){
1240
+ if ( ! is_user_logged_in()){
1241
+ return false;
1242
+ }
1243
+
1244
  global $wpdb;
1245
  $course_id = $this->get_post_id($course_id);
1246
  $user_id = $this->get_user_id($user_id);
2899
 
2900
  public function get_question_types($type = null){
2901
  $types = array(
2902
+ 'true_false' => array('name' => __('True/False', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-yes-no"></i>', 'is_pro' => false),
2903
+ 'single_choice' => array('name' => __('Single Choice', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-mark"></i>', 'is_pro' => false),
2904
+ 'multiple_choice' => array('name' => __('Multiple Choice', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-multiple-choice"></i>', 'is_pro' => false),
2905
+ 'open_ended' => array('name' => __('Open Ended/Essay', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-open-ended"></i>', 'is_pro' => false),
2906
+ 'fill_in_the_blank' => array('name' => __('Fill In The Blank', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-fill-gaps"></i>', 'is_pro' => false),
2907
+ 'short_answer' => array('name' => __('Short Answer', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-short-ans"></i>', 'is_pro' => true),
2908
+ 'matching' => array('name' => __('Matching', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-matching"></i>', 'is_pro' => true),
2909
+ 'image_matching' => array('name' => __('Image Matching', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-image-matching"></i>', 'is_pro' => true),
2910
+ 'image_answering' => array('name' => __('Image Answering', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-image-ans"></i>', 'is_pro' => true),
2911
+ 'ordering' => array('name' => __('Ordering', 'tutor'), 'icon' => '<i class="tutor-icon-block tutor-icon-ordering"></i>', 'is_pro' => true),
 
 
2912
  );
2913
 
2914
  if (isset($types[$type])){
classes/WooCommerce.php CHANGED
@@ -146,8 +146,6 @@ class WooCommerce extends Tutor_Base {
146
  }
147
  }
148
 
149
-
150
-
151
  public function save_wc_product_meta($post_ID){
152
  $is_tutor_product = tutor_utils()->avalue_dot('_tutor_product', $_POST);
153
  if ($is_tutor_product === 'on'){
@@ -162,7 +160,7 @@ class WooCommerce extends Tutor_Base {
162
  */
163
 
164
  public function course_placing_order( $item_id, $item, $order_id){
165
- //$item = new \WC_Order_Item_Product($item);
166
 
167
  $product_id = $item->get_product_id();
168
  $if_has_course = tutor_utils()->product_belongs_with_course($product_id);
146
  }
147
  }
148
 
 
 
149
  public function save_wc_product_meta($post_ID){
150
  $is_tutor_product = tutor_utils()->avalue_dot('_tutor_product', $_POST);
151
  if ($is_tutor_product === 'on'){
160
  */
161
 
162
  public function course_placing_order( $item_id, $item, $order_id){
163
+ $item = new \WC_Order_Item_Product($item);
164
 
165
  $product_id = $item->get_product_id();
166
  $if_has_course = tutor_utils()->product_belongs_with_course($product_id);
languages/tutor.pot CHANGED
@@ -1719,7 +1719,7 @@ msgid "Select product"
1719
  msgstr ""
1720
 
1721
  #: views/metabox/course-add-product-metabox.php:17
1722
- msgid "Only for if you sell course"
1723
  msgstr ""
1724
 
1725
  #: views/metabox/course-add-product-metabox.php:27
1719
  msgstr ""
1720
 
1721
  #: views/metabox/course-add-product-metabox.php:17
1722
+ msgid "When selling the course"
1723
  msgstr ""
1724
 
1725
  #: views/metabox/course-add-product-metabox.php:27
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: lms, education, wp-lms, education management system
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.4.0
8
- Stable tag: 1.0.8
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -184,6 +184,15 @@ This is an alpha version of Tutor, as bugs and issues expected, if you found any
184
  == Changelog ==
185
 
186
 
 
 
 
 
 
 
 
 
 
187
  = 1.0.8 - 25 March, 2019 =
188
 
189
  * Added: WooCommerce and EDD support to sell courses
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.4.0
8
+ Stable tag: 1.0.9
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 
184
  == Changelog ==
185
 
186
 
187
+ = 1.0.9 - 28 March, 2019 =
188
+
189
+ * Limit: Quiz Question 5 types
190
+ * Updated: course saving message to course related words
191
+ * Fixed: is course complete check an issue if user not logged in return false
192
+ * Fixed: an issue: in WooCommerce discount coupon for course
193
+ * Fixed: Lesson slug will be updated instantly right after update lesson content and title
194
+ * Changed: Some text, spelling
195
+
196
  = 1.0.8 - 25 March, 2019 =
197
 
198
  * Added: WooCommerce and EDD support to sell courses
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.0.8
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.0.8');
21
  define('TUTOR_FILE', __FILE__);
22
 
23
 
@@ -65,4 +65,4 @@ function tutor_utils(){
65
  }
66
 
67
  $tutor = new \TUTOR\init();
68
- $tutor->run(); //Boom
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.0.9
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.0.9');
21
  define('TUTOR_FILE', __FILE__);
22
 
23
 
65
  }
66
 
67
  $tutor = new \TUTOR\init();
68
+ $tutor->run(); //Boom
views/metabox/course-add-edd-product-metabox.php CHANGED
@@ -14,7 +14,7 @@
14
  <div class="tutor-option-field-label">
15
  <label for="">
16
  <?php _e('Select product', 'tutor-edd'); ?> <br />
17
- <p class="text-muted">(<?php _e('Only for if you sell course', 'tutor-edd'); ?>)</p>
18
  </label>
19
  </div>
20
  <div class="tutor-option-field">
14
  <div class="tutor-option-field-label">
15
  <label for="">
16
  <?php _e('Select product', 'tutor-edd'); ?> <br />
17
+ <p class="text-muted">(<?php _e('When selling the course', 'tutor-edd'); ?>)</p>
18
  </label>
19
  </div>
20
  <div class="tutor-option-field">
views/metabox/course-add-product-metabox.php CHANGED
@@ -14,7 +14,7 @@
14
  <div class="tutor-option-field-label">
15
  <label for="">
16
  <?php _e('Select product', 'tutor'); ?> <br />
17
- <p class="text-muted">(<?php _e('Only for if you sell course', 'tutor'); ?>)</p>
18
  </label>
19
  </div>
20
  <div class="tutor-option-field">
@@ -40,7 +40,8 @@
40
  </select>
41
 
42
  <p class="desc">
43
- <?php _e('If you like to sell your course, then select a product, the purchase will be process by WooCommerce', 'tutor'); ?>
 
44
  </p>
45
  </div>
46
  </div>
14
  <div class="tutor-option-field-label">
15
  <label for="">
16
  <?php _e('Select product', 'tutor'); ?> <br />
17
+ <p class="text-muted">(<?php _e('When selling the course', 'tutor'); ?>)</p>
18
  </label>
19
  </div>
20
  <div class="tutor-option-field">
40
  </select>
41
 
42
  <p class="desc">
43
+ <?php _e("If you'd like to sell this course, then select a product, the purchasing will completely be handled by WooCommerce",
44
+ 'tutor'); ?>
45
  </p>
46
  </div>
47
  </div>
views/modal/question_form.php CHANGED
@@ -39,37 +39,61 @@ $settings = maybe_unserialize($question->question_settings);
39
  <input type="hidden" class="tutor_select_value_holder" name="tutor_quiz_question[<?php echo $question_id; ?>][question_type]" value="" >
40
  </div>
41
 
 
 
 
 
 
42
  <div class="tutor-select-options" style="display: none;">
43
- <p class="tutor-select-option" data-value="true_false" <?php echo $question->question_type === 'true_false' ? ' data-selected="selected"' : ''; ?> >
44
- <i class="tutor-icon-block tutor-icon-yes-no"></i> <?php _e('True False'); ?>
45
- </p>
46
- <p class="tutor-select-option" data-value="single_choice" <?php echo $question->question_type === 'single_choice' ? ' data-selected="selected"' : ''; ?>>
47
- <i class="tutor-icon-block tutor-icon-mark"></i> <?php _e('Single Choice'); ?>
48
- </p>
49
- <p class="tutor-select-option" data-value="multiple_choice" <?php echo $question->question_type === 'multiple_choice' ? ' data-selected="selected"' : ''; ?>>
50
- <i class="tutor-icon-block tutor-icon-multiple-choice"></i> <?php _e('Multiple Choice', 'tutor'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  </p>
52
- <p class="tutor-select-option" data-value="open_ended" <?php echo $question->question_type === 'open_ended' ? ' data-selected="selected"' : ''; ?>>
53
- <i class="tutor-icon-block tutor-icon-open-ended"></i> <?php _e('Open Ended/Essay', 'tutor'); ?>
54
  </p>
55
- <p class="tutor-select-option" data-value="short_answer" <?php echo $question->question_type === 'short_answer' ? ' data-selected="selected"' : ''; ?>>
56
- <i class="tutor-icon-block tutor-icon-short-ans"></i> <?php _e('Short Answer', 'tutor'); ?>
57
  </p>
58
- <p class="tutor-select-option" data-value="fill_in_the_blank" <?php echo $question->question_type === 'fill_in_the_blank' ? ' data-selected="selected"' : ''; ?>>
59
- <i class="tutor-icon-block tutor-icon-fill-gaps"></i> <?php _e('Fill In The Gaps'); ?>
60
  </p>
61
- <p class="tutor-select-option" data-value="matching" <?php echo $question->question_type === 'matching' ? ' data-selected="selected"' : ''; ?>>
62
- <i class="tutor-icon-block tutor-icon-matching"></i> <?php _e('Matching', 'tutor'); ?>
63
  </p>
64
- <p class="tutor-select-option" data-value="image_matching" <?php echo $question->question_type === 'image_matching' ? ' data-selected="selected"' : ''; ?>>
65
- <i class="tutor-icon-block tutor-icon-image-matching"></i> <?php _e('Image Matching', 'tutor'); ?>
66
  </p>
67
- <p class="tutor-select-option" data-value="image_answering" <?php echo $question->question_type === 'image_answering' ? ' data-selected="selected"' : ''; ?>>
68
- <i class="tutor-icon-block tutor-icon-image-ans"></i> <?php _e('Image Answering', 'tutor'); ?>
69
  </p>
70
- <p class="tutor-select-option" data-value="ordering" <?php echo $question->question_type === 'ordering' ? ' data-selected="selected"' : ''; ?>>
71
- <i class="tutor-icon-block tutor-icon-ordering"></i> <?php _e('Ordering', 'tutor'); ?>
72
  </p>
 
 
 
73
  </div>
74
  </div>
75
 
39
  <input type="hidden" class="tutor_select_value_holder" name="tutor_quiz_question[<?php echo $question_id; ?>][question_type]" value="" >
40
  </div>
41
 
42
+ <?php $question_types = tutor_utils()->get_question_types();
43
+
44
+
45
+ ?>
46
+
47
  <div class="tutor-select-options" style="display: none;">
48
+ <?php
49
+ $has_tutor_pro = tutor()->has_pro;
50
+
51
+ foreach ($question_types as $type => $question_type){
52
+ ?>
53
+ <p class="tutor-select-option" data-value="<?php echo $type; ?>" <?php echo $question->question_type===$type ? ' data-selected="selected"' : ''; ?> data-is-pro="<?php echo (! $has_tutor_pro && $question_type['is_pro']) ? 'true' : 'false' ?>" >
54
+ <?php echo $question_type['icon'].' '.$question_type['name']; ?>
55
+
56
+ <?php
57
+ if (! $has_tutor_pro && $question_type['is_pro']){
58
+ echo '<span class="question-type-pro">PRO</span>';
59
+ }
60
+ ?>
61
+ </p>
62
+ <?php
63
+ }
64
+ ?>
65
+ <!--<p class="tutor-select-option" data-value="true_false" <?php /*echo $question->question_type === 'true_false' ? ' data-selected="selected"' : ''; */?> >
66
+ <i class="tutor-icon-block tutor-icon-yes-no"></i> <?php /*_e('True False'); */?>
67
+ </p>-->
68
+
69
+
70
+ <!--<p class="tutor-select-option" data-value="single_choice" <?php /*echo $question->question_type === 'single_choice' ? ' data-selected="selected"' : ''; */?>>
71
+ <i class="tutor-icon-block tutor-icon-mark"></i> <?php /*_e('Single Choice'); */?>
72
  </p>
73
+ <p class="tutor-select-option" data-value="multiple_choice" <?php /*echo $question->question_type === 'multiple_choice' ? ' data-selected="selected"' : ''; */?>>
74
+ <i class="tutor-icon-block tutor-icon-multiple-choice"></i> <?php /*_e('Multiple Choice', 'tutor'); */?>
75
  </p>
76
+ <p class="tutor-select-option" data-value="open_ended" <?php /*echo $question->question_type === 'open_ended' ? ' data-selected="selected"' : ''; */?>>
77
+ <i class="tutor-icon-block tutor-icon-open-ended"></i> <?php /*_e('Open Ended/Essay', 'tutor'); */?>
78
  </p>
79
+ <p class="tutor-select-option" data-value="short_answer" <?php /*echo $question->question_type === 'short_answer' ? ' data-selected="selected"' : ''; */?>>
80
+ <i class="tutor-icon-block tutor-icon-short-ans"></i> <?php /*_e('Short Answer', 'tutor'); */?>
81
  </p>
82
+ <p class="tutor-select-option" data-value="fill_in_the_blank" <?php /*echo $question->question_type === 'fill_in_the_blank' ? ' data-selected="selected"' : ''; */?>>
83
+ <i class="tutor-icon-block tutor-icon-fill-gaps"></i> <?php /*_e('Fill In The Gaps'); */?>
84
  </p>
85
+ <p class="tutor-select-option" data-value="matching" <?php /*echo $question->question_type === 'matching' ? ' data-selected="selected"' : ''; */?>>
86
+ <i class="tutor-icon-block tutor-icon-matching"></i> <?php /*_e('Matching', 'tutor'); */?>
87
  </p>
88
+ <p class="tutor-select-option" data-value="image_matching" <?php /*echo $question->question_type === 'image_matching' ? ' data-selected="selected"' : ''; */?>>
89
+ <i class="tutor-icon-block tutor-icon-image-matching"></i> <?php /*_e('Image Matching', 'tutor'); */?>
90
  </p>
91
+ <p class="tutor-select-option" data-value="image_answering" <?php /*echo $question->question_type === 'image_answering' ? ' data-selected="selected"' : ''; */?>>
92
+ <i class="tutor-icon-block tutor-icon-image-ans"></i> <?php /*_e('Image Answering', 'tutor'); */?>
93
  </p>
94
+ <p class="tutor-select-option" data-value="ordering" <?php /*echo $question->question_type === 'ordering' ? ' data-selected="selected"' : ''; */?>>
95
+ <i class="tutor-icon-block tutor-icon-ordering"></i> <?php /*_e('Ordering', 'tutor'); */?>
96
+ </p>-->
97
  </div>
98
  </div>
99