Aggiunto il menu costellazioni

This commit is contained in:
ulaulaman 2021-11-16 23:37:15 +01:00
parent 71a83b1c24
commit 0d99d97546
1 changed files with 11 additions and 1 deletions

View File

@ -87,8 +87,18 @@ add_shortcode( 'sbcostellazioni', function () {
$auth = do_shortcode('[blog-post-coauthors]');
$cura = '<h4 class="widget-title"><span>Scheda a cura di</h4><p><strong>'.$auth.'</strong></p>';
$starsNav = wp_get_nav_menu_items(1895);
$out = $out.$cura;
foreach ( $starsNav as $navItem ) {
$nav = $nav. '<button><a href="'.$navItem->url.'" title="'.$navItem->title.'">'.$navItem->title.'</a></button>';
}
$menu = '<div align="center" class="btn-group">'.$nav.'</div>';
$out = $menu;
$out = $out.$cura.$menu;
return $out;
} );