PHP код:
//Editor ToolBar icon Fix By Sherif
if ($show['toolbar_shortcut_button'])
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/hide.png',
'twoparams' => ($vbulletin->options['hidetag_shortcut'] == 0 || $vbulletin->options['hidetag_shortcut'] == 4 || $vbulletin->options['hidetag_shortcut'] == 5) ? 1 : 0,
'bbcodetag' => 'hide',
'tag' => 'hide',
'title' => 'hide'
);
}
if ($show['toolbar_hposts_button'] AND $vbulletin->options['hidetag_shortcut'] != 0)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/hposts.gif',
'twoparams' => 1,
'bbcodetag' => 'hide-posts',
'tag' => 'hposts',
'title' => 'hposts',
);
}
if ($show['toolbar_hrply_button'] AND $vbulletin->options['hidetag_shortcut'] != 1)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/hrply.gif',
'twoparams' => 0,
'bbcodetag' => 'hide-reply',
'tag' => 'hrply',
'title' => 'hrply',
);
}
if ($show['toolbar_htnx_button'] AND $vbulletin->options['hidetag_shortcut'] != 2)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/htnx.gif',
'twoparams' => 0,
'bbcodetag' => 'hide-thanks',
'tag' => 'htnx',
'title' => 'hrplytnx',
);
}
if ($show['toolbar_hrplytnx_button'] AND $vbulletin->options['hidetag_shortcut'] != 3)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/hrplytnx.gif',
'twoparams' => 0,
'bbcodetag' => 'hide-reply-thanks',
'tag' => 'hrplytnx',
'title' => 'hrplytnx',
);
}
if ($show['toolbar_showtogroups_button'] AND $vbulletin->options['hidetag_shortcut'] != 4)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/showtogroups.gif',
'twoparams' => 1,
'bbcodetag' => 'showtogroups',
'tag' => 'showtogroups',
'title' => 'showtogroups',
);
}
if ($show['toolbar_stu_button'] AND $vbulletin->options['hidetag_shortcut'] != 5)
{
$vbulletin->bbcodecache[] = array(
'buttonimage' => vB_Template_Runtime::fetchStylevar('imgdir_editor') . '/stu.gif',
'twoparams' => 1,
'bbcodetag' => 'stu',
'tag' => 'stu',
'title' => 'stu',
);
}