<!DOCTYPE html>
<html lang="<$mt:var name="language_tag"$>">
  <head>
    <meta charset="<$mt:var name="language_encoding"$>" />
    <title><__trans phrase="Preview"> | <$mt:var name="mt_product_name"$></title>
    <link rel="icon" href="<$mt:var name="static_uri"$>images/favicon.ico" type="image/ico" />
<mt:if name="feed_url">
    <link type="application/atom+xml" rel="alternate" <mt:if name="feed_name">title="<mt:var name="feed_name" escape="html">" </mt:if>href="<mt:var name="feed_url" escape="html">" />
</mt:if>
<mt:unless name="optimize_ui">
    <link rel="stylesheet" href="<$mt:var name="static_uri"$>styles.css?v=<mt:var name="mt_version_id" escape="url">" type="text/css" />
<mt:else>
    <link rel="stylesheet" href="<$mt:var name="static_uri"$>css/main.css?v=<mt:var name="mt_version_id" escape="url">" type="text/css" />
</mt:unless>
    <!--[if IE]>
    <link rel="stylesheet" href="<$mt:var name="static_uri"$>css/hacks/ie.css?v=<mt:var name="mt_version_id" escape="url">" type="text/css" />
    <![endif]-->
<mt:if name="local_lang_id" ne="en-us">
    <link rel="stylesheet" href="<$mt:var name="static_uri"$>styles_<$mt:var name="local_lang_id"$>.css?v=<mt:var name="mt_version_id" escape="url">" />
</mt:if>
    <script type="text/javascript">
      /* <![CDATA[ */
      CMSScriptURI = '<$mt:var name="mt_url"$>';
      ScriptURI = '<$mt:var name="script_url"$>';
      ScriptBaseURI = '<$mt:var name="script_base_url"$>';
      StaticURI = '<$mt:var name="static_uri"$>';
      HelpBaseURI = '<$mt:var name="help_url"$>';
      /* ]]> */
    </script>
<mt:unless name="optimize_ui">
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Core.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/JSON.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Timer.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Cookie.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/DOM.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Devel.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Observable.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Autolayout.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Component.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/List.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/App.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Cache.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Client.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/common/Template.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/tc.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/tc/tableselect.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.validate.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.json.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jqueryui/jquery-ui.js?v=<$mt:var name="mt_version_id" escape="url"$>"></script>
<mt:else>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.min.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>js/mt_core_compact.js?v=<mt:var name="mt_version_id" escape="url">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.validate.min.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.json.min.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jqueryui/jquery-ui.min.js?v=<$mt:var name="mt_version_id" escape="url"$>"></script>
</mt:unless>
<mt:var name="html_head">
    <script type="text/javascript" src="<$mt:var name="static_uri"$>mt.js?v=<mt:var name="mt_version_id" escape="url">"></script>
<mt:if name="local_lang_id" ne="en-us">
    <script type="text/javascript" src="<$mt:var name="static_uri"$>mt_<$mt:var name="local_lang_id"$>.js?v=<mt:var name="mt_version_id" escape="URL">" charset="utf-8"></script>
</mt:if>
<mt:unless name="optimize_ui">
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.mt.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
<mt:else>
    <script type="text/javascript" src="<$mt:var name="static_uri"$>jquery/jquery.mt.min.js?v=<mt:var name="mt_version_id" escape="URL">"></script>
</mt:unless>
<mt:var name="js_include">
  </head>
  <body class="<mt:if name="scope_type" eq="user">user system <mt:else><mt:var name="scope_type"> </mt:if>main-screen preview-screen">
    <div id="brand">
      <span><img alt="<$mt:var name="mt_product_name"$>" src="<$mt:var name="static_uri"$>images/logo/movable-type-logo<mt:if name="blog_id"><mt:if name="is_blog"><mt:else>-website</mt:if><mt:else>-system</mt:if>.png" /></span>
    </div>
    <table id="template-preview-layout" class="preview-layout">
      <tr>
        <td id="template-preview-control-strip" class="preview-control-strip">
          <p id="template-preview-label" class="preview-label"><__trans phrase="You are previewing the template named &ldquo;[_1]&rdquo;" params="<$mt:var name="name" escape="html" escape="html"$>"><mt:if name="build_time"><small><__trans phrase="(Publish time: [_1] seconds)" params="<mt:var name="build_time">"></small></mt:if></p>
          <form method="post" action="<$mt:var name="script_url"$>">
            <input type="hidden" name="__mode" value="save" />
            <input type="hidden" name="_type" value="template" />
            <input type="hidden" name="magic_token" value="<$mt:var name="magic_token"$>" />
            <input type="hidden" name="_preview_file" value="<$mt:var name="preview_file" escape="html"$>" />
            <input type="hidden" name="dirty" value="1" />
<mt:loop name="template_loop">
  <mt:if name="data_name" eq="id">
    <mt:if name="data_value">
            <input type="hidden" name="<$mt:var name="data_name" escape="html"$>" value="<$mt:var name="data_value" escape="html"$>" />
    </mt:if>
  <mt:else>
            <input type="hidden" name="<$mt:var name="data_name" escape="html"$>" value="<$mt:var name="data_value" escape="html"$>" />                
  </mt:if>
</mt:loop>
            <input type="hidden" name="return_args" value="__mode=view&amp;_type=template<mt:if name="blog_id">&amp;blog_id=<mt:var name="blog_id"></mt:if><mt:if name="id">&amp;id=<mt:var name="id" escape="url"></mt:if>">
<mt:setvarblock name="action_buttons">
  <button
     mt:mode="save"
     type="submit"
     name="save"
     value="save"
     accesskey="s"
     title="<__trans phrase="Save this template (s)">"
     class="save action primary button">
    <__trans phrase="Save this template">
  </button>
  <button
     mt:mode="view"
     type="submit"
     name="reedit"
     value="reedit"
     accesskey="e"
     title="<__trans phrase="Re-Edit this template (e)">"
     class="action button">
    <__trans phrase="Re-Edit this template">
  </button>
</mt:setvarblock>
<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
          </form>
<mt:if name="use_virtual_cat">
  <mtapp:statusmsg
     id="virtual-category"
     class="info full"
     can_close="0">
    <__trans phrase="There are no categories in this blog.  Limited preview of category archive templates is possible with a virtual category displayed.  Normal, non-preview output cannot be generated by this template unless at least one category is created.">
  </mtapp:statusmsg>
</mt:if>
        </td>
      </tr>
      <tr>
        <td id="template-preview-content" class="preview-content">
          <iframe id="frame" frameborder="0" scrolling="auto" src="<$mt:var name="preview_url"$>?<mt:date format="%H%M%S">" onclick="return TC.stopEvent(event);"></iframe>
        </td>
      </tr>
    </table>

    <div id="bootstrapper" class="hidden"></div>

    <script type="text/javascript">
      /* <![CDATA[ */
<mt:unless name="delayed_bootstrap">
      App.bootstrapInline( false );
</mt:unless>
      jQuery(function() {
        if (typeof document.body.style.maxHeight == "undefined") {
          jQuery('#brand span').pngfix();
        }
      });
      /* ]]> */
    </script>
  </body>
</html>
