xref: /plugin/mikioplugin/syntax/listgroup.php (revision 17e6d63900b7250e4c2aa308b63914ffea16ab55)
1<?php
2/**
3 * Mikio Syntax Plugin: List Group
4 *
5 * Syntax:  <LISTGROUP></LISTGROUP>
6 *
7 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 * @author     James Collins <james.collins@outlook.com.au>
9 */
10
11if (!defined('DOKU_INC')) die();
12if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
13require_once(dirname(__FILE__).'/core.php');
14
15class syntax_plugin_mikioplugin_listgroup extends syntax_plugin_mikioplugin_core {
16    public $tag                 = 'listgroup';
17
18
19    public function render_lexer_enter(Doku_Renderer $renderer, $data) {
20        $renderer->doc .= '<ul class="list-group">';
21    }
22
23
24    public function render_lexer_exit(Doku_Renderer $renderer, $data) {
25        $renderer->doc .= '</ul>';
26    }
27}
28?>