1<?php 2/** 3 * Headline Level 3 element component for the adhoctags plugin 4 * 5 * Defines <h1> ... </h1> syntax 6 * More info: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements 7 * 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 * @author Anika Henke <anika@selfthinker.org> 10 * @author Sascha Leib <sascha.leib(at)kolmio.com> 11 */ 12 13class syntax_plugin_adhoctags_h1 extends syntax_plugin_adhoctags_abstractheadline { 14 15 protected $tag = 'h1'; 16 17 /** 18 * ODT Renderer Functions 19 */ 20 function renderODTElementOpen($renderer, $HTMLelement, $data) { 21 $renderer->p_open(); 22 $renderer->strong_open(); 23 } 24 function renderODTElementClose($renderer, $element) { 25 $renderer->strong_close(); 26 $renderer->p_close(); 27 } 28}