[wordpress插件] Daring Fireball-style Linked List Plugin大胆的Fireball样式链表插件

wordpress 插件 文章 2020-04-12 04:40 499 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin makes your RSS feed behave like Daring Fireball’s linked list posts, and has some extra features to make posting linked lists easier.

此插件使您的RSS Feed的行为类似于Daring Fireball的链接列表帖子,并且具有一些额外功能,可以使发布链接列表更加容易。

Also supports Twitter Tools.

还支持Twitter工具。

Part One

第一部分

Makes your RSS feed for linked-list posts (indicated using a custom field) behave like Daring Fireball.

使RSS提要中的链接列表帖子(使用自定义字段表示)的行为类似于 Daring Fireball

>

>

To use, set the custom field “linked_list_url” to the desired location on a link post.

要使用,请将自定义字段“ linked_list_url”设置为链接文章上的所需位置。

In your RSS feed, the following will happen:

在您的RSS feed中,将发生以下情况:

(i) the item’s RSS permalink becomes the link destination;

(i)该项目的RSS永久链接成为链接目标;

(ii) the actual permalink to your post is inserted as a star glyph at the end of your post;

(ii)在您的帖子末尾以星号字形插入您帖子的实际固定链接;

and


(iii) a star glyph is added in front of your non-linked-list post titles.

(iii)在您的非链接列表帖子标题之前添加了星形标志符号。

Behaviour is customisable in options.

行为可在选项中自定义。

All three parts are customizable, and you can use different glyphs or text if you’d like.

这三个部分均可自定义,并且您可以根据需要使用不同的字形或文本。

For theme designers, the plugin also provides functions (get_the_permalink_glyph(), the_permalink_glyph(), get_the_linked_list_link(), the_linked_list_link(), get_glyph() and is_linked_list()) to customise your design by checking if the item is a linked list item, getting

对于主题设计人员,该插件还提供了功能(get_the_permalink_glyph(),the_permalink_glyph(),get_the_linked_list_link(),the_linked_list_link(),get_glyph()和is_linked_list()),以通过检查项目是否为链接列表项来自定义设计,获取

a permalink with glyph, etc.

带有字形等的永久链接。

Adapted from Jonathan Penn’s WordPress Linked List plugin.

改编自Jonathan Penn的 WordPress链接列表插件

Part Two

第二部分

Add link from post content.

添加帖子内容中的链接。

This feature allows you to set the custom field “linked_list_url” from within the post content.

此功能使您可以在帖子内容中设置自定义字段“ linked_list_url”。

This is especially handy for using with the ‘Press This’ bookmarklet.

与“按此按钮”书签一起使用时特别方便。

When you activate this feature, the DFLL plugin will look at the first line of your post content for a link anchor, and it’ll set that link as the linked_list_url for your post.

激活此功能后,DFLL插件将在帖子内容的第一行查找链接锚点,并将该链接设置为帖子的linked_list_url。

For example, the following post content:

例如,以下帖子内容:

Google!!!.
  

Google !!!
  

This is a link post to Google.

这是指向Google的链接。

… will have its first line removed, the URL http://google.com passed into the custom field linked_list_url, and will have its first line removed to just end up with the text 'This is a link post to Google'

…将删除其第一行,并将URL http://google.com传递到自定义字段linked_list_url中,并将其第一行删除,仅以文本“ This is a link post to Google”结束

.

The text in the anchor (‘Google!!!’) will be ignored.

锚点('Google !!!')中的文本将被忽略。

It's very important to note three requirements: (i) the anchor tag must be in the first line of the post, (ii) the tag must be the only element on that line, and (iii) the line must end in

请务必注意以下三个要求:(i)锚标签必须在帖子的第一行中;(ii)标签必须是该行中的唯一元素;并且(iii)该行必须以以下结尾

a period.

一段时间。

This is the syntax that the ‘Press This’ bookmarklet uses, so you can just hit ‘Press This’ and enter to go to the next line and stop typing.

这是“按此按钮”书签使用的语法,因此您只需按“按此按钮”并输入即可进入下一行并停止输入。

Any text in the anchor will be ignored, and the entire first line will be discarded.

锚点中的任何文本都将被忽略,并且整个第一行都将被丢弃。

This also means that if, for whatever, reason, you like posting link anchors that end in periods as the first line of your blog, you shouldn't activate this checkbox, or you'll end up with linked list posts by accident!<

这也意味着,如果出于某种原因,您希望发布以站点结尾的链接锚作为博客的第一行,则您不应该激活此复选框,否则会偶然获得链接列表的帖子!

/p>

/ p>

This was adapted from CF Setter by Justin Blanton.

这是根据贾斯汀·布兰顿(Justin Blanton)的 CF设置器改编的。

Twitter Tools support

Twitter工具支持

If you're using Twitter Tools, you can customise your tweets to have

如果您使用的是 Twitter工具,则可以自定义推文以具有

your custom glyph or text appear before either your “regular” or linked-list posts.

您的自定义字形或文字会显示在“常规”或链接列表帖子之前。

