Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 'footer':
- // Skip various elements in order to output the menu structure as in the
- // original source code. The menu item ID (mlid) is used for this.
- // This is hardcoded and could cause issues if menu is re-ordered.
- /* $skip_open = array(431);
- $skip_close = array(429);
- $skip_both = array(430, 440, 441, 442);
- $skip_break = array(440, 441, 442);*/
- $skip_open = array(432, 431,539);
- $skip_close = array(429, 538,443);
- $skip_both = array(430, 440, 441, 442,539);
- $skip_break = array(440, 441, 442,539);
- $pre_tag = $post_tag = '';
- $link_attr = array('class' => array('footer-link', 'menu-link-'.$mlid));
- if (!in_array($mlid, array_merge($skip_open, $skip_both))) {
- $pre_tag = '<div class="col-md-2 large-footer">';
- }
- if (!in_array($mlid, $skip_break)) {
- $pre_tag .= '<div class="footer-break"></div>';
- }
- if (!in_array($mlid, array_merge($skip_close, $skip_both))) {
- $post_tag = '</div>';
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement