From cab8f98c4ab88a0ad05f2359099c883675319084 Mon Sep 17 00:00:00 2001 From: rub Date: Thu, 21 Dec 2006 21:38:20 +0000 Subject: Feature Issue ID 0000601: Filter all public pages with only recent elements It's a finalized version. Obsolete code of draft are removed. You can filter categories and images with recent date period on your screen selection. In the future, filter could be easy done on other type data (plugin?) You can flat categories and sub-categories with a recent date period of your choice. Next, perhaps, a panel to choice recent date for the 2 features. On draft, there have problem with MySql 5, be careful! Css problem not resolved: - Menu "Categories" is bad centered - Icon on dark too on the top git-svn-id: http://piwigo.org/svn/trunk@1677 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/default-colors.css | 14 ++++++++++++++ template/yoga/header.tpl | 7 +++++++ template/yoga/icon/flat_recent_cat.png | Bin 0 -> 754 bytes template/yoga/icon/normal_mode.png | Bin 335 -> 360 bytes template/yoga/icon/note.png | Bin 0 -> 2520 bytes template/yoga/icon/start_filter.png | Bin 0 -> 1064 bytes template/yoga/icon/start_filter_mode.png | Bin 1064 -> 0 bytes template/yoga/icon/stop_filter.png | Bin 0 -> 1083 bytes template/yoga/icon/stop_filter_mode.png | Bin 1083 -> 0 bytes template/yoga/index.tpl | 12 +++++------- template/yoga/menubar.tpl | 12 ++++++------ template/yoga/theme/clear/theme.css | 2 +- template/yoga/theme/dark/theme.css | 2 +- 13 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 template/yoga/icon/flat_recent_cat.png create mode 100644 template/yoga/icon/note.png create mode 100644 template/yoga/icon/start_filter.png delete mode 100644 template/yoga/icon/start_filter_mode.png create mode 100644 template/yoga/icon/stop_filter.png delete mode 100644 template/yoga/icon/stop_filter_mode.png (limited to 'template/yoga') diff --git a/template/yoga/default-colors.css b/template/yoga/default-colors.css index ee8cdb6e6..cdcacb953 100644 --- a/template/yoga/default-colors.css +++ b/template/yoga/default-colors.css @@ -100,6 +100,20 @@ INPUT.rateButton, INPUT.rateButtonSelected, INPUT.rateButtonStarFull, INPUT.rate padding: 1px; } +/** + * Header notes box in public/administration + */ +.header_notes { + border: 1px solid #aaaaaa; /* border color and style */ + text-align: center; + background-image: url(icon/note.png); + background-repeat: no-repeat; + background-position: top left; + font-weight: bold; + margin: 14px; + padding: 5px 00px 0px 0px; +} + LEGEND { font-style: italic; } diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index 3e2b43634..5032a3f04 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -72,3 +72,10 @@ the "text/nonsense" prevents gecko based browsers to load it -->
{PAGE_BANNER}
+ +
+ +

{header_notes.header_note.HEADER_NOTE}

+ +
+ diff --git a/template/yoga/icon/flat_recent_cat.png b/template/yoga/icon/flat_recent_cat.png new file mode 100644 index 000000000..43584e825 Binary files /dev/null and b/template/yoga/icon/flat_recent_cat.png differ diff --git a/template/yoga/icon/normal_mode.png b/template/yoga/icon/normal_mode.png index 07318b568..92d27a234 100644 Binary files a/template/yoga/icon/normal_mode.png and b/template/yoga/icon/normal_mode.png differ diff --git a/template/yoga/icon/note.png b/template/yoga/icon/note.png new file mode 100644 index 000000000..df1e0a926 Binary files /dev/null and b/template/yoga/icon/note.png differ diff --git a/template/yoga/icon/start_filter.png b/template/yoga/icon/start_filter.png new file mode 100644 index 000000000..3d81a4d2e Binary files /dev/null and b/template/yoga/icon/start_filter.png differ diff --git a/template/yoga/icon/start_filter_mode.png b/template/yoga/icon/start_filter_mode.png deleted file mode 100644 index 3d81a4d2e..000000000 Binary files a/template/yoga/icon/start_filter_mode.png and /dev/null differ diff --git a/template/yoga/icon/stop_filter.png b/template/yoga/icon/stop_filter.png new file mode 100644 index 000000000..1ff012e96 Binary files /dev/null and b/template/yoga/icon/stop_filter.png differ diff --git a/template/yoga/icon/stop_filter_mode.png b/template/yoga/icon/stop_filter_mode.png deleted file mode 100644 index 1ff012e96..000000000 Binary files a/template/yoga/icon/stop_filter_mode.png and /dev/null differ diff --git a/template/yoga/index.tpl b/template/yoga/index.tpl index 95c6e0051..b0c2e43dc 100644 --- a/template/yoga/index.tpl +++ b/template/yoga/index.tpl @@ -27,16 +27,14 @@
  • (?)
  • - -
  • {lang:start_filter_local_mode_hint}
  • - - -
  • {lang:stop_filter_local_mode_hint}
  • - -
  • {lang:mode_normal_hint}
  • + + +
  • {lang:flat_recent_cat_hint}
  • + +
  • {lang:mode_posted_hint}
  • diff --git a/template/yoga/menubar.tpl b/template/yoga/menubar.tpl index eafec20a6..317a974d8 100644 --- a/template/yoga/menubar.tpl +++ b/template/yoga/menubar.tpl @@ -13,12 +13,12 @@
    - - {lang:start_filter_global_mode_hint} - - - {lang:stop_filter_global_mode_hint} - + + {lang:start_filter_hint} + + + {lang:stop_filter_hint} +
    {lang:Categories}
    {MENU_CATEGORIES_CONTENT} diff --git a/template/yoga/theme/clear/theme.css b/template/yoga/theme/clear/theme.css index d49ec0322..3a60fa8a5 100644 --- a/template/yoga/theme/clear/theme.css +++ b/template/yoga/theme/clear/theme.css @@ -15,7 +15,7 @@ H2, #menubar DT, #imageHeaderBar, #imageToolBar A:hover, .row1 { background-color: #d3d3d3; } -#menubar DL, #content, #imageToolBar { +#menubar DL, #content, #imageToolBar, .header_notes { background-color: #eeeeee; } diff --git a/template/yoga/theme/dark/theme.css b/template/yoga/theme/dark/theme.css index 7165bf6c3..5ca520099 100644 --- a/template/yoga/theme/dark/theme.css +++ b/template/yoga/theme/dark/theme.css @@ -26,7 +26,7 @@ H3, #the_page, #imageHeaderBar, #imageToolBar A:hover, .row1 { background-color: #3f3f3f; } -#menubar DL, #content, #imageToolBar { +#menubar DL, #content, #imageToolBar, .header_notes { background-color: #5f5f5f; } -- cgit v1.2.3