public function initializeLayout($page, \LayoutModel $layout)
	{
		static::$pageLayout = $layout;

		if(!static::isEnabled())
		{
			return;
		}

		// reset default framework
		static::$pageLayout->framework = null;

		$templates = $GLOBALS['BOOTSTRAP']['templates']['dynamicLoad'];

		// only load these templates if layout uses it because default templates are changed
		foreach ($templates as $path => $templates)
		{
			foreach ($templates as $template)
			{
				\TemplateLoader::addFile($template, $path);
			}
		}
	}
public function initializeLayout($page, \LayoutModel $layout)
	{
		static::$pageLayout = $layout;

		if(!static::isEnabled())
		{
			return;
		}

		// reset default framework
		static::$pageLayout->framework = null;

		$templates = $GLOBALS['BOOTSTRAP']['templates']['dynamicLoad'];

		// only load these templates if layout uses it because default templates are changed
		foreach ($templates as $path => $templates)
		{
			foreach ($templates as $template)
			{
				\TemplateLoader::addFile($template, $path);
			}
		}
	}
public function initializeLayout ( $ page , \ LayoutModel $ layout ) { static :: $ pageLayout = $ layout ; if ( ! static :: isEnabled ( ) ) { return ; } // reset default framework static :: $ pageLayout -> framework = null ; $ templates = $ GLOBALS [ 'BOOTSTRAP' ] [ 'templates' ] [ 'dynamicLoad' ] ; // only load these templates if layout uses it because default templates are changed foreach ( $ templates as $ path => $ templates ) { foreach ( $ templates as $ template ) { \ TemplateLoader :: addFile ( $ template , $ path ) ; } } }
only load templates if bootstrap is activated, so diverent layouts will work instead of template changes

@param \PageModel   $page
@param \LayoutModel $layout
only load templates if bootstrap is activated so diverent layouts will work instead of template changes