@@ 1221-1242 (lines=22) @@ | ||
1218 | * |
|
1219 | * @param string $field - Menu Item Markup settings field. |
|
1220 | */ |
|
1221 | function menu_item_loop_open_element( $field ) { |
|
1222 | $markup = $this->get_menu_item_loop_markup(); |
|
1223 | /** |
|
1224 | * Filter a menu item's element opening tag. |
|
1225 | * |
|
1226 | * @module custom-content-types |
|
1227 | * |
|
1228 | * @since 4.4.0 |
|
1229 | * |
|
1230 | * @param string $tag Menu item's element opening tag. |
|
1231 | * @param string $field Menu Item Markup settings field. |
|
1232 | * @param array $markup Array of markup elements for the menu item. |
|
1233 | * @param false|object $term Taxonomy term for current menu item. |
|
1234 | */ |
|
1235 | echo apply_filters( |
|
1236 | 'jetpack_nova_menu_item_loop_open_element', |
|
1237 | '<' . tag_escape( $markup["{$field}_tag"] ) . $this->menu_item_loop_class( $markup["{$field}_class"] ) . ">\n", |
|
1238 | $field, |
|
1239 | $markup, |
|
1240 | $this->menu_item_loop_current_term |
|
1241 | ); |
|
1242 | } |
|
1243 | ||
1244 | /** |
|
1245 | * Outputs a Menu Item Markup element closing tag |
|
@@ 1249-1270 (lines=22) @@ | ||
1246 | * |
|
1247 | * @param string $field - Menu Item Markup settings field |
|
1248 | */ |
|
1249 | function menu_item_loop_close_element( $field ) { |
|
1250 | $markup = $this->get_menu_item_loop_markup(); |
|
1251 | /** |
|
1252 | * Filter a menu item's element closing tag. |
|
1253 | * |
|
1254 | * @module custom-content-types |
|
1255 | * |
|
1256 | * @since 4.4.0 |
|
1257 | * |
|
1258 | * @param string $tag Menu item's element closing tag. |
|
1259 | * @param string $field Menu Item Markup settings field. |
|
1260 | * @param array $markup Array of markup elements for the menu item. |
|
1261 | * @param false|object $term Taxonomy term for current menu item. |
|
1262 | */ |
|
1263 | echo apply_filters( |
|
1264 | 'jetpack_nova_menu_item_loop_close_element', |
|
1265 | '</' . tag_escape( $markup["{$field}_tag"] ) . ">\n", |
|
1266 | $field, |
|
1267 | $markup, |
|
1268 | $this->menu_item_loop_current_term |
|
1269 | ); |
|
1270 | } |
|
1271 | ||
1272 | /** |
|
1273 | * Returns a Menu Item Markup element's class attribute. |