Commit graph

71 commits

Author SHA1 Message Date
pdontthink
598a599ba3
Happy New Year 2025-01-03 11:47:03 -08:00
pdontthink
39cfdaadfd
Happy New Year 2024-01-02 14:58:16 -08:00
pdontthink
380afc7213
Happy New Year 2023-01-02 22:04:25 -08:00
pdontthink
bcdfe6e9f1
Happy New Year 2022-01-26 01:06:50 -08:00
pdontthink
ac0c27aef6
Class constructor updates that were missed previously 2021-09-09 04:52:09 -07:00
pdontthink
84071a7e84
Stop using curly braces 2021-02-05 23:49:02 -08:00
pdontthink
c4ef1a0eea
Happy New Year 2021-02-05 11:55:37 -08:00
pdontthink
e29bca959e
PHP 8 compatibility fix 2021-01-15 10:00:27 -08:00
pdontthink
fc283980d0
Happy New Year 2020-01-07 00:12:38 -08:00
pdontthink
fbcb1ca1f5
Happy New Year 2019-01-07 21:55:08 -08:00
pdontthink
23cd61b628 Happy New Year 2018-01-16 23:44:07 +00:00
pdontthink
6cd24c0552 Happy 2017 2017-01-27 20:34:08 +00:00
pdontthink
2934017d92 Happy New Year 2016-01-01 20:59:53 +00:00
pdontthink
3b465a0d0f Happy 2015 2015-01-03 04:09:49 +00:00
pdontthink
581dc23061 Happy 2014 2014-01-01 20:33:20 +00:00
Fredrik Jervfors
c076a1f1ae Update copyright 2013-07-26 17:31:02 +00:00
Thijs Kinkhorst
efd75f4867 Replace calls to htmlspecialchars() with sm_encode_html_special_chars().
New function sm_encode_html_special_chars() encodes HTML special
characters by calling htmlspecialchars(). It sets the character set
to ISO-8859-1, to fix compatibility with PHP >= 5.4.

Patch by Paul Lesniewski.

