|
@@ 1193-1214 (lines=22) @@
|
| 1190 |
|
* |
| 1191 |
|
* @param string $field - Menu Item Markup settings field. |
| 1192 |
|
*/ |
| 1193 |
|
function menu_item_loop_open_element( $field ) { |
| 1194 |
|
$markup = $this->get_menu_item_loop_markup(); |
| 1195 |
|
/** |
| 1196 |
|
* Filter a menu item's element opening tag. |
| 1197 |
|
* |
| 1198 |
|
* @module custom-content-types |
| 1199 |
|
* |
| 1200 |
|
* @since 4.4.0 |
| 1201 |
|
* |
| 1202 |
|
* @param string $tag Menu item's element opening tag. |
| 1203 |
|
* @param string $field Menu Item Markup settings field. |
| 1204 |
|
* @param array $markup Array of markup elements for the menu item. |
| 1205 |
|
* @param false|object $term Taxonomy term for current menu item. |
| 1206 |
|
*/ |
| 1207 |
|
echo apply_filters( |
| 1208 |
|
'jetpack_nova_menu_item_loop_open_element', |
| 1209 |
|
'<' . tag_escape( $markup["{$field}_tag"] ) . $this->menu_item_loop_class( $markup["{$field}_class"] ) . ">\n", |
| 1210 |
|
$field, |
| 1211 |
|
$markup, |
| 1212 |
|
$this->menu_item_loop_current_term |
| 1213 |
|
); |
| 1214 |
|
} |
| 1215 |
|
|
| 1216 |
|
/** |
| 1217 |
|
* Outputs a Menu Item Markup element closing tag |
|
@@ 1221-1242 (lines=22) @@
|
| 1218 |
|
* |
| 1219 |
|
* @param string $field - Menu Item Markup settings field |
| 1220 |
|
*/ |
| 1221 |
|
function menu_item_loop_close_element( $field ) { |
| 1222 |
|
$markup = $this->get_menu_item_loop_markup(); |
| 1223 |
|
/** |
| 1224 |
|
* Filter a menu item's element closing tag. |
| 1225 |
|
* |
| 1226 |
|
* @module custom-content-types |
| 1227 |
|
* |
| 1228 |
|
* @since 4.4.0 |
| 1229 |
|
* |
| 1230 |
|
* @param string $tag Menu item's element closing 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_close_element', |
| 1237 |
|
'</' . tag_escape( $markup["{$field}_tag"] ) . ">\n", |
| 1238 |
|
$field, |
| 1239 |
|
$markup, |
| 1240 |
|
$this->menu_item_loop_current_term |
| 1241 |
|
); |
| 1242 |
|
} |
| 1243 |
|
|
| 1244 |
|
/** |
| 1245 |
|
* Returns a Menu Item Markup element's class attribute. |