Skip to content

Commit bf08134

Browse files
Merge pull request #5 from fosterinteractive/1.x
1.x
2 parents 9485b2c + 39d20dc commit bf08134

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/MegaMenuBuilder.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class MegaMenuBuilder {
6868
* generate panels in a custom theme where col sizes can vary based on
6969
* custom logic.
7070
*/
71-
public function build($item, int $cols) {
71+
public function build($item, int $cols, array $options = []) {
7272
$columns_data = [];
7373
// Reset variables on build.
7474
$this->split = FALSE;
@@ -77,6 +77,11 @@ public function build($item, int $cols) {
7777
$this->panelData = [];
7878
$this->total = 0;
7979

80+
// Set the multiplier if it is set in the options.
81+
if (isset($options['multiplier'])) {
82+
$this->multiplier = $options['multiplier'];
83+
}
84+
8085
// If there are no child menu items then exit. It is only 1 menu item and we
8186
// can build a mega menu panel from 1 menu item.
8287
if (empty($item['below'])) {

0 commit comments

Comments
 (0)