diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-10 00:03:11 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-10 00:03:11 +0300 |
commit | c3f84f79f46970cfe4e0ebe8267204998664b76d (patch) | |
tree | 3e35370cb6651496285cb01c2bc2513ad4ec7eec /templates | |
parent | d6a239c0510f788562c7bb56a1c1fd015fd54aa7 (diff) |
Don't jump to top of page when root slideshow ends
Fixes #119
+ some cleanup in the public template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/public.php | 123 |
1 files changed, 63 insertions, 60 deletions
diff --git a/templates/public.php b/templates/public.php index aa525f1d..a3b1b3ea 100644 --- a/templates/public.php +++ b/templates/public.php @@ -35,74 +35,77 @@ style( ); ?> -<div class="wrapper"><!-- for sticky footer --> - <div id="notification-container"> - <div id="notification" style="display: none;"></div> - </div> - <header> - <div id="header"> - <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"> - <div class="logo-wide svg"> - <h1 class="hidden-visually"><?php p($theme->getName()); ?></h1> - </div> - </a> +<div id="notification-container"> + <div id="notification" style="display: none;"></div> +</div> +<header> + <div id="header"> + <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"> + <div class="logo-wide svg"> + <h1 class="hidden-visually"><?php p($theme->getName()); ?></h1> + </div> + </a> - <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> - <div class="header-right"> - <span id="details"> - <span id="displayName"> - <?php p($l->t('shared by %s', $_['displayName'])); ?> - </span> - <a id="download" class="button"> - <img class="svg" src="<?php print_unescaped( - image_path($_['appName'], "download.svg") - ); ?>" alt=""/> - <span id="download-text"><?php p($l->t('Download')) ?> - </span> - </a> + <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div> + <div class="header-right"> + <span id="details"> + <span id="displayName"> + <?php p($l->t('shared by %s', $_['displayName'])); ?> </span> - </div> + <a id="download" class="button"> + <img class="svg" src="<?php print_unescaped( + image_path($_['appName'], "download.svg") + ); ?>" alt=""/> + <span id="download-text"><?php p($l->t('Download')) ?> + </span> + </a> + </span> </div> - </header> - <div id="content" data-albumname="<?php p($_['albumName']) ?>"> - <div id="controls"> - <div id="breadcrumbs"></div> - <!-- toggle for opening shared picture view as file list --> - <div id="openAsFileListButton" class="button"> - <img class="svg" src="<?php print_unescaped( - image_path('core', 'actions/toggle-filelist.svg') - ); ?>" alt="<?php p($l->t('File list')); ?>"/> + </div> +</header> +<div class="content-wrapper"> + <div id="content" class="app-<?php p($_['appName']) ?>" data-albumname="<?php p($_['albumName']) ?>"> + <div id="app"> + <div id="controls"> + <div id="breadcrumbs"></div> + <!-- toggle for opening shared picture view as file list --> + <div id="openAsFileListButton" class="button"> + <img class="svg" src="<?php print_unescaped( + image_path('core', 'actions/toggle-filelist.svg') + ); ?>" alt="<?php p($l->t('File list')); ?>"/> + </div> + <div id="sort-name-button" class="button left-sort-button"> + <img class="svg" src="<?php print_unescaped( + image_path($_['appName'], 'nameasc.svg') + ); ?>" alt="<?php p($l->t('Sort by name')); ?>"/> + </div> + <div id="sort-date-button" class="button right-sort-button"> + <img class="svg" src="<?php print_unescaped( + image_path($_['appName'], 'dateasc.svg') + ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> + </div> + <span class="right"> + <div id="album-info-button" class="button"> + <span class="ribbon black"></span> + <img class="svg" src="<?php print_unescaped( + image_path('core', 'actions/info.svg') + ); ?>" alt="<?php p($l->t('Album information')); ?>"/> + </div> + <div class="album-info-content markdown-body"></div> + </span> </div> - <div id="sort-name-button" class="button left-sort-button"> - <img class="svg" src="<?php print_unescaped( - image_path($_['appName'], 'nameasc.svg') - ); ?>" alt="<?php p($l->t('Sort by name')); ?>"/> + <div id="gallery" class="hascontrols" + data-requesttoken="<?php p($_['requesttoken']) ?>" + data-token="<?php isset($_['token']) ? p($_['token']) : p(false) ?>"> </div> - <div id="sort-date-button" class="button right-sort-button"> - <img class="svg" src="<?php print_unescaped( - image_path($_['appName'], 'dateasc.svg') - ); ?>" alt="<?php p($l->t('Sort by date')); ?>"/> + <div id="emptycontent" class="hidden"><?php p( + $l->t( + "No pictures found! If you upload pictures in the files app, they will be displayed here." + ) + ); ?> </div> - <span class="right"> - <div id="album-info-button" class="button"> - <span class="ribbon black"></span> - <img class="svg" src="<?php print_unescaped( - image_path('core', 'actions/info.svg') - ); ?>" alt="<?php p($l->t('Album information')); ?>"/> - </div> - <div class="album-info-content markdown-body"></div> - </span> </div> - <div id="gallery" class="hascontrols" - data-requesttoken="<?php p($_['requesttoken']) ?>" - data-token="<?php isset($_['token']) ? p($_['token']) : p(false) ?>"></div> </div> - <div id="emptycontent" class="hidden"><?php p( - $l->t( - "No pictures found! If you upload pictures in the files app, they will be displayed here." - ) - ); ?></div> - <div class="push"></div><!-- for sticky footer --> </div> <footer> <p class="info"><?php print_unescaped($theme->getLongFooter()); ?></p> |