summaryrefslogtreecommitdiff
path: root/inc/template.php
Commit message (Collapse)AuthorAge
* RSS feeds for search resultsAndreas Gohr2007-07-18
| | | | | | Lets you subscribe to the result of a full text search darcs-hash:20070718071053-7ad00-131c87d5a51ec0d600358590539193ab59b3dbe6.gz
* check for auth object at certain functionsAndreas Gohr2007-06-27
| | | | | | | | This is a follow up on the previous patch to disable authtentication without disabling ACL on backend problems. It fixes a few errors that might occour in this rare situation. darcs-hash:20070627194910-7ad00-de5ac10e0d36ecf8906c080e1d3dc1b2fd85b45d.gz
* deleted obsolete backtomedia functionsAnika Henke2007-05-13
| | | | darcs-hash:20070513124655-d5083-7ffc212357be18a5f889c85736d7c97946b5c899.gz
* same behaviour for doAnika Henke2007-05-13
| | | | darcs-hash:20070513122005-d5083-1430b1f322e7a9753e2c94079f86c2385328cfcd.gz
* disable alternative links for disabled actionsAndreas Gohr2007-05-13
| | | | | | When export_raw or export_xhtml is disabled no rel darcs-hash:20070513072127-7ad00-e2a2451102cbaaef7de4a12982bd14da4b90b866.gz
* UNDO: don't show page metadata for non accessible pagesAndreas Gohr2007-05-11
| | | | darcs-hash:20070511200426-7ad00-8ac8909d40e7c62d61980c4f9b29d88b92be9da6.gz
* don't show page metadata for non accessible pagesAndreas Gohr2007-05-11
| | | | darcs-hash:20070511200426-7ad00-23e5b8d85d00caf3b0b0cdcdbb56dea9e30c9578.gz
* Use RLM character for breadcrumbs in RTL mode FS#1124Katriel Traum2007-04-25
| | | | darcs-hash:20070425181727-3c7c8-0641bd535e909322fc42ef1c50854f1f530cdd47.gz
* relAndreas Gohr2007-04-22
| | | | darcs-hash:20070422105629-7ad00-0f9a1aa2da73ce8e485292c2490fffc73ae54b30.gz
* css fix for tpl_actionlink loginDavid Lorentsen2007-02-24
| | | | darcs-hash:20070224112634-ce218-6f895b09dfe7abb5b8c19ea592f5849e02be4d4e.gz
* hide pageinfo if no accessDavid Lorentsen2007-02-21
| | | | darcs-hash:20070221133007-ce218-844345922ee66ce33c3f0969b5fc6d643ac618ce.gz
* all style sheet additionmartin.tschofen2007-02-11
| | | | darcs-hash:20070211024110-7f317-c094764db4d4c9b7e1cad01fc016f354d91aa39e.gz
* Return true/false from all template output functions.Tom N Harris2007-02-02
| | | | | | | Any tpl_* function that doesn't otherwise return a value will return true if something was printed. darcs-hash:20070202064949-6942e-31ea67ab941cc352d01f0b72971dd20179770226.gz
* identify external edits in UIBen Coburn2006-12-07
| | | | | | | | | | | Some changes to clearly identify when wiki pages have been edited outside Dokuwiki. Also correctly attributes external changes from an unknown author. Avoids sending extra emails when recording old external edits. Adds a new language string: $lang['external_edit'] darcs-hash:20061207032825-05dcb-3234bee57cb165c848b33abb9251502589b0f3cb.gz
* manager user/groupAndreas Gohr2006-12-03
| | | | | | | This patch adds support for a manager option as suggested in http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz
* special char encoding fix for breadcrumbs #993Andreas Gohr2006-11-30
| | | | darcs-hash:20061130202541-7ad00-fc46a71f59d699f2cc720f361f22da8260e7ca92.gz
* use generated CSS for RSS feedsTom N Harris2006-11-15
| | | | | | | plugins can include styles with feed.css, templates can use the media type feed in style.ini darcs-hash:20061115101549-6942e-d1de56b343ce0cc11ca6b911c444197316f4a4eb.gz
* hide inline scripts from XML parsersAndreas Gohr2006-11-18
| | | | | | | This patch addes some comment magic to inline scripts to hide them from XML parsers (like the W3C CSS validator). darcs-hash:20061118154333-7ad00-c24bc36192080fe34f232c5ec2df3f494993f2fe.gz
* OpenSearch supportAndreas Gohr2006-11-10
| | | | | | | | | This adds support for the OpenSearch specification to autodetect DokuWiki's search engine. The patch was submitted by Mike Frysinger some time ago. Some changes were made to the original patch. Only tested in FireFox 2.0 darcs-hash:20061110151453-7ad00-298ad77603854a604a642c0afd3975a997b8dc09.gz
* disable search form if search action is disabled, bug#955chris2006-11-01
| | | | darcs-hash:20061101171656-9b6ab-1f3f9de870380a91e907db96d6645d3480951f0e.gz
* do not auto escape the body of meta headersAndreas Gohr2006-10-22
| | | | darcs-hash:20061022134224-7ad00-f5c26c5104869719db3bf01e326e137eb8f4c725.gz
* fix for actionlink back #914Andreas Gohr2006-10-19
| | | | darcs-hash:20061019103310-7ad00-0de42af92587989d155f55831956480b7976d6e8.gz
* docs update for tpl_button and tpl_actionlinkDenis Simakov2006-10-11
| | | | darcs-hash:20061011141043-3c565-9509bda5d864e0fbb42088d04d5b6f337dd18eb7.gz
* added draft-feature to tpl_actionlinkMichael Klier2006-10-06
| | | | darcs-hash:20061006113409-23886-166f573a8ae5c897011282ef22a581cea1dbce86.gz
* fix relBen Coburn2006-09-30
| | | | darcs-hash:20060930143719-05dcb-251992d688e64ed221dbfe3d9c198fae603e2531.gz
* wordblock enhancementAndreas Gohr2006-09-26
| | | | | | | | | | | | | | The default wordblock.conf provided by the guys at chonqed.org matches agaist URLS beginning with http. But DokuWiki also links simple www.example.com links. Spammers used this method to place blacklisted URLs in the Wiki. This patch constructs full URLs from these shortcut-URLs before applying the blacklist regexp. The patch also fixes a problem with the toolbar not appearing when the blacklist hit and denied saving. darcs-hash:20060926192420-7ad00-519df90a5953b690428bfa0928de37b3053031b0.gz
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
* event names renamedAndreas Gohr2006-09-17
| | | | | | | HTML_EDIT_PAGETEMPLATE becomes HTML_PAGE_FROMTEMPLATE TPL_METAHEADER_PRINT becomes TPL_METAHEADER_OUTPUT darcs-hash:20060917103450-7ad00-405f3533915b54ee4d4050cfccbf27d43ff7435f.gz
* TPL_METAHEADER_PRINT event hook addedAndreas Gohr2006-09-16
| | | | | | | | | | This patch changes the tpl_metaheaders function to emit an event to intercept the creation of HTML metadata. The usually generated meta headers are passed in an array structure for easy modification and enhancement. darcs-hash:20060916154722-7ad00-b22ab79803d1abad4ca579b84b6a3fa466403619.gz
* fix for missing quotation mark in tpl_metaheadersAndreas Gohr2006-09-13
| | | | darcs-hash:20060913185921-7ad00-8ee85b4a39944484d660c8a1d710bd548feac26b.gz
* suppress boring errorsBen Coburn2006-09-08
| | | | | | | | Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz
* keyword meta headerAndreas Gohr2006-09-03
| | | | | | The <meta name darcs-hash:20060903161204-7ad00-61c823d3806e6fdc2ffa3d4978a90dc9953ef9ce.gz
* scalable changelog redesignBen Coburn2006-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch provides a rewritten changelog system that is designed to run efficiently on both small and large wikis. The patch includes a plugin to convert changelogs from the current format. The conversion is non-destructive and happens automatically. For more information on the new changelog format see "http://wiki.splitbrain.org/wiki:changelog". Structure In short the changelog is now stored in per-page changelog files, with a recent changes cache. The recent changes cache is kept in "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve revision information for revisions stored in the attic, the "*.changes" files are not removed when their page is deleted. This allows the full life-cycle of page creation, deletion, and reversion to be tracked. Format The changelog line format now uses a general "line type" field in place of the special "minor" change syntax. There is also an extra field that can be used to store arbitrary data associated with special line types. The reverted line type (R) is a good example. There the extra field holds the revision date used as the source for reverting the page. See the wiki for the complete syntax description. Code Notes The changelog functions have been rewritten to load the whole file only if it is small. For larger files, the function loads only the relevant chunk(s). Parsed changelog lines are cached in memory to speed future function calls. getRevisionInfo A binary search is used to locate the chunk expected to contain the requested revision. The whole chunk is parsed, and adjacent lines are optimistically cached to speed consecutive calls. getRevisions Reads the changelog file backwards (newest first) in chunks until the requested number of lines have been read. Parsed changelog lines are cached for subsequent calls to getRevisionInfo. Because revisions are read from the changelog they are no longer guaranteed to exist in the attic. (Note: Even with lines of arbitrary length getRevisionInfo and getRevisions never split changelog lines while reading. This is done by sliding the "file pointer" forward to the end of a line after each blind seek.) isMinor Removed. To detect a minor edit check the type as follows: $parsed_logline['type'] darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
* make image details indexableAndreas Gohr2006-08-07
| | | | darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz
* add button lables to title attribute #862Andreas Gohr2006-07-24
| | | | | | | Instead of only showing the accesskey in button's title tooltips now the button label is shown additionally. This helps blind users with screenreaders. darcs-hash:20060724165158-7ad00-056481f9120c383cac03b1b2c6c397e829b7d103.gz
* title attribute for search field #821Andreas Gohr2006-07-14
| | | | darcs-hash:20060714112025-7ad00-42f53ba7901132eb1fe6a3446c4d0a45ca5bb33c.gz
* fix for old revision button and action disablingAndreas Gohr2006-07-14
| | | | darcs-hash:20060714093028-7ad00-6d5a07d8bb7a21e315ee52da237085321be1a7a9.gz
* fixing undefined variablesBen Coburn2006-07-10
| | | | | | | Fixing undefined variable notices and sometimes the underlying error that produced them. darcs-hash:20060710114655-05dcb-073948171847f1f43f153e96c8382abd421da36a.gz
* cleanup undefined constant noticesBen Coburn2006-07-10
| | | | | | | Undefined constants replaced with strings, see http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar darcs-hash:20060710091820-05dcb-cfccff2bdd633b929470c60d8eee096f50ab4c18.gz
* disableactions supportAndreas Gohr2006-07-02
| | | | | | | | | | | | This patch adds a config option to disable certain internal action commands of DokuWiki's main dispatcher. The options resendpasswd and openregister were removed because they can now set through this new option. The config plugin needs to be adjusted. darcs-hash:20060702121622-7ad00-1e80e77bcfb0ae561fe7abd79cfbe1bb158be720.gz
* back button tear down wallsmatthiasgrimm2006-06-19
| | | | | | | | | | | | | | The 'back' currently works only inside a namespace and hide the button, if the namespace startpage has been reached. This patch tear down the namespace wall. Now the 'back' button of the namespace startpage addresses the start page of the parent namespace instead of being hidden. With this patch the 'back' button works as before the 'startpage' patch series. darcs-hash:20060619171023-7ef76-baac3ad5367d6c6397125401aa7d8beab5122faa.gz
* simplified tpl_getparentAndreas Gohr2006-06-18
| | | | | | 4th part of the global start series darcs-hash:20060618121521-7ad00-8ea574bdb2c8a12560cf892c7ed53a4972af998d.gz
* updated hierarchical breadcrumbsAndreas Gohr2006-06-18
| | | | | | Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz
* minor media manager tweaksAndreas Gohr2006-05-20
| | | | darcs-hash:20060520172118-7ad00-ad605bf51c8774d734012ece0071f70e6624788a.gz
* moved gzip compression to init.phpAndreas Gohr2006-05-19
| | | | darcs-hash:20060519212751-7ad00-ace54b61706fdf4f1b7c2abdbabee215a1e256ab.gz
* new mediamanagerAndreas Gohr2006-05-19
| | | | | | | | | | | | | | | This patch adds a completely rewritten media popup. The following noteworthy changes were made: - media manager uses a collapsible namespace tree - media manager uses AJAX if available - media manager popup can be kept open when selecting a media file - only one template is used for the media manager :!: Template - Editable image metadata is configured in conf/mediameta.php now - The JS cookie mechanism was enhanced to store key/value pairs - Language strings can be exported to JS in js.php darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz
* gzip content-encoding optionBen Coburn2006-05-16
| | | | | | | | - Enables gzip compression of output xhtml for browsers that support it. For example the wiki:syntax page takes up 46.80KB raw, but only 9.88KB gzip encoded. - Setting is configurable through the config plugin. darcs-hash:20060516084132-05dcb-d8d1c7911a951b00e166c5a94f46a2cf1cfa5846.gz
* tpl_actionlink() reports if a link was printed #777Andreas Gohr2006-04-28
| | | | darcs-hash:20060428195153-7ad00-7104d2ffc54902e8969202a9a3ac93f7df5dcbf7.gz
* event system revisionchris2006-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a major revision of DokuWiki's event system. There are changes to class names, function names, function parameters and their order and event names. For action plugin writers the following changes are important: - <event_name> is no longer signalled, only <event_name>_BEFORE and <event_name>_AFTER. - note the case change for _BEFORE and _AFTER - calling stopPropagation while processing a _BEFORE signal no longer prevents an _AFTER signal. The events _continue value is reset before the _AFTER signal is made. - events have a new readonly property, canPreventDefault. This lets the event handling hook know whether or not the event honours preventDefault calls. - parameters have changed for the register_hook method, parameters are now $event_name, $advise (can be 'BEFORE' or 'AFTER') $object $method $param (this parameter is now optional) - parameter order has changed for the hook event handler callback functions &$event $param (can now be left off) Event names have changed, they are now structured <dokuwiki name>_<event data name>_<action_name or state if no action> DOKUWIKI_START darcs-hash:20060424220152-9b6ab-00e366288f7ec8a85b85dc83694a5f43a07aa082.gz
* event ACTION_TEMPLATE minor updatechris2006-04-15
| | | | darcs-hash:20060415162247-9b6ab-d6c05736c0e4fb05331bc1cf06e48c5d61c64d5b.gz