Делаем сворачиваемые блоки в IP.Content
Все искал решение как сделать блоки сворачиваемыми (как на форуме). И вот оно нашлось.
1. Идем в АЦП >IP.Content>Page Templates> изменяем шаблон по умолчанию. В 2.1.2 его уже нет.
Добавляем над строкой </head> следующий код
<script src="ССЫЛКА НА ВАШ ФОРУМ/public/js/ips.board.js" type="text/javascript"></script>
2. Далее оборачиваем содержимое вашего блока следующим кодом.
<div class='category_block block_wrap'> <h3 id='category_{$title}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}{$title}</a>{$title}</h3> <table class='ipb_table' summary="{$title}"> <tr> <td> Тут содержимое вашего блока <td> </tr> </table> </div>
3. Радуемся.
-
3
Sign in to follow this
Followers
0
0 Comments
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now