<?php
$parse_uri = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
$wp_load = $parse_uri[0] . 'wp-load.php';
require_once($wp_load);
?>
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Subject goes here</title>
        <link rel='stylesheet' href='<?php echo Application_Mail_Subscriber::get_application_uri() ?>/css/styles.css' type='text/css' media='all' />

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script type='text/javascript' src='<?php echo Application_Mail_Subscriber::get_application_uri() ?>/js/tiny_mce/tiny_mce.js'></script>
        <script type='text/javascript' src='<?php echo Application_Mail_Subscriber::get_application_uri() ?>/js/tiny_mce/jquery.tinymce.js'></script>
        <script type='text/javascript' src='<?php echo Application_Mail_Subscriber::get_application_uri() ?>/js/tiny_mce/tiny_mce_src.js'></script>
        <script type='text/javascript' src='<?php echo Application_Mail_Subscriber::get_application_uri() ?>/js/mail_subscriber_template.js'></script>

        <script type="text/javascript">
            var mail_subscriber_app_uri="<?php echo Application_Mail_Subscriber::get_application_uri() ?>";
            var mail_subscriber_ajaxurl="<?php echo admin_url('admin-ajax.php'); ?>";
        </script>
    </head>


    <body>
        <?php echo Application_Mail_Subscriber::get_archive_template($_GET['archive']); ?>
    </body>
</html>
