oui/oui_instagram

Textpattern CMS 的 Instagram 用户信息和最近图片嵌入插件

安装: 6

依赖: 0

建议者: 0

安全性: 0

星标: 5

关注者: 3

分支: 3

开放性问题: 1

类型:textpattern-plugin

1.1.0-beta 2017-05-28 06:05 UTC

This package is not auto-updated.

Last update: 2024-09-20 23:39:03 UTC


README

轻松显示 Instagram 的最新图片画廊。

插件要求

安装

从管理界面

  1. 下载 编译后的插件文件或源文件以编译自定义文件。
  2. 将编译后的插件文件内容粘贴到 "管理 > 插件":?event=plugin 选项卡下,然后点击 上传 按钮。
  3. 通过点击插件预览页面上的 安装 按钮确认插件安装。
  4. 启用插件并点击 选项 或访问您的 管理 > 预设 选项卡来填写插件首选项。

通过 Composer

安装 Composer 之后…

  1. 定位您的项目目录: $ cd /path/to/your/textpattern/installation/dir
  2. 如果尚未完成,锁定您的 Txp 版本: $ composer require textpattern/lock:4.6.2,其中 4.6.2 是正在使用的 Txp 版本。
  3. 安装 oui_instagram: $ composer require oui/oui_instagram
  4. 连接到 Txp 管理界面并点击 选项 或访问您的 管理 > 预设 选项卡来填写插件首选项。

文档

查看嵌入的帮助文件以获取更多信息。

示例

单标签使用

// Instagram username as a link to the related account.
<txp:oui_insta_user />

// List of recent Instagram images linked to their related Instagram pages.
<txp:oui_insta_images />

容器标签使用

// Instagram avatar as a link to the related account.
<txp:oui_insta_user>
    <txp:oui_insta_user_info type="avatar" link="Instagram" />
<txp:oui_insta_user>

// List of recent Instagram images linked to their related Instagram pages.
// Each image is folowed by its caption, its author and its post date.
<txp:oui_insta_images>
    <txp:oui_insta_image_url><txp:oui_insta_image /></txp:oui_insta_image_url>
    <txp:oui_insta_image_info />
    <txp:oui_insta_image_author />, <txp:oui_insta_image_date />
</txp:oui_insta_images>

作者

Nicolas Morand 感谢 Textpattern 社区和核心团队。

许可

此插件根据 GPLv2 分发。