Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"env": {
"development": {
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"react-hot-loader/babel"
]
},
"test": {
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": ["@babel/plugin-proposal-class-properties"]
},
"production": {
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-flow"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-react-jsx",
{
"pragma": "wp.element.createElement"
}
]
]
}
}
}
39 changes: 39 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"root": true,
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:jest/recommended",
"plugin:flowtype/recommended"
],
"env": {
"browser": false,
"es6": true,
"node": true,
"mocha": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"react": true,
"wp": true,
"wpApiSettings": true,
"window": true,
"document": true
},
"plugins": ["react", "jsx-a11y", "jest", "flowtype"],
"settings": {
"import/resolver": "webpack"
},
"rules": {
"indent": ["error", 2],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }]
}
}
8 changes: 8 additions & 0 deletions PUBLISH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

# Publishing
We use github actions to automate the deployment via svn. There are a few files that need to be updated then once it has been merged to master create a new matching [release](https://github.com/getyourguide/wordpress-plugin/releases/new) in github

## Update Files with next semver version
- [README.txt]('./README.txt)
- [README.md]('./README.md)
- [getyourguide-widget.php]('./getyourguide-widget.php)
150 changes: 150 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# GetYourGuide WordPress plugin

Contributors: nicolaszanotti, fechu0307, janhrubes, zachgreen, hamid.kamalpour

Tags: plugin, Gutenberg, widget, affiliate, travel, travel widget, activities, activity, tour, tours, booking, attractions, attraction, city

Requires at least: 5.0

Tested up to: 6.1.1

Stable tag: 1.3.11

License: GPLv2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

Get paid to travel. Make money by sharing activities with your readers. Share GetYourGuide's incredible selection of attractions, tours and activities with your readers.

## Installation

This plugin either be installed from the WordPress dashboard, or manually.

### FROM THE WORDPRESS DASHBOARD

1. Visit Dashboard > Plugins > Add New > Search "GetYourGuide"
2. Install Now
3. Visit Dashboard > Plugins
4. Activate the plugin.

### MANUALLY

1. [Download](https://downloads.wordpress.org/plugin/getyourguide-widget.1.3.0.zip) this plugin.
2. Upload the plugin folder to the /wp-content/plugins/ directory.
3. Visit Dashboard > Plugins
4. Activate the plugin.

### Important! Add your GetYourGuide partner ID by navigating to Dashboard > Settings > GetYourGuide.

## Description

Easily promote top-rated tours and activities in your content with [GetYourGuide](https://www.getyourguide.com/).

All of our widgets are fully responsive, and our high-quality, conversion-driven content options can be configured directly within the editor.

Find the right integration type to fit your audience, whether it’s showcasing multiple products directly within your blog post. Check out this [activity widget example](https://widget.getyourguide.com/default/activites.frame?id=code-example&partner_id=8OXMHTJ&widget=activities&number_of_items=3&locale_code=en-us&q=berlin).

Or letting your readers explore everything a destination has to offer. Check out this [city widget](https://widget.getyourguide.com/default/city.frame?id=city-example&partner_id=8OXMHTJ&widget=city&locale_code=en-US&iata=SXF).

TIP: Alter the size of your browser window to see the widgets adapt.

#### Partnering with GetYourGuide

Looking for the best ways to monetize your passion for travel? Discover how GetYourGuide can help you turn your clicks into cash.

https://www.youtube.com/watch?v=oPAOG6U7V_M

## Frequently Asked Questions

Check out [our article on how to get started](https://partner.getyourguide.com/en-us/c/best-practices/new-and-improved-the-getyourguide-wordpress-plugin) with our Wordpress plugin.

If you have any urgent issues please reach out to our dedicated support team through our [contact form](https://partner.getyourguide.com/en-us/contact).

## Screenshots

1. Activities widget
2. City widget
3. Activities widget admin
4. City widget admin
5. Search box
6. A listing of activities in Paris

## Changelog

### 1.0.0

- Basic setup of the plugin
- Search query and amount can be set on the widget
- Currency, locale, and partner ID can be set on the configuration page
- Search query can be overridden when editing posts and pages
- Wordpress UI available in English and German

### 1.1.0

- Added optional campaign parameter

### 1.1.1

- Code maintenance & cleanup

### 1.2.0

- Added support for Gutenberg blocks
- Security improvements

## 1.2.1

- README fixes

## 1.2.2

- More README fixes

## 1.2.3

- Fix author name

## 1.2.4

- Update registration page link

## 1.2.5

- Security improvements
- Code maintenance

## 1.2.6

- README updates
- Image updates

## 1.2.7

- Added analyser script
- Fixed bug regarding iframe hights

## 1.2.8

- Removed deprecated features
- Code maintenance

## 1.2.9

- Bug Fix

## 1.3.0

- Clean up codebase
- Update cache after editing post

## 1.3.1

- Giving verbose output that the plugin is not meant to be used via the WordPress appearance menu

## 1.3.10

- Bug fix campaign parameter

## 1.3.11

- Compatible with PHP 8 and WP 6.1.1
Loading