<?php

Class GRWP_Pro_Menu_Pages {

    public function __construct() {
        $this->add_menu_pages();
    }

    private function add_menu_pages() {

        add_submenu_page(
            'google-reviews',
            __('How to', 'embedder-for-google-reviews'), /* translators: page title */
            __('How to', 'embedder-for-google-reviews'), /* translators: menu title */
            'manage_options',
            'how-to-premium-version',
            array($this, 'google_reviews_create_sub_page_how_to_premium')
        );

    }

    /**
     * Backend how to subpage for premium version
     * @return void
     */
    public function google_reviews_create_sub_page_how_to_premium() {
        global $allowed_html;

        echo wp_kses('<div class="wrap">', $allowed_html);
        require_once GR_BASE_PATH_ADMIN .'includes/how-to.php';
        echo wp_kses('</div>', $allowed_html);
    }
}
