Make Debug module position fixed to the bottom of every layout (#715)

This commit is contained in:
Matias Griese
2015-08-28 10:59:43 +03:00
parent 6e9a13cb21
commit e9be92df94
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -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
+8 -3
View File
@@ -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';