Skip to content

Commit

Permalink
fixed #6 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
llemurya committed Oct 21, 2015
1 parent 3fea63f commit 38d8cde
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class FW_Option_Type_Quiz_Builder_Item_Gap_Fill extends FW_Option_Type_Quiz_Buil
private $parent = null;

public function _init() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

$this->set_options( array(
'text-before' => array(
'type' => 'text',
Expand Down Expand Up @@ -60,7 +62,6 @@ public function get_thumbnails() {
}

public function enqueue_static() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

wp_enqueue_style(
'fw-builder-' . $this->get_builder_type() . '-item-' . $this->get_type(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class FW_Option_Type_Quiz_Builder_Item_Multiple_Choice extends FW_Option_Type_Qu
private $parent = null;

public function _init() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

$this->set_options( array(
'correct-answers-group' => array(
'type' => 'group',
Expand Down Expand Up @@ -61,7 +63,6 @@ public function get_thumbnails() {
}

public function enqueue_static() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

wp_enqueue_style(
'fw-builder-' . $this->get_builder_type() . '-item-' . $this->get_type(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class FW_Option_Type_Quiz_Builder_Item_Single_Choice extends FW_Option_Type_Quiz
private $parent = null;

public function _init() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

$this->set_options( array(
'correct-answer-group' => array(
'type' => 'group',
Expand Down Expand Up @@ -58,7 +60,6 @@ public function get_thumbnails() {
}

public function enqueue_static() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

wp_enqueue_style(
'fw-builder-' . $this->get_builder_type() . '-item-' . $this->get_type(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class FW_Option_Type_Quiz_Builder_Item_True_False extends FW_Option_Type_Quiz_Bu
private $parent = null;

public function _init() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

$this->set_options( array(
'correct-answer' => array(
'type' => 'switch',
Expand Down Expand Up @@ -47,7 +49,6 @@ public function get_thumbnails() {
}

public function enqueue_static() {
$this->parent = fw()->extensions->get( 'learning-quiz' );

wp_enqueue_style(
'fw-builder-' . $this->get_builder_type() . '-item-' . $this->get_type(),
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.' Using this extension you can add courses, lessons and tests for your users to take.',
'fw'
);
$manifest['version'] = '1.0.9';
$manifest['version'] = '1.0.10';
$manifest['display'] = true;
$manifest['standalone'] = true;

Expand Down

0 comments on commit 38d8cde

Please sign in to comment.