[cXF] Icons in sidenav on Account page

XenForo [cXF] Icons in sidenav on Account page

Совместимость с XenForo
  1. 2.3.x
Хотели бы вы иметь иконки в sidenav на странице аккаунта, как здесь?
1741713838807.png

Добавьте это в свой шаблон extra.less:
Код:
/* Icons in sidenav on Account page */
[data-template="account_alerts"], &[data-template="account_reactions"], &[data-template="account_bookmarks"],
&[data-template="account_details"], &[data-template="account_security"], &[data-template="account_privacy"],
&[data-template="account_preferences"], &[data-template="account_signature"], &[data-template="account_upgrades"],
&[data-template="account_connected"], &[data-template="account_applications"], &[data-template="account_following"], &[data-template="account_ignored"] {
    .p-body-sideNavContent a.blockLink {
        &[href*="members/"]:before {
            .m-faContent(@fa-var-user);
        }
        &[href*="account/alerts"]:before {
            .m-faContent(@fa-var-bell);
        }
        &[href*="account/reactions"]:before {
            .m-faContent(@fa-var-thumbs-up);
        }
        &[href*="account/bookmarks"]:before {
            .m-faContent(@fa-var-bookmark);
        }
        &[href*="account/account-details"]:before {
            .m-faContent(@fa-var-user-cog);
        }
        &[href*="account/security"]:before {
            .m-faContent(@fa-var-shield-alt);
        }
        &[href*="account/privacy"]:before {
            .m-faContent(@fa-var-lock);
        }
        &[href*="account/preferences"]:before {
            .m-faContent(@fa-var-cogs);
        }
        &[href*="account/signature"]:before {
            .m-faContent(@fa-var-signature);
        }
        &[href*="account/upgrades"]:before {
            .m-faContent(@fa-var-paypal);
        }
        &[href*="account/connected-accounts"]:before {
            .m-faContent(@fa-var-users-class);
        }
        &[href*="account/applications"]:before {
            .m-faContent(@fa-var-grip-horizontal);
        }
        &[href*="account/following"]:before {
            .m-faContent(@fa-var-user-plus);
        }
        &[href*="account/ignored"]:before {
            .m-faContent(@fa-var-user-minus);
        }
        &[href*="logout"]:before {
            .m-faContent(@fa-var-sign-out);
        }
    }
}
/*****/
Автор
Groot
Просмотры
57
Первый выпуск
Обновление

Рейтинги

0.00 звёзд Оценок: 0

Ещё ресурсы от Groot

  • [TC] Paid Resources
    XenForo [TC] Paid Resources
    Данное дополнение позволит вам продавать ресурсы в XenForo Resource Manager
  • [ZD] Improved Routes
    XenForo [ZD] Improved Routes
    Красивые внутренние URL и пользовательские ссылки на профили и темы.
  • [XB] Thread Chapters
    XenForo [XB] Thread Chapters
    Улучшайте темы вашего форума, объединяя их в виде глав для беспрепятственного рассказывания историй
  • [ZD] Improved Style
    XenForo [ZD] Improved Style
    Незначительные улучшения в поведении стилей и отображении элементов.
  • [Xen-Soluce] Avatar Gallery
    XenForo [Xen-Soluce] Avatar Gallery
    Разрешите своим пользователям выбирать себе аватары из предоставленной вами галереи аватаров.

Поделиться этим ресурсом

Назад
Верх
TeknolojiTeknoloji ForumuTeknoloji Sitesi