AI助手支持GPT4.0
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。 p>
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中定义它们,如下所示: p>
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'); code> pre>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文件中将这些变量定义为环境变量(如果您使用的是更多自定义设置,例如根目录/基岩目录)。 p>Customization自定义 h4>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.为此,您只需将模板目录从插件复制到主题中即可。 p>You can then adjust them at will.然后您可以随意调整它们。 p>Usage用法 h4>You can embed the reservation in two ways:您可以通过两种方式嵌入预订: p>Use the [couverts] shortcode somewhere in your content在您内容的某个地方使用[couverts]简码 li>Call the couverts_reservation() function from somewhere in your templates.从模板中的某个地方调用couverts_reservation()函数。 li> ol>
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');
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');
code> pre>
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文件中将这些变量定义为环境变量(如果您使用的是更多自定义设置,例如根目录/基岩目录)。 p>
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.
为此,您只需将模板目录从插件复制到主题中即可。 p>
You can then adjust them at will.
然后您可以随意调整它们。 p>
You can embed the reservation in two ways:
您可以通过两种方式嵌入预订: p>
ol>
原文出处:http://www.sanshu.cn/a/10873.html
群主管理都是支付大佬