Добавляем кнопки "По центру", "Влево", "Вправо" в хаке Expanded/Collapsed Menu BB-Code
если Вы хотите, чтобы добавились кнопки выравнивания по центру, влево, вправо в хаке Expanded/Collapsed Menu BB-Code, то редактируем шаблон kr_bbcodes_quickreply_codes
Найти:
PHP код:
<if condition="$show['list_bbcode']"> <td><div class="imagebutton" id="{$editorid}_cmd_insertorderedlist">
Выше добавить:
PHP код:
<if condition="$show['align_bbcode']"> <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td> <if condition="$stylevar['textdirection'] == 'ltr'"> <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td> <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td> <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td> <else /> <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td> <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td> <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td> </if> <td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td> </if>
|