[%# Common code for all Dreamwidth site schemes, refactored for inheritance. Authors: Jen Griffin Andrea Nall Based on Blueshift Site Scheme, authored by: Emily Ravenwood Denise Paolucci Which was in turn based on Tropospherical Red, authored by: Janine Smith Jesse Proulx Elizabeth Lubowitz Copyright (c) 2010-2013 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %][%- BLOCK block.need_res -%] [%- END -%] [%- BLOCK block.head -%] [% sections.windowtitle || sections.title %] [%- IF resource_group == "foundation" -%] [% END %] [%- # block.need_res below includes files for the individual pages dw.need_res( { group => "foundation" }, "js/foundation/foundation/foundation.reveal.js" "js/skins/jquery.focus-on-reveal.js" "stc/css/components/foundation-icons.css" ); dw.need_res( "stc/canary.css" ); -%] [%- PROCESS block.need_res -%] [% dw_scheme.res_includes %] [% sections.head %] [% dw_scheme.final_head_html %] [%- END -%] [%- BLOCK block.logo -%] [% site.nameshort %] [%- END -%] [%- BLOCK block.footer -%]

[% 'sitescheme.footer.info' | ml %]

[% IF site.is_canary %]
canary
[% END %] [%- END -%] [%- userpic_class = 'account-links-userpic' -%] [%- BLOCK block.userpic -%] [%- END -%] [%- account_link_options = {} -%] [%- BLOCK block.accountlinks -%] [%# At this point it's too tricky to work in foundation styling with the old table based way of managing account links, so it's been split into two different sections. Hopefully, the table based way can be removed when the entire site is Foundation-based. %] [%- IF resource_group == "foundation" -%] [%- IF remote -%] [%- ELSE -%] [%# no remote, logged out %] [%- chal = dw_scheme.challenge_generate(300) -%] [%- END -%] [%# end if remote %] [%- ELSE -%] [%# resource group is not foundation %] [%- END -%] [%# end if resource_group == "foundation" %] [%- END -%] [%# end block.accountlinks %] [%- BLOCK block.pagediv -%]
[% PROCESS block.skiplink %] [%# Not using the HTML 5
element for now because of incompatibilities with JAWS and Firefox %]

[% sections.title %]

[% content %]
[% PROCESS block.accountlinks %]
[% PROCESS block.footer %]
[%- END -%] [%- canvas_opts = "" -%] [%- BLOCK block.page -%] [%- IF resource_group == "foundation" -%] [% PROCESS block.head %] [%# NOTE: Other site schemes override this block, so only gradation ends up with the class tag %]
[% PROCESS block.skiplink %] [%# Not using the HTML 5
element for now because of incompatibilities with JAWS and Firefox %]
[%- PROCESS block.msgs -%]

[% sections.title %]

[%- PROCESS block.errors -%]
[%- content -%]
[% PROCESS block.accountlinks %]
[% PROCESS block.footer %]
[% dw_scheme.final_body_html %] [%- PROCESS block.script_init -%] [%- ELSE -%] [% PROCESS block.head %] [%# NOTE: Other site schemes override this block, so only gradation ends up with the class tag %]
[%- PROCESS block.msgs -%] [% PROCESS block.pagediv %]
[% dw_scheme.final_body_html %] [%- END -%] [%- END -%]