DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:fbde

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:fbde [2013-06-16 22:34] – [Development] 91.0.80.169plugin:fbde [2021-03-05 00:41] (current) Klap-in
Line 1: Line 1:
 ====== fbde Plugin ====== ====== fbde Plugin ======
  
-include match table from fussball.de +Includes a match table from fussball.de in your wikipage if you use Dokuwiki as a homepage for a soccer club in germany
  
 ---- plugin ---- ---- plugin ----
Line 9: Line 9:
 type       : syntax type       : syntax
 lastupdate : 2013-06-09 lastupdate : 2013-06-09
-compatible : weatherwax +compatible : Weatherwax 
-depends    : - +depends    :  
-conflicts - +conflicts  :  
-similar    : -+similar    : 
 tags       : football, soccer, fussball, fussball.de, tabelle, standings, match tags       : football, soccer, fussball, fussball.de, tabelle, standings, match
  
-downloadurl: # eg. http://github.com//dokuwiki-plugin-fbde/zipball/master +downloadurl: # eg. https://github.com//dokuwiki-plugin-fbde/zipball/master 
-bugtracker : # eg. http://github.com//dokuwiki-plugin-fbde/issues +bugtracker : # eg. https://github.com//dokuwiki-plugin-fbde/issues 
-sourcerepo : # eg. http://github.com//dokuwiki-plugin-fbde/+sourcerepo : # eg. https://github.com//dokuwiki-plugin-fbde/
 donationurl:  donationurl: 
  
Line 23: Line 23:
 ---- ----
  
-//:!This template contains various hints on how to fill in data (formatted in italics)Be sure to remove the hints and unwanted sections (Egthe Syntax/Example section for non-syntax plugins.//+ 
 +Screenshot[[http://www.bv09.de/_media/hauptverein/fbde_plugin1.png]] {{http://www.bv09.de/_media/hauptverein/fbde_plugin1.png}}
  
 ===== Installation ===== ===== Installation =====
- 
-//[First, last and only chance to warn users before installing (some has already done that before reading this)]// 
  
 :!: **External requirements:** This plugin requires the following additional components that must be installed separately:  :!: **External requirements:** This plugin requires the following additional components that must be installed separately: 
-  * [[A banana]] +  * Account on www.fussball.de with a personal key for the JavaScript Code
-  * [[Another banana]] +
- +
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. +
 ===== Examples/Usage ===== ===== Examples/Usage =====
  
Line 53: Line 48:
  
 put this .css file into your /lib/tpl/<TPLNAME>/ directory: put this .css file into your /lib/tpl/<TPLNAME>/ directory:
-<file plain fbde.css>+<file css fbde.css>
 #fussballdeAPI {width: 100%; border-color:#fff; } /*make it filling the page width*/ #fussballdeAPI {width: 100%; border-color:#fff; } /*make it filling the page width*/
 #fussballdeAPI table {width:100%} /*table too*/ #fussballdeAPI table {width:100%} /*table too*/
Line 62: Line 57:
 and create a folder ''fbde'' in ''/lib/plugins/'' to save the ''syntax.php'' and create a folder ''fbde'' in ''/lib/plugins/'' to save the ''syntax.php''
  
-<file plain syntax.php>+<file php syntax.php>
 <?php <?php
 /** /**
Line 73: Line 68:
  */  */
    
-if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) die();
-if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); +
-require_once(DOKU_PLUGIN.'syntax.php');+
    
 class syntax_plugin_fbde extends DokuWiki_Syntax_Plugin { class syntax_plugin_fbde extends DokuWiki_Syntax_Plugin {
Line 89: Line 82:
  
     /*what to do with pattern*/     /*what to do with pattern*/
-    function handle($match, $state, $pos, &$handler){+    function handle($match, $state, $pos, Doku_Handler $handler){
         return  explode('|', $match);         return  explode('|', $match);
     }     }
  
-    function render($mode, &$renderer, $data) {+    function render($mode, Doku_Renderer $renderer, $data) {
         if($mode != 'xhtml')         if($mode != 'xhtml')
   return false;   return false;
Line 109: Line 102:
     }     }
 } }
-?> 
 </file> </file>
  
Line 133: Line 125:
  
 //Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs// //Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs//
- 
- 
plugin/fbde.1371414844.txt.gz · Last modified: 2013-06-16 22:34 by 91.0.80.169

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