[wordpress插件] Blogroll Widget with RSS Feeds带有RSS源的Blogroll小部件

wordpress 插件 文章 2020-03-07 16:10 442 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This WordPress Widget allows you to display the recent posts of your blogroll links via RSS Feeds as a sidebar widget.

此WordPress窗口小部件可让您通过RSS Feed作为侧边栏窗口小部件显示Blogroll链接的最新帖子。

The Plugin works without Javascript and without AJAX.

该插件无需Javascript和AJAX即可使用。

It uses the WordPress standard links database and honors the

它使用WordPress标准链接数据库并尊重

visible and target settings as defined for each link (private links are not shown, links are displayed in the same or

每个链接定义的可见设置和目标设置(未显示专用链接,链接以相同或
显示

in a new window as specified).

在指定的新窗口中)。

The Plugin is easy to install, the Widget is simple to use and highly customizable.

插件易于安装,窗口小部件易于使用且可高度自定义。

You can simply switch on / off, select or type in the various configurations and settings.

您只需打开/关闭,选择或键入各种配置和设置即可。

You can configure this Widget in the WordPress Appearance Widgets SubPanel as follows:

您可以按以下步骤在WordPress外观小部件子面板中配置此小部件:

    • add an own title to the sidebar widget
    • 在侧边栏小部件中添加自己的标题

    • define how many items you want to display
    • 定义要显示的项目数

    • choose the link category of the items (all links or one of your link categories)
    • 选择项目的链接类别(所有链接或您的链接类别之一)

    • select the item order (link name ascending, link name descending, link id ascending, link id descending, random order)
    • 选择项目顺序(链接名称升序,链接名称降序,链接ID升序,链接ID降序,随机顺序)

    • show the images entered to the respective links or let the plugin generate website thumbnails (via m-software.de) – NOT RECOMMENDED, as this service does not work properly anymore!
    • 显示输入到相应链接的图像,或让插件通过m-software.de生成网站缩略图-不推荐,因为此服务不再正常工作!

    • define the image size
    • 定义图像大小

    • show blogroll links
    • 显示博客链接

    • add the ‘rel=nofollow’ attribute to the blogroll links
    • 将“ rel = nofollow”属性添加到Blogroll链接

    • define how many feed post links you want to display
    • 定义要显示的Feed链接的数量

    • choose if you want to shorten the feed post link text and define the length in characters
    • 选择是否要缩短摘要发布链接文本并以字符为单位定义长度

    • add the ‘rel=nofollow’ attribute to the feed post links
    • 将“ rel = nofollow”属性添加到供稿帖子链接

    • show feed post excerpts
    • 显示供稿帖子摘录

    • define how many characters of the feed post excerpt you want to display
    • 定义要显示的供稿帖子摘录中的多少个字符

    Before using the Blogroll Widget with RSS Feeds make sure, that you have entered the right RSS Addresses to your links in the Links

    在将Blogroll窗口小部件与RSS源一起使用之前,请确保已在链接中为链接输入了正确的RSS地址

    Subpanel.

    子面板。

    Otherwise this Plugin will not work correctly.

    否则,此插件将无法正常工作。

    No item is shown when no RSS Address is entered!

    如果没有输入RSS地址,则不会显示任何项目!

    With this you

    有了这个你

    have a further possibility to configure the Widget output.

    还可以配置Widget输出。

    When you do not enter a RSS Address to a link, it will not be

    如果您不输入链接的RSS地址,则不会被

    displayed in the Widget.

    显示在窗口小部件中。

    Alternative to the WordPress Appearance Widgets SubPanel you can add and configure the Blogroll Widget with RSS Feeds directly

    作为WordPress外观小部件子面板的替代,您可以直接使用RSS源添加和配置Blogroll小部件

    in your theme file (e.g. sidebar.php).

    在您的主题文件(例如sidebar.php)中。

    For details please see the installation tab.

    有关详细信息,请参见安装选项卡。

    Blogroll Widget with RSS Feeds requires WordPress Version 2.8 or higher

    具有RSS Feed的博客小部件需要WordPress 2.8或更高版本

    Available Languages

    可用语言

