Code Duplication    Length = 24-24 lines in 4 locations

includes/menus.php 4 locations

@@ 27-50 (lines=24) @@
24
 */
25
26
//Left menu
27
function lighthouse_header_menu_left() {
28
    if ( has_nav_menu( 'header-menu-left' ) ) {
29
    wp_nav_menu(
30
        array(
31
            'theme_location'  => 'header-menu-left',
32
            'menu'            => '',
33
            'container'       => 'div',
34
            'container_id'    => 'header-menu-left-id',
35
            'container_class' => 'header-menu-left-cl',
36
            'menu_id'         => 'header-menu-id',
37
            'menu_class'      => 'header-menu-cl',
38
            'echo'            => true,
39
            'fallback_cb'     => '',
40
            'before'          => '',
41
            'after'           => '',
42
            'link_before'     => '<span>',
43
            'link_after'      => '</span>',
44
            'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
45
            'depth'           => 0,
46
            'walker'          => ''
47
        )
48
    );
49
    }
50
}
51
52
//Right menu
53
function lighthouse_header_menu_right() {
@@ 53-76 (lines=24) @@
50
}
51
52
//Right menu
53
function lighthouse_header_menu_right() {
54
    if ( has_nav_menu( 'header-menu-right' ) ) {
55
    wp_nav_menu(
56
        array(
57
            'theme_location'  => 'header-menu-right',
58
            'menu'            => '',
59
            'container'       => 'div',
60
            'container_id'    => 'header-menu-right-id',
61
            'container_class' => 'header-menu-right-cl',
62
            'menu_id'         => 'header-menu-id',
63
            'menu_class'      => 'header-menu-cl',
64
            'echo'            => true,
65
            'fallback_cb'     => '',
66
            'before'          => '',
67
            'after'           => '',
68
            'link_before'     => '<span>',
69
            'link_after'      => '</span>',
70
            'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
71
            'depth'           => 0,
72
            'walker'          => ''
73
        )
74
    );
75
    }
76
}
77
78
//Fotter menu
79
function lighthouse_footer_menu() {
@@ 79-102 (lines=24) @@
76
}
77
78
//Fotter menu
79
function lighthouse_footer_menu() {
80
    if ( has_nav_menu( 'footer-menu' ) ) {
81
    wp_nav_menu(
82
        array(
83
            'theme_location'  => 'footer-menu',
84
            'menu'            => '',
85
            'container'       => 'div',
86
            'container_id'    => 'footer-menu-id',
87
            'container_class' => 'footer-menu-cl',
88
            'menu_id'         => 'footer-menu-id',
89
            'menu_class'      => 'footer-menu-cl',
90
            'echo'            => true,
91
            'fallback_cb'     => '',
92
            'before'          => '',
93
            'after'           => '',
94
            'link_before'     => '',
95
            'link_after'      => '',
96
            'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
97
            'depth'           => 0,
98
            'walker'          => ''
99
        )
100
    );
101
    }
102
}
103
104
//Menu footer-bottom
105
function lighthouse_footer_menu_bottom() {
@@ 105-128 (lines=24) @@
102
}
103
104
//Menu footer-bottom
105
function lighthouse_footer_menu_bottom() {
106
    if ( has_nav_menu( 'footer-menu-bottom' ) ) {
107
    wp_nav_menu(
108
        array(
109
            'theme_location'  => 'footer-menu-bottom',
110
            'menu'            => '',
111
            'container'       => 'div',
112
            'container_id'    => 'footer-menu-bottom-id',
113
            'container_class' => 'footer-menu-bottom-cl',
114
            'menu_id'         => 'footer-menu-id',
115
            'menu_class'      => 'footer-menu-cl',
116
            'echo'            => true,
117
            'fallback_cb'     => '',
118
            'before'          => '',
119
            'after'           => '',
120
            'link_before'     => '',
121
            'link_after'      => '',
122
            'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
123
            'depth'           => 0,
124
            'walker'          => ''
125
        )
126
    );
127
    }
128
}