<?php if ($custommenus) { ?>
				<?php foreach ($custommenus as $custommenu) { ?>
				<?php if ($custommenu['children']) { ?>
                <!-- Mega Menu Item -->
                <li class="hs-has-mega-menu nav-item g-mx-20--lg active" data-animation-in="fadeIn" data-animation-out="fadeOut" data-max-width="80%" data-position="right">
                  <a id="mega-menu-label-1" class="nav-link active g-color-deeporange g-px-0" href="<?php echo $custommenu['custlink']; ?>" aria-haspopup="true" aria-expanded="false"><?php echo $custommenu['name']; ?>
                <span class="sr-only">(current)</span>
                </a>

                  <!-- Mega Menu -->
                  <div class="hs-mega-menu u-shadow-v11 g-text-transform-none font-weight-normal g-brd-top g-brd-bluegray g-brd-top-2 g-mt-7 g-mt-7--lg--scrolling" aria-labelledby="mega-menu-label-1">
                    <div class="row align-items-stretch g-px-30 g-py-15">
					<?php foreach (array_chunk($custommenu['children'], ceil(count($custommenu['children']) / $custommenu['column'])) as $children) { ?>
                        <section class="g-px-5">
                          <ul class="list-unstyled">
						  <?php foreach ($children as $child) { ?>
                            <li class="g-py-5">
                              <a target="_<?php echo $custommenu['target']; ?>" href="<?php echo $child['custlink']; ?>" class="btn btn-sm u-btn-outline-deeporange g-width-100"><?php echo $child['name']; ?></a>
                            </li>
							<?php } ?>
                          </ul>
                        </section>
					  <?php } ?>
					</div>
                  </div>
                  <!-- End Mega Menu -->
                </li>
				<?php } else { ?>
                <li class="nav-item g-mx-20--lg">
                  <a target="_<?php echo $custommenu['target']; ?>" href="<?php echo $custommenu['custlink']; ?>" class="nav-link px-0"><?php echo $custommenu['name']; ?></a>
                </li>
				<?php } ?>
				<?php } ?>
                <!-- End Mega Menu Item -->
<?php } ?>
