summaryrefslogtreecommitdiff
path: root/inc/template.php
Commit message (Collapse)AuthorAge
* events TPL_ACTION_HTML & TPL_DISPLAY_HTMLchris2006-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event TPL_ACTION_HTML data $ACT action tpl_content_core (formerly tpl_content) This event is a wrapper for tpl_content() (now tpl_content_core()) and as such is a full trigger, meaning it issues three advises: - TPL_ACTION_HTML_before - TPL_ACTION_HTML - TPL_ACTION_HTML_after Event handlers can output HTML before and/or after the main Dokuwiki page output and can prevent the default dokuwiki page generation taking place. Example uses could include: - replacements for dokuwiki command handlers like index. - appending a discussion section to the page by handling TPL_ACTION_HTML_after event TPL_DISPLAY_HTML data html output produced by tpl_content_core[1] action send output to browser Event handlers can post process the HTML output before it is sent to the client browser. This is a full trigger, meaning it issues three advises - TPL_DISPLAY_HTML_before - TPL_DISPLAY_HTML - TPL_DISPLAY_HTML_after darcs-hash:20060415160847-9b6ab-d7affcb1aaf49aecfaf9bc1e78a82ceb8ae409f7.gz
* event ACTION_TEMPLATEchris2006-04-14
| | | | | | | | | | | | | This event is advisory only. Event data is the $ACT variable The default action is to display an "unknown action" message The event is triggered by tpl_content if it does not recognise the $ACT value. It is the complement to event 'ACTION_DISPATCH'. Handlers of this event can output XHTML which will be displayed in the main dokuwiki window - ie. where the wiki page would normally be displayed. darcs-hash:20060414201705-9b6ab-f8ede6a2fb601d734c115ee09bb57195ad7d1e2b.gz
* pagetitle as template pagenameBen Coburn2006-04-11
| | | | | | | | Uses the first heading as the page name in the default template if $conf['useheading'] is set. Updates tpl_pagetitle() so that it can return this value. darcs-hash:20060410234311-05dcb-b4636f7c0d8f98658a6097ea9ee4dff1ee2de8b4.gz
* rewrite export URLsBen Coburn2006-04-05
| | | | | | | | | | | | | | | | | | | This patch rewrites export urls so that robots.txt can be used to request that some (or all) export types are ignored by robots when indexing the wiki. For example: User-agent: * Disallow: _export/ or for example: User-agent: * Disallow: _export/raw/ Note: This rewriting is only done when $conf['userewrite'] is set to '1' for using the rewrite rules from '.htaccess.dist'. darcs-hash:20060405025621-05dcb-b1b5f48681f78d75d25b1e75fab79346fcc8b84e.gz
* move hsc() & ptln() functions from template.php to common.phpchris2006-04-03
| | | | darcs-hash:20060403202815-9b6ab-1b499148333458ee8acb68b5e38ca72d3b1c9b3c.gz
* fix for icons in mediamanager #771Andreas Gohr2006-03-31
| | | | darcs-hash:20060331080812-7ad00-45251cae2920cf73930be91f2b4f5768619b1b9c.gz
* functions for accessing template config variablesEsther Brunner2006-03-22
| | | | darcs-hash:20060322140200-283c4-c544d2dddf39a7d41c106a0d11d64d98fe8e8343.gz
* Automatic draft savingAndreas Gohr2006-03-11
| | | | | | | | DokuWiki now automatically creates a draft file of the currently edited page. In case of an editing interuption (eg. Browsercrash) the draftfile can be continued later. darcs-hash:20060311200148-7ad00-919337a51e001136178d175a1755cd26122e9726.gz
* unique id for top button, link and anchorAnika Henke2006-03-09
| | | | darcs-hash:20060308232857-d5083-f9aa3009a5b70cbcb14d66ae94deb3edf6da3693.gz
* ACL check for profile button #731Andreas Gohr2006-03-06
| | | | darcs-hash:20060306191714-7ad00-2d97a91607c30ca0ef912419a916b42dc4553e7b.gz
* added missing DOKU_INC in require callAndreas Gohr2006-03-06
| | | | darcs-hash:20060306112739-7ad00-ab5c8b7bb04f85800c5e087c0ad61f96abb8fd95.gz
* fixed html in mediapopupAndreas Gohr2006-03-05
| | | | darcs-hash:20060305121731-7ad00-2dcf0a4d457e14c2132bf4406d89041dc9653f42.gz
* SECURITY FIX - fix for a minor XSS vulnerability in image metadata handlingAndreas Gohr2006-03-05
| | | | | | | | Image meta data (from EXIF/IPTC fields) was not escaped correctly in the media select popup. This allowed to introduce malicious javascript code through EXIF tags. Only the media manager was affected. darcs-hash:20060305102810-7ad00-7d8c7c32b914ff9d9987da5c137d01e2153d569c.gz
* fix for mediaselection from root namespace #555Andreas Gohr2006-03-02
| | | | darcs-hash:20060302130917-6e07b-4b474a70371aaeb7d97d6c04ff84d77aa1415449.gz
* export_html instead of _xhtml in template.php FS#728Tim Weber2006-02-28
| | | | darcs-hash:20060228203550-565ca-39181e82452bd13cd490dd9eba722cdfca7087c1.gz
* changed IDs to avoid name clashesAndreas Gohr2006-02-26
| | | | darcs-hash:20060226172332-7ad00-f073117ba2f027935f87cf23106bf6a4316a5790.gz
* hierarchical breadcrumbsSean Coates2006-02-24
| | | | | | | | This patch adds optional hierarchical breadcrumbs. This was discussed last december in http://www.freelists.org/archives/dokuwiki/12-2005/msg00112.html and followups. Many people where in favour of this. darcs-hash:20060224155631-21b7e-10f25b7bdf60120ec99850afefd4d1662c5b87aa.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* new way of auth module capability checkingAndreas Gohr2006-02-03
| | | | | | | | | | This changes the way of how the capabilities of the used auth module are checked as suggested as first option in http://www.freelists.org/archives/dokuwiki/01-2006/msg00267.html The MySQL backend WAS NOT TESTED and probably needs some work. darcs-hash:20060203150302-7ad00-c524cafe20499f32e76ad42b4e68d7c635f6a9e9.gz
* replaced form attr. 'name' by 'id' + prefixed values with 'dw__' for strictnessAnika Henke2006-01-27
| | | | darcs-hash:20060127112205-d5083-8020a108120f6f1baa68456dd509a13021320c21.gz
* oo auth update - remove legacy auth remnants, add auth->canDochris2006-01-25
| | | | darcs-hash:20060125000125-9b6ab-9853f11e04d8ea93235317fa8137cef079eb2641.gz
* urlencode -> rawurlencode (related to #685)Andreas Gohr2006-01-21
| | | | | | | | This changes nearly all occurences of urlencode to rawurlencode. The latter encodes spaces as %20 while the former uses a + sign. For the use in browser URLs %20 is the correct form. darcs-hash:20060121192747-7ad00-6563b77368a41f071609495c6a145982938a8301.gz
* removed graphical list bulletAndreas Gohr2006-01-21
| | | | | | | | | | | | | | | | | Unordered lists used a graphic for the list bullet. Using the same technique as in the ordered lists we don't need an image just to have the color. This has two advantages: 1. The list bullets still have the correct color when colors are adjusted in style.ini 2. List bullets grow and shrink correctly with the fontsize It has a disadvantage as well: All list items need to be marked up like this: <li><div class darcs-hash:20060121121435-7ad00-c6455f9b58c6e78b630c1121499e2052525fb556.gz
* stricter xhtml compliance -- part 2Anika Henke2006-01-15
| | | | darcs-hash:20060115183253-d5083-a343b935336bee053b99d75c7e3e72a296eb0099.gz
* better_xhtml_compliance_1.patchAnika Henke2006-01-14
| | | | darcs-hash:20060114163558-d5083-0d8e27162de2b0bfe9783e31cf4ca45a99006dd5.gz
* Automatic adding of feeds and alternative versions can be disabled in templateAndreas Gohr2005-11-25
| | | | darcs-hash:20051125123735-7ad00-78780796c46463692d5ae9310ddc7f136349380f.gz
* Display fileicons in Media DialogAndreas Gohr2005-11-18
| | | | darcs-hash:20051118154544-7ad00-44682b3e800a616d74eacb61dfa8c6dc5a1a336b.gz
* JavaScript Fixes for the toolbar #628Andreas Gohr2005-11-11
| | | | darcs-hash:20051111200142-7ad00-158925aee01bc24378a8bd99ad27a6173ea085dd.gz
* hidepages configoptionAndreas Gohr2005-11-03
| | | | | | | | | | | | | This new option accepts a RegExp to filter certain pages from all automatic listings (RSS, recent changes, search results, index). This is useful to exclude certain pages like the ones used in the sitebar templates. The regexp is matched against the full page ID with a leading colon. If it matches the page is assumed to be a hidden one. IMPORTANT: this is not related to ACL. A hidden page is still visible to all users (if not restricted by ACL) when linked or called directly. darcs-hash:20051103101726-6e07b-8d45912a1b4f6cfc9e3fce147c15f84a58ea7ca2.gz
* options for searchform template functionAndreas Gohr2005-11-01
| | | | darcs-hash:20051101223559-7ad00-cca84b64eb86d2c72b880bc558fb337ba29d992a.gz
* More work on Javascript and CSS dispatchersAndreas Gohr2005-10-29
| | | | darcs-hash:20051029185222-7ad00-c184ab3496539f3027407c7d17e8770a1849546a.gz
* JavaScript refactoringAndreas Gohr2005-10-29
| | | | | | | | This patch addes a first go on a central javascript and CSS dispatcher which builds a single script from all needed scripts, does optimizing and caching. darcs-hash:20051029002652-7ad00-7558b569c2bf65f5e41820644580d97c62edd0d6.gz
* fix for XSS problem in searchboxAndreas Gohr2005-10-21
| | | | darcs-hash:20051021112809-7ad00-f49197c217bed86e74e5f199b83861f55f77b78d.gz
* auth update, incl. auth object, plain.class.php; resend password & update ↵chris2005-10-20
| | | | | | profile actions darcs-hash:20051020181434-50fdc-44222aa2074bb0e39a1c240c516259579b380740.gz
* insert media with leading colonAndreas Gohr2005-10-15
| | | | | | | fixes a bug when a mediafile from the top namespace is referenced in a subnamespace. Thanks to Otto Vainio for reporting darcs-hash:20051015191850-7ad00-b5c2c965b6032b081973e25d02adb2a9408b54de.gz
* more unobstrusive javascriptAndreas Gohr2005-10-15
| | | | | | | | | | The edit form now is free of inline event handlers. There are still other places where inline javascript and even document.write is used which should be fixed as well. Currently the window.onload event is used to initialize everything which may not the best way to do so. Dean Edwards may have a solution: http://dean.edwards.name/weblog/2005/09/busted/ darcs-hash:20051015184404-7ad00-2404744d008e5ea7e1b5800c96800824b532ff47.gz
* first go on unobstrusive javascript, new toolbarAndreas Gohr2005-10-08
| | | | darcs-hash:20051008175404-7ad00-cd640de7660825b19d5e863cc8caf5467d59b055.gz
* back button fixmatthiasgrimm2005-10-13
| | | | | | The back button corrupted the varable $ID which is used by the indexer. darcs-hash:20051013170633-7ef76-8102f8c8e658d0032783d825a648c13303373c82.gz
* minor edit checkboxAndreas Gohr2005-10-02
| | | | | | | | | This patch adds a minor edit checkbox to the edit form for logged in users. Minor edits are displayed different in recent changes and the page revision history. The RSS feed excludes minor edits by default - this can be changed by adding a minor darcs-hash:20051002113255-7ad00-2bc9e1aaa76d9616428e760529ecc14ef119cf71.gz
* fix for subscription feature in tpl_actionlink #576Christopher Arndt2005-10-01
| | | | darcs-hash:20051001135047-51048-4ed7389d2d23bfecf020d6493e6d126869e8a2e8.gz
* fixed duplicate classname in default templateAndreas Gohr2005-09-21
| | | | darcs-hash:20050921204122-7ad00-5911edd5bff4bb23d97a735ff00782c2b95fc901.gz
* action_link classessu2005-09-17
| | | | darcs-hash:20050916232433-0835e-fa17547516d5cd02175c9d96806100f9a9eca6ba.gz
* made tpl_img() arguments more intuitivejoe.lapp2005-09-15
| | | | | | | | Caller passes non-zero dimension only when proportionately limiting the image by that dimension; no need to pass very large numbers to preserve the image's original dimensions or to leave one dimension unconstrained. darcs-hash:20050915035516-36b45-660f49670164c75285cf3e9051d10786216ec6df.gz
* fixed newlines in JavaScript alertsAndreas Gohr2005-09-04
| | | | darcs-hash:20050904112930-7ad00-fb2b246c6b4872ae97cd859d452a1c0f0ca77613.gz
* comment additionsAndreas Gohr2005-08-27
| | | | darcs-hash:20050827122257-7ad00-a69f022b248a3ac2d234b5c25eb4bdcf917851b4.gz
* small changes to tpl_youarehere()Nigel McNie2005-08-27
| | | | | | | | There were a bug where the $conf['startpage'] link is shown twice, and I changed the behaviour on finding a link to a page that doesn't exist. darcs-hash:20050827121154-d87d2-d49833b3229523f5b5ae9354fe8d3aff24f983da.gz
* addslashes for JavScript language stringsCarles Bellver2005-08-27
| | | | | | | | | | | If you use a single quote (escaped with a slash, of course) in strings 'notsavedyet' or 'qb_alert', then the edit toolbar doesn't show in your edit pages. This is caused by the way these strings are inserted in javascript code in inc/template.php. This patch fixes it. darcs-hash:20050827113536-cc4ee-02805ca80c3cc3fedac65e908dae71af92f412f7.gz
* admin plugin i/face + acl pluginchris2005-08-25
| | | | darcs-hash:20050824224718-50fdc-6d27ff70e60e6fe547aff6c2b305507c4ab3f669.gz
* add backlink btn and actionlinkchris2005-08-25
| | | | darcs-hash:20050824222056-50fdc-0afb947d649df545039c1ddc4ed1e1bfd9cb71fc.gz
* don't display indexer webbug for nonexisting pagesAndreas Gohr2005-08-23
| | | | darcs-hash:20050823183426-7ad00-0cadf9dfa87fcae1dc6c40b7f56c4f08b9406945.gz