[wordpress插件] Async Social Sharing异步社交分享

wordpress 插件 文章 2020-02-22 11:10 565 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

Simple social sharing plugin that loads the third-party scripts asynchronously

简单的社交共享插件,可异步加载第三方脚本

and after the page loads to improve site performance.

页面加载后,以提高网站性能。

The plugin provides settings to load any of the following sharing widgets:

该插件提供了用于加载以下任何共享小部件的设置:

    • Twitter
    • Twitter

    • Facebook
    • Facebook

    • Google+
    • Google +

    • Linkedin
    • Linkedin

    • Hacker News
    • 黑客新闻

    Available display options include ability to display the sharing widgets on

    可用的显示选项包括在以下位置显示共享窗口小部件的功能:

    above or below content on pages, specific custom post types or blog and archive pages.

    页面,特定自定义帖子类型或博客和存档页面上的内容之上或之下。

    Why is Asynchronous script loading better?

    为什么异步脚本加载更好?

    Asynchronous loading allows multiple files to load parallel to each other.

    异步加载允许多个文件彼此并行加载。

    Instead of having to wait for Twitter to respond with their script, the browser

    浏览器无需等待Twitter响应其脚本,而无需等待

    moves on and starts fetching the next request.

    继续并开始获取下一个请求。

    Dependencies

    依赖项

      • WordPress 3.5+
      • WordPress 3.5 +

      • Content worth sharing
      • 值得分享的内容

      Contributors Welcome

      欢迎贡献者

        Upcoming Versions Wishlist

        即将推出的版本的愿望清单

          • Allow re-arranging of social widgets
          • 允许重新排列社交小部件

          Credits

          信用

            Author

            作者

              1.8.1

              1.8.1

                • Fixed bug where plugin would cause a fatal error for PHP 5.2 and under by

                • 修复了插件会导致PHP 5.2及以下版本致命错误的错误,

                  changing class initialization process.

                • 更改类的初始化过程。

                • Added minor style fix for Facebook sharing widget alignment.
                • 为Facebook共享小部件对齐添加了次要样式修复。

                1.8.0

                1.8.0

                  • Added async_social_display() function to be used as a template tag to output

                  • 添加了 async_social_display()函数,用作输出的模板标记

                    the social sharing widgets anywhere theme developers desire within the loop.

                  • 主题开发人员在循环中所需的任何位置的社交共享小部件。

                  • Added option to allow site administrators to enter their Facebook Application

                  • 添加了允许站点管理员输入其Facebook应用程序的选项

                    ID.

                  • ID。

                  • Added option allowing site administrators to choose if the social sharing

                  • 添加了选项,站点管理员可以选择是否进行社交共享

                    widgets should be output before or after the content.

                    小部件应在内容之前或之后输出。

                    props @dustyf

                  • 道具@dustyf

                  • Changed settings screen to use WordPress default admin styles to fix checkbox

                  • 更改设置屏幕以使用WordPress默认管理样式来修复复选框

                    display in WordPress 3.8+.

                  • 在WordPress 3.8+中显示。

                  • Removed bloated admin stylesheet.
                  • 删除了肿的管理员样式表。

                  • Minor refactoring of plugin instance loading.
                  • 插件实例加载的次要重构。

                  • Minor code formatting changes.
                  • 次代码格式更改。

                  1.7.1

                  1.7.1

                    • Fixed bug where “headers already sent” message was displayed upon plugin

                    • 修复了在插件上显示“标题已发送”消息的错误

                      activation due to blank line at top of main plugin file.

                    • 主插件文件顶部的空白行导致激活。

                    • Enabled automatic plugin updates for WordPress 3.7 users.
                    • 为WordPress 3.7用户启用了自动插件更新。

                    1.7.0

                    1.7.0

                      • Added option to display or hide sharing widgets from posts.
                      • 添加了显示或隐藏帖子中共享小部件的选项。

                      • Restructured file organization.
                      • 重组的文件组织。

                      • Tested compatibility with 3.7
                      • 已测试与3.7的兼容性

                      1.6.2

                      1.6.2

                        • Fixed bug where previous plugin users could not disable the css without

                        • 修复了以前的插件用户无法在没有该插件的情况下禁用css的错误

                          removing and then re-adding the plugin.

                        • 删除然后重新添加插件。

                        • Updated compatibility to support 3.5
                        • 更新了兼容性以支持3.5

                        1.6.1

                        1.6.1

                          • Fixed bug where widgets were not displaying on pages if option was specified.
                          • 修复了以下错误:如果指定了选项,则窗口小部件不会显示在页面上。

                          • Fixed bug where CSS styles for previous installations was still loading,

                          • 修复了以前安装的CSS样式仍在加载的错误,

                            even though the option to disable was selected.

                          • 即使选择了禁用选项。

                          • Expanded post-type multi-selection box area on plugin options page.
                          • 在插件选项页面上扩展了邮政类型的多选框区域。

                          • Added instructions for selecting multiple post types from plugin options page.
                          • 添加了从插件选项页面选择多种帖子类型的说明。

                          • Tested with WordPress 3.5 RC2
                          • 经过WordPress 3.5 RC2测试

                          1.6

                          1.6

                            • Added option to prevent default CSS stylesheet from loading.
                            • 添加了用于阻止加载默认CSS样式表的选项。

                            • Fixed bug where PHP Exception was thrown if post types array was empty.
                            • 修复了如果帖子类型数组为空会引发PHP异常的错误。

                            • Tested with WordPress 3.5 Beta 3
                            • 经过WordPress 3.5 Beta 3的测试

                            1.5.1

                            1.5.1

                            Fixed bug that would cause content in RSS feeds to not display.

                            修复了导致RSS源中的内容无法显示的错误。

                            Fixed bug where PHP Exception was thrown on pages if the display options were

                            修复了显示选项为
                            时页面上抛出PHP异常的错误

                            not set.

                            没有设置。

                            1.5.0

                            1.5.0

                              • Added ability to display social widgets on pages.
                              • 增加了在页面上显示社交小部件的功能。

                              • Added ability to select which custom post types will display the social

                              • 增加了选择哪些自定义帖子类型将显示社交内容的功能

                                widgets.

                              • 小部件。

                              • Reworked async-share.js file.

                              • 重新制作的 async-share.js 文件。

                                Now only the external social scripts that are

                                现在,只有外部社交脚本

                                selected to be displayed will be loaded.

                              • 选择要显示的内容将被加载。

                              • Improved display styles for social widgets.
                              • 改进了社交小部件的显示样式。

                              1.2.0

                              1.2.0

                                • Combined function for plugin’s script and style loading.
                                • 用于插件脚本和样式加载的组合函数。

                                • Fixed bug that was generating a PHP error when no options were set.
                                • 修复了未设置任何选项时会产生PHP错误的错误。

                                • Tested with WordPress 3.4.1
                                • 经过WordPress 3.4.1测试

                                1.1.0

                                1.1.0

                                  • Added Display Options to plugin to allow sharing widgets to be displayed on

                                  • 在插件中添加了显示选项,以允许共享小部件显示在

                                    blog and archive pages.

                                  • 博客和存档页面。

                                  • Fixed bug with Facebook fb-root div not being detected before script loaded.
                                  • 已修复在加载脚本之前未检测到Facebook fb-root div的错误。

                                  • Updated license to GPLv3
                                  • 许可证已更新为GPLv3

                                  1.0.1

                                  1.0.1

                                    • Added lazy loading to async-share.js
                                    • 向async-share.js添加了延迟加载

                                    • Fixed issue with plugin settings link
                                    • 已解决插件设置链接问题

                                    1.0

                                    1.0

                                      • Initial release
                                      • 初始版本

安装步骤

    1. Upload Async Social Sharing to the /wp-content/plugins/ directory.
    2. 将异步社交共享上传到 / wp-content / plugins / 目录。

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

    5. Follow the ‘Settings’ link to select which social sharing widgets to display

    6. 点击“设置”链接以选择要显示的社交共享小部件

      on your site.

    7. 在您的网站上。

    8. Write good content.
    9. 写出好内容。

下载地址
https://downloads.wordpress.org/plugin/async-social-sharing.zip
-EOF-

AI助手支持GPT4.0