没有合适的资源?快使用搜索试试~ 我知道了~
transit:与 WMATA API 一起使用的Craft.io CMS 插件
共31个文件
php:21个
html:5个
jpg:2个
需积分: 12 0 下载量 138 浏览量
2021-06-27
11:46:23
上传
评论
收藏 260KB ZIP 举报
温馨提示
过境 Craft CMS Plugin 与 WMATA API 一起使用。 安装 将整个传输目录上传到服务器上的Craft.io/插件。 从控制面板导航到您站点的插件设置。 单击安装。 注册 WMATA 开发人员密钥 (developer.wmata.com) 并将密钥保存在插件的设置中。 单击“刷新站点”和“刷新线路”按钮安装站点和线路。 字段类型 Transit 带有两种字段类型,即地铁站和地铁线。 像使用 Craft 中任何条目类型的任何其他字段一样使用它们。 用途 在包含地铁站字段的条目模板中,使用 Transit 获取车站信息和实时下一列火车预测。 getStationInformation(stationCode) 车站信息存储在 Craft 数据库中以提高性能并保存 API 调用,但数据与匹配,地址字段除外。 可用字段和说明*: 地址_城市 地址_状态 街道地址
资源推荐
资源详情
资源评论
收起资源包目录
transit-master.zip (31个子文件)
transit-master
records
Transit_KeyRecord.php 389B
Transit_LineRecord.php 593B
Transit_StationRecord.php 944B
TransitPlugin.php 441B
services
Transit_KeyService.php 644B
Transit_ApiService.php 1KB
Transit_StationService.php 3KB
Transit_LineService.php 1KB
Transit_BusService.php 151B
Transit_IncidentService.php 979B
models
Transit_LineModel.php 417B
Transit_KeyModel.php 213B
Transit_StationModel.php 765B
variables
TransitVariable.php 625B
version.json 24B
controllers
Transit_SettingsController.php 1KB
Transit_LinesController.php 379B
Transit_StationsController.php 394B
fieldtypes
Transit_LinesFieldType.php 479B
Transit_StationsFieldType.php 494B
LICENSE 1KB
README.md 6KB
resources
screenshots
new_field.jpg 239KB
cp_panel.jpg 207KB
templates
index.html 2KB
_fieldtypes
stations.html 244B
lines.html 251B
_widgets
bus_incidents.html 217B
rail_incidents.html 217B
widgets
Transit_BusIncidentsWidget.php 369B
Transit_RailIncidentsWidget.php 373B
共 31 条
- 1
资源评论
实践千百次练习而
- 粉丝: 24
- 资源: 4611
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功