| #872 | $_sd_items[] = array('@type'=>'ListItem', 'position'=>1, 'name'=>$cfg['webname'], 'item'=>$_sd_base); |
| #873 | $_sd_pos = 2; |
| #874 | foreach($cfg_var['place'] as $_sd_p) { |
| #875 | if(empty($_sd_p['name']) || empty($_sd_p['url'])) { continue; } |
| #876 | $_sd_items[] = array('@type'=>'ListItem', 'position'=>$_sd_pos, 'name'=>$_sd_p['name'], 'item'=>$_sd_p['url']); |
| #877 | $_sd_pos++; |
| #878 | } |
| #879 | if(count($_sd_items) > 1) { |
| #880 | $_sd_bd = array('@context'=>'https://schema.org', '@type'=>'BreadcrumbList', 'itemListElement'=>$_sd_items); |
| #881 | echo '<script type="application/ld+json">'.json_encode($_sd_bd, $_sd_flag).'</script>'; |