new useful tags for gallery 2.2.4

aelwakeil

Joined: 2008-05-30
Posts: 1
Posted: Thu, 2008-06-05 23:41

I have added new useful Tags eg underline, big and linebreak

add the following to gallery2\lib\smarty_plugins\modifier.markup.php

Quote:
/* line break */
$this->_bbcode->addCode('br', 'simple_replace', null,
array('start_tag' => '<br>', 'end_tag' => '<br>'),
'inline', array('listitem', 'block', 'inline', 'link'), array());
/* underline [u]*/
$this->_bbcode->addCode('u', 'simple_replace', null,
array('start_tag' => '<u>', 'end_tag' => '</u>'),
'inline', array('listitem', 'block', 'inline', 'link'), array());

/* underline [big]*/
$this->_bbcode->addCode('big', 'simple_replace', null,
array('start_tag' => '<big>', 'end_tag' => '</big>'),
'inline', array('listitem', 'block', 'inline', 'link'), array());

I found it is very useful accutally like i wanted to make line break in Custom Fields i inseted
or [/br]

Using [big] Tag, I can add style to my themes in theme.css file and change text style easly