Add viator-collector plugin (Hop On Hop Off front-end reskin)

Consolidate the plugin into the TourWebsite repository (its separate
nested git repo has been removed). Includes the full new-design reskin:
scoped design stylesheet, SVG icon sprite, rebuilt listing/single/section
templates, and homepage hero/FAQ/testimonials shortcodes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4hNL1PSHxXbu94SCenpKj
This commit is contained in:
2026-09-12 21:11:20 +03:30
parent 99e5413fee
commit 7ada8860f8
42 changed files with 9019 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
defined( 'ABSPATH' ) || exit;
$post_id = isset( $post_id ) ? absint( $post_id ) : get_the_ID();
$itinerary = vc_json_decode_meta( get_post_meta( $post_id, '_vc_itinerary', true ), array() );
$steps = vc_itinerary_steps( $itinerary );
if ( empty( $steps ) ) {
return;
}
?>
<section class="vc-block vc-reveal vc-itinerary">
<h2><?php echo esc_html__( 'Itinerary', 'viator-collector' ); ?></h2>
<ol class="vc-itin">
<?php foreach ( $steps as $i => $step ) : ?>
<li class="vc-itin__step">
<span class="vc-itin__marker"><?php echo esc_html( $i + 1 ); ?></span>
<div class="vc-itin__content">
<p class="vc-itin__desc"><?php echo esc_html( $step['description'] ); ?></p>
<?php if ( ! empty( $step['duration'] ) || ! empty( $step['admission'] ) || ! empty( $step['passby'] ) ) : ?>
<div class="vc-itin__meta">
<?php if ( ! empty( $step['duration'] ) ) : ?>
<span class="vc-tag"><?php echo esc_html( vc_duration_human( $step['duration'] ) ); ?></span>
<?php endif; ?>
<?php if ( ! empty( $step['admission'] ) ) : ?>
<span class="vc-tag vc-tag--ok"><?php echo esc_html__( 'Admission included', 'viator-collector' ); ?></span>
<?php endif; ?>
<?php if ( ! empty( $step['passby'] ) ) : ?>
<span class="vc-tag vc-tag--muted"><?php echo esc_html__( 'Pass by', 'viator-collector' ); ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</li>
<?php endforeach; ?>
</ol>
</section>