baltun
Администратор
- Сообщения
- 13.110
- Реакции
- 3.334
- Баллы
- 1.833
Пользователь xsasha разместил новый ресурс:
[HAL] Подразделы - подразделы в строку.
Узнать больше об этом ресурсе...
Модификация вручную если не выполняется через дополнение.
В шаблоне node_category_level_2 найти:
Заменить на:
В шаблоне node_forum_level_2 найти:
Заменить на:
Добавляем стиль в шаблон EXTRA.css.
[HAL] Подразделы - подразделы в строку.
Подразделы в строку или по умолчанию как задумано в Xenforo.
Узнать больше об этом ресурсе...
Модификация вручную если не выполняется через дополнение.
В шаблоне node_category_level_2 найти:
Код:
<xen:if is="{$renderedChildren} AND @nodeListSubForumPopup">
<div class="Popup subForumsPopup">
<a href="{xen:link categories, $category}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $category.childCount}</a>
<div class="Menu JsOnly subForumsMenu">
<div class="primaryContent menuHeader">
<h3>{$category.title}</h3>
<div class="muted">{xen:phrase sub_forums}</div>
</div>
<ol class="secondaryContent blockLinksList">
<xen:foreach loop="$renderedChildren" value="$child">
{xen:raw $child}
</xen:foreach>
</ol>
</div>
</div>
</xen:if>
Код:
<xen:if is="{$renderedChildren} AND @nodeListSubForumPopup">
<div class="Popup subForumsPopup">
<ol class="secondaryContent blockLinksList">
<xen:foreach loop="$renderedChildren" value="$child">
{xen:raw $child}
</xen:foreach>
</ol>
</div>
</xen:if>
В шаблоне node_forum_level_2 найти:
Код:
<xen:if is="{$renderedChildren} AND {$level} == 2 AND @nodeListSubForumPopup">
<div class="Popup subForumsPopup">
<a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>
<div class="Menu JsOnly subForumsMenu">
<div class="primaryContent menuHeader">
<h3>{$forum.title}</h3>
<div class="muted">{xen:phrase sub_forums}</div>
</div>
<ol class="secondaryContent blockLinksList">
<xen:foreach loop="$renderedChildren" value="$child">
{xen:raw $child}
</xen:foreach>
</ol>
</div>
</div>
</xen:if>
Код:
<xen:if is="{$renderedChildren} AND {$level} == 2 AND @nodeListSubForumPopup">
<div class="Popup subForumsPopup">
<a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>
<ol class="secondaryContent blockLinksList">
<xen:foreach loop="$renderedChildren" value="$child">
{xen:raw $child}
</xen:foreach>
</ol>
</div>
</xen:if>
Код:
body .subForumsPopup
{
margin: 0;
float: none;
}
body .subForumsPopup .blockLinksList
{
display: inline-table;
width: 90%;
box-sizing: border-box;
word-spacing: -10px;
}
body .subForumsPopup .blockLinksList > li
{
display: inline-block;
width: 25%;
word-spacing: 0;
vertical-align: top;
}
body .subForumsPopup .blockLinksList .nodeTitle
{
font-weight: normal;
}
body .subForumsPopup .blockLinksList .unread .nodeTitle
{
font-weight: bold;
}
body .subForumsPopup .blockLinksList .nodeTitle a:before
{
content: "";
background: @primaryLighter;
border-radius: 4px;
margin-right: 5px;
display: inline-block;
height: 4px;
width: 4px;
vertical-align: middle;
}
Последнее редактирование:


