aboutsummaryrefslogtreecommitdiffstats
path: root/include/category_default.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* replace tabs by spaces for indentation introduced in rplegall2011-08-221-28/+29
| | | | git-svn-id: http://piwigo.org/svn/trunk@11981 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2390flop252011-08-091-32/+29
| | | | | | All the legend is hidden if $conf['show_thumbnail_caption'] = false; git-svn-id: http://piwigo.org/svn/trunk@11924 68402e56-0260-453c-a942-63ccdbb3a9ee
* rename #images.average_rate to rating_scorervelices2011-08-021-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@11893 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2330 ability to hide the "new" icon for recent photos mistic1002011-07-011-1/+1
| | | | | | correct a big mistake in var name git-svn-id: http://piwigo.org/svn/trunk@11591 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2330 ability to hide the "new" icon for recent photos mistic1002011-06-091-1/+4
| | | | git-svn-id: http://piwigo.org/svn/trunk@11285 68402e56-0260-453c-a942-63ccdbb3a9ee
* Happy new year 2011plegall2011-01-181-2/+2
| | | | | | | Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery" git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6711 from branch 2.1 to trunkplegall2010-07-271-0/+2
| | | | | | | add trigger for ExtendedDescription on photo name git-svn-id: http://piwigo.org/svn/trunk@6712 68402e56-0260-453c-a942-63ccdbb3a9ee
* increase copyright year to 2010plegall2010-03-191-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature 1244 resolvednikrou2009-11-201-1/+1
| | | | | | | | Replace all mysql functions in core code by ones independant of database engine Fix small php code synxtax : hash must be accessed with [ ] and not { }. git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r3490 from branch 2.0 to trunkvdigital2009-07-011-6/+2
| | | | | | | | | Reverse of 3484 git-svn-id: http://piwigo.org/svn/trunk@3491 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r3484 from branch 2.0 to trunkvdigital2009-07-011-2/+6
| | | | | | | | | | New: Extend of available fields within a category page for a template-extension simple usage. Add thumbnail dimensions to remove as much as possible some PHP in tpl extensions. {$thumbnails.FILE_TN_WIDTH} {$thumbnails.FILE_TN_HEIGHT} git-svn-id: http://piwigo.org/svn/trunk@3485 68402e56-0260-453c-a942-63ccdbb3a9ee
* Move get_icon function.patdenice2009-03-111-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@3188 68402e56-0260-453c-a942-63ccdbb3a9ee
* - moved check upgrade feed code to admin/include/functions_upgrade.phprvelices2009-02-131-5/+2
| | | | | | | - refactored some code (shorter and somehow faster - but nothing revolutionary) - decrease lost space in permalinks.tpl and hard coded column width (was illisible) git-svn-id: http://piwigo.org/svn/trunk@3136 68402e56-0260-453c-a942-63ccdbb3a9ee
* - fix issue on my previous commitrvelices2009-02-051-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@3128 68402e56-0260-453c-a942-63ccdbb3a9ee
* - embellish_url compacts now ..rvelices2009-02-051-2/+3
| | | | | | | - some trigger improvements (render_category_description) - improved perf of duplicate_xxx_url ( rewrote func params_for_duplication and remove some vars from $page ) git-svn-id: http://piwigo.org/svn/trunk@3126 68402e56-0260-453c-a942-63ccdbb3a9ee
* - removed triggers loc_index_thumbnail and loc_index_category_thumbnailrvelices2009-02-051-8/+6
| | | | | | - changed triggers loc_end_index_thumbnails and loc_end_index_category_thumbnails from actions to events git-svn-id: http://piwigo.org/svn/trunk@3124 68402e56-0260-453c-a942-63ccdbb3a9ee
* optimizations (php only)rvelices2009-02-041-19/+16
| | | | | | | | | - removed unnecessary call to array_unique in get_image_ids_for_tags - put back in smarty exec time counting (debug mode) for each included template - prefix some smarty modifiers with @ in some templates - do not call format_date (still very slow due to mktime and date even after prev commit) from category_default.inc.php - if used in templates format_date can be used as a smarty modifier git-svn-id: http://piwigo.org/svn/trunk@3120 68402e56-0260-453c-a942-63ccdbb3a9ee
* Administration: happy new year 2009, all PHP headers updated. plegall2009-01-041-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000900: format_date function doesn't work when time is ↵rub2008-11-091-2/+2
| | | | | | | | omitted with 'mysql_datetime' type Continue correction of grum git-svn-id: http://piwigo.org/svn/trunk@2856 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -c2850 from branch 2.0 to trunkgrum2008-11-091-2/+2
| | | | | | The exact copy of commit log in 2850. git-svn-id: http://piwigo.org/svn/trunk@2853 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge -c2840 from branch 2.0 to trunkvdigital2008-11-071-0/+17
| | | | | | | | New: Extend of available fields within a category page for a template-extension simple usage. Refer to topic: "Smoothgallery plugin" where no plugin is requested to do it. Minor: Some format in Sylvia theme git-svn-id: http://piwigo.org/svn/trunk@2841 68402e56-0260-453c-a942-63ccdbb3a9ee
* - fix undefined template vars U_LOST_PASSWORD (menubar), F_ACTION ↵rvelices2008-09-101-6/+6
| | | | | | | | (extend_for_templates) and F_C13Y_ACTION (check_integrity) - normalized some template variable names between category thumbnails and thumbnails (take advantage of full template change with smarty and do it now) git-svn-id: http://piwigo.org/svn/trunk@2515 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug fixed: as rvelices notified me by email, my header replacement script wasplegall2008-04-051-24/+0
| | | | | | | | | | | | bugged (r2297 was repeating new and old header). By the way, I've also removed the replacement keywords. We were using them because it was a common usage with CVS but it is advised not to use them with Subversion. Personnaly, it is a problem when I search differences between 2 Piwigo installations outside Subversion. git-svn-id: http://piwigo.org/svn/trunk@2299 68402e56-0260-453c-a942-63ccdbb3a9ee
* Modification: new header on PHP files, PhpWebGallery renamed Piwigo.plegall2008-04-041-0/+21
| | | | git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remove $conf['subcatify'] (it was my reqquest to Pierrick when plugins ↵rvelices2008-03-111-33/+29
| | | | | | | | | were not available; now it can be done through plugin) - optimization when show_nb_comments true (1 sql query per page instead of 1 query per element) - some cleanup & more standard trigger names git-svn-id: http://piwigo.org/svn/trunk@2274 68402e56-0260-453c-a942-63ccdbb3a9ee
* - thumbnails.tpl migrationrvelices2008-03-011-36/+16
| | | | git-svn-id: http://piwigo.org/svn/trunk@2234 68402e56-0260-453c-a942-63ccdbb3a9ee
* Resolved issue 0000807: New slideshow featuresrub2008-02-271-1/+17
| | | | git-svn-id: http://piwigo.org/svn/trunk@2218 68402e56-0260-453c-a942-63ccdbb3a9ee
* - function str2url is compatible with utf-8rvelices2007-10-051-7/+2
| | | | | | - removed some old code (useless) git-svn-id: http://piwigo.org/svn/trunk@2123 68402e56-0260-453c-a942-63ccdbb3a9ee
* 0000735: Hits were displayed twice on Most visited (manual merge)vdigital2007-08-271-1/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@2081 68402e56-0260-453c-a942-63ccdbb3a9ee
* plugins only:rvelices2007-03-091-1/+1
| | | | | | | | - fix in category_default.inc.php (action parameters were wrong if show_nb_comments was true) - refactor actions and events in picture.php in order to give more flexibility to plugins - added some variables in index.tpl (not used by pwg itself) to allow plugins to add their own content git-svn-id: http://piwigo.org/svn/trunk@1882 68402e56-0260-453c-a942-63ccdbb3a9ee
* Remove "TODO" on picture display showed on the caddie...rub2007-03-041-8/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@1868 68402e56-0260-453c-a942-63ccdbb3a9ee
* Missing one change flat_hint to mode_flat_hintrub2007-02-271-5/+2
| | | | | | Review a little l10n_dec git-svn-id: http://piwigo.org/svn/trunk@1864 68402e56-0260-453c-a942-63ccdbb3a9ee
* - refactoring page['category'] before 1.7 releaservelices2007-02-271-1/+1
| | | | | | | | | page['category'] is not an id anymore, but an associative array of category info all of page['cat_xxx'] or page['uppercats'] merged into one simplifies calls to make_index_url give plugins a clean start for page variables for version 1.7 git-svn-id: http://piwigo.org/svn/trunk@1861 68402e56-0260-453c-a942-63ccdbb3a9ee
* Remove $conf['show_nb_hits'] condition witch can hide $conf['user_nb_hits'] ↵rub2007-02-261-5/+3
| | | | | | condition. git-svn-id: http://piwigo.org/svn/trunk@1859 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 0000614: Display hits under thumbnails like comments countervdigital2007-01-301-2/+12
| | | | | | | - Comments are not plurial < 2 - hits and comments have specific classes for css control git-svn-id: http://piwigo.org/svn/trunk@1769 68402e56-0260-453c-a942-63ccdbb3a9ee
* Issue 0000614: Display hits under thumbnails like comments countervdigital2007-01-281-0/+8
| | | | git-svn-id: http://piwigo.org/svn/trunk@1763 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000601: Filter all public pages with only recent elementsrub2006-12-211-9/+3
| | | | | | | | | | | | | | | | | | | | | 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
* Feature Issue ID 0000601: Filter all public pages with only recent elementsrub2006-12-131-1/+1
| | | | | | | | | | | | Last draft before final development. There a icon for global mode and one other for local mode. Counters are not good, filter on images are not everywhere applied, moment to update cache are not optimized, ... Go to http://forum.phpwebgallery.net/viewtopic.php?id=9490 git-svn-id: http://piwigo.org/svn/trunk@1651 68402e56-0260-453c-a942-63ccdbb3a9ee
* Feature Issue ID 0000601: Filter all public pages with only recent elementsrub2006-12-101-2/+8
| | | | | | | | | | | | | | It's a draft of the feature witch allows to show only recent elements. Development are not finished. Queries and special pages (best rates, tags, etc.) are not modified. Only main php files about images and categories are ok. Before to continue, I prefer to determinate a solution between modify cache implementation or hide counters. Go to http://forum.phpwebgallery.net/viewtopic.php?pid=50015#p50015 git-svn-id: http://piwigo.org/svn/trunk@1648 68402e56-0260-453c-a942-63ccdbb3a9ee
* - deprecated get_thumbnail_src (still there for compatibility). use rather rvelices2006-11-071-5/+11
| | | | | | | get_thumbnail_path or get_thumbnail_url (these allow plugins to override) - plugins can hook into index thumbnail display (items only so far) git-svn-id: http://piwigo.org/svn/trunk@1596 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 434: split thumbnails in template so customization could be easyerchrisaga2006-06-241-0/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@1384 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: tags replace keywords. Better data model, lessplegall2006-04-021-1/+1
| | | | | | | | limitations. Each image can be associated to as many tag as needed. Tags can contain non ASCII characters. Oriented navigation with tags by association. git-svn-id: http://piwigo.org/svn/trunk@1119 68402e56-0260-453c-a942-63ccdbb3a9ee
* -new : add a 'CLASS' element in 'thumbnails.line.thumbnail' array to store a ↵chrisaga2006-03-251-2/+4
| | | | | | | | different classname for category thumbnails and element thubnails in order to be able to display them differently. git-svn-id: http://piwigo.org/svn/trunk@1098 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewrite: 3 options in the config file define behaviour (question mark rvelices2006-03-231-1/+2
| | | | | | | | | | | removal, file name for picture and .php extension removal) fix: added unsigned for column in install sql - for the sake of uniformization change: add_url_param is now add_url_params and takes an array as parameter instead of a string git-svn-id: http://piwigo.org/svn/trunk@1094 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewriting: capable of fully working with urls without ?rvelices2006-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | URL rewriting: works with image file instead of image id (change make_picture_url to generate urls with file name instead of image id) URL rewriting: completely works with category/best_rated and picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url and 'picture.php?' to 'picture' in make_picture_url to see it) fix: picture category display in upper bar fix: function rate_picture variables and use of the new user type fix: caddie icon appears now on category page fix: admin element_set sql query was using storage_category_id column (column has moved to #image_categories) fix: replaced some old $_GET[xxx] with $page[xxx] fix: pictures have metadata url (use ? parameter - might change later) git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee
* URL rewriting: fix some old links, calendar simplification and prepare code rvelices2006-03-211-43/+15
| | | | | | for urls without ? (added functions get_root_url and add_url_param) git-svn-id: http://piwigo.org/svn/trunk@1090 68402e56-0260-453c-a942-63ccdbb3a9ee
* new: cleaner URL. Instead of category.php?cat=search&search=123&start=42,plegall2006-03-151-17/+34
| | | | | | | | | | | | | | | | | | | | | | | you now have category.php?/search/123/start-42. Functions make_index_url and make_picture_url build these new URLs. Functions duplicate_picture_url and duplicate_index_url provide shortcuts to URL creation. The current main page page is still category.php but this can be modified easily in make_index_url function. In this first version, no backward compatibility. Calendar definition in URL must be discussed with rvelices. improvement: picture.php redesigned. First actions like "set as representative" or "delete a comment" which all lead to a redirection. Then the page (the big mess) and includes of new sub pages to manage specific parts of the page (metadata, user comments, rates). new: with the cleaner URL comes a new terminology. $page['cat'] doesn't exist anymore. $page['section'] is among 'categories', 'tags' (TODO), 'list', 'most_seen'... And sub parameters are set : $page['category'] if $page['section'] is "categories". See URL analyse in include/section_init.inc.php for details. git-svn-id: http://piwigo.org/svn/trunk@1082 68402e56-0260-453c-a942-63ccdbb3a9ee
* fix: remove all php warnings and noticesrvelices2006-02-241-13/+15
| | | | git-svn-id: http://piwigo.org/svn/trunk@1056 68402e56-0260-453c-a942-63ccdbb3a9ee
* modification: DAY() MySQL function replaced by DAYOFMONTH() to improveplegall2006-02-231-13/+16
| | | | | | | | | | | | | | | | backward compatibility (this function was added in MySQL 4.1) bug fixed: with chronology mode, PWG displays thumbnails on main page if even if no category (which will soon be called "section") is set. This was producing warnings on category.php from include/category_default.inc.php. refactoring: on include/calendar_base.class.php and include/functions_calendar.inc.php. Unix file format, coding guidelines, etc. While trying to understand the code, I've made some presentation modification to clarify variable names and so on. git-svn-id: http://piwigo.org/svn/trunk@1053 68402e56-0260-453c-a942-63ccdbb3a9ee
* calendar redesign: step 1rvelices2006-02-201-2/+10
| | | | git-svn-id: http://piwigo.org/svn/trunk@1047 68402e56-0260-453c-a942-63ccdbb3a9ee