<?php
/* Prohibit direct script loading */
defined('ABSPATH') || die('No direct script access allowed!');
?>
<div class="wpmsrow sitemap-menu-bar">
    <div class="col s12">
        <ul class="wpmstabs tabs ju-tabs ju-horizontal-tabs wpms-vertical-tabs" style="overflow: hidden">
            <li class="tab wpmstab col active">
                <a href="#menu_sitemaps"><?php esc_html_e('Sitemaps', 'wpmsPro') ?></a>
            </li>
            <li class="tab wpmstab col">
                <a href="#menu_source_menus"><?php esc_html_e('Source: menu', 'wpmsPro') ?></a>
            </li>
            <li class="tab wpmstab col">
                <a href="#menu_source_posts"><?php esc_html_e('Source: posts', 'wpmsPro') ?></a>
            </li>
            <li class="tab wpmstab col">
                <a href="#menu_source_pages"><?php esc_html_e('Source: pages', 'wpmsPro') ?></a>
            </li>

                <li class="tab wpmstab col" data-tab="custom_url"><a
                            href="#menu_custom_url"><?php esc_html_e('Custom URL', 'wpmsPro') ?></a></li>

            <?php
            if (!empty($custom_post_types)) {
                foreach ($custom_post_types as $key => $label) {
                    echo '<li class="tab wpmstab col">';
                    echo '<a href="' . esc_attr('#menu_source_' . $key) . '">' . esc_html(ucfirst($label)) . '</a>';
                    echo '</li>';
                }
            }
            ?>
        </ul>
    </div>
</div>
