mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Make Debug module position fixed to the bottom of every layout (#715)
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
- Fixed blocks using bootstrap responsive utility classes displaying improperly (#722)
|
||||
- Gantry update message is showing up even when there is no update (#631)
|
||||
- Module positions not showing up after installing/updating theme (#212)
|
||||
- Missing padding in modal windows of 3rd party components (#746)
|
||||
3. [WordPress](#wordpress)
|
||||
2. [](#improved)
|
||||
- Make timber functions to work from particles
|
||||
|
||||
@@ -27,6 +27,7 @@ class Page extends Base\Page
|
||||
$document = \JFactory::getDocument();
|
||||
$input = $app->input;
|
||||
|
||||
$this->tmpl = $input->getCmd('tmpl', '');
|
||||
$this->option = $input->getCmd('option', '');
|
||||
$this->view = $input->getCmd('view', '');
|
||||
$this->layout = $input->getCmd('layout', '');
|
||||
@@ -65,9 +66,13 @@ class Page extends Base\Page
|
||||
|
||||
public function bodyAttributes($attributes = [])
|
||||
{
|
||||
$classes = ['site', $this->option, "view-{$this->view}"];
|
||||
$classes[] = $this->layout ? 'layout-' . $this->layout : 'no-layout';
|
||||
$classes[] = $this->task ? 'task-' . $this->task : 'no-task';
|
||||
if ($this->tmpl == 'component') {
|
||||
$classes = ['contentpane', 'modal'];
|
||||
} else {
|
||||
$classes = ['site', $this->option, "view-{$this->view}"];
|
||||
$classes[] = $this->layout ? 'layout-' . $this->layout : 'no-layout';
|
||||
$classes[] = $this->task ? 'task-' . $this->task : 'no-task';
|
||||
}
|
||||
$classes[] = 'dir-' . $this->direction;
|
||||
if ($this->class) $classes[] = $this->class;
|
||||
if ($this->printing) $classes[] = 'print-mode';
|
||||
|
||||
Reference in New Issue
Block a user