Questions or suggestions?

有疑问或建议吗?

Look me up on Twitter.

Twitter 上查找我。

Usage

用法

    • When adding a link, create a normal blog post, but add a custom field “linked_list_url” with the desired link URL.

    • 添加链接时,请创建普通的博客文章,但添加具有所需链接URL的自定义字段“ linked_list_url”。

      The RSS feed item will automatically point to that URL.

    • RSS提要项将自动指向该URL。

    • When posting, to insert a link without setting the custom field manually, put your URL wrapped in an anchor tag in the first line, ending with a period.

    • 发布时,要在不手动设置自定义字段的情况下插入链接,请将您的URL放在第一行的锚标记中,以句点结尾。

      For example: Doesn’t matter what’s in here.

    • 例如:这里的内容无关紧要

    License

    许可证

    Copyright (c) 2010-2011 YJ Soon

    版权所有(c)2010-2011 YJ不久

    Permission is hereby granted, free of charge, to any person obtaining

    特此授予获得以下内容的任何人免费的许可

    a copy of this software and associated documentation files (the

    该软件和相关文档文件的副本(

    “Software”), to deal in the Software without restriction, including

    “软件”),无限制地处理软件,包括

    without limitation the rights to use, copy, modify, merge, publish,

    但不限于使用,复制,修改,合并,发布,
    的权利

    distribute, sublicense, and/or sell copies of the Software, and to

    分发,再许可和/或出售本软件的副本,并分发给

    permit persons to whom the Software is furnished to do so, subject to

    允许提供软件的人员这样做,但必须遵守

    the following conditions:

    满足以下条件:

    The above copyright notice and this permission notice shall be

    上述版权声明和本许可声明应为

    included in all copies or substantial portions of the Software.

    包含在该软件的所有副本或实质性部分中。

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,

    “按原样”提供该软件,没有任何形式的保证,

    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF

    明确或隐含的,包括但不限于
    的保证

    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND

    可销售性,特定目的的适用性和

    NONINFRINGEMENT.

    非侵权。

    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE

    在任何情况下,作者或版权持有人均不得为

    LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION

    无论在任何诉讼中,均对任何索赔,损害或其他责任承担责任

    OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION

    合同,侵权或其他形式的,来自或与之相关的

    WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    该软件或该软件的使用或其他处理。

安装步骤

    • Upload linked-list.php to the /wp-content/plugins/ directory
    • linked-list.php 上载到 / wp-content / plugins / 目录

    • Activate the plugin through the Plugins menu in WordPress
    • 通过WordPress中的 Plugins 菜单激活插件

    • Customise extra text in your link titles and body in Settings -> DF-Style Linked List.
    • 在“设置”-> DF样式链接列表中,在链接标题和正文中自定义多余的文本。

    • To customize the theme, use the child theme provided, or check out my theme customization instructions.
    • -list-plugin“ rel =” nofollow“>主题自定义说明。

    • Some basic instructions follow: Templates can be customised by using the provided functions to check whether your are rendering a linked list item or not.

      一些基本说明如下:可以使用提供的功能来自定义模板,以检查您是否正在呈现链接列表项。

      For example:

      例如:

      ….the top part of a template….

      ....模板的顶部....

                

        <?php if(is_linked_list()):?>      

      ...other HTML formatting...      

      ...其他HTML格式...      

      This is a linked list link      

      这是一个链接列表链接      

      ...other HTML formatting...    

      ...其他HTML格式...    

            

      <?php else:?>      

      ...other HTML formatting...      

      ...其他HTML格式...      

      This is a normal post link      

      这是正常的帖子链接      

      ...other HTML formatting...    

      ...其他HTML格式...    

      <?php endif;

      ?>  

      ?>  

      <?php结束;

      ?>

      ?>

      <?php endif;

      ?>

      ?>

      ...the rest of the template...

      模板的其余部分

    • Essentially, use the is_linked_list() function to check, then alter your template the way you wish to make it look or act differently.

      基本上,请使用 is_linked_list()函数进行检查,然后以希望使其外观或行为不同的方式更改模板。

    • Other functions you can use are get_the_permalink_glyph(), the_permalink_glyph(), get_the_linked_list_link(), the_linked_list_link()

    • 您可以使用的其他函数是 get_the_permalink_glyph() the_permalink_glyph() get_the_linked_list_link() the_linked_list_link()

      code> and get_glyph().

    • 代码>和 get_glyph()

    • For more information about customizing wordpress templates, view the “Template Tags” document on the WordPress Codex<

    • 有关自定义wordpress模板的更多信息,请查看 WordPress Codex <上的“ Template Tags”文档。

      /li>

      / li>

    • To enable the first link and Twitter Tools functionality or find out more, turn them on in the checkbox under Settings.
    • 要启用第一个链接和Twitter工具功能或了解更多信息,请在“设置”下的复选框中将其打开。

下载地址
https://downloads.wordpress.org/plugin/daring-fireball-linked-list.2.7.4.zip
-EOF-

AI助手支持GPT4.0