123456789101112131415161718192021222324252627282930313233343536 |
- @Title{Gallery}@
- @CSS{
- <?= file_get_contents("css/gallery.css") ?>
- }@
- @CSSMed{
- @media(orientation:portrait){
- .album{
- width:50%;
- }
- }
- }@
- @CSSSmall{
- @media(orientation:portrait){
- .album{
- width:100%;
- }
- }
-
- @media(orientation:landscape){
- .album{
- width:50%;
- }
- }
- }@
- @ButtonsRight{
- <?php if (Session::GetLoggedInUser()->HasAccess("gallery/manage")){?>
- <button onclick="Navigate('/gallery/manage/')" title="Manage">
- <img src="/images/gallery.svg" alt="Manage" />
- </button>
- <?php } ?>
- }@
- @Body{
- <?php foreach ($albums as $album){
- echo '<div class="album"><div><a href="/gallery/view/',$album->AlbumUrl,'/"><img src="/',$album->Images[0]->ThumbnailPath,'" /></a><span>',$album->AlbumTitle,'</span></div></div>';
- }?>
- }@
|