Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

82 lines (62 sloc) 1.902 kB
<& /head.mas, title => $m->request_comp()->scall_method('title') &>
<body>
<div id="<% $is_front_page ? 'front-page-doc' : 'doc4' %>"
class="<% $is_front_page ? 'front-page' : q{} %>">
<& header.mas, %ARGS &>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div id="content"
% if ($md_schema) {
itemscope itemtype="<% $md_schema | h %>"
% }
>
<& /lib/messages.mas &>
% if ( $m->request_comp()->method_exists('page_title') ) {
% my $title = $m->request_comp()->scall_method( 'page_title', %ARGS );
% if ( $title =~ /<h1/ ) {
<% $title %>
% } else {
<div id="page-title">
<h1><% $title %></h1>
</div>
% }
% }
% $m->call_next();
</div>
</div>
</div>
</div>
<& footer.mas &>
</div>
% if ( $m->request_comp()->attr('load_google_maps')) {
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=<% VegGuide::Config->GoogleMapsAPIKey( $c->request()->uri()->host() ) | h %>"
type="text/javascript"></script>
% }
% if ( VegGuide::Config->IsProduction() ) {
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1805706-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(ga);
})();
</script>
% }
</body>
</html>
<%init>
my $is_front_page = $m->request_comp()->attr('is_front_page');
my $md_schema = $m->request_comp()->scall_method( 'page_schema', %ARGS );
</%init>
<%attr>
load_google_maps => 0
is_front_page => 0
</%attr>
<%method title>
Vegetarian and Vegan Restaurants, Grocers, Bakeries | VegGuide.Org
</%method>
<%method page_schema></%method>
Jump to Line
Something went wrong with that request. Please try again.