{!-- always show the homepage --}
  • {site_name}
  • {!-- check for channel, category --} {if embed:entry_ch}
  • {embed:p_title}
  • {exp:channel:entries channel='{embed:entry_ch}' limit='1'}
  • {title}
  • {/exp:channel:entries} {if:elseif embed:cat_ch}
  • {embed:p_title}
  • {exp:channel:category_heading channel='{embed:cat_ch}'}{category_name}{/exp:channel:category_heading}
  • {if:else} {!-- check for search results --} {if embed:search}
  • {embed:p_title}
  • {if embed:search == 'y'}
  • {exp:search:total_results} search result{if '{exp:search:total_results}' != 1}s{/if} for {exp:search:keywords}
  • {if:else}
  • 0 search results for {exp:search:keywords}
  • {/if} {if:else}
  • {embed:p_title}
  • {/if} {/if}