[Plugin: OpenMenu – The official plugin for OpenMenu] Better matching of the formatting set in openm
-
I added the following code
nl2br
to class-omf-render.php to get it to respect the carriage returns in menu item descriptions.Line 204 class-omf-render.php (in version 1.5.3 of the plugin)
$retval .= '<dd class="description">' . $thi s->hl_food( $this->clean(nl2br($item['menu_item_description'])), $hl_primary, $hl_secondary ) . $calorie s . '</dd>';
See https://php.net/manual/en/function.nl2br.php
Might be useful in other parts too.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: OpenMenu – The official plugin for OpenMenu] Better matching of the formatting set in openm’ is closed to new replies.