<?php if (!defined('TWEAKR_INIT')) die('DIRECT ACCESS PROHIBITED'); ?>

    <!-- XML Sitemap -->
    <div class="postbox tweakr-postbox">
    <h3 class="hndle"><span><?php _e('Sitemap', 'tweakr'); ?></span></h3>
    <div class="inside tweakr-setting-section">

        <p>Provides a XML Sitemap for Search Engines regarding the <a href="https://www.sitemaps.org/" target="_new">sitemaps.org</a> specification. Includes all published posts and pages.</p>

        <?php 
            // Add virtual sitemap.xml
            $this->_settingsUtility->displayCheckbox(__('XML Sitemap', 'tweakr'), 'sitemap-xml-enabled', array(
                'label' => 'Enable',
                'description' => 'Automatically generated /sitemap.xml file.',
                'readmore' => 'https://www.sitemaps.org/protocol.html'
            ));

            // Advertise sitemap.xml in robots.txt
            $this->_settingsUtility->displayCheckbox(__('Advertise XML Sitemap', 'tweakr'), 'sitemap-xml-robotstxt', array(
                'label' => 'Add link to robots.txt',
                'description' => 'Advertise sitemap.xml address in robots.txt file. This allows search engines to recognize the sitemap automatically.',
                'readmore' => 'https://www.sitemaps.org/protocol.html'
            ));
        ?>

        <?php 
             
        ?>

    <!-- // XML Sitemap -->
    </div></div>
