<!DOCTYPE html>
<html lang="<?php print {theme_name}_get_language(); ?>" dir="<?php print {theme_name}_get_direction(); ?>">
<head>
    <?php print $head; ?>
    <title><?php print $head_title; ?></title>
    <?php print $styles; ?>
    <?php print $scripts; ?>
    <?php
        $base_path = base_path() . $directory;
        $version = '?' . {theme_name}_build_version_parameter();
    ?>
    @includeHead("/")
    @includeHead("../body")
    @additionalHead
    <link rel="stylesheet" type="text/css" href="<?php echo {theme_name}_get_style_uri('style'); ?>" media="all" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" type="text/css" href="<?php echo $base_path . '/css/style.ie.css'; ?>" />
    <![endif]-->
    <script type="text/javascript" src="<?php echo $base_path . '/js/script.js' . $version; ?>"></script>
    <script>
        var themeParam = '<?php if ({theme_name}_has_url_param('theme')) { print 'theme='.$_GET["theme"]; } ?>';
    </script>
    <script type="text/javascript" src="<?php echo $base_path . '/js/preview.js'; ?>"></script>
</head>
@include("../body")
</html>