';
/* check if this dropdown has masonry */
/**
* masonry if:
* unlinked and specific masonry set on the unlinked config
* OR masonry specified on the default config
*/
if ( $this->get_config( 'layout/default' ) === 'masonry' && $this->get_config( "layout/drop-{$this->current_item->ID}" ) !== 'grid' ) {
$classes [] = 'tcb-masonry';
}
}
$class_names = ' class="' . esc_attr( join( ' ', $classes ) ) . '"';
$output .= "{$wrap_start}{$n}{$indent}
{$n}";
}
public function end_lvl( &$output, $depth = 0, $args = [] ) {
parent::end_lvl( $output, $depth, $args );
if ( 0 === $depth && $this->get_menu_type() === 'mega' ) {
$output .= '