Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Fix Options autoload field set to null.
Fix enqueue service for enqueueing css file in panel from proper dir.
  • Loading branch information
ibelar committed Dec 16, 2017
1 parent 2fef64b commit 81bf4dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/models/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function init()
$this->id_field = 'option_id';
parent::init();

$this->addField('name', ['actual'=>'option_name']);
$this->addField('value', ['actual'=>'option_value']);
$this->addField('autoload');
$this->addField('name', ['actual' => 'option_name']);
$this->addField('value', ['actual' => 'option_value']);
$this->addField('autoload', ['default' => true]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/services/EnqueueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function enqueueAdminFiles($hook)

if (isset($component)) {
$this->jsFiles = array_merge($this->jsFiles, $this->atkJsFiles);
$this->cssFiles = array_merge($this->cssFiles, $this->atkCssFiles, [$this->vendorUrl.'/atk-wordpress/assets/css/atk-wordpress.css']);
$this->cssFiles = array_merge($this->cssFiles, $this->atkCssFiles, [$this->vendorUrl.'/ibelar/atk-wordpress/assets/css/atk-wordpress.css']);

//check if component require specific js or css file.
if (isset($component['js']) && !empty($component['js'])) {
Expand Down

0 comments on commit 81bf4dd

Please sign in to comment.