diff options
author | patdenice <patdenice@piwigo.org> | 2012-03-14 08:19:25 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2012-03-14 08:19:25 +0000 |
commit | 1c50bb4d0365fd893aa90c810d527cb37e630b93 (patch) | |
tree | 14576dc9cce336e59429916fc3ca8917e6b9a71b /themes/smartpocket/template/footer.tpl | |
parent | f0d5c6c010ebf651ca6db8c35ef7124b8ca95369 (diff) |
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
Diffstat (limited to 'themes/smartpocket/template/footer.tpl')
-rw-r--r-- | themes/smartpocket/template/footer.tpl | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ </h6>
</div>
{/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'}
</div><!-- /page -->
|