Skip to content

Instantly share code, notes, and snippets.

@ryanschuhler
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save ryanschuhler/9375964 to your computer and use it in GitHub Desktop.

Select an option

Save ryanschuhler/9375964 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
#parse ($init)
<html class="#language ("lang.dir")" dir="#language ("lang.dir")" lang="$w3c_language_id">
<head>
<title>$the_title - $company_name</title>
<meta content="minimum-scale=1.0, width=device-width" name="viewport" />
$theme.include($top_head_include)
<style>
#parse ("$full_templates_path/css.vm")
</style>
<script>
#parse ("$full_templates_path/js.vm")
</script>
</head>
<body class="$css_class">
$theme.include($body_top_include)
#if ($is_signed_in)
#dockbar()
#end
<div id="wrapper">
<header id="banner" role="banner">
<div id="heading" style="background-image: url($theme.getSetting("repeatable-header-image-url"));">
<a class="$logo_css_class" href="$site_default_url" title="#language ("go-to") $site_name">
<img alt="$logo_description" class="max-960" src="$site_logo" width="100%" />
</a>
</div>
#if ($has_navigation || $is_signed_in)
#parse ("$full_templates_path/navigation.vm")
#end
</header>
<div id="content">
#if ($selectable)
$theme.include($content_include)
#else
$portletDisplay.recycle()
$portletDisplay.setTitle($the_title)
$theme.wrapPortlet("portlet.vm", $content_include)
#end
</div>
<footer id="footer" role="contentinfo">
#if ($theme.getSetting("social-icons-display") != "do-not-display")
#set ($icon_color = "dark")
#if ($theme.getSetting("social-icons-display") == "light")
#set ($icon_color = "light")
#end
<nav class="$icon_color social-nav">
<ul>
#socialIcons($theme.getSetting("social-facebook-url"), "facebook")
#socialIcons($theme.getSetting("social-twitter-url"), "twitter")
#socialIcons($theme.getSetting("social-linkedin-url"), "linkedin")
#socialIcons($theme.getSetting("social-youtube-url"), "youtube")
#socialIcons($theme.getSetting("social-blog-url"), "blog")
</ul>
</nav>
#end
<nav id="footerNavigation">
<ul>
#foreach ($page in $page.getChildren())
#if ($page.getName($locale) == $footer_nav_name)
#set ($size = $page.getChildren().size())
#foreach ($page in $page.getChildren())
#set ($page_class = "")
#if ($velocityCount == $size)
#set ($page_class = "last")
#end
<li class="$page_class">
#set ($href = $page.getFriendlyURL())
#if ($page.isTypeURL() == "true")
#set ($href = $page.getRegularURL($request))
#end
$page.getRegularURL($request)
<a href="$href">$page.getName($locale)</a>
</li>
#end
#end
#end
</ul>
</nav>
<p class="copyright">
&copy; $the_year Liferay Inc. #language("all-rights-reserved")
</p>
</footer>
</div>
$theme.include($body_bottom_include)
$theme.include($bottom_include)
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment