oui / oui_instagram
Textpattern CMS 的 Instagram 用户信息和最近图片嵌入插件
1.1.0-beta
2017-05-28 06:05 UTC
Requires
- textpattern/installer: *
- textpattern/lock: 4.6.*
This package is not auto-updated.
Last update: 2024-09-20 23:39:03 UTC
README
轻松显示 Instagram 的最新图片画廊。
插件要求
- 必需: Textpattern CMS 4.6+.
- 推荐: aks_cache 或任何部分缓存系统。
安装
从管理界面
- 下载 编译后的插件文件或源文件以编译自定义文件。
- 将编译后的插件文件内容粘贴到 "管理 > 插件":?event=plugin 选项卡下,然后点击 上传 按钮。
- 通过点击插件预览页面上的 安装 按钮确认插件安装。
- 启用插件并点击 选项 或访问您的 管理 > 预设 选项卡来填写插件首选项。
通过 Composer
安装 Composer 之后…
- 定位您的项目目录:
$ cd /path/to/your/textpattern/installation/dir
- 如果尚未完成,锁定您的 Txp 版本:
$ composer require textpattern/lock:4.6.2
,其中4.6.2
是正在使用的 Txp 版本。 - 安装 oui_instagram:
$ composer require oui/oui_instagram
- 连接到 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 分发。