安装步骤

    1. Unzip the ZIP plugin file
    2. 解压缩ZIP插件文件

    3. Copy the blogroll-widget-rss folder into your wp-content/plugins/ directory
    4. blogroll-widget-rss 文件夹复制到您的 wp-content / plugins / 目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    7. Go to the Appearance Widgets SubPanel to add the Blogroll Widget with RSS Feeds to your sidebar and configure it
    8. 转到外观小部件子面板,将带有RSS源的Blogroll小部件添加到侧边栏并进行配置

    PHP Code and Configuration:

    PHP代码和配置:

    Alternative to the WordPress Appearance Widgets SubPanel you can add and configure the Blogroll Widget with RSS Feeds directly

    作为WordPress外观小部件子面板的替代,您可以直接使用RSS源添加和配置Blogroll小部件

    in your theme file (e.g. sidebar.php).

    在您的主题文件(例如sidebar.php)中。

    In this case call the function

    在这种情况下,调用函数 <?php show_blogroll_widget_rss();。

    ?> at the

    ?>

    place in your sidebar you want to show it.

    放在侧边栏中要显示的位置。

    This will display the Blogroll Widget with RSS Feeds with the default

    这将显示带有RSS Feed的Blogroll窗口小部件,其默认设置为

    configurations.

    配置。

    The widget output starts with

    • and ends with
    .

    小部件输出以

    • 开始,以 结尾。

      You can put anything what and as

      您可以放置​​任何内容和内容

      you want around it.

      您想要解决这个问题。

      To configure the Blogroll Widget with RSS Feeds in the theme file, please add an array of settings to the function.

      要使用主题文件中的RSS Feed配置Blogroll窗口小部件,请向该功能添加一系列设置。

      Following the

      跟随

      array with the defaults:

      具有默认值的数组:

        <?php show_blogroll_widget_rss(array(    

      'show_items' => -1,    

      'show_items'=> -1,    

      'category' => false,    

      '类别'=>否,    

      'item_order' => 'link_name ASC',    

      'item_order'=>'链接名称ASC',    

      'show_image' => 'show-no-images',    

      'show_image'=>'显示无图像',    

      'thumb_size' => 50,    

      'thumb_size'=> 50,    

      'show_link' => 0,    

      'show_link'=> 0,    

      'show_link_nf' => 0,    

      'show_link_nf'=> 0,    

      'feed_items' => 1,    

      'feed_items'=> 1,    

      'shorten_feedlink' => 0,    

      'shorten_feedlink'=> 0,    

      's_f_length' => 20,    

      's_f_length'=> 20,    

      'feed_link_nf' => 0,    

      'feed_link_nf'=> 0,    

      'show_summary' => 0,    

      'show_summary'=> 0,    

      'summary_length' => 100 ) );

      'summary_length'=> 100));

      ?>

      ?>

      PHP configuration options:

      PHP配置选项:

        • show_items => -1 displays all items, any other number displays the number amount of items
        • show_items => -1 显示所有项目,任何其他数字显示项目数

        • category => false for all links, otherwise the number of the respective link category id
        • category => false (所有链接),否则为各个链接类别ID的数字

        • item_order => either link_name ASC, or link_name DESC, or link_id ASC, or link_id DESC,

        • item_order => link_name ASC ,或 link_name DESC ,或 link_id ASC link_id DESC

          or rand()

        • rand()

        • show_image => either show-no-images, or show-my-own-images, or create-thumbnails

        • show_image => 不显示图像,或显示我自己的图像,或创建缩略图

          >

          >

        • thumb_size => any number greater than 10 defines the pixel size of the images
        • thumb_size =>任何大于10的数字定义图像的像素大小

        • show_link => 0 = no blogroll links, 1 = display blogroll links
        • show_link => 0 =无博客链接, 1 =显示博客链接

        • show_link_nf => 0 = no 'rel=nofollow' attribute is added to blogroll links, 1 = adds 'rel=nofollow' attribute to blogroll links

        • show_link_nf => 0 =未将'rel = nofollow'属性添加到博客链接, 1 =将'rel = nofollow'属性添加到博客链接

          >

          >

        • feed_items => any number between 1 and 10 defines how many feed post links are displayed
        • feed_items => 1到10之间的任何数字定义显示多少个feed帖子链接

        • shorten_feedlink => 0 no feed post link text shortening, 1 = shorten the feed post link text
        • shorten_feedlink => 0 不缩短供稿发布链接文本, 1 =缩短供稿发布链接文本

        • s_f_length => number of characters of feed post link text
        • Feed链接文本的

        • s_f_length => 数量

        • feed_link_nf => 0 = no 'rel=nofollow' attribute is added to feed post links, 1 = adds 'rel=nofollow' attribute to feed post links<

        • feed_link_nf => 0 =没有将'rel = nofollow'属性添加到订阅源链接, 1 =将'rel = nofollow'属性添加到订阅源链接<

          /li>

          / li>

        • show_summary => 0 = no feed post excerpts, 1 = display feed post excerpts
        • show_summary => 0 =无摘要信息摘录, 1 =显示摘要信息摘录

        • summary_length => any number between 10 and 999 defines how many characters of the feed post excerpts are displayed
        • summary_length => 10到999之间的任何数字定义了供稿帖子摘录中显示的字符数

        In the array you only need to define the configurations differing to the defaults, for the other configurations

        在阵列中,对于其他配置,您只需要定义与默认设置不同的配置

        the defaults are taken automatically.

        默认为自动。

        So if you only want to add the feed post excerpts with 100 characters, your PHP

        因此,如果您只想添加100个字符的供稿摘录,则您的PHP

        Code would be

        代码将是 <?php show_blogroll_widget_rss(array('show_summary'= 1));

        ?>.

        ?>

        Display Blogroll RSS Widget on a single page:

        在单个页面上显示Blogroll RSS窗口小部件:

        If you would like to display the Blogroll RSS Widget on a single page (instead or additionally to the sidebar), you can

        如果您希望在单个页面上显示Blogroll RSS窗口小部件(而不是在边栏上显示),可以

        do this in your page.php theme file.

        在page.php主题文件中执行此操作。

        After the code the_content(); you enter the PHP Code of the Blogroll RSS Widget

        在代码 the_content(); 之后,输入Blogroll RSS窗口小部件的PHP代码

        with your individual configuration into a if clause statement group by using the

        使用
        将您的个人配置放入if子句语句组

        WordPress Page Conditional Tag, e.g.

        WordPress页面条件标签,例如

        for

        对于

        the single page with the ID 167: if ( is_page('167') ) { your blogroll rss widget code }

        ID为167的单个页面: if(is_page('167')){您的blogroll rss小部件代码}

下载地址
https://downloads.wordpress.org/plugin/blogroll-rss-widget.zip
-EOF-

AI助手支持GPT4.0