Linux 软件免费装

Simple Google Photos Grid

开发者 uwonder
更新时间 2019年11月4日 12:03
PHP版本: 4.0 及以上
WordPress版本: 5.2.4
版权: GPLv2
版权网址: 版权信息

标签

photos gallery album Google Photos

下载

1.4 1.5

详情介绍:

A simple, no-frills solution to display a Google Photos album on your site using a widget or a shortcode. There is only one layout option: grid. There is only one required attribute: album url. That's it, that easy. See a demo and read more about the plugin. The code is also available on Github. Notes Your album on Google Photos must be "public", which means you need to go into Google Photos on the web and set "Sharing options" to on, i.e. "Anyone with the link can see these photos and the people who've been invited or joined." Requires curl or similar to fetch the photo urls. No support is provided. Probably no features will be added. You are free to ask, or to fork. Pull requests accepted.

安装:

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly, or clone from Github.
  2. Activate the plugin through the 'Plugins' screen in WordPress or with wp-cli.
  3. Configure:
Widget Go to Appearance -> Widgets and a new widget named Simple Google Photos Grid should be available to use. Drag to your desired widget area and configure. - Title: Heading of the widget on your site. Default to empty. - Album URL: The full URL to your public gallery on Google Photos. Ideally should be a short, "shared" link (such as https://photos.app.goo.gl/G8EOLs5YtESchh4g1), but any Google Photos URL should do. - Num Photos to Show: Even numbers probably work best. There's a maximum number, not sure what it is, but it's pretty low. - Num Photos per Row: How many photos to show per row? Probably some number that works well with Num Photos. - Cache Interval (in minutes): How long to cache photo URLs before checking the album on Google again. 0 for no cache. Shortcode Place the shortcode in a post, page or theme. [simple_google_photos_grid album-url="https://photos.app.goo.gl/G8EOLs5YtESchh4g1"] Available attributes are:

屏幕截图:

  • Two grids on a page, one placed with a shortcode and one placed with a widget.

更新日志:

1.5 1.4 1.3 1.2 1.1 1.0