Skip to content

Show different block with storeCode

I have this code for my horizontal menu and would like to show different blocks for the different storeViews.

For example the StoreCode is EN i would like to show the block en-horzizontal-menu
the StoreCode is DE i would like to show the block de-horzizontal-menu

The blocks allready exist.

<div class="horizontal-menu navigation">
<ul class="smartmenu magebig-nav">
    <li class="level0 level-top mega_"><a class="level-top" href="/superbuy"><span>SuperBuy</span></a></li>
    <?= /* @escapeNotVerified */ $_menu; ?>
    <?= /* @escapeNotVerified */ $block->getChildHtml(); ?>
</ul>
<?php echo $this->getLayout()
                ->createBlock('MagentoCmsBlockBlock')
                 ->setBlockId('horizontal-menu') 
                ->toHtml(); ?>

Thank you in advance for helping me.
David