mainDivAttributes}>
{*
* Some module views (eg slideshow) want the full screen. So for those, we don't draw
* a header, footer, navbar, etc. Those views are responsible for drawing everything.
*}
{if $theme.useFullScreen}
{include file="gallery:`$theme.moduleTemplate`" l10Domain=$theme.moduleL10Domain}
{elseif $theme.pageType == 'progressbar'}
{g->theme include="header.tpl"}
{*if !((empty($theme.parents) && $theme.pageType == 'album'))*}
{*
*}
{*g->block type="core.BreadCrumb" skipRoot=true separator="/"*}
{*
*}
{*/if*}
{* Include the appropriate content type for the page we want to draw. *}
{if (empty($theme.parents) && $theme.pageType == 'album')}
{g->theme include="frontpage.tpl"}
{elseif ($theme.pageType == 'album') && ($theme.item.id == 97)}
{g->theme include="contacto.tpl"}
{elseif ($theme.pageType == 'album') && ($theme.item.id == 144)}
{g->theme include="album_catalogo.tpl"}
{elseif ($theme.pageType == 'album') && ($theme.item.id == 345)}
{g->theme include="album_cocinas.tpl"}
{elseif ($theme.pageType == 'album') && ($theme.item.id == 346)}
{g->theme include="album_banos.tpl"}
{elseif ($theme.pageType == 'album') && ($theme.item.id == 363)}
{g->theme include="album_complementos.tpl"}
{elseif $theme.pageType == 'album'}
{g->theme include="album.tpl"}
{elseif $theme.pageType == 'photo'}
{g->theme include="photo.tpl"}
{elseif $theme.pageType == 'admin'}
{g->theme include="admin.tpl"}
{elseif $theme.pageType == 'module'}
{g->theme include="module.tpl"}
{/if}
{if $user.isRegisteredUser}
{* System Links *}
{if empty($theme.parents)}
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
{/if}
{/if}