Skip to content

Commit

Permalink
Check if order was set
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Oct 25, 2023
1 parent 216d077 commit 8b44d21
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions framework/library/astroid/Element/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ protected function _getclasses()
$column_order_md = intval($this->params->get('column_order_md', 0));
$column_order_sm = intval($this->params->get('column_order_sm', 0));
$column_order_xs = intval($this->params->get('column_order_xs', 0));
$this->addClass('order-xl-'.$column_order_xl);
$this->addClass('order-lg-'.$column_order_lg);
$this->addClass('order-md-'.$column_order_md);
$this->addClass('order-sm-'.$column_order_sm);
$this->addClass('order-'.$column_order_xs);

if ($column_order_xl || $column_order_lg || $column_order_md || $column_order_sm || $column_order_xs) {
$this->addClass('order-xl-'.$column_order_xl);
$this->addClass('order-lg-'.$column_order_lg);
$this->addClass('order-md-'.$column_order_md);
$this->addClass('order-sm-'.$column_order_sm);
$this->addClass('order-'.$column_order_xs);
}
parent::_getclasses();
}
}

0 comments on commit 8b44d21

Please sign in to comment.