Commit af8518a2 authored by M.Nowocyn's avatar M.Nowocyn

Update bbcode table for size. Changed px to % for font-size. CMS#16

parent f0791509
......@@ -30,46 +30,51 @@ VALUES (1, 'Default Template', 'IkoBB', '0.0.1', 'default', '0.0.1a');
INSERT INTO `{prefix}bbcodes` (`bbcode_id`, `bbcode_tag`, `bbcode_description`, `bbcode_pattern`, `bbcode_replacement`, `bbcode_isfunction`)
VALUES
(1, '[noparse]', NULL, '/\\[noparse\\](.*?)\\[\\/noparse\\]/muis', 'Iko\\CMS\\BBCode::noParse', 1),
(2, '[tt]', NULL, '/\\[tt\\](.*?)\\[\\/tt\\]/uis', 'Iko\\CMS\\BBCode::inlineCode', 1),
(3, '[code]', NULL, '/\\[code\\](.*?)\\[\\/code\\]/muis', 'Iko\\CMS\\BBCode::code', 1),
(4, '[code=', NULL, '/\\[code=([^\\]]*?)\\](.*?)\\[\\/code\\]/muis', 'Iko\\CMS\\BBCode::advancedCode', 1),
(5, '[b]', NULL, '/\\[b\\](.*?)\\[\\/b\\]/muis', '<b>$1</b>', 0),
(6, '[i]', NULL, '/\\[i\\](.*?)\\[\\/i\\]/uis', '<i>$1</i>', 0),
(7, '[u]', NULL, '/\\[u\\](.*?)\\[\\/u\\]/uis', '<u>$1</u>', 0),
(8, '[s]', NULL, '/\\[s\\](.*?)\\[\\/s\\]/uis', '<del>$1</del>', 0),
(9, '[sup]', NULL, '/\\[sup\\](.*?)\\[\\/sup\\]/uis', '<sup>$1</sup>', 0),
(10, '[sub]', NULL, '/\\[sub\\](.*?)\\[\\/sub\\]/uis', '<sub>$1</sub>', 0),
(11, '[left]', NULL, '/\\[left\\](.*?)\\[\\/left\\]/uis', '<p align="left">$1</p>', 0),
(12, '[center]', NULL, '/\\[center\\](.*?)\\[\\/center\\]/uis', '<p align="center">$1</p>', 0),
(13, '[right]', NULL, '/\\[right\\](.*?)\\[\\/right\\]/uis', '<p align="right">$1</p>', 0),
(14, '[size=', NULL, '/\\[size=([^\\]]*?)\\](.*?)\\[\\/size\\]/uis', '<span style="font-size: $1px;">$2</span>', 0),
(15, '[color=', NULL, '/\\[color=([^\\]]*?)\\](.*?)\\[\\/color\\]/uis', '<span style="color: $1;">$2</span>', 0),
(16, '[font=', NULL, '/\\[font=([^\\]]*?)\\](.*?)\\[\\/font\\]/uis', '<span style="font-family: $1;">$2</span>', 0),
(17, '[quote]', NULL, '/\\[quote\\](.*?)\\[\\/quote\\]/uis', '<blockquote>$1</blockquote>', 0),
(18, '[quote=', NULL, '/\\[quote=([^\\]]*?)\\](.*?)\\[\\/quote\\]/uis', '<blockquote>$1 wrote: <br>$2</blockquote>', 0),
(19, '[table]', NULL, '/\\[table\\](.*?)\\[\\/table\\]/uis', '<table>$1</table>', 0),
(20, '[tr]', NULL, '/\\[tr\\](.*?)\\[\\/tr\\]/uis', '<tr>$1</tr>', 0),
(21, '[td]', NULL, '/\\[td\\](.*?)\\[\\/td\\]/uis', '<td>$1</td>', 0),
(22, '[th]', NULL, '/\\[th\\](.*?)\\[\\/th\\]/uis', '<th>$1</th>', 0),
(23, '[fa]', NULL, '/\\[fa\\](.*?)\\[\\/fa\\]/uis', '<i class="fa $1" aria-hidden="true"></i>', 0),
(24, '[ul]', NULL, '/\\[ul\\](.*?)\\[\\/ul\\]/uis', '<ul>$1</ul>', 0),
(25, '[list]', NULL, '/\\[list\\](.*?)\\[\\/list\\]/uis', '<ul>$1</ul>', 0),
(26, '[ol]', NULL, '/\\[ol\\](.*?)\\[\\/ol\\]/uis', '<ol>$1</ol>', 0),
(27, '[ol=', NULL, '/\\[ol=([^\\]]*?)\\](.*?)\\[\\/ol\\]/uis', '<ol type="$1">$2</ol>', 0),
(28, '[list=', NULL, '/\\[list=([^\\]]*?)\\](.*?)\\[\\/list\\]/uis', '<ol type="$1">$2</ol>', 0),
(29, '[*]', NULL, '/\\[\\*\\](.*?)\\<br\\>/uis', '<li>$1</li>', 0),
(30, '[img]', NULL, '/\\[img\\](.*?)\\[\\/img\\]/uis', 'Iko\\CMS\\BBCode::image', 1),
(31, '[url]', NULL, '/\\[url\\](.*?)\\[\\/url\\]/uis', 'Iko\\CMS\\BBCode::link', 1),
(32, '[url=', NULL, '/\\[url=([^\\]]*?)\\](.*?)\\[\\/url\\]/uis', 'Iko\\CMS\\BBCode::advancedLink', 1),
(33, '[media=', NULL, '/\\[media=([^\\]]*?)\\](.*?)\\[\\/media\\]/uis', 'Iko\\CMS\\BBCode::media', 1),
(34, '[youtube]', NULL, '/\\[youtube\\](.*?)\\[\\/youtube\\]/uis',
(1, '[noparse]', NULL, '/\\[noparse\\](.*?)\\[\\/noparse\\]/muis', 'Iko\\CMS\\BBCode::noParse', 1),
(2, '[tt]', NULL, '/\\[tt\\](.*?)\\[\\/tt\\]/uis', 'Iko\\CMS\\BBCode::inlineCode', 1),
(3, '[code]', NULL, '/\\[code\\](.*?)\\[\\/code\\]/muis', 'Iko\\CMS\\BBCode::code', 1),
(4, '[code=', NULL, '/\\[code=([^\\]]*?)\\](.*?)\\[\\/code\\]/muis', 'Iko\\CMS\\BBCode::advancedCode', 1),
(5, '[b]', NULL, '/\\[b\\](.*?)\\[\\/b\\]/muis', '<b>$1</b>', 0),
(6, '[i]', NULL, '/\\[i\\](.*?)\\[\\/i\\]/uis', '<i>$1</i>', 0),
(7, '[u]', NULL, '/\\[u\\](.*?)\\[\\/u\\]/uis', '<u>$1</u>', 0),
(8, '[s]', NULL, '/\\[s\\](.*?)\\[\\/s\\]/uis', '<del>$1</del>', 0),
(9, '[sup]', NULL, '/\\[sup\\](.*?)\\[\\/sup\\]/uis', '<sup>$1</sup>', 0),
(10, '[sub]', NULL, '/\\[sub\\](.*?)\\[\\/sub\\]/uis', '<sub>$1</sub>', 0),
(11, '[left]', NULL, '/\\[left\\](.*?)\\[\\/left\\]/uis', '<p align="left">$1</p>', 0),
(12, '[center]', NULL, '/\\[center\\](.*?)\\[\\/center\\]/uis', '<p align="center">$1</p>', 0),
(13, '[right]', NULL, '/\\[right\\](.*?)\\[\\/right\\]/uis', '<p align="right">$1</p>', 0),
(14,
'[size=',
NULL,
'/\\[size=([^\\]]*?)\\](.*?)\\[\\/size\\]/uis',
'<span style="font-size: $1%;">$2</span>',
0),
(15, '[color=', NULL, '/\\[color=([^\\]]*?)\\](.*?)\\[\\/color\\]/uis', '<span style="color: $1;">$2</span>', 0),
(16, '[font=', NULL, '/\\[font=([^\\]]*?)\\](.*?)\\[\\/font\\]/uis', '<span style="font-family: $1;">$2</span>', 0),
(17, '[quote]', NULL, '/\\[quote\\](.*?)\\[\\/quote\\]/uis', '<blockquote>$1</blockquote>', 0),
(18, '[quote=', NULL, '/\\[quote=([^\\]]*?)\\](.*?)\\[\\/quote\\]/uis', '<blockquote>$1 wrote: <br>$2</blockquote>', 0),
(19, '[table]', NULL, '/\\[table\\](.*?)\\[\\/table\\]/uis', '<table>$1</table>', 0),
(20, '[tr]', NULL, '/\\[tr\\](.*?)\\[\\/tr\\]/uis', '<tr>$1</tr>', 0),
(21, '[td]', NULL, '/\\[td\\](.*?)\\[\\/td\\]/uis', '<td>$1</td>', 0),
(22, '[th]', NULL, '/\\[th\\](.*?)\\[\\/th\\]/uis', '<th>$1</th>', 0),
(23, '[fa]', NULL, '/\\[fa\\](.*?)\\[\\/fa\\]/uis', '<i class="fa $1" aria-hidden="true"></i>', 0),
(24, '[ul]', NULL, '/\\[ul\\](.*?)\\[\\/ul\\]/uis', '<ul>$1</ul>', 0),
(25, '[list]', NULL, '/\\[list\\](.*?)\\[\\/list\\]/uis', '<ul>$1</ul>', 0),
(26, '[ol]', NULL, '/\\[ol\\](.*?)\\[\\/ol\\]/uis', '<ol>$1</ol>', 0),
(27, '[ol=', NULL, '/\\[ol=([^\\]]*?)\\](.*?)\\[\\/ol\\]/uis', '<ol type="$1">$2</ol>', 0),
(28, '[list=', NULL, '/\\[list=([^\\]]*?)\\](.*?)\\[\\/list\\]/uis', '<ol type="$1">$2</ol>', 0),
(29, '[*]', NULL, '/\\[\\*\\](.*?)\\<br\\>/uis', '<li>$1</li>', 0),
(30, '[img]', NULL, '/\\[img\\](.*?)\\[\\/img\\]/uis', 'Iko\\CMS\\BBCode::image', 1),
(31, '[url]', NULL, '/\\[url\\](.*?)\\[\\/url\\]/uis', 'Iko\\CMS\\BBCode::link', 1),
(32, '[url=', NULL, '/\\[url=([^\\]]*?)\\](.*?)\\[\\/url\\]/uis', 'Iko\\CMS\\BBCode::advancedLink', 1),
(33, '[media=', NULL, '/\\[media=([^\\]]*?)\\](.*?)\\[\\/media\\]/uis', 'Iko\\CMS\\BBCode::media', 1),
(34, '[youtube]', NULL, '/\\[youtube\\](.*?)\\[\\/youtube\\]/uis',
'<iframe width="560" height="315" src="//www.youtube.com/embed/$1?rel=0" frameborder="0" allowfullscreen></iframe>',
0),
(35, '[tex]', NULL, '/\\[tex\\](.*?)\\[\\/tex\\]/muis', '\\[$1\\]', 0),
(36, '[latex]', NULL, '/\\[latex\\](.*?)\\[\\/latex\\]/muis', '\\[$1\\]', 0),
(37, '[am]', NULL, '/\\[am\\](.*?)\\[\\/am\\]/muis', '`$1`', 0),
(38, '[math]', NULL, '/\\[math\\](.*?)\\[\\/math\\]/muis', '`$1`', 0);
(35, '[tex]', NULL, '/\\[tex\\](.*?)\\[\\/tex\\]/muis', '\\[$1\\]', 0),
(36, '[latex]', NULL, '/\\[latex\\](.*?)\\[\\/latex\\]/muis', '\\[$1\\]', 0),
(37, '[am]', NULL, '/\\[am\\](.*?)\\[\\/am\\]/muis', '`$1`', 0),
(38, '[math]', NULL, '/\\[math\\](.*?)\\[\\/math\\]/muis', '`$1`', 0);
/* Usermodule */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment