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="progressbar.tpl"}
{else}
{if isset($controller) && ($controller == 'core.UserLogin')}
text to show on login page only
{else}
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
{g->block type="core.BreadCrumb"}
{/if}
{* Check for the right template if a album page *}
{if $theme.pageType == 'album'}
{if $smarty.get.page == 'list'}
{g->theme include="list.tpl"}
{/if}
{/if}
{* Include the appropriate content type for the page we want to draw. *}
{if $theme.pageType == 'album'}
{g->theme include="album.tpl"}
{elseif $theme.pageType == 'list'}
{g->theme include="list.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} {* end of full screen check *}
{*
* Give Gallery a chance to output any cleanup code, like javascript that needs to be run
* at the end of the tag. If you take this out, some code won't work properly.
*}
{g->trailer}
{* Put any debugging output here, if debugging is enabled *}
{g->debug}