From a7f70524df847f3dd8e53e0e07b67597edb1631c Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 16 Feb 2012 11:51:34 +0000 Subject: feature:2577 Add mobile theme git-svn-id: http://piwigo.org/svn/trunk@13182 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/smartpocket/template/footer.tpl | 6 +++ themes/smartpocket/template/header.tpl | 58 ++++++++++++++++++++++ themes/smartpocket/template/identification.tpl | 41 +++++++++++++++ themes/smartpocket/template/index.tpl | 5 ++ themes/smartpocket/template/infos_errors.tpl | 19 +++++++ .../smartpocket/template/mainpage_categories.tpl | 20 ++++++++ themes/smartpocket/template/menubar.tpl | 29 +++++++++++ themes/smartpocket/template/profile.tpl | 4 ++ themes/smartpocket/template/profile_content.tpl | 58 ++++++++++++++++++++++ themes/smartpocket/template/register.tpl | 38 ++++++++++++++ themes/smartpocket/template/thumbnails.tpl | 32 ++++++++++++ 11 files changed, 310 insertions(+) create mode 100644 themes/smartpocket/template/footer.tpl create mode 100644 themes/smartpocket/template/header.tpl create mode 100644 themes/smartpocket/template/identification.tpl create mode 100644 themes/smartpocket/template/index.tpl create mode 100644 themes/smartpocket/template/infos_errors.tpl create mode 100644 themes/smartpocket/template/mainpage_categories.tpl create mode 100644 themes/smartpocket/template/menubar.tpl create mode 100644 themes/smartpocket/template/profile.tpl create mode 100644 themes/smartpocket/template/profile_content.tpl create mode 100644 themes/smartpocket/template/register.tpl create mode 100644 themes/smartpocket/template/thumbnails.tpl (limited to 'themes/smartpocket/template') diff --git a/themes/smartpocket/template/footer.tpl b/themes/smartpocket/template/footer.tpl new file mode 100644 index 000000000..3de169077 --- /dev/null +++ b/themes/smartpocket/template/footer.tpl @@ -0,0 +1,6 @@ + +{get_combined_scripts load='footer'} + + + + \ No newline at end of file diff --git a/themes/smartpocket/template/header.tpl b/themes/smartpocket/template/header.tpl new file mode 100644 index 000000000..06248f78c --- /dev/null +++ b/themes/smartpocket/template/header.tpl @@ -0,0 +1,58 @@ + + + + + +{if isset($meta_ref) } +{if isset($INFO_AUTHOR)} + +{/if} +{if isset($related_tags)} + +{/if} +{if isset($COMMENT_IMG)} + +{else} + +{/if} +{/if} + + + +{if (isset($REVERSE) and $REVERSE and $PAGE_TITLE == l10n('Home'))} +{$GALLERY_TITLE} | {$PAGE_TITLE}{else} +{$PAGE_TITLE} | {$GALLERY_TITLE}{/if} + + + +{get_combined_css} +{foreach from=$themes item=theme} +{if $theme.load_css} +{combine_css path="themes/`$theme.id`/theme.css" order=-10} +{/if} +{if !empty($theme.local_head)}{include file=$theme.local_head load_css=$theme.load_css}{/if} +{/foreach} + +{if isset($U_CANONICAL)}{/if} + +{if not empty($page_refresh) }{/if} + +{get_combined_scripts load='header'} + +{combine_script id='jquery' path='themes/smartpocket/js/jquery-1.6.4.min.js'} +{combine_script id='config' path='themes/smartpocket/js/config.js' require='jquery'} +{combine_script id='jquery.mobile' path='themes/smartpocket/js/jquery.mobile.min.js' require='jquery,config'} + + + + +
+ +
+
+ + {$GALLERY_TITLE} + {$MENUBAR} +
+
+ diff --git a/themes/smartpocket/template/identification.tpl b/themes/smartpocket/template/identification.tpl new file mode 100644 index 000000000..33d011570 --- /dev/null +++ b/themes/smartpocket/template/identification.tpl @@ -0,0 +1,41 @@ +{include file='infos_errors.tpl'} +
+

{'Identification'|@translate}

