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

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

        <?php

            // Hide Generator Tag
            $this->_settingsUtility->displayCheckbox(__('Generator Tag', 'tweakr'), 'hide-generator', array(
                'label' => 'Hide WordPress Generator Tag',
                'description' => 'The Generator Meta Tag displays your current WordPress Version.'
            ));

            // Hide Adminbar
            $this->_settingsUtility->displayCheckbox(__('Adminbar', 'tweakr'), 'hide-adminbar', array(
                'label' => 'Global hide Admin-Toolbar',
                'description' => 'Maybe you do not need the Admin Toolbar or it breaks your theme styles.'
            ));

            // hide Windows Live Writer manifest file link
            $this->_settingsUtility->displayCheckbox(__('Windows Live Writer Manifest', 'tweakr'), 'hide-wlwmlink', array(
                'label' => 'Hide Windows Live Writer Manifest Link',
                'description' => 'Windows Live Writer is an application for managing blog post. If you do not need it, disable the link.'
            ));

            // Hide Meta Pagination
            $this->_settingsUtility->displayCheckbox(__('Meta Pagination', 'tweakr'), 'hide-meta-pagination-link', array(
                'label' => 'Hide Meta Pagination Links',
                'description' => 'These Links contains the next/prev page used for page preloading.'
            ));

            // Disable Emojis
            $this->_settingsUtility->displayCheckbox(__('Emojis', 'tweakr'), 'disable-emojis', array(
                'label' => 'Disable Emojis',
                'description' => 'In case you do not like the Emoji icons - this option also disables related scripts/styles. By disabling emojis its recommended to disable smileys also to avoid invalid unicode characters.',
                'readmore' => 'https://codex.wordpress.org/Emoji'
            ));

            // Disable Smileys
            $this->_settingsUtility->displayCheckbox(__('Smileys', 'tweakr'), 'disable-smileys', array(
                'label' => 'Disable Smileys',
                'description' => 'Legacy smileys are not converted to images (the_content and the_excerpt).',
                'readmore' => 'https://codex.wordpress.org/Using_Smilies'
            ));

            // Disable OEmbeds
            $this->_settingsUtility->displayCheckbox(__('oEmbed', 'tweakr'), 'disable-oembed', array(
                'label' => 'Disable oEmbeds',
                'description' => 'Removes related tags, scripts, permalinks and endpoints.'
            ));

             // Hide Resource Hints
            $this->_settingsUtility->displayCheckbox(__('Resource Hints', 'tweakr'), 'hide-resource-hints', array(
                'label' => 'Hide Resource Hints',
                'description' => 'Standard Resource Hints might not be useful (like w.org). This option will hide all registered types.',
                'readmore' => 'https://make.wordpress.org/core/2016/07/06/resource-hints-in-4-6/'
            ));

            // Disable Pingback
            $this->_settingsUtility->displayCheckbox(__('Pingback', 'tweakr'), 'disable-pingbacks', array(
                'label' => 'Disable Pingbacks for all Posts/Pages',
                'description' => 'Pingbacks/Trackbacks will be set to closed for all post/pages.',
                'readmore' => 'https://codex.wordpress.org/Function_Reference/pings_open'
            ));

        ?>

    <!-- // Frontend -->
    </div></div>

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

        <?php

            // Disable Feed Links
            $this->_settingsUtility->displayCheckbox(__('Links', 'tweakr'), 'hide-feed-link', array(
                'label' => 'Hide Feed Links',
                'description' => 'Removes the Content and Comments Feed links from your Site.',
                'readmore' => 'https://codex.wordpress.org/WordPress_Feeds'
            ));

            // Disable RSS
            $this->_settingsUtility->displayCheckbox(__('RSS', 'tweakr'), 'disable-rss', array(
                'label' => 'Disable RSS Feeds',
                'description' => 'Removes RSS Endpoints from Content and Comments. User get redirected to homepage.',
                'readmore' => 'https://codex.wordpress.org/WordPress_Feeds'
            ));

            // Disable Atom
            $this->_settingsUtility->displayCheckbox(__('Atom', 'tweakr'), 'disable-atom', array(
                'label' => 'Disable Atom Feeds',
                'description' => 'Removes Atom Endpoints from Content and Comments. User get redirected to homepage.',
                'readmore' => 'https://codex.wordpress.org/WordPress_Feeds'
            ));

            // Disable RDF
            $this->_settingsUtility->displayCheckbox(__('RDF', 'tweakr'), 'disable-rdf', array(
                'label' => 'Disable RDF Feeds',
                'description' => 'Removes the RDF Endpoint. User get redirected to homepage.',
                'readmore' => 'https://codex.wordpress.org/WordPress_Feeds'
            ));

            // Disable Feed Rewrites
            $this->_settingsUtility->displayCheckbox(__('Rewrite Rules', 'tweakr'), 'rewrites-disable-feeds', array(
                'label' => 'Disable Feed Rewrite Rules',
                'description' => 'In case you have already disabled all feeds it is also possible to remove the related rewrite rules.'
            ));
        ?>

    <!-- // Feeds -->
    </div></div>


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

        <?php

            // Disable REST API Links
            $this->_settingsUtility->displayCheckbox(__('REST API Link', 'tweakr'), 'httpheader-restlink', array(
                'label' => 'Disable REST API Link',
                'description' => 'Removes the REST API URL from HTTP Header.'
            ));

            // Disable Shortlink
            $this->_settingsUtility->displayCheckbox(__('Shortlink', 'tweakr'), 'httpheader-shortlink', array(
                'label' => 'Disable Shortlink',
                'description' => 'Removes the Shortlink from HTTP Header.'
            ));

        ?>

    <!-- // HTTP Header -->
    </div></div>


    