| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="wrap"> |
| 7 |
<h1>HTTP Headers</h1> |
| 8 |
<p><?php _e('Quick links', 'http-headers'); ?>: |
| 9 |
<a href="https://zinoui.com/blog/http-headers-for-wordpress" target="_blank" title="HTTP Headers"><?php _e('Getting started', 'http-headers'); ?></a>, |
| 10 |
<a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&tab=advanced"><?php _e('Advanced settings', 'http-headers'); ?></a>, |
| 11 |
<a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&tab=manual"><?php _e('Manual setup', 'http-headers'); ?></a>, |
| 12 |
<a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&tab=inspect"><?php _e('Inspect headers', 'http-headers'); ?></a> |
| 13 |
</p> |
| 14 |
<?php |
| 15 |
if (isset($_GET['header']) && !empty($_GET['header'])) |
| 16 |
{ |
| 17 |
include dirname(__FILE__) . '/header.php'; |
| 18 |
} elseif (isset($_GET['tab']) && $_GET['tab'] == 'advanced') { |
| 19 |
include dirname(__FILE__) . '/advanced.php'; |
| 20 |
} elseif (isset($_GET['tab']) && $_GET['tab'] == 'manual') { |
| 21 |
include dirname(__FILE__) . '/manual.php'; |
| 22 |
} elseif (isset($_GET['tab']) && $_GET['tab'] == 'inspect') { |
| 23 |
include dirname(__FILE__) . '/inspect.php'; |
| 24 |
} elseif (isset($_GET['category'])) { |
| 25 |
include dirname(__FILE__) . '/category.php'; |
| 26 |
} else { |
| 27 |
include dirname(__FILE__) . '/dashboard.php'; |
| 28 |
} |
| 29 |
?> |
| 30 |
</div> |