|
@@ 1242-1263 (lines=22) @@
|
| 1239 |
|
* |
| 1240 |
|
* @param string $field - Menu Item Markup settings field. |
| 1241 |
|
*/ |
| 1242 |
|
function menu_item_loop_open_element( $field ) { |
| 1243 |
|
$markup = $this->get_menu_item_loop_markup(); |
| 1244 |
|
/** |
| 1245 |
|
* Filter a menu item's element opening tag. |
| 1246 |
|
* |
| 1247 |
|
* @module custom-content-types |
| 1248 |
|
* |
| 1249 |
|
* @since 4.4.0 |
| 1250 |
|
* |
| 1251 |
|
* @param string $tag Menu item's element opening tag. |
| 1252 |
|
* @param string $field Menu Item Markup settings field. |
| 1253 |
|
* @param array $markup Array of markup elements for the menu item. |
| 1254 |
|
* @param false|object $term Taxonomy term for current menu item. |
| 1255 |
|
*/ |
| 1256 |
|
echo apply_filters( |
| 1257 |
|
'jetpack_nova_menu_item_loop_open_element', |
| 1258 |
|
'<' . tag_escape( $markup["{$field}_tag"] ) . $this->menu_item_loop_class( $markup["{$field}_class"] ) . ">\n", |
| 1259 |
|
$field, |
| 1260 |
|
$markup, |
| 1261 |
|
$this->menu_item_loop_current_term |
| 1262 |
|
); |
| 1263 |
|
} |
| 1264 |
|
|
| 1265 |
|
/** |
| 1266 |
|
* Outputs a Menu Item Markup element closing tag |
|
@@ 1270-1291 (lines=22) @@
|
| 1267 |
|
* |
| 1268 |
|
* @param string $field - Menu Item Markup settings field |
| 1269 |
|
*/ |
| 1270 |
|
function menu_item_loop_close_element( $field ) { |
| 1271 |
|
$markup = $this->get_menu_item_loop_markup(); |
| 1272 |
|
/** |
| 1273 |
|
* Filter a menu item's element closing tag. |
| 1274 |
|
* |
| 1275 |
|
* @module custom-content-types |
| 1276 |
|
* |
| 1277 |
|
* @since 4.4.0 |
| 1278 |
|
* |
| 1279 |
|
* @param string $tag Menu item's element closing tag. |
| 1280 |
|
* @param string $field Menu Item Markup settings field. |
| 1281 |
|
* @param array $markup Array of markup elements for the menu item. |
| 1282 |
|
* @param false|object $term Taxonomy term for current menu item. |
| 1283 |
|
*/ |
| 1284 |
|
echo apply_filters( |
| 1285 |
|
'jetpack_nova_menu_item_loop_close_element', |
| 1286 |
|
'</' . tag_escape( $markup["{$field}_tag"] ) . ">\n", |
| 1287 |
|
$field, |
| 1288 |
|
$markup, |
| 1289 |
|
$this->menu_item_loop_current_term |
| 1290 |
|
); |
| 1291 |
|
} |
| 1292 |
|
|
| 1293 |
|
/** |
| 1294 |
|
* Returns a Menu Item Markup element's class attribute. |