<?php /** * Section to generate video sitemap * @author Praveen Rajan */ if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); } $title = __('CVG Google XML Sitemap Generator'); CvgCore::upgrade_plugin(); ?> <style type="text/css"> #dashboard-widgets a { text-decoration:none; } </style> <div class="wrap"> <div class="icon32" id="icon-video"><br></div> <h2><?php echo esc_html($title); ?> </h2> <?php if (isset($_POST['generatexml'])) { // wp_nonce_field('cvg_video_sitemap_nonce','cvg_video_sitemap_nonce_csrf'); if (check_admin_referer('cvg_video_sitemap_nonce', 'cvg_video_sitemap_nonce_csrf')) { CvgCore::xml_sitemap(); } } ?>