xref: /plugin/mikioplugin/syntax/cardbody.php (revision 9e0ff2d57b380903b3e43738fbd1ebb5c810bd88)
1<?php
2/**
3 * Mikio Syntax Plugin: Card Body
4 *
5 * Syntax:  <CARD-BODY></CARD-BODY>
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_cardbody extends syntax_plugin_mikioplugin_core {
16    public $tag                 = 'card-body';
17
18    public function render_lexer_enter(Doku_Renderer $renderer, $data) {
19        $renderer->doc .= '<div class="card-body">';
20    }
21
22
23    public function render_lexer_exit(Doku_Renderer $renderer, $data) {
24        $renderer->doc .= '</div>';
25    }
26}
27?>