-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#495] pulling in the created pages into the new nav
- Loading branch information
1 parent
39c0b37
commit 6b85bcc
Showing
2 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
client-mu-plugins/goodbids/views/parts/nonprofit-navigation.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?php | ||
/** | ||
* Part for displaying the navigation | ||
* Links for displaying the navigation | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ | ||
* @var array $nav_links | ||
* | ||
* @since 1.0.0 | ||
* @package GoodBids | ||
*/ | ||
?> | ||
|
||
|
||
<!-- wp:navigation-link {"label":"<?php echo esc_html( $nav_item['label'] ); ?>","type":"page","id":<?php echo esc_html( $nav_item['ID'] ); ?>,"url":"<?php echo esc_url( $nav_item['url'] ); ?>","kind":"post-type"} /--> | ||
<?php foreach ( $nav_links as $nav_link ) : ?> | ||
<!-- wp:navigation-link {"label":"<?php echo esc_attr( $nav_link->post_title ); ?>","type":"<?php echo esc_attr( $nav_link->post_type ); ?>","id":<?php echo esc_attr( $nav_link->ID ); ?>,"url":"/<?php echo esc_attr( $nav_link->post_name ); ?>","kind":"post-type"} /--> | ||
<?php endforeach; ?> |