承接 cyberitas/wp-pinterest-rss-widget 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cyberitas/wp-pinterest-rss-widget

Composer 安装命令:

composer require cyberitas/wp-pinterest-rss-widget

包简介

Wordpress pinterest RSS Widget

README 文档

README

=== Pinterest RSS Widget ===

PHP 8 Compatible fork of the original pinterest-rss-widget WordPress plugin.

== Original Code ==

Contributors: bkmacdaddy, AidaofNubia, thewebprincess, leepettijohn Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC Tags: Pinterest, rss, feed, widget Requires at least: 2.8.4 Tested up to: 4.1.1 Stable tag: trunk

A widget to display thumbnails and titles of the latest Pinterest Pins from a specific user via their Pinterest RSS feed

== Description ==

This plugin allows you to place a widget on your sidebar that fetches the most recent contents of a Pinterest user's RSS feed and displays the corresponding thumbnail images. You can choose whether to show the description below the image, and you can set the height and width of the thumbnails to fit your theme. You also have the option of showing 4 different sizes of the official "Follow Me On Pinterest" button below the list of your pins.

You can also use this plugin from your theme templates, to display images lists anywhere else on your blog and you can easily give them a fixed size or a maximum size with CSS styling.

Starting with plugin version 1.3, you can also add a list of thumbnails of your Pins to a post or a page in the editor using the shortcode [prw username="Your Pinterest Username"]. (See FAQs for instructions).

Version 1.4 adds the capability of showing pins from a specific board in the widget or shortcode, rather than just all of the latest pins from a specific user. (See FAQs for instructions).

Note: This plugin is heavily based on the Image Feed Widget plugin created by Yorik van Havre (http://wordpress.org/extend/plugins/image-feed-widget/). As of version 2.0 it also utilizes the jQuery NailThumb script for image resizing (http://www.garralab.com/nailthumb.php) and no longer utilizes the timthumb.php script.

== Installation ==

  1. Upload the folder pinterest-rss-widget and its contents to the /wp-content/plugins/ directory or use the wordpress plugin installer
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. A new "Pinterest RSS Widget" will be available under Appearance > Widgets, where you can add it to your sidebar and edit all settings of the plugin.

== Frequently Asked Questions ==

= How do I use the shortcode in the post or page editor? =

While editing the post or page that you want to add your Pins to, enter the shortcode [prw username="Your Pinterest Username"]. At the very minimum you have to include the username parameter, substituting "Your Pinterest Username" with your actual Pinterest username. The rest of the parameters are the same as listed below in the template tags explanation, and the defaults are also the same. Here's an example:

[prw username="bkmacdaddy" boardname="design-inspiration" maxfeeds="10" divname="myList" printtext="0" target="newwindow" useenclosures="yes" thumbwidth="100" thumbheight="100" showfollow="medium"]

The above example will show the 10 latest Pins from bkmacdaddy's Design Inspiration board, in a div class titled "pins-feed-myList". Each thumbnail will be 100 x 100 pixels with no description below them. When clicked on, the Pin will open in a new tab/window, and the Follow Me On Pinterest button at the bottom will be the medium sized one.

If you leave out any of the parameters they will revert to the defaults listed below.

= How do I use the plugin in my theme? =

Anywhere in your theme templates, you can display the list of latest Pins thumbnails by placing the following code where you want them to appear:

<?php get_pins_feed_list($username, $boardname, $maxfeeds, $divname, $printtext, $target, $useenclosures, $thumbwidth, $thumbheight, $showfollow); ?>

Where:

  • username is the Pinterest username you wish to display Pins from (mandatory)
  • boardname is the slug (URL) of a specific board. This must be the actual part of the URL that designates the board (i.e. http://pinterest.com/bkmacdaddy/**design-inspiration**/ - the portion in bold) (optional)
  • maxfeeds is the maximum number of Pins to display (optional, default = 25)
  • divname is a name suffix for the list class. "myList" will become "pins-feed-myList" (optional)
  • printtext must be 1 if you want the first few words of the Pin description to be printed below the thumbnail (optional)
  • target is "samewindow" or "newwindow", depending on where you want links to open (optional, default = samewindow)
  • useenclosures is "yes" or "no" (optional, default = yes). Use this if you don't want to use the tag in the feed and force the script to find an image link in the feed item description.
  • thumbwidth is a number that will set the width in pixels of the Pin's thumbnail (optional, default = 150)
  • thumbheight is a number that will set the height in pixels of the Pin's thumbnail (optional, default = 150)
  • showfollow is "large", "medium", "small", "tiny" or "none" (optional, default = none). Use this if you want to show the "Follow Me On Pinterest" button below the thumbnails. Select the size that best fits the space allowed ("large" is 156x26, "medium" is 78x26, "small" is the square 61x61 logo, and "tiny" is the 16x16 logo.)

Example:

<?php get_pins_feed_list('bkmacdaddy', 'design-inspiration', 10, 'myList', 1, 'newwindow', 'yes', 125, 125, 'large'); ?>

== Screenshots ==

  1. The widget settings
  2. Widget on the front end with 9 Pins and titles displaying
  3. Choose one of four buttons (or none) to display beneath the list of Pins

== Changelog ==

= 2.2.5 =

  • Fixed issue with new Pinterest https URL

= 2.2.4 =

  • Added fix for "Call to undefined method WP_Error::set_timeout()"

= 2.2.3 =

  • Removed extraneous line left in accidentally in 2.2.2

= 2.2.2 =

  • Removed problematic deregistering of WordPress jQuery
  • Plugin now uses built-in WordPress jQuery

= 2.2.1 =

  • Fixed problem with wrong version in repository

= 2.2 =

  • Fixed code to work with latest version of WordPress (3.5)

= 2.01 =

  • Added timeout for RSS feed retrieval to avoid Call to undefined method WP_Error::get_item_quantity()

= 2.0 =

  • Removed timthumb.php and replaced jQuery NailThumb for image resizing

= 1.5 =

  • Updated to latest version of timthumb.php

= 1.4 =

  • Added the capability to show pins from a specific board

= 1.3.2 =

  • Recoded to remove ob_ functions that were not working on certain server configurations

= 1.3.1 =

  • Repaired error in shortcode

= 1.3 =

  • Added shortcode for use in posts and pages

= 1.2.5 =

  • Added ability to choose 4 different sizes of "Follow Me On Pinterest" buttons

= 1.2.4 =

= 1.2.3 =

  • Added FAQS based on some troubleshooting
  • Added 2 contributors for their testing assistance and suggestions
  • Tweaked instructions on the widget settings

= 1.2.2 =

  • Fixed directory path errors on WP Multisite

= 1.2.1 =

  • Corrected "Follow Me On Pinterest" button image errors

= 1.2 =

  • Added "Follow Me On Pinterest" button

= 1.1 =

  • Improved CSS styles for better universal use

= 1.0 =

  • First version

== Upgrade Notice ==

= 1.4 =

Originally from https://plugins.trac.wordpress.org/browser/pinterest-rss-widget/#trunk

Last committed to 6 years ago.

Began breaking in PHP 8 and so Cyberitas has taken over and made a fix for this plugin for PHP 8.

cyberitas/wp-pinterest-rss-widget 适用场景与选型建议

cyberitas/wp-pinterest-rss-widget 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 258 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「wordpress」 「rss」 「pinterest」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 cyberitas/wp-pinterest-rss-widget 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 cyberitas/wp-pinterest-rss-widget 我们能提供哪些服务?
定制开发 / 二次开发

基于 cyberitas/wp-pinterest-rss-widget 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 258
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2021-11-23