+
+ +
+ + +
+ + +
+ + +
+ + {if $authorize_remembering } +
+ + +
+ {/if} + +
+ + +
+ +
+ +
+{if isset($U_REGISTER)} + {'Register'|@translate} +{/if} +{* +{if isset($U_LOST_PASSWORD)} + {'Forgot your password?'|@translate} +{/if} +*} +
+
diff --git a/themes/smartpocket/template/index.tpl b/themes/smartpocket/template/index.tpl new file mode 100644 index 000000000..f9d319783 --- /dev/null +++ b/themes/smartpocket/template/index.tpl @@ -0,0 +1,5 @@ +
+{if !empty($CATEGORIES)}{$CATEGORIES}{/if} +{if !empty($THUMBNAILS)}{$THUMBNAILS}{/if} +
+ diff --git a/themes/smartpocket/template/infos_errors.tpl b/themes/smartpocket/template/infos_errors.tpl new file mode 100644 index 000000000..ce2db88d9 --- /dev/null +++ b/themes/smartpocket/template/infos_errors.tpl @@ -0,0 +1,19 @@ +{if isset($errors) } +
+
    + {foreach from=$errors item=error} +
  • {$error}
  • + {/foreach} +
+
+{/if} + +{if not empty($infos)} +
+
    + {foreach from=$infos item=info} +
  • {$info}
  • + {/foreach} +
+
+{/if} \ No newline at end of file diff --git a/themes/smartpocket/template/mainpage_categories.tpl b/themes/smartpocket/template/mainpage_categories.tpl new file mode 100644 index 000000000..19914c5ce --- /dev/null +++ b/themes/smartpocket/template/mainpage_categories.tpl @@ -0,0 +1,20 @@ +{define_derivative name='derivative_params' width=80 height=80 crop=true} + + + diff --git a/themes/smartpocket/template/menubar.tpl b/themes/smartpocket/template/menubar.tpl new file mode 100644 index 000000000..49fa37e14 --- /dev/null +++ b/themes/smartpocket/template/menubar.tpl @@ -0,0 +1,29 @@ + + +{footer_script}{literal} +$(document).ready(function() { + $('#identification').change(function() { + window.location = this.value; + }); +}); +{/literal}{/footer_script} diff --git a/themes/smartpocket/template/profile.tpl b/themes/smartpocket/template/profile.tpl new file mode 100644 index 000000000..fde414605 --- /dev/null +++ b/themes/smartpocket/template/profile.tpl @@ -0,0 +1,4 @@ +
+{include file='infos_errors.tpl'} +{$PROFILE_CONTENT} +
diff --git a/themes/smartpocket/template/profile_content.tpl b/themes/smartpocket/template/profile_content.tpl new file mode 100644 index 000000000..6c9cb5064 --- /dev/null +++ b/themes/smartpocket/template/profile_content.tpl @@ -0,0 +1,58 @@ + +
+ +
+ + +
+ + {if not $SPECIAL_USER} {* can modify password + email*} +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ {/if} + +{if $ALLOW_USER_CUSTOMIZATION} +
+ + {html_options name=language options=$language_options selected=$language_selection} +
+{/if} + + +
+ {if $ALLOW_USER_CUSTOMIZATION} + + + + + + + {/if} + + + + + {if $ALLOW_USER_CUSTOMIZATION} + + {/if} +
+ +
+ diff --git a/themes/smartpocket/template/register.tpl b/themes/smartpocket/template/register.tpl new file mode 100644 index 000000000..69fd6bc78 --- /dev/null +++ b/themes/smartpocket/template/register.tpl @@ -0,0 +1,38 @@ +{include file='infos_errors.tpl'} +
+

{'Register'|@translate}

+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + +
+ +
+
diff --git a/themes/smartpocket/template/thumbnails.tpl b/themes/smartpocket/template/thumbnails.tpl new file mode 100644 index 000000000..5e33dd0ee --- /dev/null +++ b/themes/smartpocket/template/thumbnails.tpl @@ -0,0 +1,32 @@ +{if !empty($thumbnails)} +{combine_script id='klass' path='themes/smartpocket/js/klass.min.js'} +{combine_script id='photoswipe' path='themes/smartpocket/js/code.photoswipe.jquery.min.js' require='klass,jquery.mobile'} + +{define_derivative name='derivative_params_thumb' width=150 height=150 crop=true} +{define_derivative name='derivative_params_full' type='large'} + +{footer_script}{literal} +(function(window, $, PhotoSwipe){ + $(document).ready(function(){ + var options = { + jQueryMobile: true, + //allowUserZoom: false, + imageScaleMethod: "fitNoUpscale" + }; + $(".thumbnails a").photoSwipe(options); + $(".thumbnails img").load(function() { $(this).css('border', '1px solid #3c3c3c') }); + }); +}(window, window.jQuery, window.Code.PhotoSwipe)); +{/literal}{/footer_script} +
+
    +{foreach from=$thumbnails item=thumbnail} +
  • + + {$thumbnail.TN_ALT} + +
  • +{/foreach} +
+
+{/if} -- cgit v1.2.3