From 650a40bf78263cced01e9a1101a4d8bd944b388c Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 10 Oct 2008 21:52:00 +0000 Subject: jQuery Datepicker: Move code source to template-common in order to use datepicker on version after butterfly Merge trunk 2703:2704 into branch 2.0 git-svn-id: http://piwigo.org/svn/branches/2.0@2705 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/default-layout.css | 7 ++++++- template/yoga/icon/datepicker.png | Bin 0 -> 1047 bytes template/yoga/include/datepicker.inc.tpl | 19 +++++++++++++++++++ template/yoga/search.tpl | 17 +++++++++++++++-- template/yoga/theme/Sylvia/icon/datepicker.png | Bin 0 -> 430 bytes 5 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 template/yoga/icon/datepicker.png create mode 100644 template/yoga/include/datepicker.inc.tpl create mode 100644 template/yoga/theme/Sylvia/icon/datepicker.png (limited to 'template') diff --git a/template/yoga/default-layout.css b/template/yoga/default-layout.css index 924e901c9..f7b102a96 100644 --- a/template/yoga/default-layout.css +++ b/template/yoga/default-layout.css @@ -275,4 +275,9 @@ TABLE.tagLetterContent { #theHeader {text-align: center;} #theNotificationPage dl, -#thePopuphelpPage dl { margin: 0 25px 25px; } \ No newline at end of file +#thePopuphelpPage dl { margin: 0 25px 25px; } + +/* jQuery datepicker */ +img.ui-datepicker-trigger { + cursor : pointer; +} diff --git a/template/yoga/icon/datepicker.png b/template/yoga/icon/datepicker.png new file mode 100644 index 000000000..bbb299207 Binary files /dev/null and b/template/yoga/icon/datepicker.png differ diff --git a/template/yoga/include/datepicker.inc.tpl b/template/yoga/include/datepicker.inc.tpl new file mode 100644 index 000000000..871be0ea6 --- /dev/null +++ b/template/yoga/include/datepicker.inc.tpl @@ -0,0 +1,19 @@ +{* $Id$ *} +{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} +{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} +{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.packed.js"} +{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"} +{known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"} + +{html_head} + +{/html_head} + + diff --git a/template/yoga/search.tpl b/template/yoga/search.tpl index 4f6ba4455..8562cac3d 100644 --- a/template/yoga/search.tpl +++ b/template/yoga/search.tpl @@ -1,4 +1,17 @@ {* $Id$ *} + +{* Example of datepicker +{include file='include/datepicker.inc.tpl'} + +{literal} + +{/literal} +*} +
@@ -74,7 +87,7 @@
  • - {'today'|@translate} + {'today'|@translate}
  • diff --git a/template/yoga/theme/Sylvia/icon/datepicker.png b/template/yoga/theme/Sylvia/icon/datepicker.png new file mode 100644 index 000000000..3d0e015f6 Binary files /dev/null and b/template/yoga/theme/Sylvia/icon/datepicker.png differ -- cgit v1.2.3