[%-
   TRY;
      PROCESS "tpl/sections/${page.section}_config.html";
   CATCH;
     do_something_so_no_return_character = 1;
   END;
-%]
<!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" xml:lang="en" lang="en">
<head>
    <title>[% page.title %] - [% site.name %]</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

    <link rel="shortcut icon" href="[% combust.static_url(page.favicon || "/favicon.ico") %]" />
[% IF site.syntaxhighlight %]
    <link rel="stylesheet" title="perl" type="text/css" href="[% combust.static_url("/css/shCore.css") %]" media="all" />
    <link rel="stylesheet" title="perl" type="text/css" href="[% combust.static_url("/css/shThemeDefault.css") %]" media="all" />
[% END %]

[% 
    page.css.unshift("css/leostyle.css");
    page.css.push("css/" _ combust.site _ ".css");
    PROCESS tpl/common/css_include.html;
%]

    [% IF page.description %]<meta name="description" content="[% page.description %]" />[% END %]
    [% IF page.keywords %]<meta name="keywords" content="[% page.keywords %]" />[% END %]

    [% page.js.push("/js/jquery.corner.js");
       page.js.push("/js/leo.js");
    %]

    [% IF combust.site == "www" %]
    <link rel="canonical" href="https://www.perl.org[% combust.request.path | html %]" />
    [% END %]


[% page.morehead %]

</head>
<body[% ' class="section_' _ page.section _ '"' IF page.section %]>

<div id="header_holder">
    <div class="sub_holder">
        <div id="page_image"></div>
        <h1>
           <a href="/">[% page.title %]</a>
        </h1>
        <div id="logo_holder">
           
            [% IF site.brand != 'com' %]

            <a href="/"><img src="[% site.logo || combust.static_url('/images/camel_head.png') %]" id="logo" alt="[% site.tag_line || 'Perl programming' %]" height="65" align="right" /></a>
            [% END %]

			 <span>[% site.name %]</span>

        </div>
    </div>
</div>

<div id="nav">
    <div class="sub_holder">
        [% INCLUDE nav_tabs %]
    </div>
</div>

<div id="crum_holder">
    <div id="crum" class="sub_holder">
        &nbsp;
    </div>
</div>

<div id="content_holder">
    <div id="content" class="sub_holder">
        <div id="main">
            [% content %]
        </div>
        <div id="short_lists" class="short_lists">
            [% IF site.add_this %]
            <div id="addthis">
                <!-- AddThis Button BEGIN -->
                <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=ra-4e8353aa661005b2"><img src="//s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a>
                <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e8353aa661005b2"></script>
                <!-- AddThis Button END -->
            </div>
            [% END %]

            [% INCLUDE tpl/quick_links_1 %]
            [% INCLUDE tpl/quick_links_2 %]
            [% INCLUDE tpl/quick_links_3 %]
            [% INCLUDE tpl/tip %]
            [% INCLUDE tpl/sponsor.html %]

            <div id="spacer_for_google"></div>
            
        </div>
    </div>
</div>
<div style="clear:both"></div>

<div id="footer">
    <div class="sub_holder">
        
[% IF site.brand == 'com' %]
<p class="copyright">
    <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="[% combust.static_url('/images/icons/creativecommons-by-nc-nd-3.0-us-80x15.png') %]" /></a> © 2002-[% USE date; date.format(date.now, '%Y') %] Perl.com | <a href="/siteinfo.html">Site Info</a>
</p>
[% ELSE %]
        <p class="sites">
            &nbsp;When you need <em>Perl</em> think <strong>Perl.org</strong>: <a href="https://www.perl.org/">www</a> | <a href="http://blogs.perl.org/">blogs</a> | <a href="https://jobs.perl.org/">jobs</a> | <a href="https://learn.perl.org/">learn</a> <!-- | <a href="http://lists.perl.org/">lists</a> --> | <a href="https://dev.perl.org/">dev</a>
        </p>
        <p class="copyright">
            <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="[% combust.static_url('/images/icons/creativecommons-by-nc-nd-3.0-us-80x15.png') %]" /></a> © 2002-[% USE date; date.format(date.now, '%Y') %] Perl.org | <a href="/siteinfo.html">Site Info</a>
        </p>
[% END %]

        <div style="clear:both"></div>
        <div id="google_translate_element"></div>
    </div>
</div>

[%-
   PROCESS "tpl/googleanalytics.html";
   page.js.unshift("//st.pimg.net/cdn/libs/jquery/1.7.1/jquery.min.js");
   PROCESS tpl/js_includes.html(js_files = page.js);
%]

<script type="text/javascript">
function googleTranslateElementInit() {
          new google.translate.TranslateElement({
            pageLanguage: 'en',
            autoDisplay: false
        [%- IF siteconfig.googleanalytics %]
            ,
            gaTrack: true,
            gaId: '[% siteconfig.googleanalytics %]'
        [% END -%]
          }, 'google_translate_element');
        }
</script>

<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>

[% IF site.syntaxhighlight %]
    <script type="text/javascript" charset="utf-8" src="[% combust.static_url("/js/shCore.js") %]"></script>
    <script type="text/javascript" charset="utf-8" src="[% combust.static_url("/js/shBrushPerl.js") %]"></script>
    <script type="text/javascript" charset="utf-8">
        SyntaxHighlighter.all();
    </script>
[% END %]

</body>
</html>
