My new template looks cleaner, except for the first few lines that check on the segment urls. Below:
<!-- See which page we are on -->
{if segment_1 == ""}
{assign_variable:current_page_label="Daily Addictions"}
{assign_variable:second_page_label=""}
{assign_variable:current_page_name="daily_addictions"}
{/if}
{if segment_1 == "blog_detail"}
{assign_variable:current_page_label="Daily Addictions"}
{assign_variable:second_page_label="{segment_2}"}
{assign_variable:current_page_name="blog_detail"}
{/if}
{if segment_1 == "contact"}
{assign_variable:current_page_label="Contact"}
{assign_variable:second_page_label=""}
{assign_variable:current_page_name="contact"}
{/if}
{if segment_1 == "about"}
{assign_variable:current_page_label="About"}
{assign_variable:second_page_label=""}
{assign_variable:current_page_name="about"}
{/if}
{embed="paradise_calling_embeds/html_header" current_page_label="{current_page_label}"}
<body>
{embed="paradise_calling_embeds/header" current_page_label="{current_page_label}"}
<div id="main" class="container showgrid">
<div class="span-24">
<div id="page1">
<div id="page2">
{embed="paradise_calling_embeds/search"}
{embed="paradise_calling_embeds/breadcrumb" current_page_label="{current_page_label}" second_page_label="{second_page_label}"}
{embed="paradise_calling_embeds/side_panel"}
<div id="page3">
{embed="paradise_calling_embeds/{current_page_name}"}
</div>
<!-- page3 -->
<!-- List a single blog -->
{if segment_1 == "blog_detail"}
{embed="paradise_calling_embeds/comments"}
{/if}
</div>
<!-- page2 -->
</div>
</div>
</div>
{embed="paradise_calling_embeds/footer"}
</body>
</html>
Without the if conditions checking the segment urls, it would look like this:
{embed="paradise_calling_embeds/html_header" current_page_label="{current_page_label}"}
<body>
{embed="paradise_calling_embeds/header" current_page_label="{current_page_label}"}
<div id="main" class="container showgrid">
<div class="span-24">
<div id="page1">
<div id="page2">
{embed="paradise_calling_embeds/search"}
{embed="paradise_calling_embeds/breadcrumb" current_page_label="{current_page_label}" second_page_label="{second_page_label}"}
{embed="paradise_calling_embeds/side_panel"}
<div id="page3">
{embed="paradise_calling_embeds/{current_page_name}"}
</div>
<!-- page3 -->
<!-- List a single blog -->
{if segment_1 == "blog_detail"}
{embed="paradise_calling_embeds/comments"}
{/if}
</div>
<!-- page2 -->
</div>
</div>
</div>
{embed="paradise_calling_embeds/footer"}
</body>
</html>
