From a6f55ac0381a81c6abf79bb2ed8617b6d50ed2aa Mon Sep 17 00:00:00 2001 From: flop25 Date: Mon, 14 Jan 2013 23:15:34 +0000 Subject: bug:2820 & bug:2684 add $conf['maxRequests'] perf enhanced : declare once {combine_script} add one loading gif, fixed at the bottom right of the page display an icon for picture loading, and an error icon if ajax failed : might need to be integrated in sprite.png ToDo picture page/clean up unused loader gif/sleep above all. git-svn-id: http://piwigo.org/svn/trunk@20161 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/icon/errors_small.png | Bin 0 -> 1270 bytes themes/default/icon/img_small.png | Bin 0 -> 1164 bytes themes/default/images/ajax_loader.gif | Bin 0 -> 10819 bytes themes/default/template/index.tpl | 3 +- themes/default/template/mainpage_categories.tpl | 45 +++++++++++++++++++++--- themes/default/template/thumbnails.tpl | 42 ++++++++++++++++++++-- themes/default/themeconf.inc.php | 1 + 7 files changed, 83 insertions(+), 8 deletions(-) create mode 100644 themes/default/icon/errors_small.png create mode 100644 themes/default/icon/img_small.png create mode 100644 themes/default/images/ajax_loader.gif (limited to 'themes/default') diff --git a/themes/default/icon/errors_small.png b/themes/default/icon/errors_small.png new file mode 100644 index 000000000..724cc659c Binary files /dev/null and b/themes/default/icon/errors_small.png differ diff --git a/themes/default/icon/img_small.png b/themes/default/icon/img_small.png new file mode 100644 index 000000000..dbfcc9a00 Binary files /dev/null and b/themes/default/icon/img_small.png differ diff --git a/themes/default/images/ajax_loader.gif b/themes/default/images/ajax_loader.gif new file mode 100644 index 000000000..d84f65378 Binary files /dev/null and b/themes/default/images/ajax_loader.gif differ diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index aa92a215f..e6874567e 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -171,8 +171,9 @@ jQuery("#derivativeSwitchBox").on("mouseleave", function() { {/if} {if !empty($THUMBNAILS)} + {/if} {if !empty($thumb_navbar)} diff --git a/themes/default/template/mainpage_categories.tpl b/themes/default/template/mainpage_categories.tpl index 81bb82d75..8657b921b 100644 --- a/themes/default/template/mainpage_categories.tpl +++ b/themes/default/template/mainpage_categories.tpl @@ -7,18 +7,55 @@ height: {$derivative_params->max_height()+5}px; } {/html_style}{/strip} +