Skip to content

Instantly share code, notes, and snippets.

@1stevengrant
Created March 21, 2012 12:12
Show Gist options
  • Save 1stevengrant/2146542 to your computer and use it in GitHub Desktop.
Save 1stevengrant/2146542 to your computer and use it in GitHub Desktop.
{exp:channel:entries channel="portugal_towns_info" limit="1" disable="categories|member_data|pagination|trackbacks"}
{exp:lg_replace:haystack needles="{content_module backspace="1"}content_module_{row_count}|{/content_module}|slideshow_module1"}
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
{exp:nsm_better_meta:template entry_id="{entry_id}"}
<link rel="stylesheet" type="text/css" media="all" href="{pp_html-framework_css}" />
<link rel="shortcut icon" href="http://www.portugalproperty.com/favicon.ico" />
<script type="text/javascript" src="http://use.typekit.com/vog8sdr.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link type="text/css" media="screen" rel="stylesheet" href="/css/colorbox.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.autocomplete-min.js"></script>
<script type="text/javascript" src="/js/jquery.colorbox-min.js"></script>
<script type="text/javascript" src="/js/onload.js"></script>
{if slideshow_main}
<script type="text/javascript" src="/js/jquery.cross-slide.js"></script>
<script type="text/javascript">
$(function() {
$('#slideshowModule').crossSlide({speed:12,fade:1}, [
{embed="embeds/slideshow-module_town-info" entryID="{entry_id}"}
]);
});
</script>
{/if}
<!--[if lt IE 8]>
<style>
.aux form { margin-top: 7px }
</style>
<link rel="stylesheet" type="text/css" media="screen" href="/css/ie7.css" />
<![endif]-->
<!--[if IE]><link rel="stylesheet" type="text/css" media="screen" href="/css/ie.css" /><![endif]-->
</head>
<body id="contentPage">
<div id="wrap">
{pp_html-framework_branding}
<div class="breadcrumb">
<p>You are here: <a href="http://www.portugalproperty.com/">Home</a> &raquo; Regional Guides &raquo; {property_location_area:label} &raquo; {property_location_town:label}</p>
<p>{current_time format="%l %j%S %F, %Y"}</p>
</div>
</div><!-- end header -->
<div id="content">
<div class="article" role="main">
{if slideshow_main}
<div id="slideshowModuleWrap">
{slideshow_main limit="1"}<h1>{property_location_town:label}</h1>{/slideshow_main}
<div id="slideshowModule"></div>
</div>
{if:else}
<div class="heading">
<h1>{property_location_town:label}</h1>
<img src="/images/sized/images/header-images/page-image-about-1-696x140.jpg" width="696" height="140" alt="" />
</div>
{/if}
<h2>About {property_location_town:label}</h2>
{towns_main_content}
{content_module}
{exp:lg_replace:replacement needle="content_module_{row_count}"}
{if content_module_image != ""}
<div class="pic {content_module_placement}" style="width:{exp:simple_math calculate="{content_module_size} + 2"}px">
{exp:ce_img:single src="{content_module_image}" width="{content_module_size}" alt=""}
{content_module_caption}
</div>
{if:else}
<div class="{content_module_placement} {content_module_colour} pullout" style="width:{exp:simple_math calculate="{content_module_size} + 2"}px">
{content_module_caption}
</div>
{/if}
{/exp:lg_replace:replacement}
{/content_module}
{/exp:lg_replace:haystack}
</div><!-- end .article -->
<div class="aside" role="complementary">
<div class="box">
{pp_html-framework_search}
</div>
{sidebar_additional_content}
{if logged_in}
<div class="box">
<h2>Members Area <span class="offset">links</span></h2>
<ul class="nav">
<li><a href="/members-area/">Members Area Home</a></li>
{exp:user:is_mine}
{if mine}
<li><a href="/members-area/my-saved-properties/{logged_in_member_id}/">My Saved Properties</a></li>
<li><a href="/members-area/my-profile/{logged_in_member_id}/">My Profile</a></li>
<li><a href="{path='LOGOUT'}">Log out</a></li>
{/if}
{/exp:user:is_mine}
</ul>
</div>
{/if}
{pp_sidebar-snippets_top-5-list}
</div><!-- end .aside -->
</div><!-- end content -->
</div><!-- end #wrap -->
{embed="globals/_footer"}
{/exp:channel:entries}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment