Commit graph

149 commits

Author SHA1 Message Date
plegall
86ad1d5b49 increase copyright year to 2010
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:37:10 +00:00
plegall
6b296b293d feature 1502: replace the theme.name by theme.id for theme.css load
git-svn-id: http://piwigo.org/svn/trunk@5190 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 13:30:21 +00:00
rvelices
4f80b6095c - allow template class to be instantiated with an empty theme (in plugins for example)
- local_head must now be defined in the themeconf.inc.php otherwise not taken into account (avoid several calls to file_exists)
- renamed themeconf['theme'] to themeconf['name'] (this is what it is themeconf[theme] is confusing)

git-svn-id: http://piwigo.org/svn/trunk@5177 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-18 18:40:00 +00:00
patdenice
54b9eea12d Feature 1502: Avoid 500 error if parent theme is the theme itself.
git-svn-id: http://piwigo.org/svn/trunk@5154 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-17 00:55:26 +00:00
patdenice
f76ce16aa6 Feature 1502
Extend for templates now work properly.
Bound template as to be renamed in bound theme...

git-svn-id: http://piwigo.org/svn/trunk@5126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 02:14:32 +00:00
plegall
14778ce673 feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-13 00:00:52 +00:00
vdigital
964a191ff1 New feature: Modeling could be turn off in themeconf
$themeconf['modeling'] = false; /* Assume to have all *.tpl files in the template.

git-svn-id: http://piwigo.org/svn/trunk@5101 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-10 22:22:30 +00:00
plegall
c9dfb3a41f feature 1494: move all *.tpl files from template/yoga to the new
template/default (from which yoga derives)

git-svn-id: http://piwigo.org/svn/trunk@5095 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-09 20:17:00 +00:00
vdigital
0f7a952bdb New feature: Template modeling to reduce coding efforts when you want to create a new template.
git-svn-id: http://piwigo.org/svn/trunk@5071 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-07 14:24:02 +00:00
patdenice
9e1b542796 Simplification of commit 3951.
git-svn-id: http://piwigo.org/svn/trunk@3953 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 15:11:58 +00:00
patdenice
162a4d1b78 Allow to add prefilters, postfilters and output filters to templates.
git-svn-id: http://piwigo.org/svn/trunk@3951 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 10:46:48 +00:00
patdenice
7405e326ab Improve template prefilter functions
git-svn-id: http://piwigo.org/svn/trunk@3928 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 23:40:38 +00:00
mathiasm
e6363de6fd Add Smarty's prefilter capability. see topic:16219 (FR).
git-svn-id: http://piwigo.org/svn/trunk@3927 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 20:47:24 +00:00
patdenice
ed068b08c8 Add "tags" parameter for template extensions
git-svn-id: http://piwigo.org/svn/trunk@3207 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-16 17:51:47 +00:00
patdenice
bd005369b0 URL parameter for template extensions can be used in slideshow.
git-svn-id: http://piwigo.org/svn/trunk@3190 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-12 13:18:17 +00:00
patdenice
9045f11c70 User's template extension must not be included in admin pages.
git-svn-id: http://piwigo.org/svn/trunk@3169 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-03-03 22:37:14 +00:00
plegall
1b711ad236 Administration: happy new year 2009, all PHP headers updated.
git-svn-id: http://piwigo.org/svn/trunk@3049 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-01-04 23:28:36 +00:00
patdenice
6873537fe6 - Add a "Bound Template" column for template extensions.
git-svn-id: http://piwigo.org/svn/trunk@2923 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-12-06 02:28:54 +00:00
rvelices
f7aea6eb4c merge r2789 from branch 2.0:
- some german language changes
- added option for smarty $conf['template_compile_check'] - default true; if false smarty doesn't check if templates need recompilation resulting in less disk accesses (good when the disk is not local)
- load_language doesnt check first for en_uk.utf-8 directory ...

git-svn-id: http://piwigo.org/svn/trunk@2790 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-22 01:36:11 +00:00
patdenice
a06bada6e8 - Remove known_template function.
- Replace it by a modifier function: get_extent.

git-svn-id: http://piwigo.org/svn/trunk@2716 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 17:21:52 +00:00
patdenice
4fbe0ef666 - Add known_template function (maybe we can change function name).
- Template extensions are working with menubar blocks templates.

git-svn-id: http://piwigo.org/svn/trunk@2712 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-11 12:55:43 +00:00
rvelices
11df0cb502 - removed unused var from template
- removed 2 unused rules from public content.css
- index.php improvement (as in picture) - the log is done after sending first output to client

git-svn-id: http://piwigo.org/svn/trunk@2699 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-09 23:14:43 +00:00
patdenice
3d1b35b8c9 - Add set_extents function in template class.
- 752: add trigger (for flipflip).

git-svn-id: http://piwigo.org/svn/trunk@2643 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-03 09:55:14 +00:00
rvelices
73eb979635 - the optim option conf['compiled_template_cache_language'] works better
git-svn-id: http://piwigo.org/svn/trunk@2636 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-02 00:30:34 +00:00
rub
e9d7622d55 Purpose of datepicker with jQuery.
I will open a french topic on forum to debate of implementation and possibles changes.

git-svn-id: http://piwigo.org/svn/trunk@2632 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-10-01 20:39:06 +00:00
rvelices
11d699f4b3 - {known_script} and {html_head} work from {include file...}
git-svn-id: http://piwigo.org/svn/trunk@2627 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-30 01:26:17 +00:00
nikrou
9474d5cc67 real static param
git-svn-id: http://piwigo.org/svn/trunk@2536 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-14 19:40:12 +00:00
rvelices
4d86bb2234 - images.file categories.permalink old_permalinks.permalink - become binary
- session security improvement: now the sessions are valid only for originating ip addr (with mask 255.255.0.0 to allow users behind load balancing proxies) -> stealing the session cookie is almost a non issue (with the exception of the 65536 machines in range)
- metadata sync from the sync button does not overwrite valid data with empty metadata
- other small fixes/enhancements:
 - added event get_category_image_orders
 - fix display issue with redirect.tpl (h1/h2 within h1)
 - fix known_script smarty function registration
 - query search form not submitted if q is empty
 - better admin css rules
 - some other minor changes (ws_core, rest_handler, functions_search...)

git-svn-id: http://piwigo.org/svn/trunk@2521 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-12 02:17:35 +00:00
rvelices
9aec2fb5e7 - fix typing error in index.tpl
- added template smarty function known_script (e.g.{known_script id="x" src"y.js"}) - useful to avoid double inclusion of a script such as prototype,jquery,... when a template and plugin need it independently (see the use in admin.tpl for example)
- removed unused themeconf.template_dir 

git-svn-id: http://piwigo.org/svn/trunk@2513 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-09 09:53:31 +00:00
rvelices
b8a5fde846 - better management of fatal errors (instead of die or trigger_error rather use fatal_error ...)
git-svn-id: http://piwigo.org/svn/trunk@2502 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-05 01:24:01 +00:00
rvelices
efa7411875 - bug 854: better checks of directory creations ( local_data_dir, templates_c, tmp etc...)
git-svn-id: http://piwigo.org/svn/trunk@2497 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-09-04 01:28:34 +00:00
rvelices
3a67845aaf - removed and moved (from common to admin) some CSS rules
- upgraded jQuery and accordion to latest version (and reorganised a bit their location)

git-svn-id: http://piwigo.org/svn/trunk@2489 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-28 01:26:26 +00:00
rvelices
0b32dd4c0b - further reduce css rules and remove unused ones
- added a smarty prefilter so that html output is nicely indented now ...

git-svn-id: http://piwigo.org/svn/trunk@2481 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-22 00:45:03 +00:00
rvelices
06df392005 - optim dont include a php file if not required
- eng lang small change
- remove link to unexisting admin css

git-svn-id: http://piwigo.org/svn/trunk@2476 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-08-16 01:32:37 +00:00
vdigital
5059eddb71 Feature:837 "Extend for templates" could have dedicated .css files by a simple technical {html_head} inclusion.
git-svn-id: http://piwigo.org/svn/trunk@2464 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-31 06:58:44 +00:00
vdigital
4dcec5fb8a Feature:837 "Extend for templates" could have dedicated .css files.
git-svn-id: http://piwigo.org/svn/trunk@2462 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-30 19:24:55 +00:00
vdigital
df29ffbde7 Feature template-extension based on 2006 chrisaga's idea.
chrisaga wrote: "If you want to make some template customization without building a brand new
template, you should use ..."

git-svn-id: http://piwigo.org/svn/trunk@2434 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-07-14 21:42:40 +00:00
rvelices
a2087d46d2 2 template features:
- added a {html_head} smarty block - allow any template file to add content just before </head> tag (handy for plugins and allows to move more presentation logic to tpls); the content is usually <style> or <link> which must appear inside html <head> tag
- by config allow some language strings to be replaced during template compilation -> better performance. drawback: changes in the language file will not be propagated until template is recompiled.

git-svn-id: http://piwigo.org/svn/trunk@2334 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-05-08 01:13:13 +00:00
plegall
524011bfa6 Bug fixed: as rvelices notified me by email, my header replacement script was
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
2008-04-05 14:14:07 +00:00
plegall
3f235497f3 Modification: new header on PHP files, PhpWebGallery renamed Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@2297 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-04-04 22:57:23 +00:00
rvelices
ee70a108be - remove compatibility with old template ...
git-svn-id: http://piwigo.org/svn/trunk@2290 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-23 00:04:46 +00:00
rvelices
f12f0026fc - admin/notification_by_mail goes smarty - THE LAST ONE :-) :-)
- get rid of user_list warnings
- some code reorganisation in template class + explode modifier
- minor template and language changes in search.tpl and cat_modify.tpl

git-svn-id: http://piwigo.org/svn/trunk@2286 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-20 00:35:36 +00:00
rvelices
cab98df776 - smarty for more mail templates/css
git-svn-id: http://piwigo.org/svn/trunk@2285 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-18 23:43:38 +00:00
rvelices
a6437b81e6 - changes to template to accomodate nbm (solved issue when we had same template filename with different root dirs)
- started some changes in mail templates

git-svn-id: http://piwigo.org/svn/trunk@2278 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-13 01:43:45 +00:00
rvelices
37446caa5c - upgrade goes smarty
- event_tracer goes smarty
- correction in index.tpl

git-svn-id: http://piwigo.org/svn/trunk@2254 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-06 00:25:47 +00:00
rub
1f271ceca3 0000810: Use of new template engine [smarty]
New way for TAG_INPUT_ENABLED

git-svn-id: http://piwigo.org/svn/trunk@2239 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-01 22:02:40 +00:00
rvelices
35076ee1b9 - index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
- better template debugging tweak (the smarty console is shown only once at the end)

git-svn-id: http://piwigo.org/svn/trunk@2231 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-03-01 13:12:07 +00:00
rvelices
98d4b284e0 - works with PHP5
git-svn-id: http://piwigo.org/svn/trunk@2217 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27 03:15:31 +00:00
rvelices
75bb450a6e - first smarty use ... (in admin.php and admin plugins page)
git-svn-id: http://piwigo.org/svn/trunk@2216 68402e56-0260-453c-a942-63ccdbb3a9ee
2008-02-27 02:31:51 +00:00