[wordpress插件] Blog Topics For WPMUWPMU的博客主题

wordpress 插件 文章 2020-03-07 07:40 477 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin creates site-wide topics.

此插件创建站点范围内的主题。

Each blog can be identified as belonging to a single topic.

每个博客都可以标识为属于一个主题。

Blog owners can select a topic for their blog at creation time, and through a menu under settings.

博客所有者可以在创建时通过设置下的菜单为其博客选择主题。

Blog owners can also choose whether or not to include their content in any site-wide aggregated content via the Blog Topics Settings menu.

博客所有者还可以通过“博客主题设置”菜单选择是否将其内容包括在任何站点范围的聚合内容中。

Site Admins can set up the site-wide topics, select a “featured topic,” and manage blog’s topic settings through the Site Admin -> Blogs -> Edit menu.

站点管理员可以设置站点范围内的主题,选择一个“精选主题”,并通过站点管理->博客->编辑菜单来管理博客的主题设置。

This plugin comes with 5 optional widgets (in the widgets subdirectory).

此插件带有5个可选的小部件(在小部件子目录中)。

    1. BT – Topic Name – displays the name of the topic of the current blog.
    2. BT –主题名称–显示当前博客的主题名称。

    3. BT – Related Blogs – displays a linked list of other blogs in the same topic.
    4. BT –相关博客–显示同一主题中其他博客的链接列表。

    5. BT – Related Posts – displays the title of the N most recent posts in the same topic as the current blog.
    6. BT –相关帖子–显示与当前博客相同主题的N个最新帖子的标题。

    7. BT – Featured Topic w/Posts – displays the N most recent posts from the “featured” topic.
    8. BT(带有帖子的精选主题)-显示“精选”主题中的N条最新帖子。

    9. BT – Topics w/Posts – displays the N most recent posts from each topic, with the option of excluding selected topics.
    10. BT(带有帖子的主题)-显示每个主题的N个最新帖子,并可以选择排除所选主题。

    Some of the widgets rely on theme code for topic listing pages and site listing pages, referred to as “portal links.”

    一些小部件依赖主题代码来创建主题列表页面和网站列表页面,称为“门户链接”。

    All portal links can be turned on and off in the widgets.

    所有门户网站链接都可以在小部件中打开和关闭。

    This plugin comes with a sample theme to help you learn how to modify your own theme to incorporate the portal elements.

    该插件附带一个示例主题,可帮助您学习如何修改自己的主题以合并门户元素。

安装步骤

    1. Place the cets_blogtopics.php file and the cets_blog_topics folder in the wp-content/mu-plugins folder.
    2. 将cets_blogtopics.php文件和cets_blog_topics文件夹放置在wp-content / mu-plugins文件夹中。

    3. If desired, place the widget files (located in the widgets subdirectory) in the wp-content/mu-plugins or the plugins folder.

    4. 如果需要,将窗口小部件文件(位于窗口小部件子目录中)放置在wp-content / mu-plugins或plugins文件夹中。

      It’s recommended that you use the plugins folder and only enable these widgets on blogs that need them.

      建议您使用plugins文件夹,并仅在需要它们的博客上启用这些窗口小部件。

      They may be confusing for some users.

    5. 它们可能会使某些用户感到困惑。

    6. Go to Site Admin -> Blog Topics Management to add/edit topics.

    7. 转到站点管理员->博客主题管理以添加/编辑主题。

      You should enter a name and slug for each topic you wish to use.

      您应该为每个要使用的主题输入名称和名称。

      Description is optional.

      说明是可选的。

      It is used in the BT Topic Name widget and in the example theme code.

    8. 在“ BT主题名称”小部件和示例主题代码中使用了它。

    9. Blog admins can go to Settings -> Blog Topic to edit their assigned topic.
    10. 博客管理员可以转到“设置”->“博客主题”来编辑分配给他们的主题。

    If Use of the Portal Aspects are desired

    如果需要使用门户网站方面

      1. By default, none of the widgets use the portal links.

      2. 默认情况下,所有小部件都不使用门户网站链接。

        If you want to use the portal links, examine the sample theme.

        如果要使用门户网站链接,请检查样本主题。

        The most relevant bits of code are in rewrites.php, topics.php, and sites.php.

        与代码最相关的位在rewrites.php,topics.php和sites.php中。

        The portal code rewrites links such as ?topic_id=1 to /topic/slug.

      3. 门户网站代码将诸如?topic_id = 1之类的链接重写为/ topic / slug。

下载地址
https://downloads.wordpress.org/plugin/blog-topics.zip
-EOF-

AI助手支持GPT4.0