See #3491925
2012-12-09 12:06:30 +00:00
pdontthink
acc409fb2a Updating copyrights. Happy New Year. 2012-01-02 02:09:17 +00:00
pdontthink
fc57bf2b59 Happy New Year! 2011-01-06 03:16:21 +00:00
pdontthink
7aa0e60863 Update copyrights to 2010 2010-01-25 03:23:30 +00:00
Fredrik Jervfors
134d462c94 The copyright symbol isn't really needed since the word "copyright" is there. Also it doesn't display right in the documentation. 2009-09-29 12:15:33 +00:00
Fredrik Jervfors
0a6245814a There are too many modified files being committed without the copyright year being updated, so here's a copyright year update the old-fashioned style. 2009-04-15 22:00:49 +00:00
pdontthink
e4252c5bf3 Just fiddling. Give credit where credit is due. Template class header() function now supports the 'replace' argument. 2008-09-24 01:56:59 +00:00
pdontthink
68e7ef6f2e RPC requests should use their own template sets with different content-type. 2008-09-10 06:48:00 +00:00
pdontthink
fa7436a9de Allow template sets to define what the content-type of their output is. 2008-09-10 03:04:14 +00:00
pdontthink
4f1a58c843 avoid E_STRICT errors 2008-01-06 03:16:00 +00:00
pdontthink
b50ee09af8 Don't include svn files in any of the cached template files 2007-07-08 00:25:23 +00:00
Thijs Kinkhorst
11b10ba5d1 increment year in copyright notices 2007-01-13 20:15:44 +00:00
pdontthink
16ddf3151b Allow template sets to filter or completely change header delivery 2007-01-09 08:03:54 +00:00
pdontthink
5c8bf54951 Fix for unknown index notices caused in templates when looking for plugin output in what was an empty string instead of an empty array 2007-01-03 20:33:11 +00:00
pdontthink
176eafce61 New hook. See added comments if you care. 2007-01-03 10:08:00 +00:00
stekkel
c1a22636b6 At this moment concat_hook_function can return string and arrays.
In php 4.3.x a notice will be raised (i.e. in login.tpl) when a string is passed
as $aPluginOutput.
TODO, only return an arrays by concat_hook_function.
2007-01-02 19:31:45 +00:00
pdontthink
9972bd918f Update for new location of global template utilities. Note that templates/util_global.php is already included by the Template class so is ALWAYS available for ALL template files. 2006-12-30 21:24:00 +00:00
pdontthink
c047501dc9 Allow template sets to override plugin configuration. See config file in template directories. 2006-12-12 10:43:00 +00:00
pdontthink
717be5c30c Massive update to plugin system architecture. Please test! Not all core plugins are tested yet, please point out issues that need to be fixed. Please see http://marc.theaimsgroup.com/?t=116282394000001&r=1&w=2 2006-12-10 05:07:54 +00:00
pdontthink
0d1813d698 Adding contact info to author name 2006-11-10 23:35:09 +00:00
pdontthink
bdaaca8540 Alternate stylesheets function now returns listing of DIRECTORIES in templates/<template name>/css/alternates instead of just .css files therein, so we are consistent with themes provided in the core 2006-10-13 04:24:03 +00:00
pdontthink
b42b0a4e5e Strict type check prevents old config files from breaking everything (per new changes to templateset_default and _fallback) 2006-10-09 11:52:17 +00:00
pdontthink
a7eb6ab52c templateset_default and templateset_fallback are IDs now, not unpredictable index numbers 2006-10-09 11:35:21 +00:00
pdontthink
c9a09ee14b Missed a spot. Please use less accusatory language when telling ppl they broke plugins or other things, cuz you make goofs too! ;-) 2006-10-08 16:39:33 +00:00
tokul
f9583348c5 fixed phpdoc formating. require() call loaded before first phpdoc block.
improved template cache. Don't store SM_PATH information in cache. SM_PATH
is ../ in main scripts, but it is ../../ in plugins. Plugin option pages
break if cache stores SM_PATH.
2006-10-07 15:32:40 +00:00
pdontthink
5ee2685bda Better stylesheet ordering 2006-10-02 12:37:46 +00:00
pdontthink
88c0e28be1 Changes that follow per the inheritance and associated changes to Template.class.php 2006-10-02 09:38:49 +00:00
pdontthink
bd32ccbdf9 Massive rewrite of Template class to implement template inheritance, along with a fallback template (different than concept of a default which just helps catch void in user prefs). As suggested by Alexandros, a caching mechanism replaces the heaps of file_exists() calls in previous implementation, although this introduces more complexity, so watch for bugs! Inheritance implies changes in stylesheet and javascript file loading, in that now all such files inherited from all ancestors are loaded in case a template falls back to one of those ancestors (or the fallback set). Template config file caching and an easy API to get those settings also implemented. Finally, when a template set falls back to another set with a different template engine for a given page, the engine is swapped out dynamically (although this is less than ideal and should be discouraged when authors are creating template sets). 2006-10-02 09:38:05 +00:00
stevetruckstuff
05dc4ac0a8 Add tempalte config var for alternate stylesheets 2006-09-29 22:14:26 +00:00
stevetruckstuff
f7f0248729 Add tempalte config for alternate stylesheets 2006-09-29 22:13:17 +00:00
pdontthink
c2f00d5729 File name change 2006-09-28 14:09:18 +00:00
pdontthink
277876ec43 New Template class implementation 2006-09-28 14:02:11 +00:00
pdontthink
135bc9cf14 renamed with proper class file naming conventions 2006-09-28 14:01:19 +00:00
pdontthink
1cee629ce7 Solved recursion problem and increased efficiency of template_construct hook by adding file name to the end of the hook name, such as template_construct_login.tpl. Changed hook type to use the newly reworked concat_hook_function which can support merged arrays retued from the plugins. 2006-09-22 03:43:26 +00:00