Skip to content

Commit

Permalink
Merge pull request #21 from justcoded/develop
Browse files Browse the repository at this point in the history
Page builder loader class better class references
  • Loading branch information
aprokopenko authored Aug 27, 2018
2 parents cc37a68 + ad36666 commit e336393
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions app/Page_Builder/SiteOrigin_Panels.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php
namespace Boilerplate\Theme\Page_Builder;

use Boilerplate\Theme\Page_Builder\Row;
use Boilerplate\Theme\Page_Builder\Widget;
use JustCoded\WP\Framework\Page_Builder\v25\Layouts as Core;
use JustCoded\WP\Framework\Page_Builder\v25\Page_Builder_Loader;

/**
Expand All @@ -11,14 +14,6 @@
* @package Boilerplate\Theme\Page_Builder
*/
class SiteOrigin_Panels extends Page_Builder_Loader {

/**
* Default namespace of rows/widgets if relative name specified
*
* @var string
*/
public $default_layout_namespace = '\Boilerplate\Theme\Page_Builder';

/**
* Init row/widgets layouts and change disabled plugins list.
* Called at the end of the __contruct() method
Expand All @@ -37,10 +32,10 @@ class SiteOrigin_Panels extends Page_Builder_Loader {
public function init() {
parent::init();

$this->register_row_layout( '\JustCoded\WP\Framework\Page_Builder\v25\Layouts\Rwd_Row_Layout', 'Default' );
$this->register_row_layout( 'Row\Wide_Layout' );
$this->register_row_layout( Core\Rwd_Row_Layout::class, 'Default' );
$this->register_row_layout( Row\Wide_Layout::class );

$this->register_widget_layout( '\JustCoded\WP\Framework\Page_Builder\v25\Layouts\Rwd_Widget_Layout', 'Default' );
$this->register_widget_layout( 'Widget\Hero_Layout' );
$this->register_widget_layout( Core\Rwd_Widget_Layout::class, 'Default' );
$this->register_widget_layout( Widget\Hero_Layout::class );
}
}

0 comments on commit e336393

Please sign in to comment.