Permalink
Browse files

Adds a method to define layout to display in Module library.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Mar 20, 2018
1 parent 4cbd34a commit de703f3cb7773bd3b167bde026adc405c2c94b0d
Showing with 11 additions and 2 deletions.
  1. +11 −2 engine/lib/object/Module.php.inc
@@ -547,6 +547,15 @@ class Module extends Plugin {
}
/***************** LAYOUT MANAGEMENT **************/
/*
* update selected layout
* @param string $layout
* @access public
*/
public function set_selectedLayout($layout='') {
$this->selected_layout = $layout;
}
/*
* load selected admin layout
@@ -575,9 +584,9 @@ class Module extends Plugin {
function get_siteLayout ( ) {
if ( $this->selected_layout != '' ) {
if ( $this->selected_layout_location == 'camyks' )
$this->load_engineFile( 'data/html/'.$this->selected_layout );
$this->load_engineFile( 'data/html/'.$this->selected_layout );
else
$this->load_file( 'html/'.$this->selected_layout );
$this->load_file( 'html/'.$this->selected_layout );
} else {
$this->load_file( 'html/site.html.inc' );
}

0 comments on commit de703f3

Please sign in to comment.