[wordpress插件] Dinner Reservations Calendar (with Couverts)晚餐预订日历(带Couverts)

wordpress 插件 文章 2020-04-17 09:51 429 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Introduction

简介

The couverts plugin offers an alternative way of embedding the Couverts

couverts插件提供了一种嵌入 Couverts
的替代方法

reservation system on your website.

您网站上的预订系统。

The templates are based on Bootstrap 4.

模板基于Bootstrap 4。

Prerequisits

先决条件

To use it, you will have to request an API key from Couverts.

要使用它,您将必须向Couverts请求API密钥。

Once you obtained a valid key, you need to define these in your wp-config.php as follows:

获得有效密钥后,需要在wp-config.php中定义它们,如下所示:

define('COUVERTS_API_KEY','Your-API-Key');

  define('COUVERTS_API_KEY','YOUR-API-Key'); 

define('COUVERTS_RESTAURANT_CODE','Your-Restaurant-Code');

define('COUVERTS_RESTAURANT_CODE','您的餐厅代码');

// Set this if you are ready to go live.

//如果您准备上线,请进行设置。

Otherwise it will use the // Test API URL define('COUVERTS_API_URL','https://api.couverts.nl/');

否则,它将使用//测试API URL define('COUVERTS_API_URL','https://api.couverts.nl/');

// Optionally you need to define this as either Dutch or English // define('COUVERTS_LANGUAGE','Dutch');

//可选地,您需要将其定义为荷兰语或英语// define('COUVERTS_LANGUAGE','Dutch');

Alternatively you can also define these variables as enviroment variables in a .env file in your project (if you are using a bit more custom setup as for example roots/bedrock).

或者,您也可以在项目的.env文件中将这些变量定义为环境变量(如果您使用的是更多自定义设置,例如根目录/基岩目录)。

Customization

自定义

You may want to adjust the code that is generated.

您可能要调整生成的代码。

To do so you simply copy the templates directory from the plugin into your theme.

为此,您只需将模板目录从插件复制到主题中即可。

You can then adjust them at will.

然后您可以随意调整它们。

Usage

用法

You can embed the reservation in two ways:

您可以通过两种方式嵌入预订:

    1. Use the [couverts] shortcode somewhere in your content
    2. 在您内容的某个地方使用[couverts]简码

    3. Call the couverts_reservation() function from somewhere in your templates.
    4. 从模板中的某个地方调用couverts_reservation()函数。

下载地址
https://downloads.wordpress.org/plugin/dinner-reservations-calendar.1.1.zip
-EOF-

AI助手支持GPT4.0