includes/template.php
2012-09-15 Dan Fuhry Merged
2012-09-15 Dan Fuhry Added template context API and render_getpage_norender hook. This allows variable sets to be pushed and popped from $template, so that variables in a template inclusion can be accessed and pre-processed by plugins.
2012-04-25 Dan Fuhry Small change to generation time formatting to make all pages the same time. Makes apachebench not screw up.
2011-09-04 Dan Fuhry SECURITY: Various security enhancements to password resets. They are now rate-limited by username and IP, and it is possible to disable username autofill for guests.
2011-06-02 Dan Fuhry Removed TinyMCE.
2010-09-19 Dan Fuhry Hide the "Create an account" button if registration is disabled (Enanium only, but there is a template boolean called "registration_disabled" so other themes can use it too)
2010-07-30 Dan Moved sidebar editor into the admin CP. Icon still needs to be added, no Internet right now to go find one. Also fixed a few template related things.
2010-03-29 Dan Going ahead with the switch to tabs. This is a major coding standards change! If any unusual parser bugs show up, check this changeset. Converted all .php, .js, .tpl, .css, and .json files and did basic testing.
2010-02-08 Dan Fixed unescaped ampersands in "&enano_version" cache breaking
2010-01-05 Dan Fixed ENANO_VERSION under databaseless template class
2009-12-27 Dan All javascript and css requests now append the version number to the URL to break browser caches and prevent from having to clear the cache upon upgrade
2009-12-21 Dan Fixed two "declaration should be compatible" errors encountered by the BitNami folks. Thanks Neal for reporting.
2009-12-18 Dan Comments (AJAX): Now paginated server side. Fixes issue 2.
2009-11-04 Dan Logins: reorganized data structures a bit. WiP - needs test routine done.
2009-08-22 Dan Sessions: Improved inactive account UX; shuffled around a bit of code so that whitelist checks are shared; fixed a bunch of bugs related to ban code and IPv6 addresses
2009-08-21 Dan Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
2009-08-04 Dan Fixed some "declaration should be compatible" errors that showed up under WinXP QA
2009-07-31 Dan Merged development from Scribus and Charlie
2009-07-18 Dan Editor: completely moved wiki edit notice to AJAX fetch, so it's not shipped with the page anymore.
2009-07-18 Dan Fixed some formatter engine errors that were exposed through the wiki edit notice
2009-07-29 Dan Tweaked URL sanitizing a bit to make Enanium work better.
2009-07-29 Dan Added method add_header_js() to template to allow insertion of code to be run immediately after JS init
2009-07-12 Dan One word: Internet Explorer 6. This includes a rewrite of $paths->parseAdminTree() that encodes to JSON instead of manually generating JS, so good-bye to stupid parser problems I hope.
2009-07-09 Dan OK, JS preloading on a CDN works perfectly now. I'm sure of it.
2009-07-09 Dan Fixed inconsistency in JS component load order between CDN sites and non-CDN sites
2009-07-09 Dan Fixed a series of infinite loops with preloading components and placeholders
2009-07-08 Dan Template: minor: documented sidebar_widget()
2009-06-16 Dan Added support for preloading javascript libs ($template->preload_js()). Updated admin theme and Tigra Tree Menu to support this + JS_{HEADER,FOOTER} variables.
2009-05-27 Dan Class "currentpage" is now added to all internal links, including sidebar buttons, if the link points to the current page.
2009-05-14 Dan A few safety changes to tolerate no $session when it's not available
2009-05-13 Dan Render / Template: No longer does exist checks for wikilinks on sidebar
2009-05-10 Dan Fixed a couple bugs with protection UI; fixed stray <enano:no-opt> in Special:CSS (do people still use that?)
2009-05-05 Dan Made some more changes to the way namespaces are handled, for optimization purposes. This is a bit of a structural reorganization: $paths->pages is obsoleted in its entirety; calculating page existence and metadata is now the job of the Namespace_* backend class. There are many things in PageProcessor that should be reorganized, and page actions in general should really be rethought. This is probably the beginning of a long process that will be taking place over the course of the betas.
2009-04-17 Dan Made handling of $perms being non-object work properly in template
2009-04-17 Dan Cleared up a few discrepancies in page handling, template var init, and how NewsBoy works.
2009-04-15 Dan New, beautiful, rethought Admin:Home. No, really, you'll like it.
2009-04-13 Dan New page protection UI. Both miniPrompt and failsafe HTML.
2009-04-05 Dan Oxygen (and general): cleaned up sidebar CSS, wikitext blocks are now sent through alternate block
2009-03-15 Dan New template feature: template hooks (<!-- HOOK foo -->)
2009-03-06 Dan template: added ability for themes to hide user, tools, and search sidebar blocks
2009-03-02 Dan Template: addslashes() around wiki_edit_notice_text (whoops)
2009-02-26 Dan Added possibility for auth plugins, which can log a user in using non-standard authentication methods.
2009-02-16 Dan Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
2009-01-26 Dan Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
2009-01-04 Dan Two big commits in one day I know, but redid password storage to use HMAC-SHA1. Consolidated much AES processing to three core methods in session that should handle everything automagically. Installation works; upgrades should. Rebranded as 1.1.6.
2008-12-31 Dan Redid error handler (it was causing some problems with gzip enabled)
2008-12-20 Dan template: Fixed undefined $from_internal in assign_bool(); theme.cfg now require()d on theme load
2008-12-03 Dan External links in sidebar now work with manual port numbers and IPv6 addresses
2008-11-15 Dan Added ability to have alternate main page for members
2008-11-09 Dan Made defectivebydesign.org image local
2008-11-09 Dan [minor] $template->footer() no longer flushes output buffers, due to headers being sent prematurely
2008-08-24 Dan Rewrote sidebar compilation code, caching is more stable now and things were cleaned up/separated into more functions/made plugin-expandable. In theory, plugins can add new sidebar block types now. I'd personally like to see a fully plugin-based sidebar editor that completely overhauls what Enano has now sometime now that this framework is in place.
2008-08-23 Dan More work on auto-completion - it auto-scrolls now and limits result divs to 300px height
2008-08-21 Dan Autocomplete further stabilized. Made Special:PasswordReset and Special:Register prevent use if logged in.
2008-08-21 Dan Removed Adobe Spry and replaced with jQuery. Please report any new bugs on the forums or via IRC. In a related note, auto-completion should work now at least for usernames. Still hacking away at page name completion...
2008-08-13 Dan Changed namespace properties (including core identifier) for external pages that load the Enano API to be a uniform "API" namespace and "SystemAPI:" prefix.
less more (0) -100 -56 tip