Тема с офа

LEGENDARY

Проверенные
Сообщения
142
Решения
1
Реакции
55
Баллы
8,130
Доброго времени суток. Не знал, где можно создать такую тему. Мог бы кто-нибудь скинуть содержимое этой темы:
И этой:
 
Приветствую.
От себя, мануалы староваты, многое изменилось, но при желании, труда разобраться не составит.

Make entire nav tab trigger popup (instead of just the down arrow)


Edit this template:

Admin CP -> Appearance -> Templates -> navigation

Add the blue, remove the red:

<a href="{$extraTab.href}" class="navLink NoPopupGadget" rel="Menu">{$extraTab.title}</a>
<a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>

Код:
        <!-- extra tabs: end -->
        <xen:if is="{$extraTabs.end}">
        <xen:foreach loop="$extraTabs.end" key="$extraTabId" value="$extraTab">
            <xen:if is="{$extraTab.linksTemplate}">
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
           
                <a href="{$extraTab.href}" class="navLink NoPopupGadget" rel="Menu">{$extraTab.title}</a>
                <a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
               
                <div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'}">
                    <div class="primaryContent menuHeader">
                        <h3>{$extraTab.title}</h3>
                        <div class="muted">{xen:phrase quick_links}</div>
                    </div>
                    {xen:raw $extraTab.linksTemplate}
                </div>
            </li>
            <xen:else />
                <li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'PopupClosed'}">
                    <a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
                    <xen:if is="{$extraTab.selected}"><div class="tabLinks"></div></xen:if>
                </li>
            </xen:if>
        </xen:foreach>
        </xen:if>
You need to apply this change to all of the tabs in this template. There is similar code in this template for all of the default tabs, as well as for each "extraTabs" skeleton which addons use to create their tabs.

Change popup menu delay

This will change the delay for popup menus in the navbar. For example:

Screen shot 2012-05-01 at 12.00.35 AM.png
Edit this file:

js/xenforo/xenforo.js

Change the number in red:
hoverIntent({sensitivity:1,interval:100,timeout:0
Код:
XenForo.PopupMenu.prototype={__construct:function(a){this.$container=a;this.$menu=this.$container.find(".Menu").appendTo("body");this.menuVisible=!1;if(!this.$menu.length)return console.warn("Unable to find menu for Popup %o",this.$container),!1;this.$menu.id=XenForo.uniqueId(this.$menu);this.contentSrc=
this.$menu.data("contentSrc");this.contentDest=this.$menu.data("contentDest");this.unreadDisplayTimeout=this.loading=null;this.newlyOpened=!1;this.$clicker=a.find('[rel="Menu"]').first().click(c.context(this,"controlClick"));XenForo.isTouchBrowser()||this.$clicker.mouseover(c.context(this,"controlHover")).hoverIntent({sensitivity:1,interval:100,timeout:0,over:c.context(this,"controlHoverIntent"),out:function(){}});this.$control=this.addPopupGadget(this.$clicker);this.popupGroup=this.$control.closest("[data-popupGroup]").data("popupGroup")},
Setting it to 0 will cause the menus to popup instantly without any delay. You are editing the minified javascript so it looks messy due to no formatting.
 
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу