- Added a lightbox feature for gallery images, allowing users to view photos in a modal with navigation controls. - Updated the SVG sprite to include inline styles for better accessibility. - Increased CSS specificity by doubling the `.vc-app` class to ensure styles override Astra theme defaults. - Introduced new shortcodes for bus tours, about section, and articles in the VC_Sections class. - Improved the handling of featured images in the single tour template for sharper display. - Updated version number to 1.8.15.
30 lines
849 B
PHP
30 lines
849 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.8.15
|
|
* Author: Amir Bagheri
|
|
* License: GPL-2.0-or-later
|
|
* Text Domain: viator-collector
|
|
*/
|
|
|
|
define('VC_VERSION', '1.8.15');
|
|
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();
|
|
}
|
|
);
|