DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:localdate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:localdate [2012-11-21 00:05] Klap-inplugin:localdate [2018-06-04 23:21] (current) Klap-in
Line 17: Line 17:
 ===== Description ===== ===== Description =====
  
-With this [[plugins|plugin]] the [[:wiki:syntax]] of [[:DokuWiki]] is extended to allow display of local date on client machine. The syntax to use this plugin is:+With this plugin the [[:wiki:syntax]] of [[:DokuWiki]] is extended to allow display of local date on client machine. The syntax to use this plugin is:
 <code> <code>
   <date>year,month,day</date>   <date>year,month,day</date>
Line 104: Line 104:
     */     */
     function connectTo($mode) {     function connectTo($mode) {
-      $this->Lexer->addEntryPattern('<date>(?=.*\x3C/date\x3E)',$mode,'plugin_localdate');+      $this->Lexer->addEntryPattern('<date>(?=.*</date>)',$mode,'plugin_localdate');
     }     }
  
plugin/localdate.1353452718.txt.gz · Last modified: 2012-11-21 00:05 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki