Skip to content

Commit

Permalink
Remove notices in Text module.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Aug 11, 2023
1 parent 26ef685 commit c5abbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
14 changes: 2 additions & 12 deletions source/php/Module/Text/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,14 @@ public function init()

public function data() : array
{
$data = $this->getFields();
$data['classes'] = implode(' ', apply_filters('Modularity/Module/Classes', array('box', 'box-panel'), $this->post_type, $this->args));
$data['ID'] = $this->ID;

if($data['content']) {
$data['post_content'] = $data['content'];
}

return $data;
return $this->getFields();
}

public function template()
{
if (!isset($this->data['hide_box_frame']) || !$this->data['hide_box_frame']) {
return 'box.blade.php';
return 'box.blade.php';
}


return 'article.blade.php';
}

Expand Down
1 change: 0 additions & 1 deletion source/php/Module/Text/views/box-v3.blade.php.example

This file was deleted.

0 comments on commit c5abbe3

Please sign in to comment.