Advertisement
tabvn

Untitled

Jan 19th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.10 KB | None | 0 0
  1. case 'footer':
  2.         // Skip various elements in order to output the menu structure as in the
  3.         // original source code. The menu item ID (mlid) is used for this.
  4.         // This is hardcoded and could cause issues if menu is re-ordered.
  5.       /*  $skip_open = array(431);
  6.         $skip_close = array(429);
  7.         $skip_both = array(430, 440, 441, 442);
  8.         $skip_break = array(440, 441, 442);*/
  9.  
  10.  
  11.         $skip_open = array(432, 431,539);
  12.         $skip_close = array(429, 538,443);
  13.         $skip_both = array(430, 440, 441, 442,539);
  14.         $skip_break = array(440, 441, 442,539);
  15.  
  16.  
  17.         $pre_tag = $post_tag = '';
  18.         $link_attr = array('class' => array('footer-link', 'menu-link-'.$mlid));
  19.  
  20.         if (!in_array($mlid, array_merge($skip_open, $skip_both))) {
  21.           $pre_tag = '<div class="col-md-2 large-footer">';
  22.         }
  23.  
  24.         if (!in_array($mlid, $skip_break)) {
  25.           $pre_tag .= '<div class="footer-break"></div>';
  26.         }
  27.  
  28.         if (!in_array($mlid, array_merge($skip_close, $skip_both))) {
  29.           $post_tag = '</div>';
  30.         }
  31.  
  32.         break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement