From 1c50bb4d0365fd893aa90c810d527cb37e630b93 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 14 Mar 2012 08:19:25 +0000 Subject: Automaticaly set better derivative params for mobile theme according to screen size. git-svn-id: http://piwigo.org/svn/trunk@13545 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/smartpocket/template/footer.tpl | 3 +++ .../smartpocket/template/mainpage_categories.tpl | 4 +--- themes/smartpocket/template/thumbnails.tpl | 9 +++------ themes/smartpocket/themeconf.inc.php | 23 ++++++++++++++++++++++ 4 files changed, 30 insertions(+), 9 deletions(-) (limited to 'themes/smartpocket') diff --git a/themes/smartpocket/template/footer.tpl b/themes/smartpocket/template/footer.tpl index bfae6c062..762fba511 100644 --- a/themes/smartpocket/template/footer.tpl +++ b/themes/smartpocket/template/footer.tpl @@ -14,6 +14,9 @@ {/if} +{footer_script require='jquery'} +document.cookie = 'screen_size='+jQuery(document).width()+'x'+jQuery(document).height()+';path={$COOKIE_PATH}'; +{/footer_script} {get_combined_scripts load='footer'} diff --git a/themes/smartpocket/template/mainpage_categories.tpl b/themes/smartpocket/template/mainpage_categories.tpl index 54a99ba4d..d1cf3cf8b 100644 --- a/themes/smartpocket/template/mainpage_categories.tpl +++ b/themes/smartpocket/template/mainpage_categories.tpl @@ -1,10 +1,8 @@ -{define_derivative name='derivative_params_square' type='square'} -