Title: Pfadiheime
Author: Pfadiheim-Verzeichnis
Published: <strong>2026 年 8 月 2 日</strong>
Last modified: 2026 年 8 月 2 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/pfadiheime.svg)

# Pfadiheime

 作者：[Pfadiheim-Verzeichnis](https://profiles.wordpress.org/pfadiheime/)

[下载](https://downloads.wordpress.org/plugin/pfadiheime.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/pfadiheime/#description)
 * [评价](https://cn.wordpress.org/plugins/pfadiheime/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pfadiheime/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pfadiheime/#developers)

 [支持](https://wordpress.org/support/plugin/pfadiheime/)

## 描述

This plugin provides Gutenberg blocks for the Pfadiheim-Verzeichnis. Each block

lives in its own folder under `build/` and is auto-registered.

#### Calendar block

Embeds a calendar as an iframe. Each calendar is identified by an ID that is
 inserted
into a URL template. Place it with the “Calendar” block or the [pfadiheime_calendar]
shortcode, and set the locale, month count and iframe size in the block sidebar (
or as shortcode attributes).

### Source Code

The source code for this plugin is publicly available at: https://github.com/diegosteiner/
pfadiheime-wp-plugin/

### Configuration

The URL template is read from the `PFADIHEIME_CALENDAR_TEMPLATE_URL` environment

variable. When unset, it defaults to:

    ```
    https://pfadiheime.ch/{locale}/cottages/{id}/occupancies/calendar?months={months}
    ```

Placeholders replaced when building the iframe URL:

 * `{id}` — the calendar ID.
 * `{locale}` — the chosen locale (`de`, `fr` or `it`).
 * `{months}` — the number of months to display.

#### Calendar shortcode

    ```
    [pfadiheime_calendar id="123" locale="de" months="12" width="100%" height="600"]
    ```

 * `id` — the calendar ID (required).
 * `locale` — `de`, `fr` or `it`. Invalid values fall back to `de`. Default `de`.
 * `months` — number of months to display (integer, minimum 1). Default `12`.
 * `width` — CSS width, e.g. `100%` or `800`. Default `100%`.
 * `height` — CSS height, e.g. `600` or `75vh`. Default `600`.

### Build

The plugin uses the official WordPress scripts to build the minified javascript.
Run `npm build` to
 build what needs to be built into the _dist/_ folder.

### Adding a new block

Create a folder under `src/<block-name>/` with its own `block.json` (and a
 render.
php for dynamic blocks). Run `npm run build`; the plugin auto-registers every block
found in `build/`. Note: `build/` is generated (not committed), so run `npm install&&
npm run build` after checkout.

## 区块

该插件提供了 1 个区块.

 *   Calendar Embed a calendar as an iframe by its ID.

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/pfadiheime/`, or install the
     
    zip via Plugins  Add New  Upload Plugin.
 2. Activate “Pfadiheime” through the Plugins screen in WordPress.
 3. Add the “Calendar” block to a page, or use the `[pfadiheime_calendar]`
     shortcode.
 4. Optionally set the `PFADIHEIME_CALENDAR_TEMPLATE_URL` environment variable to
     
    override the default calendar URL template (see Configuration).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Pfadiheime」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Pfadiheim-Verzeichnis ](https://profiles.wordpress.org/pfadiheime/)

[帮助将「Pfadiheime」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pfadiheime)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pfadiheime/)，查看[SVN仓库](https://plugins.svn.wordpress.org/pfadiheime/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/pfadiheime/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pfadiheime/)。

## 更新日志

#### 1.0.0

 * Initial release: Pfadiheime plugin with the “Calendar” block and shortcode.

#### 1.0.1

 * Tested with WordPress 7.0

#### 1.0.2

 * Fix automated review issues

#### 1.0.3

 * Add public repo url

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.1 或更高版本 **
 *  已测试的最高版本为 **7.0.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/pfadiheime/)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[calendar](https://cn.wordpress.org/plugins/tags/calendar/)
   [embed](https://cn.wordpress.org/plugins/tags/embed/)[iframe](https://cn.wordpress.org/plugins/tags/iframe/)
 *  [高级视图](https://cn.wordpress.org/plugins/pfadiheime/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/pfadiheime/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pfadiheime/reviews/)

## 贡献者

 *   [ Pfadiheim-Verzeichnis ](https://profiles.wordpress.org/pfadiheime/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pfadiheime/)