Collapsible User Extras

Collapsible User Extras 1.0

Keine Berechtigung zum Herunterladen
XF-Kompatibilität
  1. 2.2.x
Short Description
This template mod will hide the extra user info in messages by default
This template mod will hide the extra user info in messages by default. Stats can be shown by simply clicking the expand arrow.

I will only support default styles, no 3rd party styles will receive support. Along with that if you use a Pixel Exit style this is already built into each style. 😛

Template
Find:
Code:
<xf:macro template="message_macros" name="user_info" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-dateHtml="{$dateHtml}" arg-linkHtml="{$linkHtml}" />

Add below:
Code:
<span id="collapse-{$post.post_id}" class="collapseTrigger collapseTrigger--block" data-xf-click="toggle" data-target="#js-post-{$post.post_id} .message-userExtras"></span>

Template
Find:
Code:
<div class="message-userExtras">
Replace with:
Code:
<div class="message-userExtras message-userExtras-body message-userExtras--collapsible">
Add to extra.less template:
CSS:
/* User Extras Collapse */
.message-userExtras-body
{
    .m-listPlain();
    &.message-userExtras--collapsible
    {
        .has-no-js & { display: block; }
        .m-transitionFadeDown();
    }
}
.message-cell
{
    .collapseTrigger
    {
        text-align: center;
        &.is-active:before
        {
            transform: rotate(-180deg);
        }
        &:before
        {
            content: "\f13a";
            color: @xf-linkColor;
            transition: ease-in transform .3s;
            width: auto;
        }
        &.collapseTrigger--block:before
        {
            float: none;
        }
    }
}
@media (max-width: @xf-responsiveNarrow)
{
    .message-cell
    {
        .collapseTrigger
        {
            display: none;
        }
    }
}
Autor
axtona
Ansichten
377
Erste Veröffentlichung
Letzte Aktualisierung
Bewertungen 0.00 Sterne 0 Bewertungen
Link was Broken? Please Send Message to NP Team with direct message, You will get it very quickly!
Support Developer If you are satisfied with your test or project have earn money successfully, Maybe you can click more information button to support with buying.

Weitere Ressourcen von axtona

XenForo Media Gallery / XFMG A
XenForo-Media-Galerie ist ein offizielles XenForo-Add-on, das Ihnen die Möglichkeit gibt, eine Galerie zu Ihrem XF2 hinzuzufügen.
Data Tables A
Data Tables 1.0.0
create stand-alone, fully customizable data tables within XenForo

Ähnliche Ressourcen

Oben