faithcatholic/masstimes_widget 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

faithcatholic/masstimes_widget

Composer 安装命令:

composer require faithcatholic/masstimes_widget

包简介

A custom Drupal module embedding a full-screen interactive map and sidebar list of Catholic parishes, powered by the MassTimes Trust database & API.

README 文档

README

A custom Drupal module embedding a full-screen interactive map and sidebar list of Catholic parishes, powered by the MassTimes Trust database & API.

🚀 Features

  • Auto-detect your current location via browser geolocation
  • Fallback to configurable default latitude/longitude if geolocation is unavailable or denied
  • Search by ZIP code or City, State (US-only autocomplete via Nominatim)
  • Interactive map (Leaflet) with parish markers & popups
  • Scrollable sidebar of parish details, synchronized with map clicks
  • Mobile-friendly responsive layout

⚙️ Configuration

  1. In the Block layout screen, place the MassTimes Map Fullscreen Block.

  2. Under Default latitude and Default longitude, enter your preferred fallback coordinates.
    If the user declines geolocation or no URL query parameters are present, the map will center on these values.

    Default Lat/Long Settings

  3. When viewing the page, the map will render full-width with the sidebar alongside:

    Full-Screen Map & Sidebar

🔧 Installation

  1. Clone or download into web/modules/custom/mass_times_widget.
  2. Ensure dependencies in mass_times_widget.info.yml are met (e.g. leaflet module).
  3. Run drush en mass_times_widget -y (or enable via the UI).
  4. Clear caches: drush cr.

🧩 How It Works

  • Block plugin (MassTimesMapBlock) fetches user coordinates from URL (?lat=…&long=…) or falls back to the values configured on the block.
  • It calls the MassTimes API (https://apiv4.updateparishdata.org/Churchs/) to retrieve nearby churches, sorts them by distance, and builds a GeoJSON feature collection.
  • The Twig template (masstimes-map.html.twig) renders the map container and sidebar.
  • The accompanying JS behavior initializes the Leaflet map, adds parish markers, and ties marker clicks to opening the corresponding <details> in the sidebar.
  • The module ships with CSS to ensure a full-width layout, responsive sidebar, and styled parish cards.

🙏 Credits

This module leverages:

  • Peter Wagner & the MassTimes Trust (masstimes.org) for their comprehensive global database of Catholic parishes and worship times.
  • Leaflet for interactive maps.
  • Nominatim (OpenStreetMap) for address/ZIP autocomplete.

📝 License

Licensed under GPL-2.0-or-later. All church data © Mass Times Trust; used with permission.

faithcatholic/masstimes_widget 适用场景与选型建议

faithcatholic/masstimes_widget 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 103 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 faithcatholic/masstimes_widget 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-21