Tour page (boards 2 and 3):
- Replace the blurred 'Welcome to {city}' hero with a breadcrumb and a photo
gallery (1 large + 2, 'All N photos' opens the lightbox); the H1 title,
rating with review count and facts follow; booking card stays sticky
- Phones/tablets: swipeable photos, name before price, 2x2 facts, and a
fixed bottom bar with price + Check availability (vc-tour.css)
Board 1:
- Hide Viator internal tags ('Agent Low Quality Product'...) from the tour
category, listing filter and activities section (VC_Tags, tested)
- Listings: run the query filter late and set posts_per_archive_page so
pages show 12 tours as the count says
- Footer columns without a menu show default links (quick links, structure
cities, contact/about/faq) instead of empty headings
Plugin 1.9.5, theme 1.0.13.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
847 B
PHP
30 lines
847 B
PHP
<?php
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Plugin Name: Viator Collector
|
|
* Description: Import Viator tours using the Viator Partner API and display them with native WordPress post types, templates, and shortcodes.
|
|
* Version: 1.9.5
|
|
* Author: Amir Bagheri
|
|
* License: GPL-2.0-or-later
|
|
* Text Domain: viator-collector
|
|
*/
|
|
|
|
define('VC_VERSION', '1.9.5');
|
|
define('VC_PLUGIN_FILE', __FILE__);
|
|
define('VC_PLUGIN_DIR', plugin_dir_path(__FILE__));
|
|
define('VC_PLUGIN_URL', plugin_dir_url(__FILE__));
|
|
define('VC_PLUGIN_BASENAME', plugin_basename(__FILE__));
|
|
|
|
require_once VC_PLUGIN_DIR . 'includes/class-vc-plugin.php';
|
|
|
|
register_activation_hook(__FILE__, array('VC_Plugin', 'activate'));
|
|
register_deactivation_hook(__FILE__, array('VC_Plugin', 'deactivate'));
|
|
|
|
add_action(
|
|
'plugins_loaded',
|
|
static function () {
|
|
VC_Plugin::instance()->init();
|
|
}
|
|
);
|