內容簡介
你是否也厭倦了你後台的無盡側邊欄清單?那麼不用擔心,42functions在這裡拯救你!我們通過優雅地將你的小工具分類為一個清晰的視圖來實現這一點。我們通過將預定義的類別分組並僅顯示你想要的類別來實現這一點。
使用多個佈景主題嗎?
不用擔心,我們已經涵蓋了這部分,插件識別你使用的主題,並顯示相應的設置!
太懶惰分類您的主題嗎?
不用擔心,如果你的開發人員使用了正確的前綴,我們也可以為你分類主題。只需按下自動格式化按鈕,插件將開始將你的側邊欄分組。請注意:如果此功能對你不起作用,請不要抱怨我們,請向構建你的主題的開發人員提出抱怨。
我的側邊欄很好,但我討厭重複的小工具!
那麼就不要使用我們的插件來進行美妙的分類,而是使用它進行側邊欄複制。這只是包含另一個側邊欄的小工具。
開發人員
您可能已經注意到我們實現了一個自動格式化按鈕。我們想與您分享我們的知識,以便在啟用此插件時讓您盡可能懶惰。所以喝杯咖啡吧,因為它是如何工作的:
我們循環遍歷所有已註冊的側邊欄。
當一個側邊欄具有“類別”字段時,我們將其視為我們的活動側邊欄。
我們將側邊欄的ID分拆為下劃線(_)或連字符(-),當拆分實際有效時,第一個組被視為類別。
你的側邊欄在其他側邊欄下列出。
ID 轉換示例:
post-archive-header | 結果是類別:post
post_archive_header | 也會結果是類別:post
postarchiveheader | 結果是類別:other
外掛標籤
開發者團隊
原文外掛簡介
Are you also tired of those endless list of sidebars in your backend? Then fear no longer, 42functions is here to rescue you! We do that be elegantly categorise your widget into a clarifying view. We do that by grouping the pre defined categories together and simply showing only the one category you want.
Using multiple themes?
No worries we got that covered, the plugin recognizes the theme your using and shows you the corresponding settings!
To lazy to categorise your theme?
No worries we also can categorise theme for you, (if your developer uses proper prefixes). Just press the autoformat button and the plugin will start grouping your sidebars together. Please note: If this functionality doesn’t work for you, don’t complain at us, complain at the developer building your theme.
My sidebars are fine, but I hate duplicated widgets!
Well then don’t use our plugin for the wonderfull categorising but use it for the sidebar duplicator. This is simply a widget containing another sidebar.
Developer
You might have notice’d we’d implemented a autoformat button. We’de like to share our knowlege with you so you can be as lazy as you can get when activating this plugin. So wake up and take some coffee because this is how it works:
We loop trough all registered sidebars.
When a sidebar has a ‘category’ field we take that as our active sidebar.
We split the id of the sidebar on a underscore (_) or a hyphen (-), when the splitting actually works the first group is considered as the category.
Your sidebar is listed under the other sidebars.
Example of id conversions:
post-archive-header | Will result in category: post
post_archive_header | Will also result in category: post
postarchiveheader | Will result in category: other
